@azure/arm-loadtesting 1.0.1-alpha.20250211.1 → 1.0.1-alpha.20250213.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
@@ -1,149 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
- import { setContinuationToken } from "../pagingHelper";
11
- import { Operations } from "../operationsInterfaces";
12
- import * as coreClient from "@azure/core-client";
13
- import * as Mappers from "../models/mappers";
14
- import * as Parameters from "../models/parameters";
15
- import { LoadTestClient } from "../loadTestClient";
16
- import {
17
- Operation,
18
- OperationsListNextOptionalParams,
19
- OperationsListOptionalParams,
20
- OperationsListResponse,
21
- OperationsListNextResponse
22
- } from "../models";
23
-
24
- /// <reference lib="esnext.asynciterable" />
25
- /** Class containing Operations operations. */
26
- export class OperationsImpl implements Operations {
27
- private readonly client: LoadTestClient;
28
-
29
- /**
30
- * Initialize a new instance of the class Operations class.
31
- * @param client Reference to the service client
32
- */
33
- constructor(client: LoadTestClient) {
34
- this.client = client;
35
- }
36
-
37
- /**
38
- * Lists all the available API operations for Load Test Resource.
39
- * @param options The options parameters.
40
- */
41
- public list(
42
- options?: OperationsListOptionalParams
43
- ): PagedAsyncIterableIterator<Operation> {
44
- const iter = this.listPagingAll(options);
45
- return {
46
- next() {
47
- return iter.next();
48
- },
49
- [Symbol.asyncIterator]() {
50
- return this;
51
- },
52
- byPage: (settings?: PageSettings) => {
53
- if (settings?.maxPageSize) {
54
- throw new Error("maxPageSize is not supported by this operation.");
55
- }
56
- return this.listPagingPage(options, settings);
57
- }
58
- };
59
- }
60
-
61
- private async *listPagingPage(
62
- options?: OperationsListOptionalParams,
63
- settings?: PageSettings
64
- ): AsyncIterableIterator<Operation[]> {
65
- let result: OperationsListResponse;
66
- let continuationToken = settings?.continuationToken;
67
- if (!continuationToken) {
68
- result = await this._list(options);
69
- let page = result.value || [];
70
- continuationToken = result.nextLink;
71
- setContinuationToken(page, continuationToken);
72
- yield page;
73
- }
74
- while (continuationToken) {
75
- result = await this._listNext(continuationToken, options);
76
- continuationToken = result.nextLink;
77
- let page = result.value || [];
78
- setContinuationToken(page, continuationToken);
79
- yield page;
80
- }
81
- }
82
-
83
- private async *listPagingAll(
84
- options?: OperationsListOptionalParams
85
- ): AsyncIterableIterator<Operation> {
86
- for await (const page of this.listPagingPage(options)) {
87
- yield* page;
88
- }
89
- }
90
-
91
- /**
92
- * Lists all the available API operations for Load Test Resource.
93
- * @param options The options parameters.
94
- */
95
- private _list(
96
- options?: OperationsListOptionalParams
97
- ): Promise<OperationsListResponse> {
98
- return this.client.sendOperationRequest({ options }, listOperationSpec);
99
- }
100
-
101
- /**
102
- * ListNext
103
- * @param nextLink The nextLink from the previous successful call to the List method.
104
- * @param options The options parameters.
105
- */
106
- private _listNext(
107
- nextLink: string,
108
- options?: OperationsListNextOptionalParams
109
- ): Promise<OperationsListNextResponse> {
110
- return this.client.sendOperationRequest(
111
- { nextLink, options },
112
- listNextOperationSpec
113
- );
114
- }
115
- }
116
- // Operation Specifications
117
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
118
-
119
- const listOperationSpec: coreClient.OperationSpec = {
120
- path: "/providers/Microsoft.LoadTestService/operations",
121
- httpMethod: "GET",
122
- responses: {
123
- 200: {
124
- bodyMapper: Mappers.OperationListResult
125
- },
126
- default: {
127
- bodyMapper: Mappers.ErrorResponse
128
- }
129
- },
130
- queryParameters: [Parameters.apiVersion],
131
- urlParameters: [Parameters.$host],
132
- headerParameters: [Parameters.accept],
133
- serializer
134
- };
135
- const listNextOperationSpec: coreClient.OperationSpec = {
136
- path: "{nextLink}",
137
- httpMethod: "GET",
138
- responses: {
139
- 200: {
140
- bodyMapper: Mappers.OperationListResult
141
- },
142
- default: {
143
- bodyMapper: Mappers.ErrorResponse
144
- }
145
- },
146
- urlParameters: [Parameters.$host, Parameters.nextLink],
147
- headerParameters: [Parameters.accept],
148
- serializer
149
- };
@@ -1,257 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
- import { setContinuationToken } from "../pagingHelper";
11
- import { Quotas } from "../operationsInterfaces";
12
- import * as coreClient from "@azure/core-client";
13
- import * as Mappers from "../models/mappers";
14
- import * as Parameters from "../models/parameters";
15
- import { LoadTestClient } from "../loadTestClient";
16
- import {
17
- QuotaResource,
18
- QuotasListNextOptionalParams,
19
- QuotasListOptionalParams,
20
- QuotasListResponse,
21
- QuotasGetOptionalParams,
22
- QuotasGetResponse,
23
- QuotaBucketRequest,
24
- QuotasCheckAvailabilityOptionalParams,
25
- QuotasCheckAvailabilityResponse,
26
- QuotasListNextResponse
27
- } from "../models";
28
-
29
- /// <reference lib="esnext.asynciterable" />
30
- /** Class containing Quotas operations. */
31
- export class QuotasImpl implements Quotas {
32
- private readonly client: LoadTestClient;
33
-
34
- /**
35
- * Initialize a new instance of the class Quotas class.
36
- * @param client Reference to the service client
37
- */
38
- constructor(client: LoadTestClient) {
39
- this.client = client;
40
- }
41
-
42
- /**
43
- * Lists all the available quota per region per subscription.
44
- * @param location The name of Azure region.
45
- * @param options The options parameters.
46
- */
47
- public list(
48
- location: string,
49
- options?: QuotasListOptionalParams
50
- ): PagedAsyncIterableIterator<QuotaResource> {
51
- const iter = this.listPagingAll(location, options);
52
- return {
53
- next() {
54
- return iter.next();
55
- },
56
- [Symbol.asyncIterator]() {
57
- return this;
58
- },
59
- byPage: (settings?: PageSettings) => {
60
- if (settings?.maxPageSize) {
61
- throw new Error("maxPageSize is not supported by this operation.");
62
- }
63
- return this.listPagingPage(location, options, settings);
64
- }
65
- };
66
- }
67
-
68
- private async *listPagingPage(
69
- location: string,
70
- options?: QuotasListOptionalParams,
71
- settings?: PageSettings
72
- ): AsyncIterableIterator<QuotaResource[]> {
73
- let result: QuotasListResponse;
74
- let continuationToken = settings?.continuationToken;
75
- if (!continuationToken) {
76
- result = await this._list(location, options);
77
- let page = result.value || [];
78
- continuationToken = result.nextLink;
79
- setContinuationToken(page, continuationToken);
80
- yield page;
81
- }
82
- while (continuationToken) {
83
- result = await this._listNext(location, continuationToken, options);
84
- continuationToken = result.nextLink;
85
- let page = result.value || [];
86
- setContinuationToken(page, continuationToken);
87
- yield page;
88
- }
89
- }
90
-
91
- private async *listPagingAll(
92
- location: string,
93
- options?: QuotasListOptionalParams
94
- ): AsyncIterableIterator<QuotaResource> {
95
- for await (const page of this.listPagingPage(location, options)) {
96
- yield* page;
97
- }
98
- }
99
-
100
- /**
101
- * Lists all the available quota per region per subscription.
102
- * @param location The name of Azure region.
103
- * @param options The options parameters.
104
- */
105
- private _list(
106
- location: string,
107
- options?: QuotasListOptionalParams
108
- ): Promise<QuotasListResponse> {
109
- return this.client.sendOperationRequest(
110
- { location, options },
111
- listOperationSpec
112
- );
113
- }
114
-
115
- /**
116
- * Get the available quota for a quota bucket per region per subscription.
117
- * @param location The name of Azure region.
118
- * @param quotaBucketName Quota Bucket name.
119
- * @param options The options parameters.
120
- */
121
- get(
122
- location: string,
123
- quotaBucketName: string,
124
- options?: QuotasGetOptionalParams
125
- ): Promise<QuotasGetResponse> {
126
- return this.client.sendOperationRequest(
127
- { location, quotaBucketName, options },
128
- getOperationSpec
129
- );
130
- }
131
-
132
- /**
133
- * Check Quota Availability on quota bucket per region per subscription.
134
- * @param location The name of Azure region.
135
- * @param quotaBucketName Quota Bucket name.
136
- * @param quotaBucketRequest Quota Bucket Request data
137
- * @param options The options parameters.
138
- */
139
- checkAvailability(
140
- location: string,
141
- quotaBucketName: string,
142
- quotaBucketRequest: QuotaBucketRequest,
143
- options?: QuotasCheckAvailabilityOptionalParams
144
- ): Promise<QuotasCheckAvailabilityResponse> {
145
- return this.client.sendOperationRequest(
146
- { location, quotaBucketName, quotaBucketRequest, options },
147
- checkAvailabilityOperationSpec
148
- );
149
- }
150
-
151
- /**
152
- * ListNext
153
- * @param location The name of Azure region.
154
- * @param nextLink The nextLink from the previous successful call to the List method.
155
- * @param options The options parameters.
156
- */
157
- private _listNext(
158
- location: string,
159
- nextLink: string,
160
- options?: QuotasListNextOptionalParams
161
- ): Promise<QuotasListNextResponse> {
162
- return this.client.sendOperationRequest(
163
- { location, nextLink, options },
164
- listNextOperationSpec
165
- );
166
- }
167
- }
168
- // Operation Specifications
169
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
170
-
171
- const listOperationSpec: coreClient.OperationSpec = {
172
- path:
173
- "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas",
174
- httpMethod: "GET",
175
- responses: {
176
- 200: {
177
- bodyMapper: Mappers.QuotaResourceList
178
- },
179
- default: {
180
- bodyMapper: Mappers.ErrorResponse
181
- }
182
- },
183
- queryParameters: [Parameters.apiVersion],
184
- urlParameters: [
185
- Parameters.$host,
186
- Parameters.subscriptionId,
187
- Parameters.location
188
- ],
189
- headerParameters: [Parameters.accept],
190
- serializer
191
- };
192
- const getOperationSpec: coreClient.OperationSpec = {
193
- path:
194
- "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}",
195
- httpMethod: "GET",
196
- responses: {
197
- 200: {
198
- bodyMapper: Mappers.QuotaResource
199
- },
200
- default: {
201
- bodyMapper: Mappers.ErrorResponse
202
- }
203
- },
204
- queryParameters: [Parameters.apiVersion],
205
- urlParameters: [
206
- Parameters.$host,
207
- Parameters.subscriptionId,
208
- Parameters.location,
209
- Parameters.quotaBucketName
210
- ],
211
- headerParameters: [Parameters.accept],
212
- serializer
213
- };
214
- const checkAvailabilityOperationSpec: coreClient.OperationSpec = {
215
- path:
216
- "/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/quotas/{quotaBucketName}/checkAvailability",
217
- httpMethod: "POST",
218
- responses: {
219
- 200: {
220
- bodyMapper: Mappers.CheckQuotaAvailabilityResponse
221
- },
222
- default: {
223
- bodyMapper: Mappers.ErrorResponse
224
- }
225
- },
226
- requestBody: Parameters.quotaBucketRequest,
227
- queryParameters: [Parameters.apiVersion],
228
- urlParameters: [
229
- Parameters.$host,
230
- Parameters.subscriptionId,
231
- Parameters.location,
232
- Parameters.quotaBucketName
233
- ],
234
- headerParameters: [Parameters.accept, Parameters.contentType],
235
- mediaType: "json",
236
- serializer
237
- };
238
- const listNextOperationSpec: coreClient.OperationSpec = {
239
- path: "{nextLink}",
240
- httpMethod: "GET",
241
- responses: {
242
- 200: {
243
- bodyMapper: Mappers.QuotaResourceList
244
- },
245
- default: {
246
- bodyMapper: Mappers.ErrorResponse
247
- }
248
- },
249
- urlParameters: [
250
- Parameters.$host,
251
- Parameters.nextLink,
252
- Parameters.subscriptionId,
253
- Parameters.location
254
- ],
255
- headerParameters: [Parameters.accept],
256
- serializer
257
- };
@@ -1,11 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- export * from "./operations";
10
- export * from "./quotas";
11
- export * from "./loadTests";
@@ -1,152 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
11
- import {
12
- LoadTestResource,
13
- LoadTestsListBySubscriptionOptionalParams,
14
- LoadTestsListByResourceGroupOptionalParams,
15
- OutboundEnvironmentEndpoint,
16
- LoadTestsListOutboundNetworkDependenciesEndpointsOptionalParams,
17
- LoadTestsGetOptionalParams,
18
- LoadTestsGetResponse,
19
- LoadTestsCreateOrUpdateOptionalParams,
20
- LoadTestsCreateOrUpdateResponse,
21
- LoadTestResourcePatchRequestBody,
22
- LoadTestsUpdateOptionalParams,
23
- LoadTestsUpdateResponse,
24
- LoadTestsDeleteOptionalParams
25
- } from "../models";
26
-
27
- /// <reference lib="esnext.asynciterable" />
28
- /** Interface representing a LoadTests. */
29
- export interface LoadTests {
30
- /**
31
- * Lists loadtests resources in a subscription.
32
- * @param options The options parameters.
33
- */
34
- listBySubscription(
35
- options?: LoadTestsListBySubscriptionOptionalParams
36
- ): PagedAsyncIterableIterator<LoadTestResource>;
37
- /**
38
- * Lists loadtest resources in a resource group.
39
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
- * @param options The options parameters.
41
- */
42
- listByResourceGroup(
43
- resourceGroupName: string,
44
- options?: LoadTestsListByResourceGroupOptionalParams
45
- ): PagedAsyncIterableIterator<LoadTestResource>;
46
- /**
47
- * Lists the endpoints that agents may call as part of load testing.
48
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
49
- * @param loadTestName Load Test name.
50
- * @param options The options parameters.
51
- */
52
- listOutboundNetworkDependenciesEndpoints(
53
- resourceGroupName: string,
54
- loadTestName: string,
55
- options?: LoadTestsListOutboundNetworkDependenciesEndpointsOptionalParams
56
- ): PagedAsyncIterableIterator<OutboundEnvironmentEndpoint>;
57
- /**
58
- * Get a LoadTest resource.
59
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
60
- * @param loadTestName Load Test name.
61
- * @param options The options parameters.
62
- */
63
- get(
64
- resourceGroupName: string,
65
- loadTestName: string,
66
- options?: LoadTestsGetOptionalParams
67
- ): Promise<LoadTestsGetResponse>;
68
- /**
69
- * Create or update LoadTest resource.
70
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
71
- * @param loadTestName Load Test name.
72
- * @param loadTestResource LoadTest resource data
73
- * @param options The options parameters.
74
- */
75
- beginCreateOrUpdate(
76
- resourceGroupName: string,
77
- loadTestName: string,
78
- loadTestResource: LoadTestResource,
79
- options?: LoadTestsCreateOrUpdateOptionalParams
80
- ): Promise<
81
- PollerLike<
82
- PollOperationState<LoadTestsCreateOrUpdateResponse>,
83
- LoadTestsCreateOrUpdateResponse
84
- >
85
- >;
86
- /**
87
- * Create or update LoadTest resource.
88
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
89
- * @param loadTestName Load Test name.
90
- * @param loadTestResource LoadTest resource data
91
- * @param options The options parameters.
92
- */
93
- beginCreateOrUpdateAndWait(
94
- resourceGroupName: string,
95
- loadTestName: string,
96
- loadTestResource: LoadTestResource,
97
- options?: LoadTestsCreateOrUpdateOptionalParams
98
- ): Promise<LoadTestsCreateOrUpdateResponse>;
99
- /**
100
- * Update a loadtest resource.
101
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
102
- * @param loadTestName Load Test name.
103
- * @param loadTestResourcePatchRequestBody LoadTest resource update data
104
- * @param options The options parameters.
105
- */
106
- beginUpdate(
107
- resourceGroupName: string,
108
- loadTestName: string,
109
- loadTestResourcePatchRequestBody: LoadTestResourcePatchRequestBody,
110
- options?: LoadTestsUpdateOptionalParams
111
- ): Promise<
112
- PollerLike<
113
- PollOperationState<LoadTestsUpdateResponse>,
114
- LoadTestsUpdateResponse
115
- >
116
- >;
117
- /**
118
- * Update a loadtest resource.
119
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
120
- * @param loadTestName Load Test name.
121
- * @param loadTestResourcePatchRequestBody LoadTest resource update data
122
- * @param options The options parameters.
123
- */
124
- beginUpdateAndWait(
125
- resourceGroupName: string,
126
- loadTestName: string,
127
- loadTestResourcePatchRequestBody: LoadTestResourcePatchRequestBody,
128
- options?: LoadTestsUpdateOptionalParams
129
- ): Promise<LoadTestsUpdateResponse>;
130
- /**
131
- * Delete a LoadTest resource.
132
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
133
- * @param loadTestName Load Test name.
134
- * @param options The options parameters.
135
- */
136
- beginDelete(
137
- resourceGroupName: string,
138
- loadTestName: string,
139
- options?: LoadTestsDeleteOptionalParams
140
- ): Promise<PollerLike<PollOperationState<void>, void>>;
141
- /**
142
- * Delete a LoadTest resource.
143
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
144
- * @param loadTestName Load Test name.
145
- * @param options The options parameters.
146
- */
147
- beginDeleteAndWait(
148
- resourceGroupName: string,
149
- loadTestName: string,
150
- options?: LoadTestsDeleteOptionalParams
151
- ): Promise<void>;
152
- }
@@ -1,22 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { Operation, OperationsListOptionalParams } from "../models";
11
-
12
- /// <reference lib="esnext.asynciterable" />
13
- /** Interface representing a Operations. */
14
- export interface Operations {
15
- /**
16
- * Lists all the available API operations for Load Test Resource.
17
- * @param options The options parameters.
18
- */
19
- list(
20
- options?: OperationsListOptionalParams
21
- ): PagedAsyncIterableIterator<Operation>;
22
- }
@@ -1,56 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import {
11
- QuotaResource,
12
- QuotasListOptionalParams,
13
- QuotasGetOptionalParams,
14
- QuotasGetResponse,
15
- QuotaBucketRequest,
16
- QuotasCheckAvailabilityOptionalParams,
17
- QuotasCheckAvailabilityResponse
18
- } from "../models";
19
-
20
- /// <reference lib="esnext.asynciterable" />
21
- /** Interface representing a Quotas. */
22
- export interface Quotas {
23
- /**
24
- * Lists all the available quota per region per subscription.
25
- * @param location The name of Azure region.
26
- * @param options The options parameters.
27
- */
28
- list(
29
- location: string,
30
- options?: QuotasListOptionalParams
31
- ): PagedAsyncIterableIterator<QuotaResource>;
32
- /**
33
- * Get the available quota for a quota bucket per region per subscription.
34
- * @param location The name of Azure region.
35
- * @param quotaBucketName Quota Bucket name.
36
- * @param options The options parameters.
37
- */
38
- get(
39
- location: string,
40
- quotaBucketName: string,
41
- options?: QuotasGetOptionalParams
42
- ): Promise<QuotasGetResponse>;
43
- /**
44
- * Check Quota Availability on quota bucket per region per subscription.
45
- * @param location The name of Azure region.
46
- * @param quotaBucketName Quota Bucket name.
47
- * @param quotaBucketRequest Quota Bucket Request data
48
- * @param options The options parameters.
49
- */
50
- checkAvailability(
51
- location: string,
52
- quotaBucketName: string,
53
- quotaBucketRequest: QuotaBucketRequest,
54
- options?: QuotasCheckAvailabilityOptionalParams
55
- ): Promise<QuotasCheckAvailabilityResponse>;
56
- }
@@ -1,39 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
-
9
- export interface PageInfo {
10
- continuationToken?: string;
11
- }
12
-
13
- const pageMap = new WeakMap<object, PageInfo>();
14
-
15
- /**
16
- * Given the last `.value` produced by the `byPage` iterator,
17
- * returns a continuation token that can be used to begin paging from
18
- * that point later.
19
- * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
20
- * @returns The continuation token that can be passed into byPage() during future calls.
21
- */
22
- export function getContinuationToken(page: unknown): string | undefined {
23
- if (typeof page !== "object" || page === null) {
24
- return undefined;
25
- }
26
- return pageMap.get(page)?.continuationToken;
27
- }
28
-
29
- export function setContinuationToken(
30
- page: unknown,
31
- continuationToken: string | undefined
32
- ): void {
33
- if (typeof page !== "object" || page === null || !continuationToken) {
34
- return;
35
- }
36
- const pageInfo = pageMap.get(page) ?? {};
37
- pageInfo.continuationToken = continuationToken;
38
- pageMap.set(page, pageInfo);
39
- }