@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,78 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
3
+ import { LoadTestResource, LoadTestsListBySubscriptionOptionalParams, LoadTestsListByResourceGroupOptionalParams, OutboundEnvironmentEndpoint, LoadTestsListOutboundNetworkDependenciesEndpointsOptionalParams, LoadTestsGetOptionalParams, LoadTestsGetResponse, LoadTestsCreateOrUpdateOptionalParams, LoadTestsCreateOrUpdateResponse, LoadTestResourcePatchRequestBody, LoadTestsUpdateOptionalParams, LoadTestsUpdateResponse, LoadTestsDeleteOptionalParams } from "../models/index.js";
4
+ /** Interface representing a LoadTests. */
5
+ export interface LoadTests {
6
+ /**
7
+ * Lists loadtests resources in a subscription.
8
+ * @param options The options parameters.
9
+ */
10
+ listBySubscription(options?: LoadTestsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<LoadTestResource>;
11
+ /**
12
+ * Lists loadtest resources in a resource group.
13
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
14
+ * @param options The options parameters.
15
+ */
16
+ listByResourceGroup(resourceGroupName: string, options?: LoadTestsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<LoadTestResource>;
17
+ /**
18
+ * Lists the endpoints that agents may call as part of load testing.
19
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
20
+ * @param loadTestName Load Test name.
21
+ * @param options The options parameters.
22
+ */
23
+ listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, loadTestName: string, options?: LoadTestsListOutboundNetworkDependenciesEndpointsOptionalParams): PagedAsyncIterableIterator<OutboundEnvironmentEndpoint>;
24
+ /**
25
+ * Get a LoadTest resource.
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param loadTestName Load Test name.
28
+ * @param options The options parameters.
29
+ */
30
+ get(resourceGroupName: string, loadTestName: string, options?: LoadTestsGetOptionalParams): Promise<LoadTestsGetResponse>;
31
+ /**
32
+ * Create or update LoadTest resource.
33
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
34
+ * @param loadTestName Load Test name.
35
+ * @param loadTestResource LoadTest resource data
36
+ * @param options The options parameters.
37
+ */
38
+ beginCreateOrUpdate(resourceGroupName: string, loadTestName: string, loadTestResource: LoadTestResource, options?: LoadTestsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<LoadTestsCreateOrUpdateResponse>, LoadTestsCreateOrUpdateResponse>>;
39
+ /**
40
+ * Create or update LoadTest resource.
41
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
42
+ * @param loadTestName Load Test name.
43
+ * @param loadTestResource LoadTest resource data
44
+ * @param options The options parameters.
45
+ */
46
+ beginCreateOrUpdateAndWait(resourceGroupName: string, loadTestName: string, loadTestResource: LoadTestResource, options?: LoadTestsCreateOrUpdateOptionalParams): Promise<LoadTestsCreateOrUpdateResponse>;
47
+ /**
48
+ * Update a loadtest resource.
49
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
50
+ * @param loadTestName Load Test name.
51
+ * @param loadTestResourcePatchRequestBody LoadTest resource update data
52
+ * @param options The options parameters.
53
+ */
54
+ beginUpdate(resourceGroupName: string, loadTestName: string, loadTestResourcePatchRequestBody: LoadTestResourcePatchRequestBody, options?: LoadTestsUpdateOptionalParams): Promise<PollerLike<PollOperationState<LoadTestsUpdateResponse>, LoadTestsUpdateResponse>>;
55
+ /**
56
+ * Update a loadtest resource.
57
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
58
+ * @param loadTestName Load Test name.
59
+ * @param loadTestResourcePatchRequestBody LoadTest resource update data
60
+ * @param options The options parameters.
61
+ */
62
+ beginUpdateAndWait(resourceGroupName: string, loadTestName: string, loadTestResourcePatchRequestBody: LoadTestResourcePatchRequestBody, options?: LoadTestsUpdateOptionalParams): Promise<LoadTestsUpdateResponse>;
63
+ /**
64
+ * Delete a LoadTest resource.
65
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
66
+ * @param loadTestName Load Test name.
67
+ * @param options The options parameters.
68
+ */
69
+ beginDelete(resourceGroupName: string, loadTestName: string, options?: LoadTestsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
70
+ /**
71
+ * Delete a LoadTest resource.
72
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
73
+ * @param loadTestName Load Test name.
74
+ * @param options The options parameters.
75
+ */
76
+ beginDeleteAndWait(resourceGroupName: string, loadTestName: string, options?: LoadTestsDeleteOptionalParams): Promise<void>;
77
+ }
78
+ //# sourceMappingURL=loadTests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadTests.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/loadTests.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,gBAAgB,EAChB,yCAAyC,EACzC,0CAA0C,EAC1C,2BAA2B,EAC3B,+DAA+D,EAC/D,0BAA0B,EAC1B,oBAAoB,EACpB,qCAAqC,EACrC,+BAA+B,EAC/B,gCAAgC,EAChC,6BAA6B,EAC7B,uBAAuB,EACvB,6BAA6B,EAC9B,MAAM,oBAAoB,CAAC;AAG5B,0CAA0C;AAC1C,MAAM,WAAW,SAAS;IACxB;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,yCAAyC,GAClD,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;IAChD;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,0CAA0C,GACnD,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;IAChD;;;;;OAKG;IACH,wCAAwC,CACtC,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,+DAA+D,GACxE,0BAA0B,CAAC,2BAA2B,CAAC,CAAC;IAC3D;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACjC;;;;;;OAMG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,+BAA+B,CAAC,EACnD,+BAA+B,CAChC,CACF,CAAC;IACF;;;;;;OAMG;IACH,0BAA0B,CACxB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC5C;;;;;;OAMG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,gCAAgC,EAAE,gCAAgC,EAClE,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,uBAAuB,CAAC,EAC3C,uBAAuB,CACxB,CACF,CAAC;IACF;;;;;;OAMG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,gCAAgC,EAAE,gCAAgC,EAClE,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACpC;;;;;OAKG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
@@ -0,0 +1,10 @@
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
+ //# sourceMappingURL=loadTests.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadTests.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/loadTests.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { PollerLike, PollOperationState } from \"@azure/core-lro\";\nimport {\n LoadTestResource,\n LoadTestsListBySubscriptionOptionalParams,\n LoadTestsListByResourceGroupOptionalParams,\n OutboundEnvironmentEndpoint,\n LoadTestsListOutboundNetworkDependenciesEndpointsOptionalParams,\n LoadTestsGetOptionalParams,\n LoadTestsGetResponse,\n LoadTestsCreateOrUpdateOptionalParams,\n LoadTestsCreateOrUpdateResponse,\n LoadTestResourcePatchRequestBody,\n LoadTestsUpdateOptionalParams,\n LoadTestsUpdateResponse,\n LoadTestsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a LoadTests. */\nexport interface LoadTests {\n /**\n * Lists loadtests resources in a subscription.\n * @param options The options parameters.\n */\n listBySubscription(\n options?: LoadTestsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<LoadTestResource>;\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 listByResourceGroup(\n resourceGroupName: string,\n options?: LoadTestsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<LoadTestResource>;\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 listOutboundNetworkDependenciesEndpoints(\n resourceGroupName: string,\n loadTestName: string,\n options?: LoadTestsListOutboundNetworkDependenciesEndpointsOptionalParams\n ): PagedAsyncIterableIterator<OutboundEnvironmentEndpoint>;\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 /**\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 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 /**\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 beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n loadTestName: string,\n loadTestResource: LoadTestResource,\n options?: LoadTestsCreateOrUpdateOptionalParams\n ): Promise<LoadTestsCreateOrUpdateResponse>;\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 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 /**\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 beginUpdateAndWait(\n resourceGroupName: string,\n loadTestName: string,\n loadTestResourcePatchRequestBody: LoadTestResourcePatchRequestBody,\n options?: LoadTestsUpdateOptionalParams\n ): Promise<LoadTestsUpdateResponse>;\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 beginDelete(\n resourceGroupName: string,\n loadTestName: string,\n options?: LoadTestsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>>;\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 beginDeleteAndWait(\n resourceGroupName: string,\n loadTestName: string,\n options?: LoadTestsDeleteOptionalParams\n ): Promise<void>;\n}\n"]}
@@ -0,0 +1,11 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operation, OperationsListOptionalParams } from "../models/index.js";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * Lists all the available API operations for Load Test Resource.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ }
11
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG7E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,10 @@
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
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Lists all the available API operations for Load Test Resource.\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}
@@ -0,0 +1,27 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { QuotaResource, QuotasListOptionalParams, QuotasGetOptionalParams, QuotasGetResponse, QuotaBucketRequest, QuotasCheckAvailabilityOptionalParams, QuotasCheckAvailabilityResponse } from "../models/index.js";
3
+ /** Interface representing a Quotas. */
4
+ export interface Quotas {
5
+ /**
6
+ * Lists all the available quota per region per subscription.
7
+ * @param location The name of Azure region.
8
+ * @param options The options parameters.
9
+ */
10
+ list(location: string, options?: QuotasListOptionalParams): PagedAsyncIterableIterator<QuotaResource>;
11
+ /**
12
+ * Get the available quota for a quota bucket per region per subscription.
13
+ * @param location The name of Azure region.
14
+ * @param quotaBucketName Quota Bucket name.
15
+ * @param options The options parameters.
16
+ */
17
+ get(location: string, quotaBucketName: string, options?: QuotasGetOptionalParams): Promise<QuotasGetResponse>;
18
+ /**
19
+ * Check Quota Availability on quota bucket per region per subscription.
20
+ * @param location The name of Azure region.
21
+ * @param quotaBucketName Quota Bucket name.
22
+ * @param quotaBucketRequest Quota Bucket Request data
23
+ * @param options The options parameters.
24
+ */
25
+ checkAvailability(location: string, quotaBucketName: string, quotaBucketRequest: QuotaBucketRequest, options?: QuotasCheckAvailabilityOptionalParams): Promise<QuotasCheckAvailabilityResponse>;
26
+ }
27
+ //# sourceMappingURL=quotas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotas.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/quotas.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAG5B,uCAAuC;AACvC,MAAM,WAAW,MAAM;IACrB;;;;OAIG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,wBAAwB,GACjC,0BAA0B,CAAC,aAAa,CAAC,CAAC;IAC7C;;;;;OAKG;IACH,GAAG,CACD,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,uBAAuB,GAChC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC9B;;;;;;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,CAAC;CAC7C"}
@@ -0,0 +1,10 @@
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
+ //# sourceMappingURL=quotas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quotas.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/quotas.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n QuotaResource,\n QuotasListOptionalParams,\n QuotasGetOptionalParams,\n QuotasGetResponse,\n QuotaBucketRequest,\n QuotasCheckAvailabilityOptionalParams,\n QuotasCheckAvailabilityResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Quotas. */\nexport interface Quotas {\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 list(\n location: string,\n options?: QuotasListOptionalParams\n ): PagedAsyncIterableIterator<QuotaResource>;\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 /**\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}\n"]}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given the last `.value` produced by the `byPage` iterator,
6
+ * returns a continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
9
+ * @returns The continuation token that can be passed into byPage() during future calls.
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -0,0 +1,36 @@
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.getContinuationToken = getContinuationToken;
11
+ exports.setContinuationToken = setContinuationToken;
12
+ const pageMap = new WeakMap();
13
+ /**
14
+ * Given the last `.value` produced by the `byPage` iterator,
15
+ * returns a continuation token that can be used to begin paging from
16
+ * that point later.
17
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
18
+ * @returns The continuation token that can be passed into byPage() during future calls.
19
+ */
20
+ function getContinuationToken(page) {
21
+ var _a;
22
+ if (typeof page !== "object" || page === null) {
23
+ return undefined;
24
+ }
25
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
26
+ }
27
+ function setContinuationToken(page, continuationToken) {
28
+ var _a;
29
+ if (typeof page !== "object" || page === null || !continuationToken) {
30
+ return;
31
+ }
32
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
33
+ pageInfo.continuationToken = continuationToken;
34
+ pageMap.set(page, pageInfo);
35
+ }
36
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
@@ -0,0 +1,5 @@
1
+ export { getContinuationToken } from "./pagingHelper.js";
2
+ export * from "./models/index.js";
3
+ export { LoadTestClient } from "./loadTestClient.js";
4
+ export * from "./operationsInterfaces/index.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,cAAc,iCAAiC,CAAC"}
@@ -5,9 +5,9 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
-
9
8
  /// <reference lib="esnext.asynciterable" />
