@azure/arm-loadtesting 1.0.1-alpha.20250211.1 → 1.0.1-alpha.20250212.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 (342) hide show
  1. package/README.md +63 -35
  2. package/dist/browser/index.d.ts +5 -0
  3. package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
  4. package/{dist-esm/src → dist/browser}/index.js +4 -4
  5. package/dist/browser/index.js.map +1 -0
  6. package/{dist-esm/src → dist/browser}/loadTestClient.d.ts +2 -2
  7. package/dist/browser/loadTestClient.d.ts.map +1 -0
  8. package/{dist-esm/src → dist/browser}/loadTestClient.js +15 -18
  9. package/dist/browser/loadTestClient.js.map +1 -0
  10. package/dist/browser/lroImpl.js +25 -0
  11. package/dist/browser/lroImpl.js.map +1 -0
  12. package/dist/browser/models/index.js.map +1 -0
  13. package/dist/browser/models/mappers.js.map +1 -0
  14. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  15. package/dist/browser/models/parameters.js.map +1 -0
  16. package/dist/browser/operations/index.d.ts +4 -0
  17. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  18. package/{dist-esm/src → dist/browser}/operations/index.js +3 -3
  19. package/dist/browser/operations/index.js.map +1 -0
  20. package/{dist-esm/src → dist/browser}/operations/loadTests.d.ts +3 -3
  21. package/dist/browser/operations/loadTests.d.ts.map +1 -0
  22. package/{dist-esm/src → dist/browser}/operations/loadTests.js +109 -121
  23. package/dist/browser/operations/loadTests.js.map +1 -0
  24. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
  25. package/dist/browser/operations/operations.d.ts.map +1 -0
  26. package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
  27. package/dist/browser/operations/operations.js.map +1 -0
  28. package/{dist-esm/src → dist/browser}/operations/quotas.d.ts +3 -3
  29. package/dist/browser/operations/quotas.d.ts.map +1 -0
  30. package/{dist-esm/src → dist/browser}/operations/quotas.js +3 -3
  31. package/dist/browser/operations/quotas.js.map +1 -0
  32. package/dist/browser/operationsInterfaces/index.d.ts +4 -0
  33. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  34. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +3 -3
  35. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  36. package/{dist-esm/src → dist/browser}/operationsInterfaces/loadTests.d.ts +1 -1
  37. package/dist/browser/operationsInterfaces/loadTests.d.ts.map +1 -0
  38. package/dist/browser/operationsInterfaces/loadTests.js.map +1 -0
  39. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
  40. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
  41. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  42. package/{dist-esm/src → dist/browser}/operationsInterfaces/quotas.d.ts +1 -1
  43. package/dist/browser/operationsInterfaces/quotas.d.ts.map +1 -0
  44. package/dist/browser/operationsInterfaces/quotas.js.map +1 -0
  45. package/dist/browser/package.json +3 -0
  46. package/dist/browser/pagingHelper.js.map +1 -0
  47. package/dist/commonjs/index.d.ts +5 -0
  48. package/dist/commonjs/index.d.ts.map +1 -0
  49. package/dist/commonjs/index.js +19 -0
  50. package/dist/commonjs/index.js.map +1 -0
  51. package/dist/commonjs/loadTestClient.d.ts +22 -0
  52. package/dist/commonjs/loadTestClient.d.ts.map +1 -0
  53. package/dist/commonjs/loadTestClient.js +104 -0
  54. package/dist/commonjs/loadTestClient.js.map +1 -0
  55. package/dist/commonjs/lroImpl.d.ts +16 -0
  56. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  57. package/dist/commonjs/lroImpl.js +29 -0
  58. package/dist/commonjs/lroImpl.js.map +1 -0
  59. package/{types/arm-loadtesting.d.ts → dist/commonjs/models/index.d.ts} +568 -781
  60. package/dist/commonjs/models/index.d.ts.map +1 -0
  61. package/dist/commonjs/models/index.js +71 -0
  62. package/dist/commonjs/models/index.js.map +1 -0
  63. package/dist/commonjs/models/mappers.d.ts +30 -0
  64. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  65. package/dist/commonjs/models/mappers.js +803 -0
  66. package/dist/commonjs/models/mappers.js.map +1 -0
  67. package/dist/commonjs/models/parameters.d.ts +15 -0
  68. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  69. package/dist/commonjs/models/parameters.js +139 -0
  70. package/dist/commonjs/models/parameters.js.map +1 -0
  71. package/dist/commonjs/operations/index.d.ts +4 -0
  72. package/dist/commonjs/operations/index.d.ts.map +1 -0
  73. package/dist/commonjs/operations/index.js +14 -0
  74. package/dist/commonjs/operations/index.js.map +1 -0
  75. package/dist/commonjs/operations/loadTests.d.ts +132 -0
  76. package/dist/commonjs/operations/loadTests.d.ts.map +1 -0
  77. package/dist/commonjs/operations/loadTests.js +656 -0
  78. package/dist/commonjs/operations/loadTests.js.map +1 -0
  79. package/dist/commonjs/operations/operations.d.ts +32 -0
  80. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  81. package/dist/commonjs/operations/operations.js +137 -0
  82. package/dist/commonjs/operations/operations.js.map +1 -0
  83. package/dist/commonjs/operations/quotas.d.ts +50 -0
  84. package/dist/commonjs/operations/quotas.d.ts.map +1 -0
  85. package/dist/commonjs/operations/quotas.js +212 -0
  86. package/dist/commonjs/operations/quotas.js.map +1 -0
  87. package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
  88. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  89. package/dist/commonjs/operationsInterfaces/index.js +14 -0
  90. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  91. package/dist/commonjs/operationsInterfaces/loadTests.d.ts +78 -0
  92. package/dist/commonjs/operationsInterfaces/loadTests.d.ts.map +1 -0
  93. package/dist/commonjs/operationsInterfaces/loadTests.js +10 -0
  94. package/dist/commonjs/operationsInterfaces/loadTests.js.map +1 -0
  95. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  96. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  97. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  98. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  99. package/dist/commonjs/operationsInterfaces/quotas.d.ts +27 -0
  100. package/dist/commonjs/operationsInterfaces/quotas.d.ts.map +1 -0
  101. package/dist/commonjs/operationsInterfaces/quotas.js +10 -0
  102. package/dist/commonjs/operationsInterfaces/quotas.js.map +1 -0
  103. package/dist/commonjs/package.json +3 -0
  104. package/dist/commonjs/pagingHelper.d.ts +13 -0
  105. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  106. package/dist/commonjs/pagingHelper.js +36 -0
  107. package/dist/commonjs/pagingHelper.js.map +1 -0
  108. package/dist/esm/index.d.ts +5 -0
  109. package/dist/esm/index.d.ts.map +1 -0
  110. package/{src/index.ts → dist/esm/index.js} +5 -5
  111. package/dist/esm/index.js.map +1 -0
  112. package/dist/esm/loadTestClient.d.ts +22 -0
  113. package/dist/esm/loadTestClient.d.ts.map +1 -0
  114. package/dist/esm/loadTestClient.js +99 -0
  115. package/dist/esm/loadTestClient.js.map +1 -0
  116. package/dist/esm/lroImpl.d.ts +16 -0
  117. package/dist/esm/lroImpl.d.ts.map +1 -0
  118. package/dist/esm/lroImpl.js +25 -0
  119. package/dist/esm/lroImpl.js.map +1 -0
  120. package/dist/esm/models/index.d.ts +568 -0
  121. package/dist/esm/models/index.d.ts.map +1 -0
  122. package/dist/esm/models/index.js +68 -0
  123. package/dist/esm/models/index.js.map +1 -0
  124. package/dist/esm/models/mappers.d.ts +30 -0
  125. package/dist/esm/models/mappers.d.ts.map +1 -0
  126. package/dist/esm/models/mappers.js +800 -0
  127. package/dist/esm/models/mappers.js.map +1 -0
  128. package/dist/esm/models/parameters.d.ts +15 -0
  129. package/dist/esm/models/parameters.d.ts.map +1 -0
  130. package/dist/esm/models/parameters.js +136 -0
  131. package/dist/esm/models/parameters.js.map +1 -0
  132. package/dist/esm/operations/index.d.ts +4 -0
  133. package/dist/esm/operations/index.d.ts.map +1 -0
  134. package/dist/esm/operations/index.js +11 -0
  135. package/dist/esm/operations/index.js.map +1 -0
  136. package/dist/esm/operations/loadTests.d.ts +132 -0
  137. package/dist/esm/operations/loadTests.d.ts.map +1 -0
  138. package/dist/esm/operations/loadTests.js +652 -0
  139. package/dist/esm/operations/loadTests.js.map +1 -0
  140. package/dist/esm/operations/operations.d.ts +32 -0
  141. package/dist/esm/operations/operations.d.ts.map +1 -0
  142. package/dist/esm/operations/operations.js +133 -0
  143. package/dist/esm/operations/operations.js.map +1 -0
  144. package/dist/esm/operations/quotas.d.ts +50 -0
  145. package/dist/esm/operations/quotas.d.ts.map +1 -0
  146. package/dist/esm/operations/quotas.js +208 -0
  147. package/dist/esm/operations/quotas.js.map +1 -0
  148. package/dist/esm/operationsInterfaces/index.d.ts +4 -0
  149. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  150. package/dist/esm/operationsInterfaces/index.js +11 -0
  151. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  152. package/dist/esm/operationsInterfaces/loadTests.d.ts +78 -0
  153. package/dist/esm/operationsInterfaces/loadTests.d.ts.map +1 -0
  154. package/{src/operations/index.ts → dist/esm/operationsInterfaces/loadTests.js} +2 -4
  155. package/dist/esm/operationsInterfaces/loadTests.js.map +1 -0
  156. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  157. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  158. package/dist/esm/operationsInterfaces/operations.js +9 -0
  159. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  160. package/dist/esm/operationsInterfaces/quotas.d.ts +27 -0
  161. package/dist/esm/operationsInterfaces/quotas.d.ts.map +1 -0
  162. package/dist/esm/operationsInterfaces/quotas.js +9 -0
  163. package/dist/esm/operationsInterfaces/quotas.js.map +1 -0
  164. package/dist/esm/package.json +3 -0
  165. package/dist/esm/pagingHelper.d.ts +13 -0
  166. package/dist/esm/pagingHelper.d.ts.map +1 -0
  167. package/dist/esm/pagingHelper.js +32 -0
  168. package/dist/esm/pagingHelper.js.map +1 -0
  169. package/dist/react-native/index.d.ts +5 -0
  170. package/dist/react-native/index.d.ts.map +1 -0
  171. package/dist/react-native/index.js +13 -0
  172. package/dist/react-native/index.js.map +1 -0
  173. package/dist/react-native/loadTestClient.d.ts +22 -0
  174. package/dist/react-native/loadTestClient.d.ts.map +1 -0
  175. package/dist/react-native/loadTestClient.js +99 -0
  176. package/dist/react-native/loadTestClient.js.map +1 -0
  177. package/dist/react-native/lroImpl.d.ts +16 -0
  178. package/dist/react-native/lroImpl.d.ts.map +1 -0
  179. package/dist/react-native/lroImpl.js +25 -0
  180. package/dist/react-native/lroImpl.js.map +1 -0
  181. package/dist/react-native/models/index.d.ts +568 -0
  182. package/dist/react-native/models/index.d.ts.map +1 -0
  183. package/dist/react-native/models/index.js +68 -0
  184. package/dist/react-native/models/index.js.map +1 -0
  185. package/dist/react-native/models/mappers.d.ts +30 -0
  186. package/dist/react-native/models/mappers.d.ts.map +1 -0
  187. package/dist/react-native/models/mappers.js +800 -0
  188. package/dist/react-native/models/mappers.js.map +1 -0
  189. package/dist/react-native/models/parameters.d.ts +15 -0
  190. package/dist/react-native/models/parameters.d.ts.map +1 -0
  191. package/dist/react-native/models/parameters.js +136 -0
  192. package/dist/react-native/models/parameters.js.map +1 -0
  193. package/dist/react-native/operations/index.d.ts +4 -0
  194. package/dist/react-native/operations/index.d.ts.map +1 -0
  195. package/dist/react-native/operations/index.js +11 -0
  196. package/dist/react-native/operations/index.js.map +1 -0
  197. package/dist/react-native/operations/loadTests.d.ts +132 -0
  198. package/dist/react-native/operations/loadTests.d.ts.map +1 -0
  199. package/dist/react-native/operations/loadTests.js +652 -0
  200. package/dist/react-native/operations/loadTests.js.map +1 -0
  201. package/dist/react-native/operations/operations.d.ts +32 -0
  202. package/dist/react-native/operations/operations.d.ts.map +1 -0
  203. package/dist/react-native/operations/operations.js +133 -0
  204. package/dist/react-native/operations/operations.js.map +1 -0
  205. package/dist/react-native/operations/quotas.d.ts +50 -0
  206. package/dist/react-native/operations/quotas.d.ts.map +1 -0
  207. package/dist/react-native/operations/quotas.js +208 -0
  208. package/dist/react-native/operations/quotas.js.map +1 -0
  209. package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
  210. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  211. package/dist/react-native/operationsInterfaces/index.js +11 -0
  212. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  213. package/dist/react-native/operationsInterfaces/loadTests.d.ts +78 -0
  214. package/dist/react-native/operationsInterfaces/loadTests.d.ts.map +1 -0
  215. package/dist/react-native/operationsInterfaces/loadTests.js +9 -0
  216. package/dist/react-native/operationsInterfaces/loadTests.js.map +1 -0
  217. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  218. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  219. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  220. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  221. package/dist/react-native/operationsInterfaces/quotas.d.ts +27 -0
  222. package/dist/react-native/operationsInterfaces/quotas.d.ts.map +1 -0
  223. package/dist/react-native/operationsInterfaces/quotas.js +9 -0
  224. package/dist/react-native/operationsInterfaces/quotas.js.map +1 -0
  225. package/dist/react-native/package.json +3 -0
  226. package/dist/react-native/pagingHelper.d.ts +13 -0
  227. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  228. package/dist/react-native/pagingHelper.js +32 -0
  229. package/dist/react-native/pagingHelper.js.map +1 -0
  230. package/package.json +69 -40
  231. package/dist/index.js +0 -2213
  232. package/dist/index.js.map +0 -1
  233. package/dist/index.min.js +0 -1
  234. package/dist/index.min.js.map +0 -1
  235. package/dist-esm/samples-dev/loadTestsCreateOrUpdateSample.d.ts +0 -2
  236. package/dist-esm/samples-dev/loadTestsCreateOrUpdateSample.d.ts.map +0 -1
  237. package/dist-esm/samples-dev/loadTestsCreateOrUpdateSample.js +0 -47
  238. package/dist-esm/samples-dev/loadTestsCreateOrUpdateSample.js.map +0 -1
  239. package/dist-esm/samples-dev/loadTestsDeleteSample.d.ts +0 -2
  240. package/dist-esm/samples-dev/loadTestsDeleteSample.d.ts.map +0 -1
  241. package/dist-esm/samples-dev/loadTestsDeleteSample.js +0 -36
  242. package/dist-esm/samples-dev/loadTestsDeleteSample.js.map +0 -1
  243. package/dist-esm/samples-dev/loadTestsGetSample.d.ts +0 -2
  244. package/dist-esm/samples-dev/loadTestsGetSample.d.ts.map +0 -1
  245. package/dist-esm/samples-dev/loadTestsGetSample.js +0 -36
  246. package/dist-esm/samples-dev/loadTestsGetSample.js.map +0 -1
  247. package/dist-esm/samples-dev/loadTestsListByResourceGroupSample.d.ts +0 -2
  248. package/dist-esm/samples-dev/loadTestsListByResourceGroupSample.d.ts.map +0 -1
  249. package/dist-esm/samples-dev/loadTestsListByResourceGroupSample.js +0 -51
  250. package/dist-esm/samples-dev/loadTestsListByResourceGroupSample.js.map +0 -1
  251. package/dist-esm/samples-dev/loadTestsListBySubscriptionSample.d.ts +0 -2
  252. package/dist-esm/samples-dev/loadTestsListBySubscriptionSample.d.ts.map +0 -1
  253. package/dist-esm/samples-dev/loadTestsListBySubscriptionSample.js +0 -50
  254. package/dist-esm/samples-dev/loadTestsListBySubscriptionSample.js.map +0 -1
  255. package/dist-esm/samples-dev/loadTestsListOutboundNetworkDependenciesEndpointsSample.d.ts +0 -2
  256. package/dist-esm/samples-dev/loadTestsListOutboundNetworkDependenciesEndpointsSample.d.ts.map +0 -1
  257. package/dist-esm/samples-dev/loadTestsListOutboundNetworkDependenciesEndpointsSample.js +0 -52
  258. package/dist-esm/samples-dev/loadTestsListOutboundNetworkDependenciesEndpointsSample.js.map +0 -1
  259. package/dist-esm/samples-dev/loadTestsUpdateSample.d.ts +0 -2
  260. package/dist-esm/samples-dev/loadTestsUpdateSample.d.ts.map +0 -1
  261. package/dist-esm/samples-dev/loadTestsUpdateSample.js +0 -43
  262. package/dist-esm/samples-dev/loadTestsUpdateSample.js.map +0 -1
  263. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  264. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  265. package/dist-esm/samples-dev/operationsListSample.js +0 -50
  266. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  267. package/dist-esm/samples-dev/quotasCheckAvailabilitySample.d.ts +0 -2
  268. package/dist-esm/samples-dev/quotasCheckAvailabilitySample.d.ts.map +0 -1
  269. package/dist-esm/samples-dev/quotasCheckAvailabilitySample.js +0 -35
  270. package/dist-esm/samples-dev/quotasCheckAvailabilitySample.js.map +0 -1
  271. package/dist-esm/samples-dev/quotasGetSample.d.ts +0 -2
  272. package/dist-esm/samples-dev/quotasGetSample.d.ts.map +0 -1
  273. package/dist-esm/samples-dev/quotasGetSample.js +0 -36
  274. package/dist-esm/samples-dev/quotasGetSample.js.map +0 -1
  275. package/dist-esm/samples-dev/quotasListSample.d.ts +0 -2
  276. package/dist-esm/samples-dev/quotasListSample.d.ts.map +0 -1
  277. package/dist-esm/samples-dev/quotasListSample.js +0 -51
  278. package/dist-esm/samples-dev/quotasListSample.js.map +0 -1
  279. package/dist-esm/src/index.d.ts +0 -5
  280. package/dist-esm/src/index.js.map +0 -1
  281. package/dist-esm/src/loadTestClient.d.ts.map +0 -1
  282. package/dist-esm/src/loadTestClient.js.map +0 -1
  283. package/dist-esm/src/lroImpl.js +0 -29
  284. package/dist-esm/src/lroImpl.js.map +0 -1
  285. package/dist-esm/src/models/index.js.map +0 -1
  286. package/dist-esm/src/models/mappers.js.map +0 -1
  287. package/dist-esm/src/models/parameters.js.map +0 -1
  288. package/dist-esm/src/operations/index.d.ts +0 -4
  289. package/dist-esm/src/operations/index.js.map +0 -1
  290. package/dist-esm/src/operations/loadTests.d.ts.map +0 -1
  291. package/dist-esm/src/operations/loadTests.js.map +0 -1
  292. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  293. package/dist-esm/src/operations/operations.js.map +0 -1
  294. package/dist-esm/src/operations/quotas.d.ts.map +0 -1
  295. package/dist-esm/src/operations/quotas.js.map +0 -1
  296. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
  297. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  298. package/dist-esm/src/operationsInterfaces/loadTests.d.ts.map +0 -1
  299. package/dist-esm/src/operationsInterfaces/loadTests.js.map +0 -1
  300. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  301. package/dist-esm/src/operationsInterfaces/quotas.d.ts.map +0 -1
  302. package/dist-esm/src/operationsInterfaces/quotas.js.map +0 -1
  303. package/dist-esm/src/pagingHelper.js.map +0 -1
  304. package/dist-esm/test/loadtesting_quota_operations.spec.d.ts +0 -2
  305. package/dist-esm/test/loadtesting_quota_operations.spec.d.ts.map +0 -1
  306. package/dist-esm/test/loadtesting_quota_operations.spec.js +0 -121
  307. package/dist-esm/test/loadtesting_quota_operations.spec.js.map +0 -1
  308. package/dist-esm/test/loadtesting_resource_operations.spec.d.ts +0 -4
  309. package/dist-esm/test/loadtesting_resource_operations.spec.d.ts.map +0 -1
  310. package/dist-esm/test/loadtesting_resource_operations.spec.js +0 -121
  311. package/dist-esm/test/loadtesting_resource_operations.spec.js.map +0 -1
  312. package/src/loadTestClient.ts +0 -144
  313. package/src/lroImpl.ts +0 -34
  314. package/src/models/index.ts +0 -645
  315. package/src/models/mappers.ts +0 -855
  316. package/src/models/parameters.ts +0 -158
  317. package/src/operations/loadTests.ts +0 -884
  318. package/src/operations/operations.ts +0 -149
  319. package/src/operations/quotas.ts +0 -257
  320. package/src/operationsInterfaces/index.ts +0 -11
  321. package/src/operationsInterfaces/loadTests.ts +0 -152
  322. package/src/operationsInterfaces/operations.ts +0 -22
  323. package/src/operationsInterfaces/quotas.ts +0 -56
  324. package/src/pagingHelper.ts +0 -39
  325. package/tsconfig.json +0 -33
  326. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
  327. /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
  328. /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
  329. /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
  330. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  331. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
  332. /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
  333. /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
  334. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
  335. /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
  336. /package/{dist-esm/src → dist/browser}/operationsInterfaces/loadTests.js +0 -0
  337. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  338. /package/{dist-esm/src → dist/browser}/operationsInterfaces/quotas.js +0 -0
  339. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
  340. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
  341. /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
  342. /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadTests.js","sourceRoot":"","sources":["../../../src/operations/loadTests.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AA0BxC,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAmD;QAEnD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,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AE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,yDAAyD,GAA6B;IAC1F,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qCAAqC;SAC1D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { LoadTests } 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 { LoadTestClient } from \"../loadTestClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n LoadTestResource,\n LoadTestsListBySubscriptionNextOptionalParams,\n LoadTestsListBySubscriptionOptionalParams,\n LoadTestsListBySubscriptionResponse,\n LoadTestsListByResourceGroupNextOptionalParams,\n LoadTestsListByResourceGroupOptionalParams,\n LoadTestsListByResourceGroupResponse,\n OutboundEnvironmentEndpoint,\n LoadTestsListOutboundNetworkDependenciesEndpointsNextOptionalParams,\n LoadTestsListOutboundNetworkDependenciesEndpointsOptionalParams,\n LoadTestsListOutboundNetworkDependenciesEndpointsResponse,\n LoadTestsGetOptionalParams,\n LoadTestsGetResponse,\n LoadTestsCreateOrUpdateOptionalParams,\n LoadTestsCreateOrUpdateResponse,\n LoadTestResourcePatchRequestBody,\n LoadTestsUpdateOptionalParams,\n LoadTestsUpdateResponse,\n LoadTestsDeleteOptionalParams,\n LoadTestsListBySubscriptionNextResponse,\n LoadTestsListByResourceGroupNextResponse,\n LoadTestsListOutboundNetworkDependenciesEndpointsNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing LoadTests operations. */\nexport class LoadTestsImpl implements LoadTests {\n private readonly client: LoadTestClient;\n\n /**\n * Initialize a new instance of the class LoadTests class.\n * @param client Reference to the service client\n */\n constructor(client: LoadTestClient) {\n this.client = client;\n }\n\n /**\n * Lists loadtests resources in a subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: LoadTestsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<LoadTestResource> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: LoadTestsListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LoadTestResource[]> {\n let result: LoadTestsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: LoadTestsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<LoadTestResource> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists loadtest resources in a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: LoadTestsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<LoadTestResource> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: LoadTestsListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LoadTestResource[]> {\n let result: LoadTestsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: LoadTestsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<LoadTestResource> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the endpoints that agents may call as part of load testing.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param loadTestName Load Test name.\n * @param options The options parameters.\n */\n public listOutboundNetworkDependenciesEndpoints(\n resourceGroupName: string,\n loadTestName: string,\n options?: LoadTestsListOutboundNetworkDependenciesEndpointsOptionalParams\n ): PagedAsyncIterableIterator<OutboundEnvironmentEndpoint> {\n const iter = this.listOutboundNetworkDependenciesEndpointsPagingAll(\n resourceGroupName,\n loadTestName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listOutboundNetworkDependenciesEndpointsPagingPage(\n resourceGroupName,\n loadTestName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listOutboundNetworkDependenciesEndpointsPagingPage(\n resourceGroupName: string,\n loadTestName: string,\n options?: LoadTestsListOutboundNetworkDependenciesEndpointsOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<OutboundEnvironmentEndpoint[]> {\n let result: LoadTestsListOutboundNetworkDependenciesEndpointsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listOutboundNetworkDependenciesEndpoints(\n resourceGroupName,\n loadTestName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listOutboundNetworkDependenciesEndpointsNext(\n resourceGroupName,\n loadTestName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listOutboundNetworkDependenciesEndpointsPagingAll(\n resourceGroupName: string,\n loadTestName: string,\n options?: LoadTestsListOutboundNetworkDependenciesEndpointsOptionalParams\n ): AsyncIterableIterator<OutboundEnvironmentEndpoint> {\n for await (const page of this.listOutboundNetworkDependenciesEndpointsPagingPage(\n resourceGroupName,\n loadTestName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists loadtests resources in a subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: LoadTestsListBySubscriptionOptionalParams\n ): Promise<LoadTestsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Lists loadtest resources in a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: LoadTestsListByResourceGroupOptionalParams\n ): Promise<LoadTestsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Get a LoadTest resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param loadTestName Load Test name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n loadTestName: string,\n options?: LoadTestsGetOptionalParams\n ): Promise<LoadTestsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, loadTestName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or update LoadTest resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param loadTestName Load Test name.\n * @param loadTestResource LoadTest resource data\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n loadTestName: string,\n loadTestResource: LoadTestResource,\n options?: LoadTestsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<LoadTestsCreateOrUpdateResponse>,\n LoadTestsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<LoadTestsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, loadTestName, loadTestResource, options },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update LoadTest resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param loadTestName Load Test name.\n * @param loadTestResource LoadTest resource data\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n loadTestName: string,\n loadTestResource: LoadTestResource,\n options?: LoadTestsCreateOrUpdateOptionalParams\n ): Promise<LoadTestsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n loadTestName,\n loadTestResource,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a loadtest resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param loadTestName Load Test name.\n * @param loadTestResourcePatchRequestBody LoadTest resource update data\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n loadTestName: string,\n loadTestResourcePatchRequestBody: LoadTestResourcePatchRequestBody,\n options?: LoadTestsUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<LoadTestsUpdateResponse>,\n LoadTestsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<LoadTestsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n loadTestName,\n loadTestResourcePatchRequestBody,\n options\n },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update a loadtest resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param loadTestName Load Test name.\n * @param loadTestResourcePatchRequestBody LoadTest resource update data\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n loadTestName: string,\n loadTestResourcePatchRequestBody: LoadTestResourcePatchRequestBody,\n options?: LoadTestsUpdateOptionalParams\n ): Promise<LoadTestsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n loadTestName,\n loadTestResourcePatchRequestBody,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a LoadTest resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param loadTestName Load Test name.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n loadTestName: string,\n options?: LoadTestsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, loadTestName, options },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete a LoadTest resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param loadTestName Load Test name.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n loadTestName: string,\n options?: LoadTestsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n loadTestName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the endpoints that agents may call as part of load testing.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param loadTestName Load Test name.\n * @param options The options parameters.\n */\n private _listOutboundNetworkDependenciesEndpoints(\n resourceGroupName: string,\n loadTestName: string,\n options?: LoadTestsListOutboundNetworkDependenciesEndpointsOptionalParams\n ): Promise<LoadTestsListOutboundNetworkDependenciesEndpointsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, loadTestName, options },\n listOutboundNetworkDependenciesEndpointsOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: LoadTestsListBySubscriptionNextOptionalParams\n ): Promise<LoadTestsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: LoadTestsListByResourceGroupNextOptionalParams\n ): Promise<LoadTestsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n\n /**\n * ListOutboundNetworkDependenciesEndpointsNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param loadTestName Load Test name.\n * @param nextLink The nextLink from the previous successful call to the\n * ListOutboundNetworkDependenciesEndpoints method.\n * @param options The options parameters.\n */\n private _listOutboundNetworkDependenciesEndpointsNext(\n resourceGroupName: string,\n loadTestName: string,\n nextLink: string,\n options?: LoadTestsListOutboundNetworkDependenciesEndpointsNextOptionalParams\n ): Promise<LoadTestsListOutboundNetworkDependenciesEndpointsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, loadTestName, nextLink, options },\n listOutboundNetworkDependenciesEndpointsNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/loadTests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LoadTestResourcePageList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LoadTestResourcePageList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LoadTestResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.loadTestName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.LoadTestResource\n },\n 201: {\n bodyMapper: Mappers.LoadTestResource\n },\n 202: {\n bodyMapper: Mappers.LoadTestResource\n },\n 204: {\n bodyMapper: Mappers.LoadTestResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.loadTestResource,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.loadTestName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.LoadTestResource\n },\n 201: {\n bodyMapper: Mappers.LoadTestResource\n },\n 202: {\n bodyMapper: Mappers.LoadTestResource\n },\n 204: {\n bodyMapper: Mappers.LoadTestResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.loadTestResourcePatchRequestBody,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.loadTestName\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.LoadTestService/loadTests/{loadTestName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.loadTestName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}/outboundNetworkDependenciesEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OutboundEnvironmentEndpointCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.loadTestName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LoadTestResourcePageList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LoadTestResourcePageList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OutboundEnvironmentEndpointCollection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.loadTestName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,32 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces/index.js";
