@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
package/dist/index.js DELETED
@@ -1,2213 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib = require('tslib');
6
- var coreClient = require('@azure/core-client');
7
- var coreRestPipeline = require('@azure/core-rest-pipeline');
8
- var coreLro = require('@azure/core-lro');
9
-
10
- function _interopNamespaceDefault(e) {
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
21
- });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
28
- var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
29
-
30
- /*
31
- * Copyright (c) Microsoft Corporation.
32
- * Licensed under the MIT License.
33
- *
34
- * Code generated by Microsoft (R) AutoRest Code Generator.
35
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
36
- */
37
- const pageMap = new WeakMap();
38
- /**
39
- * Given the last `.value` produced by the `byPage` iterator,
40
- * returns a continuation token that can be used to begin paging from
41
- * that point later.
42
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
43
- * @returns The continuation token that can be passed into byPage() during future calls.
44
- */
45
- function getContinuationToken(page) {
46
- var _a;
47
- if (typeof page !== "object" || page === null) {
48
- return undefined;
49
- }
50
- return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
51
- }
52
- function setContinuationToken(page, continuationToken) {
53
- var _a;
54
- if (typeof page !== "object" || page === null || !continuationToken) {
55
- return;
56
- }
57
- const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
58
- pageInfo.continuationToken = continuationToken;
59
- pageMap.set(page, pageInfo);
60
- }
61
-
62
- /*
63
- * Copyright (c) Microsoft Corporation.
64
- * Licensed under the MIT License.
65
- *
66
- * Code generated by Microsoft (R) AutoRest Code Generator.
67
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
68
- */
69
- /** Known values of {@link Origin} that the service accepts. */
70
- exports.KnownOrigin = void 0;
71
- (function (KnownOrigin) {
72
- /** User */
73
- KnownOrigin["User"] = "user";
74
- /** System */
75
- KnownOrigin["System"] = "system";
76
- /** UserSystem */
77
- KnownOrigin["UserSystem"] = "user,system";
78
- })(exports.KnownOrigin || (exports.KnownOrigin = {}));
79
- /** Known values of {@link ActionType} that the service accepts. */
80
- exports.KnownActionType = void 0;
81
- (function (KnownActionType) {
82
- /** Internal */
83
- KnownActionType["Internal"] = "Internal";
84
- })(exports.KnownActionType || (exports.KnownActionType = {}));
85
- /** Known values of {@link ResourceState} that the service accepts. */
86
- exports.KnownResourceState = void 0;
87
- (function (KnownResourceState) {
88
- /** Succeeded */
89
- KnownResourceState["Succeeded"] = "Succeeded";
90
- /** Failed */
91
- KnownResourceState["Failed"] = "Failed";
92
- /** Canceled */
93
- KnownResourceState["Canceled"] = "Canceled";
94
- /** Deleted */
95
- KnownResourceState["Deleted"] = "Deleted";
96
- })(exports.KnownResourceState || (exports.KnownResourceState = {}));
97
- /** Known values of {@link CreatedByType} that the service accepts. */
98
- exports.KnownCreatedByType = void 0;
99
- (function (KnownCreatedByType) {
100
- /** User */
101
- KnownCreatedByType["User"] = "User";
102
- /** Application */
103
- KnownCreatedByType["Application"] = "Application";
104
- /** ManagedIdentity */
105
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
106
- /** Key */
107
- KnownCreatedByType["Key"] = "Key";
108
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
109
- /** Known values of {@link Type} that the service accepts. */
110
- exports.KnownType = void 0;
111
- (function (KnownType) {
112
- /** SystemAssigned */
113
- KnownType["SystemAssigned"] = "SystemAssigned";
114
- /** UserAssigned */
115
- KnownType["UserAssigned"] = "UserAssigned";
116
- })(exports.KnownType || (exports.KnownType = {}));
117
- /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
118
- exports.KnownManagedServiceIdentityType = void 0;
119
- (function (KnownManagedServiceIdentityType) {
120
- /** None */
121
- KnownManagedServiceIdentityType["None"] = "None";
122
- /** SystemAssigned */
123
- KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
124
- /** UserAssigned */
125
- KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
126
- /** SystemAssignedUserAssigned */
127
- KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
128
- })(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
129
-
130
- /*
131
- * Copyright (c) Microsoft Corporation.
132
- * Licensed under the MIT License.
133
- *
134
- * Code generated by Microsoft (R) AutoRest Code Generator.
135
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
136
- */
137
- const OperationListResult = {
138
- type: {
139
- name: "Composite",
140
- className: "OperationListResult",
141
- modelProperties: {
142
- value: {
143
- serializedName: "value",
144
- readOnly: true,
145
- type: {
146
- name: "Sequence",
147
- element: {
148
- type: {
149
- name: "Composite",
150
- className: "Operation"
151
- }
152
- }
153
- }
154
- },
155
- nextLink: {
156
- serializedName: "nextLink",
157
- readOnly: true,
158
- type: {
159
- name: "String"
160
- }
161
- }
162
- }
163
- }
164
- };
165
- const Operation = {
166
- type: {
167
- name: "Composite",
168
- className: "Operation",
169
- modelProperties: {
170
- name: {
171
- serializedName: "name",
172
- readOnly: true,
173
- type: {
174
- name: "String"
175
- }
176
- },
177
- isDataAction: {
178
- serializedName: "isDataAction",
179
- readOnly: true,
180
- type: {
181
- name: "Boolean"
182
- }
183
- },
184
- display: {
185
- serializedName: "display",
186
- type: {
187
- name: "Composite",
188
- className: "OperationDisplay"
189
- }
190
- },
191
- origin: {
192
- serializedName: "origin",
193
- readOnly: true,
194
- type: {
195
- name: "String"
196
- }
197
- },
198
- actionType: {
199
- serializedName: "actionType",
200
- readOnly: true,
201
- type: {
202
- name: "String"
203
- }
204
- }
205
- }
206
- }
207
- };
208
- const OperationDisplay = {
209
- type: {
210
- name: "Composite",
211
- className: "OperationDisplay",
212
- modelProperties: {
213
- provider: {
214
- serializedName: "provider",
215
- readOnly: true,
216
- type: {
217
- name: "String"
218
- }
219
- },
220
- resource: {
221
- serializedName: "resource",
222
- readOnly: true,
223
- type: {
224
- name: "String"
225
- }
226
- },
227
- operation: {
228
- serializedName: "operation",
229
- readOnly: true,
230
- type: {
231
- name: "String"
232
- }
233
- },
234
- description: {
235
- serializedName: "description",
236
- readOnly: true,
237
- type: {
238
- name: "String"
239
- }
240
- }
241
- }
242
- }
243
- };
244
- const ErrorResponse = {
245
- type: {
246
- name: "Composite",
247
- className: "ErrorResponse",
248
- modelProperties: {
249
- error: {
250
- serializedName: "error",
251
- type: {
252
- name: "Composite",
253
- className: "ErrorDetail"
254
- }
255
- }
256
- }
257
- }
258
- };
259
- const ErrorDetail = {
260
- type: {
261
- name: "Composite",
262
- className: "ErrorDetail",
263
- modelProperties: {
264
- code: {
265
- serializedName: "code",
266
- readOnly: true,
267
- type: {
268
- name: "String"
269
- }
270
- },
271
- message: {
272
- serializedName: "message",
273
- readOnly: true,
274
- type: {
275
- name: "String"
276
- }
277
- },
278
- target: {
279
- serializedName: "target",
280
- readOnly: true,
281
- type: {
282
- name: "String"
283
- }
284
- },
285
- details: {
286
- serializedName: "details",
287
- readOnly: true,
288
- type: {
289
- name: "Sequence",
290
- element: {
291
- type: {
292
- name: "Composite",
293
- className: "ErrorDetail"
294
- }
295
- }
296
- }
297
- },
298
- additionalInfo: {
299
- serializedName: "additionalInfo",
300
- readOnly: true,
301
- type: {
302
- name: "Sequence",
303
- element: {
304
- type: {
305
- name: "Composite",
306
- className: "ErrorAdditionalInfo"
307
- }
308
- }
309
- }
310
- }
311
- }
312
- }
313
- };
314
- const ErrorAdditionalInfo = {
315
- type: {
316
- name: "Composite",
317
- className: "ErrorAdditionalInfo",
318
- modelProperties: {
319
- type: {
320
- serializedName: "type",
321
- readOnly: true,
322
- type: {
323
- name: "String"
324
- }
325
- },
326
- info: {
327
- serializedName: "info",
328
- readOnly: true,
329
- type: {
330
- name: "Dictionary",
331
- value: { type: { name: "any" } }
332
- }
333
- }
334
- }
335
- }
336
- };
337
- const QuotaResourceList = {
338
- type: {
339
- name: "Composite",
340
- className: "QuotaResourceList",
341
- modelProperties: {
342
- value: {
343
- serializedName: "value",
344
- readOnly: true,
345
- type: {
346
- name: "Sequence",
347
- element: {
348
- type: {
349
- name: "Composite",
350
- className: "QuotaResource"
351
- }
352
- }
353
- }
354
- },
355
- nextLink: {
356
- serializedName: "nextLink",
357
- readOnly: true,
358
- type: {
359
- name: "String"
360
- }
361
- }
362
- }
363
- }
364
- };
365
- const Resource = {
366
- type: {
367
- name: "Composite",
368
- className: "Resource",
369
- modelProperties: {
370
- id: {
371
- serializedName: "id",
372
- readOnly: true,
373
- type: {
374
- name: "String"
375
- }
376
- },
377
- name: {
378
- serializedName: "name",
379
- readOnly: true,
380
- type: {
381
- name: "String"
382
- }
383
- },
384
- type: {
385
- serializedName: "type",
386
- readOnly: true,
387
- type: {
388
- name: "String"
389
- }
390
- },
391
- systemData: {
392
- serializedName: "systemData",
393
- type: {
394
- name: "Composite",
395
- className: "SystemData"
396
- }
397
- }
398
- }
399
- }
400
- };
401
- const SystemData = {
402
- type: {
403
- name: "Composite",
404
- className: "SystemData",
405
- modelProperties: {
406
- createdBy: {
407
- serializedName: "createdBy",
408
- type: {
409
- name: "String"
410
- }
411
- },
412
- createdByType: {
413
- serializedName: "createdByType",
414
- type: {
415
- name: "String"
416
- }
417
- },
418
- createdAt: {
419
- serializedName: "createdAt",
420
- type: {
421
- name: "DateTime"
422
- }
423
- },
424
- lastModifiedBy: {
425
- serializedName: "lastModifiedBy",
426
- type: {
427
- name: "String"
428
- }
429
- },
430
- lastModifiedByType: {
431
- serializedName: "lastModifiedByType",
432
- type: {
433
- name: "String"
434
- }
435
- },
436
- lastModifiedAt: {
437
- serializedName: "lastModifiedAt",
438
- type: {
439
- name: "DateTime"
440
- }
441
- }
442
- }
443
- }
444
- };
445
- const QuotaBucketRequestPropertiesDimensions = {
446
- type: {
447
- name: "Composite",
448
- className: "QuotaBucketRequestPropertiesDimensions",
449
- modelProperties: {
450
- subscriptionId: {
451
- constraints: {
452
- MinLength: 1
453
- },
454
- serializedName: "subscriptionId",
455
- type: {
456
- name: "String"
457
- }
458
- },
459
- location: {
460
- constraints: {
461
- MinLength: 1
462
- },
463
- serializedName: "location",
464
- type: {
465
- name: "String"
466
- }
467
- }
468
- }
469
- }
470
- };
471
- const LoadTestResourcePageList = {
472
- type: {
473
- name: "Composite",
474
- className: "LoadTestResourcePageList",
475
- modelProperties: {
476
- value: {
477
- serializedName: "value",
478
- type: {
479
- name: "Sequence",
480
- element: {
481
- type: {
482
- name: "Composite",
483
- className: "LoadTestResource"
484
- }
485
- }
486
- }
487
- },
488
- nextLink: {
489
- serializedName: "nextLink",
490
- type: {
491
- name: "String"
492
- }
493
- }
494
- }
495
- }
496
- };
497
- const EncryptionProperties = {
498
- type: {
499
- name: "Composite",
500
- className: "EncryptionProperties",
501
- modelProperties: {
502
- identity: {
503
- serializedName: "identity",
504
- type: {
505
- name: "Composite",
506
- className: "EncryptionPropertiesIdentity"
507
- }
508
- },
509
- keyUrl: {
510
- serializedName: "keyUrl",
511
- type: {
512
- name: "String"
513
- }
514
- }
515
- }
516
- }
517
- };
518
- const EncryptionPropertiesIdentity = {
519
- type: {
520
- name: "Composite",
521
- className: "EncryptionPropertiesIdentity",
522
- modelProperties: {
523
- type: {
524
- serializedName: "type",
525
- type: {
526
- name: "String"
527
- }
528
- },
529
- resourceId: {
530
- serializedName: "resourceId",
531
- nullable: true,
532
- type: {
533
- name: "String"
534
- }
535
- }
536
- }
537
- }
538
- };
539
- const ManagedServiceIdentity = {
540
- type: {
541
- name: "Composite",
542
- className: "ManagedServiceIdentity",
543
- modelProperties: {
544
- principalId: {
545
- serializedName: "principalId",
546
- readOnly: true,
547
- type: {
548
- name: "Uuid"
549
- }
550
- },
551
- tenantId: {
552
- serializedName: "tenantId",
553
- readOnly: true,
554
- type: {
555
- name: "Uuid"
556
- }
557
- },
558
- type: {
559
- serializedName: "type",
560
- required: true,
561
- type: {
562
- name: "String"
563
- }
564
- },
565
- userAssignedIdentities: {
566
- serializedName: "userAssignedIdentities",
567
- type: {
568
- name: "Dictionary",
569
- value: {
570
- type: { name: "Composite", className: "UserAssignedIdentity" }
571
- }
572
- }
573
- }
574
- }
575
- }
576
- };
577
- const UserAssignedIdentity = {
578
- type: {
579
- name: "Composite",
580
- className: "UserAssignedIdentity",
581
- modelProperties: {
582
- principalId: {
583
- serializedName: "principalId",
584
- readOnly: true,
585
- type: {
586
- name: "Uuid"
587
- }
588
- },
589
- clientId: {
590
- serializedName: "clientId",
591
- readOnly: true,
592
- type: {
593
- name: "Uuid"
594
- }
595
- }
596
- }
597
- }
598
- };
599
- const LoadTestResourcePatchRequestBody = {
600
- type: {
601
- name: "Composite",
602
- className: "LoadTestResourcePatchRequestBody",
603
- modelProperties: {
604
- tags: {
605
- serializedName: "tags",
606
- nullable: true,
607
- type: {
608
- name: "Dictionary",
609
- value: { type: { name: "String" } }
610
- }
611
- },
612
- identity: {
613
- serializedName: "identity",
614
- type: {
615
- name: "Composite",
616
- className: "ManagedServiceIdentity"
617
- }
618
- },
619
- description: {
620
- constraints: {
621
- MaxLength: 512
622
- },
623
- serializedName: "properties.description",
624
- type: {
625
- name: "String"
626
- }
627
- },
628
- encryption: {
629
- serializedName: "properties.encryption",
630
- type: {
631
- name: "Composite",
632
- className: "EncryptionProperties"
633
- }
634
- }
635
- }
636
- }
637
- };
638
- const OutboundEnvironmentEndpointCollection = {
639
- type: {
640
- name: "Composite",
641
- className: "OutboundEnvironmentEndpointCollection",
642
- modelProperties: {
643
- value: {
644
- serializedName: "value",
645
- readOnly: true,
646
- type: {
647
- name: "Sequence",
648
- element: {
649
- type: {
650
- name: "Composite",
651
- className: "OutboundEnvironmentEndpoint"
652
- }
653
- }
654
- }
655
- },
656
- nextLink: {
657
- serializedName: "nextLink",
658
- type: {
659
- name: "String"
660
- }
661
- }
662
- }
663
- }
664
- };
665
- const OutboundEnvironmentEndpoint = {
666
- type: {
667
- name: "Composite",
668
- className: "OutboundEnvironmentEndpoint",
669
- modelProperties: {
670
- category: {
671
- serializedName: "category",
672
- readOnly: true,
673
- type: {
674
- name: "String"
675
- }
676
- },
677
- endpoints: {
678
- serializedName: "endpoints",
679
- readOnly: true,
680
- type: {
681
- name: "Sequence",
682
- element: {
683
- type: {
684
- name: "Composite",
685
- className: "EndpointDependency"
686
- }
687
- }
688
- }
689
- }
690
- }
691
- }
692
- };
693
- const EndpointDependency = {
694
- type: {
695
- name: "Composite",
696
- className: "EndpointDependency",
697
- modelProperties: {
698
- domainName: {
699
- serializedName: "domainName",
700
- readOnly: true,
701
- type: {
702
- name: "String"
703
- }
704
- },
705
- description: {
706
- serializedName: "description",
707
- readOnly: true,
708
- type: {
709
- name: "String"
710
- }
711
- },
712
- endpointDetails: {
713
- serializedName: "endpointDetails",
714
- readOnly: true,
715
- type: {
716
- name: "Sequence",
717
- element: {
718
- type: {
719
- name: "Composite",
720
- className: "EndpointDetail"
721
- }
722
- }
723
- }
724
- }
725
- }
726
- }
727
- };
728
- const EndpointDetail = {
729
- type: {
730
- name: "Composite",
731
- className: "EndpointDetail",
732
- modelProperties: {
733
- port: {
734
- serializedName: "port",
735
- readOnly: true,
736
- type: {
737
- name: "Number"
738
- }
739
- }
740
- }
741
- }
742
- };
743
- const QuotaResource = {
744
- type: {
745
- name: "Composite",
746
- className: "QuotaResource",
747
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { limit: {
748
- constraints: {
749
- InclusiveMinimum: 0
750
- },
751
- serializedName: "properties.limit",
752
- type: {
753
- name: "Number"
754
- }
755
- }, usage: {
756
- constraints: {
757
- InclusiveMinimum: 0
758
- },
759
- serializedName: "properties.usage",
760
- type: {
761
- name: "Number"
762
- }
763
- }, provisioningState: {
764
- serializedName: "properties.provisioningState",
765
- readOnly: true,
766
- type: {
767
- name: "String"
768
- }
769
- } })
770
- }
771
- };
772
- const QuotaBucketRequest = {
773
- type: {
774
- name: "Composite",
775
- className: "QuotaBucketRequest",
776
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { currentUsage: {
777
- constraints: {
778
- InclusiveMinimum: 0
779
- },
780
- serializedName: "properties.currentUsage",
781
- type: {
782
- name: "Number"
783
- }
784
- }, currentQuota: {
785
- constraints: {
786
- InclusiveMinimum: 0
787
- },
788
- serializedName: "properties.currentQuota",
789
- type: {
790
- name: "Number"
791
- }
792
- }, newQuota: {
793
- constraints: {
794
- InclusiveMinimum: 0
795
- },
796
- serializedName: "properties.newQuota",
797
- type: {
798
- name: "Number"
799
- }
800
- }, dimensions: {
801
- serializedName: "properties.dimensions",
802
- type: {
803
- name: "Composite",
804
- className: "QuotaBucketRequestPropertiesDimensions"
805
- }
806
- } })
807
- }
808
- };
809
- const CheckQuotaAvailabilityResponse = {
810
- type: {
811
- name: "Composite",
812
- className: "CheckQuotaAvailabilityResponse",
813
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { isAvailable: {
814
- serializedName: "properties.isAvailable",
815
- type: {
816
- name: "Boolean"
817
- }
818
- }, availabilityStatus: {
819
- serializedName: "properties.availabilityStatus",
820
- type: {
821
- name: "String"
822
- }
823
- } })
824
- }
825
- };
826
- const TrackedResource = {
827
- type: {
828
- name: "Composite",
829
- className: "TrackedResource",
830
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
831
- serializedName: "tags",
832
- type: {
833
- name: "Dictionary",
834
- value: { type: { name: "String" } }
835
- }
836
- }, location: {
837
- serializedName: "location",
838
- required: true,
839
- type: {
840
- name: "String"
841
- }
842
- } })
843
- }
844
- };
845
- const LoadTestResource = {
846
- type: {
847
- name: "Composite",
848
- className: "LoadTestResource",
849
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
850
- serializedName: "identity",
851
- type: {
852
- name: "Composite",
853
- className: "ManagedServiceIdentity"
854
- }
855
- }, description: {
856
- constraints: {
857
- MaxLength: 512
858
- },
859
- serializedName: "properties.description",
860
- type: {
861
- name: "String"
862
- }
863
- }, provisioningState: {
864
- serializedName: "properties.provisioningState",
865
- readOnly: true,
866
- type: {
867
- name: "String"
868
- }
869
- }, dataPlaneURI: {
870
- constraints: {
871
- MaxLength: 2083
872
- },
873
- serializedName: "properties.dataPlaneURI",
874
- readOnly: true,
875
- type: {
876
- name: "String"
877
- }
878
- }, encryption: {
879
- serializedName: "properties.encryption",
880
- type: {
881
- name: "Composite",
882
- className: "EncryptionProperties"
883
- }
884
- } })
885
- }
886
- };
887
- const LoadTestsCreateOrUpdateHeaders = {
888
- type: {
889
- name: "Composite",
890
- className: "LoadTestsCreateOrUpdateHeaders",
891
- modelProperties: {
892
- azureAsyncOperation: {
893
- serializedName: "azure-asyncoperation",
894
- type: {
895
- name: "String"
896
- }
897
- }
898
- }
899
- }
900
- };
901
- const LoadTestsUpdateHeaders = {
902
- type: {
903
- name: "Composite",
904
- className: "LoadTestsUpdateHeaders",
905
- modelProperties: {
906
- azureAsyncOperation: {
907
- serializedName: "azure-asyncoperation",
908
- type: {
909
- name: "String"
910
- }
911
- }
912
- }
913
- }
914
- };
915
- const LoadTestsDeleteHeaders = {
916
- type: {
917
- name: "Composite",
918
- className: "LoadTestsDeleteHeaders",
919
- modelProperties: {
920
- location: {
921
- serializedName: "location",
922
- type: {
923
- name: "String"
924
- }
925
- }
926
- }
927
- }
928
- };
929
-
930
- var Mappers = /*#__PURE__*/Object.freeze({
931
- __proto__: null,
932
- CheckQuotaAvailabilityResponse: CheckQuotaAvailabilityResponse,
933
- EncryptionProperties: EncryptionProperties,
934
- EncryptionPropertiesIdentity: EncryptionPropertiesIdentity,
935
- EndpointDependency: EndpointDependency,
936
- EndpointDetail: EndpointDetail,
937
- ErrorAdditionalInfo: ErrorAdditionalInfo,
938
- ErrorDetail: ErrorDetail,
939
- ErrorResponse: ErrorResponse,
940
- LoadTestResource: LoadTestResource,
941
- LoadTestResourcePageList: LoadTestResourcePageList,
942
- LoadTestResourcePatchRequestBody: LoadTestResourcePatchRequestBody,
943
- LoadTestsCreateOrUpdateHeaders: LoadTestsCreateOrUpdateHeaders,
944
- LoadTestsDeleteHeaders: LoadTestsDeleteHeaders,
945
- LoadTestsUpdateHeaders: LoadTestsUpdateHeaders,
946
- ManagedServiceIdentity: ManagedServiceIdentity,
947
- Operation: Operation,
948
- OperationDisplay: OperationDisplay,
949
- OperationListResult: OperationListResult,
950
- OutboundEnvironmentEndpoint: OutboundEnvironmentEndpoint,
951
- OutboundEnvironmentEndpointCollection: OutboundEnvironmentEndpointCollection,
952
- QuotaBucketRequest: QuotaBucketRequest,
953
- QuotaBucketRequestPropertiesDimensions: QuotaBucketRequestPropertiesDimensions,
954
- QuotaResource: QuotaResource,
955
- QuotaResourceList: QuotaResourceList,
956
- Resource: Resource,
957
- SystemData: SystemData,
958
- TrackedResource: TrackedResource,
959
- UserAssignedIdentity: UserAssignedIdentity
960
- });
961
-
962
- /*
963
- * Copyright (c) Microsoft Corporation.
964
- * Licensed under the MIT License.
965
- *
966
- * Code generated by Microsoft (R) AutoRest Code Generator.
967
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
968
- */
969
- const accept = {
970
- parameterPath: "accept",
971
- mapper: {
972
- defaultValue: "application/json",
973
- isConstant: true,
974
- serializedName: "Accept",
975
- type: {
976
- name: "String"
977
- }
978
- }
979
- };
980
- const $host = {
981
- parameterPath: "$host",
982
- mapper: {
983
- serializedName: "$host",
984
- required: true,
985
- type: {
986
- name: "String"
987
- }
988
- },
989
- skipEncoding: true
990
- };
991
- const apiVersion = {
992
- parameterPath: "apiVersion",
993
- mapper: {
994
- defaultValue: "2022-12-01",
995
- isConstant: true,
996
- serializedName: "api-version",
997
- type: {
998
- name: "String"
999
- }
1000
- }
1001
- };
1002
- const nextLink = {
1003
- parameterPath: "nextLink",
1004
- mapper: {
1005
- serializedName: "nextLink",
1006
- required: true,
1007
- type: {
1008
- name: "String"
1009
- }
1010
- },
1011
- skipEncoding: true
1012
- };
1013
- const subscriptionId = {
1014
- parameterPath: "subscriptionId",
1015
- mapper: {
1016
- constraints: {
1017
- MinLength: 1
1018
- },
1019
- serializedName: "subscriptionId",
1020
- required: true,
1021
- type: {
1022
- name: "String"
1023
- }
1024
- }
1025
- };
1026
- const location = {
1027
- parameterPath: "location",
1028
- mapper: {
1029
- constraints: {
1030
- MinLength: 1
1031
- },
1032
- serializedName: "location",
1033
- required: true,
1034
- type: {
1035
- name: "String"
1036
- }
1037
- }
1038
- };
1039
- const quotaBucketName = {
1040
- parameterPath: "quotaBucketName",
1041
- mapper: {
1042
- serializedName: "quotaBucketName",
1043
- required: true,
1044
- type: {
1045
- name: "String"
1046
- }
1047
- }
1048
- };
1049
- const contentType = {
1050
- parameterPath: ["options", "contentType"],
1051
- mapper: {
1052
- defaultValue: "application/json",
1053
- isConstant: true,
1054
- serializedName: "Content-Type",
1055
- type: {
1056
- name: "String"
1057
- }
1058
- }
1059
- };
1060
- const quotaBucketRequest = {
1061
- parameterPath: "quotaBucketRequest",
1062
- mapper: QuotaBucketRequest
1063
- };
1064
- const resourceGroupName = {
1065
- parameterPath: "resourceGroupName",
1066
- mapper: {
1067
- constraints: {
1068
- MaxLength: 90,
1069
- MinLength: 1
1070
- },
1071
- serializedName: "resourceGroupName",
1072
- required: true,
1073
- type: {
1074
- name: "String"
1075
- }
1076
- }
1077
- };
1078
- const loadTestName = {
1079
- parameterPath: "loadTestName",
1080
- mapper: {
1081
- serializedName: "loadTestName",
1082
- required: true,
1083
- type: {
1084
- name: "String"
1085
- }
1086
- }
1087
- };
1088
- const loadTestResource = {
1089
- parameterPath: "loadTestResource",
1090
- mapper: LoadTestResource
1091
- };
1092
- const loadTestResourcePatchRequestBody = {
1093
- parameterPath: "loadTestResourcePatchRequestBody",
1094
- mapper: LoadTestResourcePatchRequestBody
1095
- };
1096
-
1097
- /*
1098
- * Copyright (c) Microsoft Corporation.
1099
- * Licensed under the MIT License.
1100
- *
1101
- * Code generated by Microsoft (R) AutoRest Code Generator.
1102
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1103
- */
1104
- /// <reference lib="esnext.asynciterable" />
1105
- /** Class containing Operations operations. */
1106
- class OperationsImpl {
1107
- /**
1108
- * Initialize a new instance of the class Operations class.
1109
- * @param client Reference to the service client
1110
- */
1111
- constructor(client) {
1112
- this.client = client;
1113
- }
1114
- /**
1115
- * Lists all the available API operations for Load Test Resource.
1116
- * @param options The options parameters.
1117
- */
1118
- list(options) {
1119
- const iter = this.listPagingAll(options);
1120
- return {
1121
- next() {
1122
- return iter.next();
1123
- },
1124
- [Symbol.asyncIterator]() {
1125
- return this;
1126
- },
1127
- byPage: (settings) => {
1128
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1129
- throw new Error("maxPageSize is not supported by this operation.");
1130
- }
1131
- return this.listPagingPage(options, settings);
1132
- }
1133
- };
1134
- }
1135
- listPagingPage(options, settings) {
1136
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1137
- let result;
1138
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1139
- if (!continuationToken) {
1140
- result = yield tslib.__await(this._list(options));
1141
- let page = result.value || [];
1142
- continuationToken = result.nextLink;
1143
- setContinuationToken(page, continuationToken);
1144
- yield yield tslib.__await(page);
1145
- }
1146
- while (continuationToken) {
1147
- result = yield tslib.__await(this._listNext(continuationToken, options));
1148
- continuationToken = result.nextLink;
1149
- let page = result.value || [];
1150
- setContinuationToken(page, continuationToken);
1151
- yield yield tslib.__await(page);
1152
- }
1153
- });
1154
- }
1155
- listPagingAll(options) {
1156
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1157
- var _a, e_1, _b, _c;
1158
- try {
1159
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1160
- _c = _f.value;
1161
- _d = false;
1162
- const page = _c;
1163
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1164
- }
1165
- }
1166
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1167
- finally {
1168
- try {
1169
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1170
- }
1171
- finally { if (e_1) throw e_1.error; }
1172
- }
1173
- });
1174
- }
1175
- /**
1176
- * Lists all the available API operations for Load Test Resource.
1177
- * @param options The options parameters.
1178
- */
1179
- _list(options) {
1180
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
1181
- }
1182
- /**
1183
- * ListNext
1184
- * @param nextLink The nextLink from the previous successful call to the List method.
1185
- * @param options The options parameters.
1186
- */
1187
- _listNext(nextLink, options) {
1188
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
1189
- }
1190
- }
1191
- // Operation Specifications
1192
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1193
- const listOperationSpec$1 = {
1194
- path: "/providers/Microsoft.LoadTestService/operations",
1195
- httpMethod: "GET",
1196
- responses: {
1197
- 200: {
1198
- bodyMapper: OperationListResult
1199
- },
1200
- default: {
1201
- bodyMapper: ErrorResponse
1202
- }
1203
- },
1204
- queryParameters: [apiVersion],
1205
- urlParameters: [$host],
1206
- headerParameters: [accept],
1207
- serializer: serializer$2
1208
- };
1209
- const listNextOperationSpec$1 = {
1210
- path: "{nextLink}",
1211
- httpMethod: "GET",
1212
- responses: {
1213
- 200: {
1214
- bodyMapper: OperationListResult
1215
- },
1216
- default: {
1217
- bodyMapper: ErrorResponse
1218
- }
1219
- },
1220
- urlParameters: [$host, nextLink],
1221
- headerParameters: [accept],
1222
- serializer: serializer$2
1223
- };
1224
-
1225
- /*
1226
- * Copyright (c) Microsoft Corporation.
1227
- * Licensed under the MIT License.
1228
- *
1229
- * Code generated by Microsoft (R) AutoRest Code Generator.
1230
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1231
- */
1232
- /// <reference lib="esnext.asynciterable" />
1233
- /** Class containing Quotas operations. */
1234
- class QuotasImpl {
1235
- /**
1236
- * Initialize a new instance of the class Quotas class.
1237
- * @param client Reference to the service client
1238
- */
1239
- constructor(client) {
1240
- this.client = client;
1241
- }
1242
- /**
1243
- * Lists all the available quota per region per subscription.
1244
- * @param location The name of Azure region.
1245
- * @param options The options parameters.
1246
- */
1247
- list(location, options) {
1248
- const iter = this.listPagingAll(location, options);
1249
- return {
1250
- next() {
1251
- return iter.next();
1252
- },
1253
- [Symbol.asyncIterator]() {
1254
- return this;
1255
- },
1256
- byPage: (settings) => {
1257
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1258
- throw new Error("maxPageSize is not supported by this operation.");
1259
- }
1260
- return this.listPagingPage(location, options, settings);
1261
- }
1262
- };
1263
- }
1264
- listPagingPage(location, options, settings) {
1265
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
1266
- let result;
1267
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1268
- if (!continuationToken) {
1269
- result = yield tslib.__await(this._list(location, options));
1270
- let page = result.value || [];
1271
- continuationToken = result.nextLink;
1272
- setContinuationToken(page, continuationToken);
1273
- yield yield tslib.__await(page);
1274
- }
1275
- while (continuationToken) {
1276
- result = yield tslib.__await(this._listNext(location, continuationToken, options));
1277
- continuationToken = result.nextLink;
1278
- let page = result.value || [];
1279
- setContinuationToken(page, continuationToken);
1280
- yield yield tslib.__await(page);
1281
- }
1282
- });
1283
- }
1284
- listPagingAll(location, options) {
1285
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1286
- var _a, e_1, _b, _c;
1287
- try {
1288
- for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(location, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1289
- _c = _f.value;
1290
- _d = false;
1291
- const page = _c;
1292
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1293
- }
1294
- }
1295
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1296
- finally {
1297
- try {
1298
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1299
- }
1300
- finally { if (e_1) throw e_1.error; }
1301
- }
1302
- });
1303
- }
1304
- /**
1305
- * Lists all the available quota per region per subscription.
1306
- * @param location The name of Azure region.
1307
- * @param options The options parameters.
1308
- */
1309
- _list(location, options) {
1310
- return this.client.sendOperationRequest({ location, options }, listOperationSpec);
1311
- }
1312
- /**
1313
- * Get the available quota for a quota bucket per region per subscription.
1314
- * @param location The name of Azure region.
1315
- * @param quotaBucketName Quota Bucket name.
1316
- * @param options The options parameters.
1317
- */
1318
- get(location, quotaBucketName, options) {
1319
- return this.client.sendOperationRequest({ location, quotaBucketName, options }, getOperationSpec$1);
1320
- }
1321
- /**
1322
- * Check Quota Availability on quota bucket per region per subscription.
1323
- * @param location The name of Azure region.
1324
- * @param quotaBucketName Quota Bucket name.
1325
- * @param quotaBucketRequest Quota Bucket Request data
1326
- * @param options The options parameters.
1327
- */
1328
- checkAvailability(location, quotaBucketName, quotaBucketRequest, options) {
1329
- return this.client.sendOperationRequest({ location, quotaBucketName, quotaBucketRequest, options }, checkAvailabilityOperationSpec);
1330
- }
1331
- /**
1332
- * ListNext
1333
- * @param location The name of Azure region.
1334
- * @param nextLink The nextLink from the previous successful call to the List method.
1335
- * @param options The options parameters.
1336
- */
1337
- _listNext(location, nextLink, options) {
1338
- return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec);
1339
- }
1340
- }
1341
- // Operation Specifications
1342
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1343
- const listOperationSpec = {
1344
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas",
1345
- httpMethod: "GET",
1346
- responses: {
1347
- 200: {
1348
- bodyMapper: QuotaResourceList
1349
- },
1350
- default: {
1351
- bodyMapper: ErrorResponse
1352
- }
1353
- },
1354
- queryParameters: [apiVersion],
1355
- urlParameters: [
1356
- $host,
1357
- subscriptionId,
1358
- location
1359
- ],
1360
- headerParameters: [accept],
1361
- serializer: serializer$1
1362
- };
1363
- const getOperationSpec$1 = {
1364
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}",
1365
- httpMethod: "GET",
1366
- responses: {
1367
- 200: {
1368
- bodyMapper: QuotaResource
1369
- },
1370
- default: {
1371
- bodyMapper: ErrorResponse
1372
- }
1373
- },
1374
- queryParameters: [apiVersion],
1375
- urlParameters: [
1376
- $host,
1377
- subscriptionId,
1378
- location,
1379
- quotaBucketName
1380
- ],
1381
- headerParameters: [accept],
1382
- serializer: serializer$1
1383
- };
1384
- const checkAvailabilityOperationSpec = {
1385
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}/checkAvailability",
1386
- httpMethod: "POST",
1387
- responses: {
1388
- 200: {
1389
- bodyMapper: CheckQuotaAvailabilityResponse
1390
- },
1391
- default: {
1392
- bodyMapper: ErrorResponse
1393
- }
1394
- },
1395
- requestBody: quotaBucketRequest,
1396
- queryParameters: [apiVersion],
1397
- urlParameters: [
1398
- $host,
1399
- subscriptionId,
1400
- location,
1401
- quotaBucketName
1402
- ],
1403
- headerParameters: [accept, contentType],
1404
- mediaType: "json",
1405
- serializer: serializer$1
1406
- };
1407
- const listNextOperationSpec = {
1408
- path: "{nextLink}",
1409
- httpMethod: "GET",
1410
- responses: {
1411
- 200: {
1412
- bodyMapper: QuotaResourceList
1413
- },
1414
- default: {
1415
- bodyMapper: ErrorResponse
1416
- }
1417
- },
1418
- urlParameters: [
1419
- $host,
1420
- nextLink,
1421
- subscriptionId,
1422
- location
1423
- ],
1424
- headerParameters: [accept],
1425
- serializer: serializer$1
1426
- };
1427
-
1428
- /*
1429
- * Copyright (c) Microsoft Corporation.
1430
- * Licensed under the MIT License.
1431
- *
1432
- * Code generated by Microsoft (R) AutoRest Code Generator.
1433
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1434
- */
1435
- class LroImpl {
1436
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
1437
- this.sendOperationFn = sendOperationFn;
1438
- this.args = args;
1439
- this.spec = spec;
1440
- this.requestPath = requestPath;
1441
- this.requestMethod = requestMethod;
1442
- }
1443
- sendInitialRequest() {
1444
- return tslib.__awaiter(this, void 0, void 0, function* () {
1445
- return this.sendOperationFn(this.args, this.spec);
1446
- });
1447
- }
1448
- sendPollRequest(path) {
1449
- return tslib.__awaiter(this, void 0, void 0, function* () {
1450
- const _a = this.spec, { requestBody } = _a, restSpec = tslib.__rest(_a, ["requestBody"]);
1451
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
1452
- });
1453
- }
1454
- }
1455
-
1456
- /*
1457
- * Copyright (c) Microsoft Corporation.
1458
- * Licensed under the MIT License.
1459
- *
1460
- * Code generated by Microsoft (R) AutoRest Code Generator.
1461
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1462
- */
1463
- /// <reference lib="esnext.asynciterable" />
1464
- /** Class containing LoadTests operations. */
1465
- class LoadTestsImpl {
1466
- /**
1467
- * Initialize a new instance of the class LoadTests class.
1468
- * @param client Reference to the service client
1469
- */
1470
- constructor(client) {
1471
- this.client = client;
1472
- }
1473
- /**
1474
- * Lists loadtests resources in a subscription.
1475
- * @param options The options parameters.
1476
- */
1477
- listBySubscription(options) {
1478
- const iter = this.listBySubscriptionPagingAll(options);
1479
- return {
1480
- next() {
1481
- return iter.next();
1482
- },
1483
- [Symbol.asyncIterator]() {
1484
- return this;
1485
- },
1486
- byPage: (settings) => {
1487
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1488
- throw new Error("maxPageSize is not supported by this operation.");
1489
- }
1490
- return this.listBySubscriptionPagingPage(options, settings);
1491
- }
1492
- };
1493
- }
1494
- listBySubscriptionPagingPage(options, settings) {
1495
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1496
- let result;
1497
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1498
- if (!continuationToken) {
1499
- result = yield tslib.__await(this._listBySubscription(options));
1500
- let page = result.value || [];
1501
- continuationToken = result.nextLink;
1502
- setContinuationToken(page, continuationToken);
1503
- yield yield tslib.__await(page);
1504
- }
1505
- while (continuationToken) {
1506
- result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1507
- continuationToken = result.nextLink;
1508
- let page = result.value || [];
1509
- setContinuationToken(page, continuationToken);
1510
- yield yield tslib.__await(page);
1511
- }
1512
- });
1513
- }
1514
- listBySubscriptionPagingAll(options) {
1515
- return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1516
- var _a, e_1, _b, _c;
1517
- try {
1518
- for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1519
- _c = _f.value;
1520
- _d = false;
1521
- const page = _c;
1522
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1523
- }
1524
- }
1525
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
1526
- finally {
1527
- try {
1528
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1529
- }
1530
- finally { if (e_1) throw e_1.error; }
1531
- }
1532
- });
1533
- }
1534
- /**
1535
- * Lists loadtest resources in a resource group.
1536
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1537
- * @param options The options parameters.
1538
- */
1539
- listByResourceGroup(resourceGroupName, options) {
1540
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1541
- return {
1542
- next() {
1543
- return iter.next();
1544
- },
1545
- [Symbol.asyncIterator]() {
1546
- return this;
1547
- },
1548
- byPage: (settings) => {
1549
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1550
- throw new Error("maxPageSize is not supported by this operation.");
1551
- }
1552
- return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1553
- }
1554
- };
1555
- }
1556
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1557
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1558
- let result;
1559
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1560
- if (!continuationToken) {
1561
- result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1562
- let page = result.value || [];
1563
- continuationToken = result.nextLink;
1564
- setContinuationToken(page, continuationToken);
1565
- yield yield tslib.__await(page);
1566
- }
1567
- while (continuationToken) {
1568
- result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1569
- continuationToken = result.nextLink;
1570
- let page = result.value || [];
1571
- setContinuationToken(page, continuationToken);
1572
- yield yield tslib.__await(page);
1573
- }
1574
- });
1575
- }
1576
- listByResourceGroupPagingAll(resourceGroupName, options) {
1577
- return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1578
- var _a, e_2, _b, _c;
1579
- try {
1580
- for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1581
- _c = _f.value;
1582
- _d = false;
1583
- const page = _c;
1584
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1585
- }
1586
- }
1587
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
1588
- finally {
1589
- try {
1590
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1591
- }
1592
- finally { if (e_2) throw e_2.error; }
1593
- }
1594
- });
1595
- }
1596
- /**
1597
- * Lists the endpoints that agents may call as part of load testing.
1598
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1599
- * @param loadTestName Load Test name.
1600
- * @param options The options parameters.
1601
- */
1602
- listOutboundNetworkDependenciesEndpoints(resourceGroupName, loadTestName, options) {
1603
- const iter = this.listOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, loadTestName, options);
1604
- return {
1605
- next() {
1606
- return iter.next();
1607
- },
1608
- [Symbol.asyncIterator]() {
1609
- return this;
1610
- },
1611
- byPage: (settings) => {
1612
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1613
- throw new Error("maxPageSize is not supported by this operation.");
1614
- }
1615
- return this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, loadTestName, options, settings);
1616
- }
1617
- };
1618
- }
1619
- listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, loadTestName, options, settings) {
1620
- return tslib.__asyncGenerator(this, arguments, function* listOutboundNetworkDependenciesEndpointsPagingPage_1() {
1621
- let result;
1622
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1623
- if (!continuationToken) {
1624
- result = yield tslib.__await(this._listOutboundNetworkDependenciesEndpoints(resourceGroupName, loadTestName, options));
1625
- let page = result.value || [];
1626
- continuationToken = result.nextLink;
1627
- setContinuationToken(page, continuationToken);
1628
- yield yield tslib.__await(page);
1629
- }
1630
- while (continuationToken) {
1631
- result = yield tslib.__await(this._listOutboundNetworkDependenciesEndpointsNext(resourceGroupName, loadTestName, continuationToken, options));
1632
- continuationToken = result.nextLink;
1633
- let page = result.value || [];
1634
- setContinuationToken(page, continuationToken);
1635
- yield yield tslib.__await(page);
1636
- }
1637
- });
1638
- }
1639
- listOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, loadTestName, options) {
1640
- return tslib.__asyncGenerator(this, arguments, function* listOutboundNetworkDependenciesEndpointsPagingAll_1() {
1641
- var _a, e_3, _b, _c;
1642
- try {
1643
- for (var _d = true, _e = tslib.__asyncValues(this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, loadTestName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
1644
- _c = _f.value;
1645
- _d = false;
1646
- const page = _c;
1647
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1648
- }
1649
- }
1650
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
1651
- finally {
1652
- try {
1653
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1654
- }
1655
- finally { if (e_3) throw e_3.error; }
1656
- }
1657
- });
1658
- }
1659
- /**
1660
- * Lists loadtests resources in a subscription.
1661
- * @param options The options parameters.
1662
- */
1663
- _listBySubscription(options) {
1664
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1665
- }
1666
- /**
1667
- * Lists loadtest resources in a resource group.
1668
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1669
- * @param options The options parameters.
1670
- */
1671
- _listByResourceGroup(resourceGroupName, options) {
1672
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1673
- }
1674
- /**
1675
- * Get a LoadTest resource.
1676
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1677
- * @param loadTestName Load Test name.
1678
- * @param options The options parameters.
1679
- */
1680
- get(resourceGroupName, loadTestName, options) {
1681
- return this.client.sendOperationRequest({ resourceGroupName, loadTestName, options }, getOperationSpec);
1682
- }
1683
- /**
1684
- * Create or update LoadTest resource.
1685
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1686
- * @param loadTestName Load Test name.
1687
- * @param loadTestResource LoadTest resource data
1688
- * @param options The options parameters.
1689
- */
1690
- beginCreateOrUpdate(resourceGroupName, loadTestName, loadTestResource, options) {
1691
- return tslib.__awaiter(this, void 0, void 0, function* () {
1692
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1693
- return this.client.sendOperationRequest(args, spec);
1694
- });
1695
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1696
- var _a;
1697
- let currentRawResponse = undefined;
1698
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1699
- const callback = (rawResponse, flatResponse) => {
1700
- currentRawResponse = rawResponse;
1701
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1702
- };
1703
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1704
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1705
- return {
1706
- flatResponse,
1707
- rawResponse: {
1708
- statusCode: currentRawResponse.status,
1709
- body: currentRawResponse.parsedBody,
1710
- headers: currentRawResponse.headers.toJSON()
1711
- }
1712
- };
1713
- });
1714
- const lro = new LroImpl(sendOperation, { resourceGroupName, loadTestName, loadTestResource, options }, createOrUpdateOperationSpec);
1715
- const poller = new coreLro.LroEngine(lro, {
1716
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1717
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1718
- lroResourceLocationConfig: "azure-async-operation"
1719
- });
1720
- yield poller.poll();
1721
- return poller;
1722
- });
1723
- }
1724
- /**
1725
- * Create or update LoadTest resource.
1726
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1727
- * @param loadTestName Load Test name.
1728
- * @param loadTestResource LoadTest resource data
1729
- * @param options The options parameters.
1730
- */
1731
- beginCreateOrUpdateAndWait(resourceGroupName, loadTestName, loadTestResource, options) {
1732
- return tslib.__awaiter(this, void 0, void 0, function* () {
1733
- const poller = yield this.beginCreateOrUpdate(resourceGroupName, loadTestName, loadTestResource, options);
1734
- return poller.pollUntilDone();
1735
- });
1736
- }
1737
- /**
1738
- * Update a loadtest resource.
1739
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1740
- * @param loadTestName Load Test name.
1741
- * @param loadTestResourcePatchRequestBody LoadTest resource update data
1742
- * @param options The options parameters.
1743
- */
1744
- beginUpdate(resourceGroupName, loadTestName, loadTestResourcePatchRequestBody, options) {
1745
- return tslib.__awaiter(this, void 0, void 0, function* () {
1746
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1747
- return this.client.sendOperationRequest(args, spec);
1748
- });
1749
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1750
- var _a;
1751
- let currentRawResponse = undefined;
1752
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1753
- const callback = (rawResponse, flatResponse) => {
1754
- currentRawResponse = rawResponse;
1755
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1756
- };
1757
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1758
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1759
- return {
1760
- flatResponse,
1761
- rawResponse: {
1762
- statusCode: currentRawResponse.status,
1763
- body: currentRawResponse.parsedBody,
1764
- headers: currentRawResponse.headers.toJSON()
1765
- }
1766
- };
1767
- });
1768
- const lro = new LroImpl(sendOperation, {
1769
- resourceGroupName,
1770
- loadTestName,
1771
- loadTestResourcePatchRequestBody,
1772
- options
1773
- }, updateOperationSpec);
1774
- const poller = new coreLro.LroEngine(lro, {
1775
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1776
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1777
- lroResourceLocationConfig: "azure-async-operation"
1778
- });
1779
- yield poller.poll();
1780
- return poller;
1781
- });
1782
- }
1783
- /**
1784
- * Update a loadtest resource.
1785
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1786
- * @param loadTestName Load Test name.
1787
- * @param loadTestResourcePatchRequestBody LoadTest resource update data
1788
- * @param options The options parameters.
1789
- */
1790
- beginUpdateAndWait(resourceGroupName, loadTestName, loadTestResourcePatchRequestBody, options) {
1791
- return tslib.__awaiter(this, void 0, void 0, function* () {
1792
- const poller = yield this.beginUpdate(resourceGroupName, loadTestName, loadTestResourcePatchRequestBody, options);
1793
- return poller.pollUntilDone();
1794
- });
1795
- }
1796
- /**
1797
- * Delete a LoadTest resource.
1798
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1799
- * @param loadTestName Load Test name.
1800
- * @param options The options parameters.
1801
- */
1802
- beginDelete(resourceGroupName, loadTestName, options) {
1803
- return tslib.__awaiter(this, void 0, void 0, function* () {
1804
- const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1805
- return this.client.sendOperationRequest(args, spec);
1806
- });
1807
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1808
- var _a;
1809
- let currentRawResponse = undefined;
1810
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1811
- const callback = (rawResponse, flatResponse) => {
1812
- currentRawResponse = rawResponse;
1813
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1814
- };
1815
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1816
- const flatResponse = yield directSendOperation(updatedArgs, spec);
1817
- return {
1818
- flatResponse,
1819
- rawResponse: {
1820
- statusCode: currentRawResponse.status,
1821
- body: currentRawResponse.parsedBody,
1822
- headers: currentRawResponse.headers.toJSON()
1823
- }
1824
- };
1825
- });
1826
- const lro = new LroImpl(sendOperation, { resourceGroupName, loadTestName, options }, deleteOperationSpec);
1827
- const poller = new coreLro.LroEngine(lro, {
1828
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1829
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1830
- lroResourceLocationConfig: "location"
1831
- });
1832
- yield poller.poll();
1833
- return poller;
1834
- });
1835
- }
1836
- /**
1837
- * Delete a LoadTest resource.
1838
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1839
- * @param loadTestName Load Test name.
1840
- * @param options The options parameters.
1841
- */
1842
- beginDeleteAndWait(resourceGroupName, loadTestName, options) {
1843
- return tslib.__awaiter(this, void 0, void 0, function* () {
1844
- const poller = yield this.beginDelete(resourceGroupName, loadTestName, options);
1845
- return poller.pollUntilDone();
1846
- });
1847
- }
1848
- /**
1849
- * Lists the endpoints that agents may call as part of load testing.
1850
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1851
- * @param loadTestName Load Test name.
1852
- * @param options The options parameters.
1853
- */
1854
- _listOutboundNetworkDependenciesEndpoints(resourceGroupName, loadTestName, options) {
1855
- return this.client.sendOperationRequest({ resourceGroupName, loadTestName, options }, listOutboundNetworkDependenciesEndpointsOperationSpec);
1856
- }
1857
- /**
1858
- * ListBySubscriptionNext
1859
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1860
- * @param options The options parameters.
1861
- */
1862
- _listBySubscriptionNext(nextLink, options) {
1863
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
1864
- }
1865
- /**
1866
- * ListByResourceGroupNext
1867
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1868
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1869
- * @param options The options parameters.
1870
- */
1871
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1872
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1873
- }
1874
- /**
1875
- * ListOutboundNetworkDependenciesEndpointsNext
1876
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1877
- * @param loadTestName Load Test name.
1878
- * @param nextLink The nextLink from the previous successful call to the
1879
- * ListOutboundNetworkDependenciesEndpoints method.
1880
- * @param options The options parameters.
1881
- */
1882
- _listOutboundNetworkDependenciesEndpointsNext(resourceGroupName, loadTestName, nextLink, options) {
1883
- return this.client.sendOperationRequest({ resourceGroupName, loadTestName, nextLink, options }, listOutboundNetworkDependenciesEndpointsNextOperationSpec);
1884
- }
1885
- }
1886
- // Operation Specifications
1887
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1888
- const listBySubscriptionOperationSpec = {
1889
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/loadTests",
1890
- httpMethod: "GET",
1891
- responses: {
1892
- 200: {
1893
- bodyMapper: LoadTestResourcePageList
1894
- },
1895
- default: {
1896
- bodyMapper: ErrorResponse
1897
- }
1898
- },
1899
- queryParameters: [apiVersion],
1900
- urlParameters: [$host, subscriptionId],
1901
- headerParameters: [accept],
1902
- serializer
1903
- };
1904
- const listByResourceGroupOperationSpec = {
1905
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests",
1906
- httpMethod: "GET",
1907
- responses: {
1908
- 200: {
1909
- bodyMapper: LoadTestResourcePageList
1910
- },
1911
- default: {
1912
- bodyMapper: ErrorResponse
1913
- }
1914
- },
1915
- queryParameters: [apiVersion],
1916
- urlParameters: [
1917
- $host,
1918
- subscriptionId,
1919
- resourceGroupName
1920
- ],
1921
- headerParameters: [accept],
1922
- serializer
1923
- };
1924
- const getOperationSpec = {
1925
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}",
1926
- httpMethod: "GET",
1927
- responses: {
1928
- 200: {
1929
- bodyMapper: LoadTestResource
1930
- },
1931
- default: {
1932
- bodyMapper: ErrorResponse
1933
- }
1934
- },
1935
- queryParameters: [apiVersion],
1936
- urlParameters: [
1937
- $host,
1938
- subscriptionId,
1939
- resourceGroupName,
1940
- loadTestName
1941
- ],
1942
- headerParameters: [accept],
1943
- serializer
1944
- };
1945
- const createOrUpdateOperationSpec = {
1946
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}",
1947
- httpMethod: "PUT",
1948
- responses: {
1949
- 200: {
1950
- bodyMapper: LoadTestResource
1951
- },
1952
- 201: {
1953
- bodyMapper: LoadTestResource
1954
- },
1955
- 202: {
1956
- bodyMapper: LoadTestResource
1957
- },
1958
- 204: {
1959
- bodyMapper: LoadTestResource
1960
- },
1961
- default: {
1962
- bodyMapper: ErrorResponse
1963
- }
1964
- },
1965
- requestBody: loadTestResource,
1966
- queryParameters: [apiVersion],
1967
- urlParameters: [
1968
- $host,
1969
- subscriptionId,
1970
- resourceGroupName,
1971
- loadTestName
1972
- ],
1973
- headerParameters: [accept, contentType],
1974
- mediaType: "json",
1975
- serializer
1976
- };
1977
- const updateOperationSpec = {
1978
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}",
1979
- httpMethod: "PATCH",
1980
- responses: {
1981
- 200: {
1982
- bodyMapper: LoadTestResource
1983
- },
1984
- 201: {
1985
- bodyMapper: LoadTestResource
1986
- },
1987
- 202: {
1988
- bodyMapper: LoadTestResource
1989
- },
1990
- 204: {
1991
- bodyMapper: LoadTestResource
1992
- },
1993
- default: {
1994
- bodyMapper: ErrorResponse
1995
- }
1996
- },
1997
- requestBody: loadTestResourcePatchRequestBody,
1998
- queryParameters: [apiVersion],
1999
- urlParameters: [
2000
- $host,
2001
- subscriptionId,
2002
- resourceGroupName,
2003
- loadTestName
2004
- ],
2005
- headerParameters: [accept, contentType],
2006
- mediaType: "json",
2007
- serializer
2008
- };
2009
- const deleteOperationSpec = {
2010
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}",
2011
- httpMethod: "DELETE",
2012
- responses: {
2013
- 200: {},
2014
- 201: {},
2015
- 202: {},
2016
- 204: {},
2017
- default: {
2018
- bodyMapper: ErrorResponse
2019
- }
2020
- },
2021
- queryParameters: [apiVersion],
2022
- urlParameters: [
2023
- $host,
2024
- subscriptionId,
2025
- resourceGroupName,
2026
- loadTestName
2027
- ],
2028
- headerParameters: [accept],
2029
- serializer
2030
- };
2031
- const listOutboundNetworkDependenciesEndpointsOperationSpec = {
2032
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}/outboundNetworkDependenciesEndpoints",
2033
- httpMethod: "GET",
2034
- responses: {
2035
- 200: {
2036
- bodyMapper: OutboundEnvironmentEndpointCollection
2037
- },
2038
- default: {
2039
- bodyMapper: ErrorResponse
2040
- }
2041
- },
2042
- queryParameters: [apiVersion],
2043
- urlParameters: [
2044
- $host,
2045
- subscriptionId,
2046
- resourceGroupName,
2047
- loadTestName
2048
- ],
2049
- headerParameters: [accept],
2050
- serializer
2051
- };
2052
- const listBySubscriptionNextOperationSpec = {
2053
- path: "{nextLink}",
2054
- httpMethod: "GET",
2055
- responses: {
2056
- 200: {
2057
- bodyMapper: LoadTestResourcePageList
2058
- },
2059
- default: {
2060
- bodyMapper: ErrorResponse
2061
- }
2062
- },
2063
- urlParameters: [
2064
- $host,
2065
- nextLink,
2066
- subscriptionId
2067
- ],
2068
- headerParameters: [accept],
2069
- serializer
2070
- };
2071
- const listByResourceGroupNextOperationSpec = {
2072
- path: "{nextLink}",
2073
- httpMethod: "GET",
2074
- responses: {
2075
- 200: {
2076
- bodyMapper: LoadTestResourcePageList
2077
- },
2078
- default: {
2079
- bodyMapper: ErrorResponse
2080
- }
2081
- },
2082
- urlParameters: [
2083
- $host,
2084
- nextLink,
2085
- subscriptionId,
2086
- resourceGroupName
2087
- ],
2088
- headerParameters: [accept],
2089
- serializer
2090
- };
2091
- const listOutboundNetworkDependenciesEndpointsNextOperationSpec = {
2092
- path: "{nextLink}",
2093
- httpMethod: "GET",
2094
- responses: {
2095
- 200: {
2096
- bodyMapper: OutboundEnvironmentEndpointCollection
2097
- },
2098
- default: {
2099
- bodyMapper: ErrorResponse
2100
- }
2101
- },
2102
- urlParameters: [
2103
- $host,
2104
- nextLink,
2105
- subscriptionId,
2106
- resourceGroupName,
2107
- loadTestName
2108
- ],
2109
- headerParameters: [accept],
2110
- serializer
2111
- };
2112
-
2113
- /*
2114
- * Copyright (c) Microsoft Corporation.
2115
- * Licensed under the MIT License.
2116
- *
2117
- * Code generated by Microsoft (R) AutoRest Code Generator.
2118
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2119
- */
2120
- class LoadTestClient extends coreClient__namespace.ServiceClient {
2121
- /**
2122
- * Initializes a new instance of the LoadTestClient class.
2123
- * @param credentials Subscription credentials which uniquely identify client subscription.
2124
- * @param subscriptionId The ID of the target subscription.
2125
- * @param options The parameter options
2126
- */
2127
- constructor(credentials, subscriptionId, options) {
2128
- var _a, _b, _c;
2129
- if (credentials === undefined) {
2130
- throw new Error("'credentials' cannot be null");
2131
- }
2132
- if (subscriptionId === undefined) {
2133
- throw new Error("'subscriptionId' cannot be null");
2134
- }
2135
- // Initializing default values for options
2136
- if (!options) {
2137
- options = {};
2138
- }
2139
- const defaults = {
2140
- requestContentType: "application/json; charset=utf-8",
2141
- credential: credentials
2142
- };
2143
- const packageDetails = `azsdk-js-arm-loadtesting/1.0.1`;
2144
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2145
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2146
- : `${packageDetails}`;
2147
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2148
- userAgentPrefix
2149
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
2150
- super(optionsWithDefaults);
2151
- let bearerTokenAuthenticationPolicyFound = false;
2152
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
2153
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
2154
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
2155
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
2156
- }
2157
- if (!options ||
2158
- !options.pipeline ||
2159
- options.pipeline.getOrderedPolicies().length == 0 ||
2160
- !bearerTokenAuthenticationPolicyFound) {
2161
- this.pipeline.removePolicy({
2162
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
2163
- });
2164
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
2165
- credential: credentials,
2166
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
2167
- challengeCallbacks: {
2168
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
2169
- }
2170
- }));
2171
- }
2172
- // Parameter assignments
2173
- this.subscriptionId = subscriptionId;
2174
- // Assigning values to Constant parameters
2175
- this.$host = options.$host || "https://management.azure.com";
2176
- this.apiVersion = options.apiVersion || "2022-12-01";
2177
- this.operations = new OperationsImpl(this);
2178
- this.quotas = new QuotasImpl(this);
2179
- this.loadTests = new LoadTestsImpl(this);
2180
- this.addCustomApiVersionPolicy(options.apiVersion);
2181
- }
2182
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
2183
- addCustomApiVersionPolicy(apiVersion) {
2184
- if (!apiVersion) {
2185
- return;
2186
- }
2187
- const apiVersionPolicy = {
2188
- name: "CustomApiVersionPolicy",
2189
- sendRequest(request, next) {
2190
- return tslib.__awaiter(this, void 0, void 0, function* () {
2191
- const param = request.url.split("?");
2192
- if (param.length > 1) {
2193
- const newParams = param[1].split("&").map((item) => {
2194
- if (item.indexOf("api-version") > -1) {
2195
- return "api-version=" + apiVersion;
2196
- }
2197
- else {
2198
- return item;
2199
- }
2200
- });
2201
- request.url = param[0] + "?" + newParams.join("&");
2202
- }
2203
- return next(request);
2204
- });
2205
- }
2206
- };
2207
- this.pipeline.addPolicy(apiVersionPolicy);
2208
- }
2209
- }
2210
-
2211
- exports.LoadTestClient = LoadTestClient;
2212
- exports.getContinuationToken = getContinuationToken;
2213
- //# sourceMappingURL=index.js.map