10
- export { getContinuationToken } from "./pagingHelper";
11
- export * from "./models";
12
- export { LoadTestClient } from "./loadTestClient";
13
- export * from "./operationsInterfaces";
9
+ export { getContinuationToken } from "./pagingHelper.js";
10
+ export * from "./models/index.js";
11
+ export { LoadTestClient } from "./loadTestClient.js";
12
+ export * from "./operationsInterfaces/index.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { LoadTestClient } from \"./loadTestClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
@@ -0,0 +1,22 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { Operations, Quotas, LoadTests } from "./operationsInterfaces/index.js";
4
+ import { LoadTestClientOptionalParams } from "./models/index.js";
5
+ export declare class LoadTestClient extends coreClient.ServiceClient {
6
+ $host: string;
7
+ apiVersion: string;
8
+ subscriptionId: string;
9
+ /**
10
+ * Initializes a new instance of the LoadTestClient class.
11
+ * @param credentials Subscription credentials which uniquely identify client subscription.
12
+ * @param subscriptionId The ID of the target subscription.
13
+ * @param options The parameter options
14
+ */
15
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: LoadTestClientOptionalParams);
16
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
17
+ private addCustomApiVersionPolicy;
18
+ operations: Operations;
19
+ quotas: Quotas;
20
+ loadTests: LoadTests;
21
+ }
22
+ //# sourceMappingURL=loadTestClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadTestClient.d.ts","sourceRoot":"","sources":["../../src/loadTestClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAEjE,qBAAa,cAAe,SAAQ,UAAU,CAAC,aAAa;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,4BAA4B;IA8ExC,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,SAAS,CAAC;CACtB"}
@@ -0,0 +1,99 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import * as coreClient from "@azure/core-client";
9
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
+ import { OperationsImpl, QuotasImpl, LoadTestsImpl } from "./operations/index.js";
11
+ export class LoadTestClient extends coreClient.ServiceClient {
12
+ /**
13
+ * Initializes a new instance of the LoadTestClient class.
14
+ * @param credentials Subscription credentials which uniquely identify client subscription.
15
+ * @param subscriptionId The ID of the target subscription.
16
+ * @param options The parameter options
17
+ */
18
+ constructor(credentials, subscriptionId, options) {
19
+ var _a, _b, _c;
20
+ if (credentials === undefined) {
21
+ throw new Error("'credentials' cannot be null");
22
+ }
23
+ if (subscriptionId === undefined) {
24
+ throw new Error("'subscriptionId' cannot be null");
25
+ }
26
+ // Initializing default values for options
27
+ if (!options) {
28
+ options = {};
29
+ }
30
+ const defaults = {
31
+ requestContentType: "application/json; charset=utf-8",
32
+ credential: credentials
33
+ };
34
+ const packageDetails = `azsdk-js-arm-loadtesting/1.0.1`;
35
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
36
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
37
+ : `${packageDetails}`;
38
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
39
+ userAgentPrefix
40
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
41
+ super(optionsWithDefaults);
42
+ let bearerTokenAuthenticationPolicyFound = false;
43
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
44
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
45
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
46
+ coreRestPipeline.bearerTokenAuthenticationPolicyName);
47
+ }
48
+ if (!options ||
49
+ !options.pipeline ||
50
+ options.pipeline.getOrderedPolicies().length == 0 ||
51
+ !bearerTokenAuthenticationPolicyFound) {
52
+ this.pipeline.removePolicy({
53
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
54
+ });
55
+ this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
56
+ credential: credentials,
57
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
58
+ challengeCallbacks: {
59
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
60
+ }
61
+ }));
62
+ }
63
+ // Parameter assignments
64
+ this.subscriptionId = subscriptionId;
65
+ // Assigning values to Constant parameters
66
+ this.$host = options.$host || "https://management.azure.com";
67
+ this.apiVersion = options.apiVersion || "2022-12-01";
68
+ this.operations = new OperationsImpl(this);
69
+ this.quotas = new QuotasImpl(this);
70
+ this.loadTests = new LoadTestsImpl(this);
71
+ this.addCustomApiVersionPolicy(options.apiVersion);
72
+ }
73
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
74
+ addCustomApiVersionPolicy(apiVersion) {
75
+ if (!apiVersion) {
76
+ return;
77
+ }
78
+ const apiVersionPolicy = {
79
+ name: "CustomApiVersionPolicy",
80
+ async sendRequest(request, next) {
81
+ const param = request.url.split("?");
82
+ if (param.length > 1) {
83
+ const newParams = param[1].split("&").map((item) => {
84
+ if (item.indexOf("api-version") > -1) {
85
+ return "api-version=" + apiVersion;
86
+ }
87
+ else {
88
+ return item;
89
+ }
90
+ });
91
+ request.url = param[0] + "?" + newParams.join("&");
92
+ }
93
+ return next(request);
94
+ }
95
+ };
96
+ this.pipeline.addPolicy(apiVersionPolicy);
97
+ }
98
+ }
99
+ //# sourceMappingURL=loadTestClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadTestClient.js","sourceRoot":"","sources":["../../src/loadTestClient.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { OperationsImpl, QuotasImpl, LoadTestsImpl } from \"./operations/index.js\";\nimport { Operations, Quotas, LoadTests } from \"./operationsInterfaces/index.js\";\nimport { LoadTestClientOptionalParams } from \"./models/index.js\";\n\nexport class LoadTestClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the LoadTestClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: LoadTestClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: LoadTestClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-loadtesting/1.0.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2022-12-01\";\n this.operations = new OperationsImpl(this);\n this.quotas = new QuotasImpl(this);\n this.loadTests = new LoadTestsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n quotas: Quotas;\n loadTests: LoadTests;\n}\n"]}
@@ -0,0 +1,16 @@
1
+ import { LongRunningOperation, LroResponse } from "@azure/core-lro";
2
+ export declare class LroImpl<T> implements LongRunningOperation<T> {
3
+ private sendOperationFn;
4
+ private args;
5
+ private spec;
6
+ requestPath: string;
7
+ requestMethod: string;
8
+ constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
9
+ readonly requestBody?: unknown;
10
+ readonly path?: string;
11
+ readonly httpMethod: string;
12
+ } & Record<string, any>, requestPath?: string, requestMethod?: string);
13
+ sendInitialRequest(): Promise<LroResponse<T>>;
14
+ sendPollRequest(path: string): Promise<LroResponse<T>>;
15
+ }
16
+ //# sourceMappingURL=lroImpl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __rest } from "tslib";
9
+ export class LroImpl {
10
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
11
+ this.sendOperationFn = sendOperationFn;
12
+ this.args = args;
13
+ this.spec = spec;
14
+ this.requestPath = requestPath;
15
+ this.requestMethod = requestMethod;
16
+ }
17
+ async sendInitialRequest() {
18
+ return this.sendOperationFn(this.args, this.spec);
19
+ }
20
+ async sendPollRequest(path) {
21
+ const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
22
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
23
+ }
24
+ }
25
+ //# sourceMappingURL=lroImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;IACL,CAAC;CACF","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 { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}