3
+ import { LoadTestClient } from "../loadTestClient.js";
4
+ import { Operation, OperationsListOptionalParams } from "../models/index.js";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: LoadTestClient);
13
+ /**
14
+ * Lists all the available API operations for Load Test Resource.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Lists all the available API operations for Load Test Resource.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ /**
26
+ * ListNext
27
+ * @param nextLink The nextLink from the previous successful call to the List method.
28
+ * @param options The options parameters.
29
+ */
30
+ private _listNext;
31
+ }
32
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiB;IAExC;;;OAGG;gBACS,MAAM,EAAE,cAAc;IAIlC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -0,0 +1,137 @@
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.OperationsImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing Operations operations. */
18
+ class OperationsImpl {
19
+ /**
20
+ * Initialize a new instance of the class Operations class.
21
+ * @param client Reference to the service client
22
+ */
23
+ constructor(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * Lists all the available API operations for Load Test Resource.
28
+ * @param options The options parameters.
29
+ */
30
+ list(options) {
31
+ const iter = this.listPagingAll(options);
32
+ return {
33
+ next() {
34
+ return iter.next();
35
+ },
36
+ [Symbol.asyncIterator]() {
37
+ return this;
38
+ },
39
+ byPage: (settings) => {
40
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ throw new Error("maxPageSize is not supported by this operation.");
42
+ }
43
+ return this.listPagingPage(options, settings);
44
+ }
45
+ };
46
+ }
47
+ listPagingPage(options, settings) {
48
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
49
+ let result;
50
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
+ if (!continuationToken) {
52
+ result = yield tslib_1.__await(this._list(options));
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield yield tslib_1.__await(page);
57
+ }
58
+ while (continuationToken) {
59
+ result = yield tslib_1.__await(this._listNext(continuationToken, options));
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield yield tslib_1.__await(page);
64
+ }
65
+ });
66
+ }
67
+ listPagingAll(options) {
68
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
69
+ var _a, e_1, _b, _c;
70
+ try {
71
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
72
+ _c = _f.value;
73
+ _d = false;
74
+ const page = _c;
75
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
76
+ }
77
+ }
78
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
+ finally {
80
+ try {
81
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
82
+ }
83
+ finally { if (e_1) throw e_1.error; }
84
+ }
85
+ });
86
+ }
87
+ /**
88
+ * Lists all the available API operations for Load Test Resource.
89
+ * @param options The options parameters.
90
+ */
91
+ _list(options) {
92
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
93
+ }
94
+ /**
95
+ * ListNext
96
+ * @param nextLink The nextLink from the previous successful call to the List method.
97
+ * @param options The options parameters.
98
+ */
99
+ _listNext(nextLink, options) {
100
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
101
+ }
102
+ }
103
+ exports.OperationsImpl = OperationsImpl;
104
+ // Operation Specifications
105
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
106
+ const listOperationSpec = {
107
+ path: "/providers/Microsoft.LoadTestService/operations",
108
+ httpMethod: "GET",
109
+ responses: {
110
+ 200: {
111
+ bodyMapper: Mappers.OperationListResult
112
+ },
113
+ default: {
114
+ bodyMapper: Mappers.ErrorResponse
115
+ }
116
+ },
117
+ queryParameters: [Parameters.apiVersion],
118
+ urlParameters: [Parameters.$host],
119
+ headerParameters: [Parameters.accept],
120
+ serializer
121
+ };
122
+ const listNextOperationSpec = {
123
+ path: "{nextLink}",
124
+ httpMethod: "GET",
125
+ responses: {
126
+ 200: {
127
+ bodyMapper: Mappers.OperationListResult
128
+ },
129
+ default: {
130
+ bodyMapper: Mappers.ErrorResponse
131
+ }
132
+ },
133
+ urlParameters: [Parameters.$host, Parameters.nextLink],
134
+ headerParameters: [Parameters.accept],
135
+ serializer
136
+ };
137
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC,EACtC,QAAuB;;YAEvB,IAAI,MAA8B,CAAC;YACnC,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB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B,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AAzFD,wCAyFC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,iDAAiD;IACvD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } 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 { LoadTestClient } from \"../loadTestClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: LoadTestClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: LoadTestClient) {\n this.client = client;\n }\n\n /**\n * Lists all the available API operations for Load Test Resource.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all the available API operations for Load Test Resource.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.LoadTestService/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,50 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Quotas } from "../operationsInterfaces/index.js";
3
+ import { LoadTestClient } from "../loadTestClient.js";
4
+ import { QuotaResource, QuotasListOptionalParams, QuotasGetOptionalParams, QuotasGetResponse, QuotaBucketRequest, QuotasCheckAvailabilityOptionalParams, QuotasCheckAvailabilityResponse } from "../models/index.js";
5
+ /** Class containing Quotas operations. */
6
+ export declare class QuotasImpl implements Quotas {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Quotas class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: LoadTestClient);
13
+ /**
14
+ * Lists all the available quota per region per subscription.
15
+ * @param location The name of Azure region.
16
+ * @param options The options parameters.
17
+ */
18
+ list(location: string, options?: QuotasListOptionalParams): PagedAsyncIterableIterator<QuotaResource>;
19
+ private listPagingPage;
20
+ private listPagingAll;
21
+ /**
22
+ * Lists all the available quota per region per subscription.
23
+ * @param location The name of Azure region.
24
+ * @param options The options parameters.
25
+ */
26
+ private _list;
27
+ /**
28
+ * Get the available quota for a quota bucket per region per subscription.
29
+ * @param location The name of Azure region.
30
+ * @param quotaBucketName Quota Bucket name.
31
+ * @param options The options parameters.
32
+ */
33
+ get(location: string, quotaBucketName: string, options?: QuotasGetOptionalParams): Promise<QuotasGetResponse>;
34
+ /**
35
+ * Check Quota Availability on quota bucket per region per subscription.
36
+ * @param location The name of Azure region.
37
+ * @param quotaBucketName Quota Bucket name.
38
+ * @param quotaBucketRequest Quota Bucket Request data
39
+ * @param options The options parameters.
40
+ */
41
+ checkAvailability(location: string, quotaBucketName: string, quotaBucketRequest: QuotaBucketRequest, options?: QuotasCheckAvailabilityOptionalParams): Promise<QuotasCheckAvailabilityResponse>;
42
+ /**
43
+ * ListNext
44
+ * @param location The name of Azure region.
45
+ * @param nextLink The nextLink from the previous successful call to the List method.
46
+ * @param options The options parameters.
47
+ */
48
+ private _listNext;
49
+ }
50
+ //# sourceMappingURL=quotas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotas.d.ts","sourceRoot":"","sources":["../../../src/operations/quotas.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAI1D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EACL,aAAa,EAEb,wBAAwB,EAExB,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,qCAAqC,EACrC,+BAA+B,EAEhC,MAAM,oBAAoB,CAAC;AAG5B,0CAA0C;AAC1C,qBAAa,UAAW,YAAW,MAAM;IACvC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiB;IAExC;;;OAGG;gBACS,MAAM,EAAE,cAAc;IAIlC;;;;OAIG;IACI,IAAI,CACT,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,wBAAwB,GACjC,0BAA0B,CAAC,aAAa,CAAC;YAkB7B,cAAc;YAuBd,aAAa;IAS5B;;;;OAIG;IACH,OAAO,CAAC,KAAK;IAUb;;;;;OAKG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,uBAAuB,GAChC,OAAO,CAAC,iBAAiB,CAAC;IAO7B;;;;;;OAMG;IACH,iBAAiB,CACf,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,EACvB,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;IAO3C;;;;;OAKG;IACH,OAAO,CAAC,SAAS;CAUlB"}
@@ -0,0 +1,212 @@
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.QuotasImpl = void 0;
11
+ const tslib_1 = require("tslib");
12
+ const pagingHelper_js_1 = require("../pagingHelper.js");
13
+ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
14
+ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
15
+ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
+ /// <reference lib="esnext.asynciterable" />
17
+ /** Class containing Quotas operations. */
18
+ class QuotasImpl {
19
+ /**
20
+ * Initialize a new instance of the class Quotas class.
21
+ * @param client Reference to the service client
22
+ */
23
+ constructor(client) {
24
+ this.client = client;
25
+ }
26
+ /**
27
+ * Lists all the available quota per region per subscription.
28
+ * @param location The name of Azure region.
29
+ * @param options The options parameters.
30
+ */
31
+ list(location, options) {
32
+ const iter = this.listPagingAll(location, options);
33
+ return {
34
+ next() {
35
+ return iter.next();
36
+ },
37
+ [Symbol.asyncIterator]() {
38
+ return this;
39
+ },
40
+ byPage: (settings) => {
41
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ throw new Error("maxPageSize is not supported by this operation.");
43
+ }
44
+ return this.listPagingPage(location, options, settings);
45
+ }
46
+ };
47
+ }
48
+ listPagingPage(location, options, settings) {
49
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
50
+ let result;
51
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
+ if (!continuationToken) {
53
+ result = yield tslib_1.__await(this._list(location, options));
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
+ yield yield tslib_1.__await(page);
58
+ }
59
+ while (continuationToken) {
60
+ result = yield tslib_1.__await(this._listNext(location, continuationToken, options));
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
+ yield yield tslib_1.__await(page);
65
+ }
66
+ });
67
+ }
68
+ listPagingAll(location, options) {
69
+ return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
70
+ var _a, e_1, _b, _c;
71
+ try {
72
+ for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(location, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
73
+ _c = _f.value;
74
+ _d = false;
75
+ const page = _c;
76
+ yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
77
+ }
78
+ }
79
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
+ finally {
81
+ try {
82
+ if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
83
+ }
84
+ finally { if (e_1) throw e_1.error; }
85
+ }
86
+ });
87
+ }
88
+ /**
89
+ * Lists all the available quota per region per subscription.
90
+ * @param location The name of Azure region.
91
+ * @param options The options parameters.
92
+ */
93
+ _list(location, options) {
94
+ return this.client.sendOperationRequest({ location, options }, listOperationSpec);
95
+ }
96
+ /**
97
+ * Get the available quota for a quota bucket per region per subscription.
98
+ * @param location The name of Azure region.
99
+ * @param quotaBucketName Quota Bucket name.
100
+ * @param options The options parameters.
101
+ */
102
+ get(location, quotaBucketName, options) {
103
+ return this.client.sendOperationRequest({ location, quotaBucketName, options }, getOperationSpec);
104
+ }
105
+ /**
106
+ * Check Quota Availability on quota bucket per region per subscription.
107
+ * @param location The name of Azure region.
108
+ * @param quotaBucketName Quota Bucket name.
109
+ * @param quotaBucketRequest Quota Bucket Request data
110
+ * @param options The options parameters.
111
+ */
112
+ checkAvailability(location, quotaBucketName, quotaBucketRequest, options) {
113
+ return this.client.sendOperationRequest({ location, quotaBucketName, quotaBucketRequest, options }, checkAvailabilityOperationSpec);
114
+ }
115
+ /**
116
+ * ListNext
117
+ * @param location The name of Azure region.
118
+ * @param nextLink The nextLink from the previous successful call to the List method.
119
+ * @param options The options parameters.
120
+ */
121
+ _listNext(location, nextLink, options) {
122
+ return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec);
123
+ }
124
+ }
125
+ exports.QuotasImpl = QuotasImpl;
126
+ // Operation Specifications
127
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
128
+ const listOperationSpec = {
129
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas",
130
+ httpMethod: "GET",
131
+ responses: {
132
+ 200: {
133
+ bodyMapper: Mappers.QuotaResourceList
134
+ },
135
+ default: {
136
+ bodyMapper: Mappers.ErrorResponse
137
+ }
138
+ },
139
+ queryParameters: [Parameters.apiVersion],
140
+ urlParameters: [
141
+ Parameters.$host,
142
+ Parameters.subscriptionId,
143
+ Parameters.location
144
+ ],
145
+ headerParameters: [Parameters.accept],
146
+ serializer
147
+ };
148
+ const getOperationSpec = {
149
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}",
150
+ httpMethod: "GET",
151
+ responses: {
152
+ 200: {
153
+ bodyMapper: Mappers.QuotaResource
154
+ },
155
+ default: {
156
+ bodyMapper: Mappers.ErrorResponse
157
+ }
158
+ },
159
+ queryParameters: [Parameters.apiVersion],
160
+ urlParameters: [
161
+ Parameters.$host,
162
+ Parameters.subscriptionId,
163
+ Parameters.location,
164
+ Parameters.quotaBucketName
165
+ ],
166
+ headerParameters: [Parameters.accept],
167
+ serializer
168
+ };
169
+ const checkAvailabilityOperationSpec = {
170
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}/checkAvailability",
171
+ httpMethod: "POST",
172
+ responses: {
173
+ 200: {
174
+ bodyMapper: Mappers.CheckQuotaAvailabilityResponse
175
+ },
176
+ default: {
177
+ bodyMapper: Mappers.ErrorResponse
178
+ }
179
+ },
180
+ requestBody: Parameters.quotaBucketRequest,
181
+ queryParameters: [Parameters.apiVersion],
182
+ urlParameters: [
183
+ Parameters.$host,
184
+ Parameters.subscriptionId,
185
+ Parameters.location,
186
+ Parameters.quotaBucketName
187
+ ],
188
+ headerParameters: [Parameters.accept, Parameters.contentType],
189
+ mediaType: "json",
190
+ serializer
191
+ };
192
+ const listNextOperationSpec = {
193
+ path: "{nextLink}",
194
+ httpMethod: "GET",
195
+ responses: {
196
+ 200: {
197
+ bodyMapper: Mappers.QuotaResourceList
198
+ },
199
+ default: {
200
+ bodyMapper: Mappers.ErrorResponse
201
+ }
202
+ },
203
+ urlParameters: [
204
+ Parameters.$host,
205
+ Parameters.nextLink,
206
+ Parameters.subscriptionId,
207
+ Parameters.location
208
+ ],
209
+ headerParameters: [Parameters.accept],
210
+ serializer
211
+ };
212
+ //# sourceMappingURL=quotas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotas.js","sourceRoot":"","sources":["../../../src/operations/quotas.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAi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BAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EACF,qIAAqI;IACvI,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,kBAAkB;IAC1C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Quotas } 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 { LoadTestClient } from \"../loadTestClient.js\";\nimport {\n QuotaResource,\n QuotasListNextOptionalParams,\n QuotasListOptionalParams,\n QuotasListResponse,\n QuotasGetOptionalParams,\n QuotasGetResponse,\n QuotaBucketRequest,\n QuotasCheckAvailabilityOptionalParams,\n QuotasCheckAvailabilityResponse,\n QuotasListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Quotas operations. */\nexport class QuotasImpl implements Quotas {\n private readonly client: LoadTestClient;\n\n /**\n * Initialize a new instance of the class Quotas class.\n * @param client Reference to the service client\n */\n constructor(client: LoadTestClient) {\n this.client = client;\n }\n\n /**\n * Lists all the available quota per region per subscription.\n * @param location The name of Azure region.\n * @param options The options parameters.\n */\n public list(\n location: string,\n options?: QuotasListOptionalParams\n ): PagedAsyncIterableIterator<QuotaResource> {\n const iter = this.listPagingAll(location, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(location, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n location: string,\n options?: QuotasListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<QuotaResource[]> {\n let result: QuotasListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(location, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(location, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n location: string,\n options?: QuotasListOptionalParams\n ): AsyncIterableIterator<QuotaResource> {\n for await (const page of this.listPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all the available quota per region per subscription.\n * @param location The name of Azure region.\n * @param options The options parameters.\n */\n private _list(\n location: string,\n options?: QuotasListOptionalParams\n ): Promise<QuotasListResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listOperationSpec\n );\n }\n\n /**\n * Get the available quota for a quota bucket per region per subscription.\n * @param location The name of Azure region.\n * @param quotaBucketName Quota Bucket name.\n * @param options The options parameters.\n */\n get(\n location: string,\n quotaBucketName: string,\n options?: QuotasGetOptionalParams\n ): Promise<QuotasGetResponse> {\n return this.client.sendOperationRequest(\n { location, quotaBucketName, options },\n getOperationSpec\n );\n }\n\n /**\n * Check Quota Availability on quota bucket per region per subscription.\n * @param location The name of Azure region.\n * @param quotaBucketName Quota Bucket name.\n * @param quotaBucketRequest Quota Bucket Request data\n * @param options The options parameters.\n */\n checkAvailability(\n location: string,\n quotaBucketName: string,\n quotaBucketRequest: QuotaBucketRequest,\n options?: QuotasCheckAvailabilityOptionalParams\n ): Promise<QuotasCheckAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { location, quotaBucketName, quotaBucketRequest, options },\n checkAvailabilityOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param location The name of Azure region.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n location: string,\n nextLink: string,\n options?: QuotasListNextOptionalParams\n ): Promise<QuotasListNextResponse> {\n return this.client.sendOperationRequest(\n { location, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaResourceList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n Parameters.quotaBucketName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst checkAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}/checkAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckQuotaAvailabilityResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.quotaBucketRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n Parameters.quotaBucketName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaResourceList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.location\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,4 @@
1
+ export * from "./operations.js";
2
+ export * from "./quotas.js";
3
+ export * from "./loadTests.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,14 @@
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
+ const tslib_1 = require("tslib");
11
+ tslib_1.__exportStar(require("./operations.js"), exports);
12
+ tslib_1.__exportStar(require("./quotas.js"), exports);
13
+ tslib_1.__exportStar(require("./loadTests.js"), exports);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,0DAAgC;AAChC,sDAA4B;AAC5B,yDAA+B","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./operations.js\";\nexport * from \"./quotas.js\";\nexport * from \"./loadTests.js\";\n"]}