@azure-rest/load-testing 1.1.0-beta.1 → 1.2.0-beta.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 (200) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE +1 -1
  3. package/README.md +12 -13
  4. package/dist/browser/azureLoadTesting.js +14 -12
  5. package/dist/browser/azureLoadTesting.js.map +1 -1
  6. package/dist/browser/clientDefinitions.d.ts +66 -34
  7. package/dist/browser/clientDefinitions.js.map +1 -1
  8. package/dist/browser/getFileValidationPoller.js +16 -11
  9. package/dist/browser/getFileValidationPoller.js.map +1 -1
  10. package/dist/browser/getTestProfileRunCompletionPoller.js +16 -11
  11. package/dist/browser/getTestProfileRunCompletionPoller.js.map +1 -1
  12. package/dist/browser/getTestRunCompletionPoller.js +16 -11
  13. package/dist/browser/getTestRunCompletionPoller.js.map +1 -1
  14. package/dist/browser/index.d.ts +6 -6
  15. package/dist/browser/index.js +1 -7
  16. package/dist/browser/index.js.map +1 -1
  17. package/dist/browser/isUnexpected.d.ts +15 -9
  18. package/dist/browser/isUnexpected.js +21 -13
  19. package/dist/browser/isUnexpected.js.map +1 -1
  20. package/dist/browser/models.d.ts +205 -172
  21. package/dist/browser/models.js.map +1 -1
  22. package/dist/browser/outputModels.d.ts +290 -208
  23. package/dist/browser/outputModels.js.map +1 -1
  24. package/dist/browser/paginateHelper.js +43 -73
  25. package/dist/browser/paginateHelper.js.map +1 -1
  26. package/dist/browser/parameters.d.ts +107 -66
  27. package/dist/browser/parameters.js.map +1 -1
  28. package/dist/browser/pollingHelper.d.ts +82 -4
  29. package/dist/browser/pollingHelper.js +119 -15
  30. package/dist/browser/pollingHelper.js.map +1 -1
  31. package/dist/browser/responses.d.ts +234 -121
  32. package/dist/browser/responses.js.map +1 -1
  33. package/dist/commonjs/azureLoadTesting.js +53 -45
  34. package/dist/commonjs/azureLoadTesting.js.map +7 -1
  35. package/dist/commonjs/clientDefinitions.d.ts +66 -34
  36. package/dist/commonjs/clientDefinitions.js +15 -5
  37. package/dist/commonjs/clientDefinitions.js.map +7 -1
  38. package/dist/commonjs/getFileValidationPoller.js +151 -137
  39. package/dist/commonjs/getFileValidationPoller.js.map +7 -1
  40. package/dist/commonjs/getTestProfileRunCompletionPoller.js +139 -127
  41. package/dist/commonjs/getTestProfileRunCompletionPoller.js.map +7 -1
  42. package/dist/commonjs/getTestRunCompletionPoller.js +139 -125
  43. package/dist/commonjs/getTestRunCompletionPoller.js.map +7 -1
  44. package/dist/commonjs/index.d.ts +6 -6
  45. package/dist/commonjs/index.js +46 -20
  46. package/dist/commonjs/index.js.map +7 -1
  47. package/dist/commonjs/isUnexpected.d.ts +15 -9
  48. package/dist/commonjs/isUnexpected.js +118 -105
  49. package/dist/commonjs/isUnexpected.js.map +7 -1
  50. package/dist/commonjs/logger.js +28 -8
  51. package/dist/commonjs/logger.js.map +7 -1
  52. package/dist/commonjs/models.d.ts +205 -172
  53. package/dist/commonjs/models.js +15 -5
  54. package/dist/commonjs/models.js.map +7 -1
  55. package/dist/commonjs/outputModels.d.ts +290 -208
  56. package/dist/commonjs/outputModels.js +15 -5
  57. package/dist/commonjs/outputModels.js.map +7 -1
  58. package/dist/commonjs/paginateHelper.js +118 -158
  59. package/dist/commonjs/paginateHelper.js.map +7 -1
  60. package/dist/commonjs/parameters.d.ts +107 -66
  61. package/dist/commonjs/parameters.js +15 -5
  62. package/dist/commonjs/parameters.js.map +7 -1
  63. package/dist/commonjs/pollingHelper.d.ts +82 -4
  64. package/dist/commonjs/pollingHelper.js +143 -24
  65. package/dist/commonjs/pollingHelper.js.map +7 -1
  66. package/dist/commonjs/responses.d.ts +234 -121
  67. package/dist/commonjs/responses.js +15 -5
  68. package/dist/commonjs/responses.js.map +7 -1
  69. package/dist/commonjs/tsdoc-metadata.json +11 -11
  70. package/dist/commonjs/util/LROUtil.js +76 -54
  71. package/dist/commonjs/util/LROUtil.js.map +7 -1
  72. package/dist/esm/azureLoadTesting.js +32 -40
  73. package/dist/esm/azureLoadTesting.js.map +7 -1
  74. package/dist/esm/clientDefinitions.d.ts +66 -34
  75. package/dist/esm/clientDefinitions.js +0 -4
  76. package/dist/esm/clientDefinitions.js.map +7 -1
  77. package/dist/esm/getFileValidationPoller.js +126 -132
  78. package/dist/esm/getFileValidationPoller.js.map +7 -1
  79. package/dist/esm/getTestProfileRunCompletionPoller.js +114 -122
  80. package/dist/esm/getTestProfileRunCompletionPoller.js.map +7 -1
  81. package/dist/esm/getTestRunCompletionPoller.js +114 -120
  82. package/dist/esm/getTestRunCompletionPoller.js.map +7 -1
  83. package/dist/esm/index.d.ts +6 -6
  84. package/dist/esm/index.js +5 -11
  85. package/dist/esm/index.js.map +7 -1
  86. package/dist/esm/isUnexpected.d.ts +15 -9
  87. package/dist/esm/isUnexpected.js +96 -103
  88. package/dist/esm/isUnexpected.js.map +7 -1
  89. package/dist/esm/logger.js +4 -4
  90. package/dist/esm/logger.js.map +7 -1
  91. package/dist/esm/models.d.ts +205 -172
  92. package/dist/esm/models.js +0 -4
  93. package/dist/esm/models.js.map +7 -1
  94. package/dist/esm/outputModels.d.ts +290 -208
  95. package/dist/esm/outputModels.js +0 -4
  96. package/dist/esm/outputModels.js.map +7 -1
  97. package/dist/esm/paginateHelper.js +95 -155
  98. package/dist/esm/paginateHelper.js.map +7 -1
  99. package/dist/esm/parameters.d.ts +107 -66
  100. package/dist/esm/parameters.js +0 -4
  101. package/dist/esm/parameters.js.map +7 -1
  102. package/dist/esm/pollingHelper.d.ts +82 -4
  103. package/dist/esm/pollingHelper.js +117 -18
  104. package/dist/esm/pollingHelper.js.map +7 -1
  105. package/dist/esm/responses.d.ts +234 -121
  106. package/dist/esm/responses.js +0 -4
  107. package/dist/esm/responses.js.map +7 -1
  108. package/dist/esm/util/LROUtil.js +52 -50
  109. package/dist/esm/util/LROUtil.js.map +7 -1
  110. package/dist/react-native/azureLoadTesting.js +14 -12
  111. package/dist/react-native/azureLoadTesting.js.map +1 -1
  112. package/dist/react-native/clientDefinitions.d.ts +66 -34
  113. package/dist/react-native/clientDefinitions.js.map +1 -1
  114. package/dist/react-native/getFileValidationPoller.js +16 -11
  115. package/dist/react-native/getFileValidationPoller.js.map +1 -1
  116. package/dist/react-native/getTestProfileRunCompletionPoller.js +16 -11
  117. package/dist/react-native/getTestProfileRunCompletionPoller.js.map +1 -1
  118. package/dist/react-native/getTestRunCompletionPoller.js +16 -11
  119. package/dist/react-native/getTestRunCompletionPoller.js.map +1 -1
  120. package/dist/react-native/index.d.ts +6 -6
  121. package/dist/react-native/index.js +1 -7
  122. package/dist/react-native/index.js.map +1 -1
  123. package/dist/react-native/isUnexpected.d.ts +15 -9
  124. package/dist/react-native/isUnexpected.js +21 -13
  125. package/dist/react-native/isUnexpected.js.map +1 -1
  126. package/dist/react-native/models.d.ts +205 -172
  127. package/dist/react-native/models.js.map +1 -1
  128. package/dist/react-native/outputModels.d.ts +290 -208
  129. package/dist/react-native/outputModels.js.map +1 -1
  130. package/dist/react-native/paginateHelper.js +43 -73
  131. package/dist/react-native/paginateHelper.js.map +1 -1
  132. package/dist/react-native/parameters.d.ts +107 -66
  133. package/dist/react-native/parameters.js.map +1 -1
  134. package/dist/react-native/pollingHelper.d.ts +82 -4
  135. package/dist/react-native/pollingHelper.js +119 -15
  136. package/dist/react-native/pollingHelper.js.map +1 -1
  137. package/dist/react-native/responses.d.ts +234 -121
  138. package/dist/react-native/responses.js.map +1 -1
  139. package/package.json +69 -86
  140. package/review/{load-testing.api.md → load-testing-node.api.md} +420 -23
  141. package/dist/browser/azureLoadTesting.d.ts.map +0 -1
  142. package/dist/browser/clientDefinitions.d.ts.map +0 -1
  143. package/dist/browser/getFileValidationPoller.d.ts.map +0 -1
  144. package/dist/browser/getTestProfileRunCompletionPoller.d.ts.map +0 -1
  145. package/dist/browser/getTestRunCompletionPoller.d.ts.map +0 -1
  146. package/dist/browser/index.d.ts.map +0 -1
  147. package/dist/browser/isUnexpected.d.ts.map +0 -1
  148. package/dist/browser/logger.d.ts.map +0 -1
  149. package/dist/browser/models.d.ts.map +0 -1
  150. package/dist/browser/outputModels.d.ts.map +0 -1
  151. package/dist/browser/paginateHelper.d.ts.map +0 -1
  152. package/dist/browser/parameters.d.ts.map +0 -1
  153. package/dist/browser/pollingHelper.d.ts.map +0 -1
  154. package/dist/browser/responses.d.ts.map +0 -1
  155. package/dist/browser/util/LROUtil.d.ts.map +0 -1
  156. package/dist/commonjs/azureLoadTesting.d.ts.map +0 -1
  157. package/dist/commonjs/clientDefinitions.d.ts.map +0 -1
  158. package/dist/commonjs/getFileValidationPoller.d.ts.map +0 -1
  159. package/dist/commonjs/getTestProfileRunCompletionPoller.d.ts.map +0 -1
  160. package/dist/commonjs/getTestRunCompletionPoller.d.ts.map +0 -1
  161. package/dist/commonjs/index.d.ts.map +0 -1
  162. package/dist/commonjs/isUnexpected.d.ts.map +0 -1
  163. package/dist/commonjs/logger.d.ts.map +0 -1
  164. package/dist/commonjs/models.d.ts.map +0 -1
  165. package/dist/commonjs/outputModels.d.ts.map +0 -1
  166. package/dist/commonjs/paginateHelper.d.ts.map +0 -1
  167. package/dist/commonjs/parameters.d.ts.map +0 -1
  168. package/dist/commonjs/pollingHelper.d.ts.map +0 -1
  169. package/dist/commonjs/responses.d.ts.map +0 -1
  170. package/dist/commonjs/util/LROUtil.d.ts.map +0 -1
  171. package/dist/esm/azureLoadTesting.d.ts.map +0 -1
  172. package/dist/esm/clientDefinitions.d.ts.map +0 -1
  173. package/dist/esm/getFileValidationPoller.d.ts.map +0 -1
  174. package/dist/esm/getTestProfileRunCompletionPoller.d.ts.map +0 -1
  175. package/dist/esm/getTestRunCompletionPoller.d.ts.map +0 -1
  176. package/dist/esm/index.d.ts.map +0 -1
  177. package/dist/esm/isUnexpected.d.ts.map +0 -1
  178. package/dist/esm/logger.d.ts.map +0 -1
  179. package/dist/esm/models.d.ts.map +0 -1
  180. package/dist/esm/outputModels.d.ts.map +0 -1
  181. package/dist/esm/paginateHelper.d.ts.map +0 -1
  182. package/dist/esm/parameters.d.ts.map +0 -1
  183. package/dist/esm/pollingHelper.d.ts.map +0 -1
  184. package/dist/esm/responses.d.ts.map +0 -1
  185. package/dist/esm/util/LROUtil.d.ts.map +0 -1
  186. package/dist/react-native/azureLoadTesting.d.ts.map +0 -1
  187. package/dist/react-native/clientDefinitions.d.ts.map +0 -1
  188. package/dist/react-native/getFileValidationPoller.d.ts.map +0 -1
  189. package/dist/react-native/getTestProfileRunCompletionPoller.d.ts.map +0 -1
  190. package/dist/react-native/getTestRunCompletionPoller.d.ts.map +0 -1
  191. package/dist/react-native/index.d.ts.map +0 -1
  192. package/dist/react-native/isUnexpected.d.ts.map +0 -1
  193. package/dist/react-native/logger.d.ts.map +0 -1
  194. package/dist/react-native/models.d.ts.map +0 -1
  195. package/dist/react-native/outputModels.d.ts.map +0 -1
  196. package/dist/react-native/paginateHelper.d.ts.map +0 -1
  197. package/dist/react-native/parameters.d.ts.map +0 -1
  198. package/dist/react-native/pollingHelper.d.ts.map +0 -1
  199. package/dist/react-native/responses.d.ts.map +0 -1
  200. package/dist/react-native/util/LROUtil.d.ts.map +0 -1
@@ -1 +1,7 @@
1
- {"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../src/paginateHelper.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError } from \"@azure-rest/core-client\";\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings = PageSettings,\n TLink = string,\n>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TLink, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n (((settings?: PageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken as unknown as TLink | undefined,\n });\n }) as unknown as (settings?: TPageSettings) => AsyncIterableIterator<TPage>),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TLink, TPageSettings>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n const firstVal = await pages.next();\n // if the result does not have an array shape, i.e. TPage = TElement, then we return it as is\n if (!Array.isArray(firstVal.value)) {\n // can extract elements from this page\n const { toElements } = pagedResult;\n if (toElements) {\n yield* toElements(firstVal.value) as TElement[];\n for await (const page of pages) {\n yield* toElements(page) as TElement[];\n }\n } else {\n yield firstVal.value;\n // `pages` is of type `AsyncIterableIterator<TPage>` but TPage = TElement in this case\n yield* pages as unknown as AsyncIterableIterator<TElement>;\n }\n } else {\n yield* firstVal.value;\n for await (const page of pages) {\n // pages is of type `AsyncIterableIterator<TPage>` so `page` is of type `TPage`. In this branch,\n // it must be the case that `TPage = TElement[]`\n yield* page as unknown as TElement[];\n }\n }\n}\n\nasync function* getPageAsyncIterator<TPage, TLink, TPageSettings>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n options: {\n pageLink?: TLink;\n } = {},\n): AsyncIterableIterator<TPage> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n yield response.page;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n yield response.page;\n }\n}\n\n/**\n * An interface that tracks the settings for paged iteration\n */\nexport interface PageSettings {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\ninterface PagedResult<TPage, TPageSettings = PageSettings, TLink = string> {\n /**\n * Link to the first page of results.\n */\n firstPageLink: TLink;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink: TLink) => Promise<{ page: TPage; nextPageLink?: TLink } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => unknown[];\n}\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (pageLink: string) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends {\n body: { value?: infer TPage };\n}\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {},\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n const itemName = \"value\";\n const nextLinkName = \"nextLink\";\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\"200\", \"201\", \"202\", \"203\", \"204\", \"205\", \"206\", \"207\", \"208\", \"226\"];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/loadtesting/load-testing-rest/src/paginateHelper.ts"],
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError } from \"@azure-rest/core-client\";\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings = PageSettings,\n TLink = string,\n>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TLink, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n (((settings?: PageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken as unknown as TLink | undefined,\n });\n }) as unknown as (settings?: TPageSettings) => AsyncIterableIterator<TPage>),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TLink, TPageSettings>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n const firstVal = await pages.next();\n // if the result does not have an array shape, i.e. TPage = TElement, then we return it as is\n if (!Array.isArray(firstVal.value)) {\n // can extract elements from this page\n const { toElements } = pagedResult;\n if (toElements) {\n yield* toElements(firstVal.value) as TElement[];\n for await (const page of pages) {\n yield* toElements(page) as TElement[];\n }\n } else {\n yield firstVal.value;\n // `pages` is of type `AsyncIterableIterator<TPage>` but TPage = TElement in this case\n yield* pages as unknown as AsyncIterableIterator<TElement>;\n }\n } else {\n yield* firstVal.value;\n for await (const page of pages) {\n // pages is of type `AsyncIterableIterator<TPage>` so `page` is of type `TPage`. In this branch,\n // it must be the case that `TPage = TElement[]`\n yield* page as unknown as TElement[];\n }\n }\n}\n\nasync function* getPageAsyncIterator<TPage, TLink, TPageSettings>(\n pagedResult: PagedResult<TPage, TPageSettings, TLink>,\n options: {\n pageLink?: TLink;\n } = {},\n): AsyncIterableIterator<TPage> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n yield response.page;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n yield response.page;\n }\n}\n\n/**\n * An interface that tracks the settings for paged iteration\n */\nexport interface PageSettings {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\ninterface PagedResult<TPage, TPageSettings = PageSettings, TLink = string> {\n /**\n * Link to the first page of results.\n */\n firstPageLink: TLink;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink: TLink) => Promise<{ page: TPage; nextPageLink?: TLink } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => unknown[];\n}\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (pageLink: string) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends {\n body: { value?: infer TPage };\n}\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {},\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n const itemName = \"value\";\n const nextLinkName = \"nextLink\";\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\"200\", \"201\", \"202\", \"203\", \"204\", \"205\", \"206\", \"207\", \"208\", \"226\"];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"],
5
+ "mappings": "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",
6
+ "names": []
7
+ }
@@ -1,5 +1,6 @@
1
1
  import type { RequestParameters } from "@azure-rest/core-client";
2
- import type { Test, FileType, TestAppComponents, TestServerMetricsConfiguration, TestProfile, TestRun, TimeGrain, MetricRequestPayload, TestRunAppComponents, TestRunServerMetricsConfiguration, TestProfileRun, Trigger, TriggerState, NotificationRule } from "./models.js";
2
+ import type { Test, CloneTestRequest, FileType, TestAppComponents, TestServerMetricsConfiguration, TestProfile, Trigger, TriggerState, NotificationRule, TestRun, TestRunInsights, TimeGrain, MetricRequestPayload, TestRunAppComponents, TestRunServerMetricsConfiguration, TestProfileRun } from "./models.js";
3
+ export type OperationsGetStatusParameters = RequestParameters;
3
4
  /** The resource instance. */
4
5
  export type TestResourceMergeAndPatch = Partial<Test>;
5
6
  export interface LoadTestAdministrationCreateOrUpdateTestBodyParam {
@@ -36,6 +37,11 @@ export interface LoadTestAdministrationListTestsQueryParam {
36
37
  queryParameters?: LoadTestAdministrationListTestsQueryParamProperties;
37
38
  }
38
39
  export type LoadTestAdministrationListTestsParameters = LoadTestAdministrationListTestsQueryParam & RequestParameters;
40
+ export interface LoadTestAdministrationCloneTestBodyParam {
41
+ body: CloneTestRequest;
42
+ }
43
+ export type LoadTestAdministrationCloneTestParameters = LoadTestAdministrationCloneTestBodyParam & RequestParameters;
44
+ export type LoadTestAdministrationGenerateTestPlanRecommendationsParameters = RequestParameters;
39
45
  export interface LoadTestAdministrationUploadTestFileBodyParam {
40
46
  /**
41
47
  * The file content as application/octet-stream.
@@ -48,7 +54,7 @@ export interface LoadTestAdministrationUploadTestFileQueryParamProperties {
48
54
  /**
49
55
  * File type
50
56
  *
51
- * Possible values: "JMX_FILE", "USER_PROPERTIES", "ADDITIONAL_ARTIFACTS", "ZIPPED_ARTIFACTS", "URL_TEST_CONFIG", "TEST_SCRIPT"
57
+ * Possible values: "JMX_FILE", "USER_PROPERTIES", "ADDITIONAL_ARTIFACTS", "ZIPPED_ARTIFACTS", "URL_TEST_CONFIG", "TEST_SCRIPT", "BROWSER_RECORDING", "TEST_PLAN_RECOMMENDATIONS"
52
58
  */
53
59
  fileType?: FileType;
54
60
  }
@@ -134,6 +140,68 @@ export interface TestProfileAdministrationListTestProfilesQueryParam {
134
140
  queryParameters?: TestProfileAdministrationListTestProfilesQueryParamProperties;
135
141
  }
136
142
  export type TestProfileAdministrationListTestProfilesParameters = TestProfileAdministrationListTestProfilesQueryParam & RequestParameters;
143
+ export type TriggerAdministrationGetTriggerParameters = RequestParameters;
144
+ /** The resource instance. */
145
+ export type TriggerResourceMergeAndPatch = Partial<Trigger>;
146
+ export interface TriggerAdministrationCreateOrUpdateTriggerBodyParam {
147
+ /** The resource instance. */
148
+ body: TriggerResourceMergeAndPatch;
149
+ }
150
+ export interface TriggerAdministrationCreateOrUpdateTriggerMediaTypesParam {
151
+ /** This request has a JSON Merge Patch body. */
152
+ contentType: "application/merge-patch+json";
153
+ }
154
+ export type TriggerAdministrationCreateOrUpdateTriggerParameters = TriggerAdministrationCreateOrUpdateTriggerMediaTypesParam & TriggerAdministrationCreateOrUpdateTriggerBodyParam & RequestParameters;
155
+ export type TriggerAdministrationDeleteTriggerParameters = RequestParameters;
156
+ export interface TriggerAdministrationListTriggerQueryParamProperties {
157
+ /** Search based on triggers associated with the provided test ids. */
158
+ testIds?: string;
159
+ /**
160
+ * Filter triggers based on a comma separated list of states.
161
+ *
162
+ * Possible values: "Active", "Paused", "Completed", "Disabled"
163
+ */
164
+ states?: TriggerState;
165
+ /** Start DateTime(RFC 3339 literal format) of the last updated time range to filter triggers. */
166
+ lastModifiedStartTime?: Date | string;
167
+ /** End DateTime(RFC 3339 literal format) of the last updated time range to filter triggers. */
168
+ lastModifiedEndTime?: Date | string;
169
+ /** Number of results in response. Default page size is 50. */
170
+ maxpagesize?: number;
171
+ }
172
+ export interface TriggerAdministrationListTriggerQueryParam {
173
+ queryParameters?: TriggerAdministrationListTriggerQueryParamProperties;
174
+ }
175
+ export type TriggerAdministrationListTriggerParameters = TriggerAdministrationListTriggerQueryParam & RequestParameters;
176
+ export type NotificationRuleAdministrationGetNotificationRuleParameters = RequestParameters;
177
+ /** The resource instance. */
178
+ export type NotificationRuleResourceMergeAndPatch = Partial<NotificationRule>;
179
+ export interface NotificationRuleAdministrationCreateOrUpdateNotificationRuleBodyParam {
180
+ /** The resource instance. */
181
+ body: NotificationRuleResourceMergeAndPatch;
182
+ }
183
+ export interface NotificationRuleAdministrationCreateOrUpdateNotificationRuleMediaTypesParam {
184
+ /** This request has a JSON Merge Patch body. */
185
+ contentType: "application/merge-patch+json";
186
+ }
187
+ export type NotificationRuleAdministrationCreateOrUpdateNotificationRuleParameters = NotificationRuleAdministrationCreateOrUpdateNotificationRuleMediaTypesParam & NotificationRuleAdministrationCreateOrUpdateNotificationRuleBodyParam & RequestParameters;
188
+ export type NotificationRuleAdministrationDeleteNotificationRuleParameters = RequestParameters;
189
+ export interface NotificationRuleAdministrationListNotificationRuleQueryParamProperties {
190
+ /** Search based on notification rules associated with the provided test ids. */
191
+ testIds?: string;
192
+ /** Search based on notification rules for the provided scopes. */
193
+ scopes?: string;
194
+ /** Start DateTime(RFC 3339 literal format) of the last updated time range to filter notification rules. */
195
+ lastModifiedStartTime?: Date | string;
196
+ /** End DateTime(RFC 3339 literal format) of the last updated time range to filter notification rules. */
197
+ lastModifiedEndTime?: Date | string;
198
+ /** Number of results in response. Default page size is 50. */
199
+ maxpagesize?: number;
200
+ }
201
+ export interface NotificationRuleAdministrationListNotificationRuleQueryParam {
202
+ queryParameters?: NotificationRuleAdministrationListNotificationRuleQueryParamProperties;
203
+ }
204
+ export type NotificationRuleAdministrationListNotificationRuleParameters = NotificationRuleAdministrationListNotificationRuleQueryParam & RequestParameters;
137
205
  export type LoadTestRunGetTestRunParameters = RequestParameters;
138
206
  /** The resource instance. */
139
207
  export type TestRunResourceMergeAndPatch = Partial<TestRun>;
@@ -159,10 +227,28 @@ export interface LoadTestRunCreateOrUpdateTestRunMediaTypesParam {
159
227
  }
160
228
  export type LoadTestRunCreateOrUpdateTestRunParameters = LoadTestRunCreateOrUpdateTestRunQueryParam & LoadTestRunCreateOrUpdateTestRunMediaTypesParam & LoadTestRunCreateOrUpdateTestRunBodyParam & RequestParameters;
161
229
  export type LoadTestRunDeleteTestRunParameters = RequestParameters;
230
+ /** This is the wrapper object for the parameter `createdByTypes` with explode set to false and style set to form. */
231
+ export interface LoadTestRunListTestRunsCreatedByTypesQueryParam {
232
+ /** Value of the parameter */
233
+ value: string[];
234
+ /** Should we explode the value? */
235
+ explode: false;
236
+ /** Style of the value */
237
+ style: "form";
238
+ }
239
+ /** This is the wrapper object for the parameter `testIds` with explode set to false and style set to form. */
240
+ export interface LoadTestRunListTestRunsTestIdsQueryParam {
241
+ /** Value of the parameter */
242
+ value: string[];
243
+ /** Should we explode the value? */
244
+ explode: false;
245
+ /** Style of the value */
246
+ style: "form";
247
+ }
162
248
  export interface LoadTestRunListTestRunsQueryParamProperties {
163
249
  /**
164
- * Sort on the supported fields in (field asc/desc) format. eg: executedDateTime
165
- * asc. Supported fields - executedDateTime
250
+ * Sort on the supported fields in (field asc/desc) format. eg: createdDateTime asc.
251
+ * Supported fields - createdDateTime, executedDateTime (legacy)
166
252
  */
167
253
  orderby?: string;
168
254
  /**
@@ -181,6 +267,10 @@ export interface LoadTestRunListTestRunsQueryParamProperties {
181
267
  status?: string;
182
268
  /** Number of results in response. */
183
269
  maxpagesize?: number;
270
+ /** Comma separated list of type of entities that have created the test run. */
271
+ createdByTypes?: string[] | LoadTestRunListTestRunsCreatedByTypesQueryParam;
272
+ /** Comma-separated list of test IDs. If you are using testIds, do not send a value for testId. */
273
+ testIds?: string[] | LoadTestRunListTestRunsTestIdsQueryParam;
184
274
  }
185
275
  export interface LoadTestRunListTestRunsQueryParam {
186
276
  queryParameters?: LoadTestRunListTestRunsQueryParamProperties;
@@ -188,6 +278,19 @@ export interface LoadTestRunListTestRunsQueryParam {
188
278
  export type LoadTestRunListTestRunsParameters = LoadTestRunListTestRunsQueryParam & RequestParameters;
189
279
  export type LoadTestRunGetTestRunFileParameters = RequestParameters;
190
280
  export type LoadTestRunStopParameters = RequestParameters;
281
+ export type LoadTestRunGetLatestInsightsParameters = RequestParameters;
282
+ /** Test run insights model. */
283
+ export type TestRunInsightsResourceMergeAndPatch = Partial<TestRunInsights>;
284
+ export interface LoadTestRunUpdateLatestInsightsBodyParam {
285
+ /** Test run insights model. */
286
+ body: TestRunInsightsResourceMergeAndPatch;
287
+ }
288
+ export interface LoadTestRunUpdateLatestInsightsMediaTypesParam {
289
+ /** Content type. */
290
+ contentType: "application/merge-patch+json";
291
+ }
292
+ export type LoadTestRunUpdateLatestInsightsParameters = LoadTestRunUpdateLatestInsightsMediaTypesParam & LoadTestRunUpdateLatestInsightsBodyParam & RequestParameters;
293
+ export type LoadTestRunGenerateInsightsParameters = RequestParameters;
191
294
  export type LoadTestRunListMetricNamespacesParameters = RequestParameters;
192
295
  export interface LoadTestRunListMetricDefinitionsQueryParamProperties {
193
296
  /** Metric namespace to query metric definitions for. */
@@ -330,66 +433,4 @@ export interface TestProfileRunAdministrationListTestProfileRunsQueryParam {
330
433
  queryParameters?: TestProfileRunAdministrationListTestProfileRunsQueryParamProperties;
331
434
  }
332
435
  export type TestProfileRunAdministrationListTestProfileRunsParameters = TestProfileRunAdministrationListTestProfileRunsQueryParam & RequestParameters;
333
- export type TriggerAdministrationGetTriggerParameters = RequestParameters;
334
- /** The resource instance. */
335
- export type TriggerResourceMergeAndPatch = Partial<Trigger>;
336
- export interface TriggerAdministrationCreateOrUpdateTriggerBodyParam {
337
- /** The resource instance. */
338
- body: TriggerResourceMergeAndPatch;
339
- }
340
- export interface TriggerAdministrationCreateOrUpdateTriggerMediaTypesParam {
341
- /** This request has a JSON Merge Patch body. */
342
- contentType: "application/merge-patch+json";
343
- }
344
- export type TriggerAdministrationCreateOrUpdateTriggerParameters = TriggerAdministrationCreateOrUpdateTriggerMediaTypesParam & TriggerAdministrationCreateOrUpdateTriggerBodyParam & RequestParameters;
345
- export type TriggerAdministrationDeleteTriggerParameters = RequestParameters;
346
- export interface TriggerAdministrationListTriggerQueryParamProperties {
347
- /** Search based on triggers associated with the provided test ids. */
348
- testIds?: string;
349
- /**
350
- * Filter triggers based on a comma separated list of states.
351
- *
352
- * Possible values: "Active", "Paused", "Completed", "Disabled"
353
- */
354
- states?: TriggerState;
355
- /** Start DateTime(RFC 3339 literal format) of the last updated time range to filter triggers. */
356
- lastModifiedStartTime?: Date | string;
357
- /** End DateTime(RFC 3339 literal format) of the last updated time range to filter triggers. */
358
- lastModifiedEndTime?: Date | string;
359
- /** Number of results in response. Default page size is 50. */
360
- maxpagesize?: number;
361
- }
362
- export interface TriggerAdministrationListTriggerQueryParam {
363
- queryParameters?: TriggerAdministrationListTriggerQueryParamProperties;
364
- }
365
- export type TriggerAdministrationListTriggerParameters = TriggerAdministrationListTriggerQueryParam & RequestParameters;
366
- export type NotificationRuleAdministrationGetNotificationRuleParameters = RequestParameters;
367
- /** The resource instance. */
368
- export type NotificationRuleResourceMergeAndPatch = Partial<NotificationRule>;
369
- export interface NotificationRuleAdministrationCreateOrUpdateNotificationRuleBodyParam {
370
- /** The resource instance. */
371
- body: NotificationRuleResourceMergeAndPatch;
372
- }
373
- export interface NotificationRuleAdministrationCreateOrUpdateNotificationRuleMediaTypesParam {
374
- /** This request has a JSON Merge Patch body. */
375
- contentType: "application/merge-patch+json";
376
- }
377
- export type NotificationRuleAdministrationCreateOrUpdateNotificationRuleParameters = NotificationRuleAdministrationCreateOrUpdateNotificationRuleMediaTypesParam & NotificationRuleAdministrationCreateOrUpdateNotificationRuleBodyParam & RequestParameters;
378
- export type NotificationRuleAdministrationDeleteNotificationRuleParameters = RequestParameters;
379
- export interface NotificationRuleAdministrationListNotificationRuleQueryParamProperties {
380
- /** Search based on notification rules associated with the provided test ids. */
381
- testIds?: string;
382
- /** Search based on notification rules for the provided scopes. */
383
- scopes?: string;
384
- /** Start DateTime(RFC 3339 literal format) of the last updated time range to filter notification rules. */
385
- lastModifiedStartTime?: Date | string;
386
- /** End DateTime(RFC 3339 literal format) of the last updated time range to filter notification rules. */
387
- lastModifiedEndTime?: Date | string;
388
- /** Number of results in response. Default page size is 50. */
389
- maxpagesize?: number;
390
- }
391
- export interface NotificationRuleAdministrationListNotificationRuleQueryParam {
392
- queryParameters?: NotificationRuleAdministrationListNotificationRuleQueryParamProperties;
393
- }
394
- export type NotificationRuleAdministrationListNotificationRuleParameters = NotificationRuleAdministrationListNotificationRuleQueryParam & RequestParameters;
395
436
  //# sourceMappingURL=parameters.d.ts.map
@@ -1,5 +1,15 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT License.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=parameters.js.map
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var parameters_exports = {};
15
+ module.exports = __toCommonJS(parameters_exports);
@@ -1 +1,7 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../src/parameters.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RequestParameters } from \"@azure-rest/core-client\";\nimport type {\n Test,\n FileType,\n TestAppComponents,\n TestServerMetricsConfiguration,\n TestProfile,\n TestRun,\n TimeGrain,\n MetricRequestPayload,\n TestRunAppComponents,\n TestRunServerMetricsConfiguration,\n TestProfileRun,\n Trigger,\n TriggerState,\n NotificationRule,\n} from \"./models.js\";\n\n/** The resource instance. */\nexport type TestResourceMergeAndPatch = Partial<Test>;\n\nexport interface LoadTestAdministrationCreateOrUpdateTestBodyParam {\n /** The resource instance. */\n body: TestResourceMergeAndPatch;\n}\n\nexport interface LoadTestAdministrationCreateOrUpdateTestMediaTypesParam {\n /** This request has a JSON Merge Patch body. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type LoadTestAdministrationCreateOrUpdateTestParameters =\n LoadTestAdministrationCreateOrUpdateTestMediaTypesParam &\n LoadTestAdministrationCreateOrUpdateTestBodyParam &\n RequestParameters;\nexport type LoadTestAdministrationDeleteTestParameters = RequestParameters;\nexport type LoadTestAdministrationGetTestParameters = RequestParameters;\n\nexport interface LoadTestAdministrationListTestsQueryParamProperties {\n /**\n * Sort on the supported fields in (field asc/desc) format. eg:\n * lastModifiedDateTime asc. Supported fields - lastModifiedDateTime\n */\n orderby?: string;\n /**\n * Prefix based, case sensitive search on searchable fields - displayName,\n * createdBy. For example, to search for a test, with display name is Login Test,\n * the search parameter can be Login.\n */\n search?: string;\n /** Start DateTime(RFC 3339 literal format) of the last updated time range to filter tests. */\n lastModifiedStartTime?: Date | string;\n /** End DateTime(RFC 3339 literal format) of the last updated time range to filter tests. */\n lastModifiedEndTime?: Date | string;\n /** Number of results in response. */\n maxpagesize?: number;\n}\n\nexport interface LoadTestAdministrationListTestsQueryParam {\n queryParameters?: LoadTestAdministrationListTestsQueryParamProperties;\n}\n\nexport type LoadTestAdministrationListTestsParameters = LoadTestAdministrationListTestsQueryParam &\n RequestParameters;\n\nexport interface LoadTestAdministrationUploadTestFileBodyParam {\n /**\n * The file content as application/octet-stream.\n *\n * Value may contain any sequence of octets\n */\n body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;\n}\n\nexport interface LoadTestAdministrationUploadTestFileQueryParamProperties {\n /**\n * File type\n *\n * Possible values: \"JMX_FILE\", \"USER_PROPERTIES\", \"ADDITIONAL_ARTIFACTS\", \"ZIPPED_ARTIFACTS\", \"URL_TEST_CONFIG\", \"TEST_SCRIPT\"\n */\n fileType?: FileType;\n}\n\nexport interface LoadTestAdministrationUploadTestFileQueryParam {\n queryParameters?: LoadTestAdministrationUploadTestFileQueryParamProperties;\n}\n\nexport interface LoadTestAdministrationUploadTestFileMediaTypesParam {\n /** Content type. */\n contentType: \"application/octet-stream\";\n}\n\nexport type LoadTestAdministrationUploadTestFileParameters =\n LoadTestAdministrationUploadTestFileQueryParam &\n LoadTestAdministrationUploadTestFileMediaTypesParam &\n LoadTestAdministrationUploadTestFileBodyParam &\n RequestParameters;\nexport type LoadTestAdministrationGetTestFileParameters = RequestParameters;\nexport type LoadTestAdministrationDeleteTestFileParameters = RequestParameters;\nexport type LoadTestAdministrationListTestFilesParameters = RequestParameters;\n/** App Component model. */\nexport type TestAppComponentsResourceMergeAndPatch = Partial<TestAppComponents>;\n\nexport interface LoadTestAdministrationCreateOrUpdateAppComponentsBodyParam {\n /** App Component model. */\n body: TestAppComponentsResourceMergeAndPatch;\n}\n\nexport interface LoadTestAdministrationCreateOrUpdateAppComponentsMediaTypesParam {\n /** Content type. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type LoadTestAdministrationCreateOrUpdateAppComponentsParameters =\n LoadTestAdministrationCreateOrUpdateAppComponentsMediaTypesParam &\n LoadTestAdministrationCreateOrUpdateAppComponentsBodyParam &\n RequestParameters;\nexport type LoadTestAdministrationGetAppComponentsParameters = RequestParameters;\n/** Server metric configuration model. */\nexport type TestServerMetricsConfigurationResourceMergeAndPatch =\n Partial<TestServerMetricsConfiguration>;\n\nexport interface LoadTestAdministrationCreateOrUpdateServerMetricsConfigBodyParam {\n /** Server metric configuration model. */\n body: TestServerMetricsConfigurationResourceMergeAndPatch;\n}\n\nexport interface LoadTestAdministrationCreateOrUpdateServerMetricsConfigMediaTypesParam {\n /** Content type. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type LoadTestAdministrationCreateOrUpdateServerMetricsConfigParameters =\n LoadTestAdministrationCreateOrUpdateServerMetricsConfigMediaTypesParam &\n LoadTestAdministrationCreateOrUpdateServerMetricsConfigBodyParam &\n RequestParameters;\nexport type LoadTestAdministrationGetServerMetricsConfigParameters = RequestParameters;\n/** The resource instance. */\nexport type TestProfileResourceMergeAndPatch = Partial<TestProfile>;\n\nexport interface TestProfileAdministrationCreateOrUpdateTestProfileBodyParam {\n /** The resource instance. */\n body: TestProfileResourceMergeAndPatch;\n}\n\nexport interface TestProfileAdministrationCreateOrUpdateTestProfileMediaTypesParam {\n /** This request has a JSON Merge Patch body. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type TestProfileAdministrationCreateOrUpdateTestProfileParameters =\n TestProfileAdministrationCreateOrUpdateTestProfileMediaTypesParam &\n TestProfileAdministrationCreateOrUpdateTestProfileBodyParam &\n RequestParameters;\nexport type TestProfileAdministrationDeleteTestProfileParameters = RequestParameters;\nexport type TestProfileAdministrationGetTestProfileParameters = RequestParameters;\n\n/** This is the wrapper object for the parameter `testProfileIds` with explode set to false and style set to form. */\nexport interface TestProfileAdministrationListTestProfilesTestProfileIdsQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\n/** This is the wrapper object for the parameter `testIds` with explode set to false and style set to form. */\nexport interface TestProfileAdministrationListTestProfilesTestIdsQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\nexport interface TestProfileAdministrationListTestProfilesQueryParamProperties {\n /** Maximum number of results to include in a single response. */\n maxpagesize?: number;\n /** Start DateTime(RFC 3339 literal format) of the last updated time range to filter test profiles. */\n lastModifiedStartTime?: Date | string;\n /** End DateTime(RFC 3339 literal format) of the last updated time range to filter test profiles. */\n lastModifiedEndTime?: Date | string;\n /** Comma separated list of IDs of the test profiles to filter. */\n testProfileIds?: string[] | TestProfileAdministrationListTestProfilesTestProfileIdsQueryParam;\n /** Comma separated list IDs of the tests which should be associated with the test profiles to fetch. */\n testIds?: string[] | TestProfileAdministrationListTestProfilesTestIdsQueryParam;\n}\n\nexport interface TestProfileAdministrationListTestProfilesQueryParam {\n queryParameters?: TestProfileAdministrationListTestProfilesQueryParamProperties;\n}\n\nexport type TestProfileAdministrationListTestProfilesParameters =\n TestProfileAdministrationListTestProfilesQueryParam & RequestParameters;\nexport type LoadTestRunGetTestRunParameters = RequestParameters;\n/** The resource instance. */\nexport type TestRunResourceMergeAndPatch = Partial<TestRun>;\n\nexport interface LoadTestRunCreateOrUpdateTestRunBodyParam {\n /** The resource instance. */\n body: TestRunResourceMergeAndPatch;\n}\n\nexport interface LoadTestRunCreateOrUpdateTestRunQueryParamProperties {\n /**\n * Existing test run identifier that should be rerun, if this is provided, the\n * test will run with the JMX file, configuration and app components from the\n * existing test run. You can override the configuration values for new test run\n * in the request body.\n */\n oldTestRunId?: string;\n}\n\nexport interface LoadTestRunCreateOrUpdateTestRunQueryParam {\n queryParameters?: LoadTestRunCreateOrUpdateTestRunQueryParamProperties;\n}\n\nexport interface LoadTestRunCreateOrUpdateTestRunMediaTypesParam {\n /** This request has a JSON Merge Patch body. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type LoadTestRunCreateOrUpdateTestRunParameters =\n LoadTestRunCreateOrUpdateTestRunQueryParam &\n LoadTestRunCreateOrUpdateTestRunMediaTypesParam &\n LoadTestRunCreateOrUpdateTestRunBodyParam &\n RequestParameters;\nexport type LoadTestRunDeleteTestRunParameters = RequestParameters;\n\nexport interface LoadTestRunListTestRunsQueryParamProperties {\n /**\n * Sort on the supported fields in (field asc/desc) format. eg: executedDateTime\n * asc. Supported fields - executedDateTime\n */\n orderby?: string;\n /**\n * Prefix based, case sensitive search on searchable fields - description,\n * executedUser. For example, to search for a test run, with description 500 VUs,\n * the search parameter can be 500.\n */\n search?: string;\n /** Unique name of an existing load test. */\n testId?: string;\n /** Start DateTime(RFC 3339 literal format) of test-run execution time filter range. */\n executionFrom?: Date | string;\n /** End DateTime(RFC 3339 literal format) of test-run execution time filter range. */\n executionTo?: Date | string;\n /** Comma separated list of test run status. */\n status?: string;\n /** Number of results in response. */\n maxpagesize?: number;\n}\n\nexport interface LoadTestRunListTestRunsQueryParam {\n queryParameters?: LoadTestRunListTestRunsQueryParamProperties;\n}\n\nexport type LoadTestRunListTestRunsParameters = LoadTestRunListTestRunsQueryParam &\n RequestParameters;\nexport type LoadTestRunGetTestRunFileParameters = RequestParameters;\nexport type LoadTestRunStopParameters = RequestParameters;\nexport type LoadTestRunListMetricNamespacesParameters = RequestParameters;\n\nexport interface LoadTestRunListMetricDefinitionsQueryParamProperties {\n /** Metric namespace to query metric definitions for. */\n metricNamespace: string;\n}\n\nexport interface LoadTestRunListMetricDefinitionsQueryParam {\n queryParameters: LoadTestRunListMetricDefinitionsQueryParamProperties;\n}\n\nexport type LoadTestRunListMetricDefinitionsParameters =\n LoadTestRunListMetricDefinitionsQueryParam & RequestParameters;\n\nexport interface LoadTestRunListMetricsBodyParam {\n /** Metric dimension filter */\n body?: MetricRequestPayload;\n}\n\nexport interface LoadTestRunListMetricsQueryParamProperties {\n /** The aggregation */\n aggregation?: string;\n /** Metric name */\n metricname: string;\n /**\n * The interval (i.e. timegrain) of the query.\n *\n * Possible values: \"PT5S\", \"PT10S\", \"PT1M\", \"PT5M\", \"PT1H\"\n */\n interval?: TimeGrain;\n /** Metric namespace to query metric definitions for. */\n metricNamespace: string;\n /** The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. */\n timespan: string;\n}\n\nexport interface LoadTestRunListMetricsQueryParam {\n queryParameters: LoadTestRunListMetricsQueryParamProperties;\n}\n\nexport type LoadTestRunListMetricsParameters = LoadTestRunListMetricsQueryParam &\n LoadTestRunListMetricsBodyParam &\n RequestParameters;\n\nexport interface LoadTestRunListMetricDimensionValuesQueryParamProperties {\n /** Metric name */\n metricname: string;\n /**\n * The interval (i.e. timegrain) of the query.\n *\n * Possible values: \"PT5S\", \"PT10S\", \"PT1M\", \"PT5M\", \"PT1H\"\n */\n interval?: TimeGrain;\n /** Metric namespace to query metric definitions for. */\n metricNamespace: string;\n /** The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. */\n timespan: string;\n}\n\nexport interface LoadTestRunListMetricDimensionValuesQueryParam {\n queryParameters: LoadTestRunListMetricDimensionValuesQueryParamProperties;\n}\n\nexport type LoadTestRunListMetricDimensionValuesParameters =\n LoadTestRunListMetricDimensionValuesQueryParam & RequestParameters;\n/** App Component model. */\nexport type TestRunAppComponentsResourceMergeAndPatch = Partial<TestRunAppComponents>;\n\nexport interface LoadTestRunCreateOrUpdateAppComponentsBodyParam {\n /** App Component model. */\n body: TestRunAppComponentsResourceMergeAndPatch;\n}\n\nexport interface LoadTestRunCreateOrUpdateAppComponentsMediaTypesParam {\n /** Content type. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type LoadTestRunCreateOrUpdateAppComponentsParameters =\n LoadTestRunCreateOrUpdateAppComponentsMediaTypesParam &\n LoadTestRunCreateOrUpdateAppComponentsBodyParam &\n RequestParameters;\nexport type LoadTestRunGetAppComponentsParameters = RequestParameters;\n/** Server metric configuration model. */\nexport type TestRunServerMetricsConfigurationResourceMergeAndPatch =\n Partial<TestRunServerMetricsConfiguration>;\n\nexport interface LoadTestRunCreateOrUpdateServerMetricsConfigBodyParam {\n /** Server metric configuration model. */\n body: TestRunServerMetricsConfigurationResourceMergeAndPatch;\n}\n\nexport interface LoadTestRunCreateOrUpdateServerMetricsConfigMediaTypesParam {\n /** Content type. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type LoadTestRunCreateOrUpdateServerMetricsConfigParameters =\n LoadTestRunCreateOrUpdateServerMetricsConfigMediaTypesParam &\n LoadTestRunCreateOrUpdateServerMetricsConfigBodyParam &\n RequestParameters;\nexport type LoadTestRunGetServerMetricsConfigParameters = RequestParameters;\nexport type TestProfileRunAdministrationGetTestProfileRunParameters = RequestParameters;\n/** The resource instance. */\nexport type TestProfileRunResourceMergeAndPatch = Partial<TestProfileRun>;\n\nexport interface TestProfileRunAdministrationCreateOrUpdateTestProfileRunBodyParam {\n /** The resource instance. */\n body: TestProfileRunResourceMergeAndPatch;\n}\n\nexport interface TestProfileRunAdministrationCreateOrUpdateTestProfileRunMediaTypesParam {\n /** This request has a JSON Merge Patch body. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type TestProfileRunAdministrationCreateOrUpdateTestProfileRunParameters =\n TestProfileRunAdministrationCreateOrUpdateTestProfileRunMediaTypesParam &\n TestProfileRunAdministrationCreateOrUpdateTestProfileRunBodyParam &\n RequestParameters;\nexport type TestProfileRunAdministrationDeleteTestProfileRunParameters = RequestParameters;\nexport type TestProfileRunAdministrationStopParameters = RequestParameters;\n\n/** This is the wrapper object for the parameter `testProfileRunIds` with explode set to false and style set to form. */\nexport interface TestProfileRunAdministrationListTestProfileRunsTestProfileRunIdsQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\n/** This is the wrapper object for the parameter `testProfileIds` with explode set to false and style set to form. */\nexport interface TestProfileRunAdministrationListTestProfileRunsTestProfileIdsQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\n/** This is the wrapper object for the parameter `statuses` with explode set to false and style set to form. */\nexport interface TestProfileRunAdministrationListTestProfileRunsStatusesQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\nexport interface TestProfileRunAdministrationListTestProfileRunsQueryParamProperties {\n /** Maximum number of results to include in a single response. */\n maxpagesize?: number;\n /** Minimum Start DateTime(RFC 3339 literal format) of the test profile runs to filter on. */\n minStartDateTime?: Date | string;\n /** Maximum Start DateTime(RFC 3339 literal format) of the test profile runs to filter on. */\n maxStartDateTime?: Date | string;\n /** Minimum End DateTime(RFC 3339 literal format) of the test profile runs to filter on. */\n minEndDateTime?: Date | string;\n /** Maximum End DateTime(RFC 3339 literal format) of the test profile runs to filter on. */\n maxEndDateTime?: Date | string;\n /** Start DateTime(RFC 3339 literal format) of the created time range to filter test profile runs. */\n createdDateStartTime?: Date | string;\n /** End DateTime(RFC 3339 literal format) of the created time range to filter test profile runs. */\n createdDateEndTime?: Date | string;\n /** Comma separated list of IDs of the test profile runs to filter. */\n testProfileRunIds?:\n | string[]\n | TestProfileRunAdministrationListTestProfileRunsTestProfileRunIdsQueryParam;\n /** Comma separated IDs of the test profiles which should be associated with the test profile runs to fetch. */\n testProfileIds?:\n | string[]\n | TestProfileRunAdministrationListTestProfileRunsTestProfileIdsQueryParam;\n /** Comma separated list of Statuses of the test profile runs to filter. */\n statuses?: string[] | TestProfileRunAdministrationListTestProfileRunsStatusesQueryParam;\n}\n\nexport interface TestProfileRunAdministrationListTestProfileRunsQueryParam {\n queryParameters?: TestProfileRunAdministrationListTestProfileRunsQueryParamProperties;\n}\n\nexport type TestProfileRunAdministrationListTestProfileRunsParameters =\n TestProfileRunAdministrationListTestProfileRunsQueryParam & RequestParameters;\nexport type TriggerAdministrationGetTriggerParameters = RequestParameters;\n/** The resource instance. */\nexport type TriggerResourceMergeAndPatch = Partial<Trigger>;\n\nexport interface TriggerAdministrationCreateOrUpdateTriggerBodyParam {\n /** The resource instance. */\n body: TriggerResourceMergeAndPatch;\n}\n\nexport interface TriggerAdministrationCreateOrUpdateTriggerMediaTypesParam {\n /** This request has a JSON Merge Patch body. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type TriggerAdministrationCreateOrUpdateTriggerParameters =\n TriggerAdministrationCreateOrUpdateTriggerMediaTypesParam &\n TriggerAdministrationCreateOrUpdateTriggerBodyParam &\n RequestParameters;\nexport type TriggerAdministrationDeleteTriggerParameters = RequestParameters;\n\nexport interface TriggerAdministrationListTriggerQueryParamProperties {\n /** Search based on triggers associated with the provided test ids. */\n testIds?: string;\n /**\n * Filter triggers based on a comma separated list of states.\n *\n * Possible values: \"Active\", \"Paused\", \"Completed\", \"Disabled\"\n */\n states?: TriggerState;\n /** Start DateTime(RFC 3339 literal format) of the last updated time range to filter triggers. */\n lastModifiedStartTime?: Date | string;\n /** End DateTime(RFC 3339 literal format) of the last updated time range to filter triggers. */\n lastModifiedEndTime?: Date | string;\n /** Number of results in response. Default page size is 50. */\n maxpagesize?: number;\n}\n\nexport interface TriggerAdministrationListTriggerQueryParam {\n queryParameters?: TriggerAdministrationListTriggerQueryParamProperties;\n}\n\nexport type TriggerAdministrationListTriggerParameters =\n TriggerAdministrationListTriggerQueryParam & RequestParameters;\nexport type NotificationRuleAdministrationGetNotificationRuleParameters = RequestParameters;\n/** The resource instance. */\nexport type NotificationRuleResourceMergeAndPatch = Partial<NotificationRule>;\n\nexport interface NotificationRuleAdministrationCreateOrUpdateNotificationRuleBodyParam {\n /** The resource instance. */\n body: NotificationRuleResourceMergeAndPatch;\n}\n\nexport interface NotificationRuleAdministrationCreateOrUpdateNotificationRuleMediaTypesParam {\n /** This request has a JSON Merge Patch body. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type NotificationRuleAdministrationCreateOrUpdateNotificationRuleParameters =\n NotificationRuleAdministrationCreateOrUpdateNotificationRuleMediaTypesParam &\n NotificationRuleAdministrationCreateOrUpdateNotificationRuleBodyParam &\n RequestParameters;\nexport type NotificationRuleAdministrationDeleteNotificationRuleParameters = RequestParameters;\n\nexport interface NotificationRuleAdministrationListNotificationRuleQueryParamProperties {\n /** Search based on notification rules associated with the provided test ids. */\n testIds?: string;\n /** Search based on notification rules for the provided scopes. */\n scopes?: string;\n /** Start DateTime(RFC 3339 literal format) of the last updated time range to filter notification rules. */\n lastModifiedStartTime?: Date | string;\n /** End DateTime(RFC 3339 literal format) of the last updated time range to filter notification rules. */\n lastModifiedEndTime?: Date | string;\n /** Number of results in response. Default page size is 50. */\n maxpagesize?: number;\n}\n\nexport interface NotificationRuleAdministrationListNotificationRuleQueryParam {\n queryParameters?: NotificationRuleAdministrationListNotificationRuleQueryParamProperties;\n}\n\nexport type NotificationRuleAdministrationListNotificationRuleParameters =\n NotificationRuleAdministrationListNotificationRuleQueryParam & RequestParameters;\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["/mnt/vss/_work/1/s/sdk/loadtesting/load-testing-rest/src/parameters.ts"],
4
+ "sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RequestParameters } from \"@azure-rest/core-client\";\nimport type {\n Test,\n CloneTestRequest,\n FileType,\n TestAppComponents,\n TestServerMetricsConfiguration,\n TestProfile,\n Trigger,\n TriggerState,\n NotificationRule,\n TestRun,\n TestRunInsights,\n TimeGrain,\n MetricRequestPayload,\n TestRunAppComponents,\n TestRunServerMetricsConfiguration,\n TestProfileRun,\n} from \"./models.js\";\n\nexport type OperationsGetStatusParameters = RequestParameters;\n/** The resource instance. */\nexport type TestResourceMergeAndPatch = Partial<Test>;\n\nexport interface LoadTestAdministrationCreateOrUpdateTestBodyParam {\n /** The resource instance. */\n body: TestResourceMergeAndPatch;\n}\n\nexport interface LoadTestAdministrationCreateOrUpdateTestMediaTypesParam {\n /** This request has a JSON Merge Patch body. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type LoadTestAdministrationCreateOrUpdateTestParameters =\n LoadTestAdministrationCreateOrUpdateTestMediaTypesParam &\n LoadTestAdministrationCreateOrUpdateTestBodyParam &\n RequestParameters;\nexport type LoadTestAdministrationDeleteTestParameters = RequestParameters;\nexport type LoadTestAdministrationGetTestParameters = RequestParameters;\n\nexport interface LoadTestAdministrationListTestsQueryParamProperties {\n /**\n * Sort on the supported fields in (field asc/desc) format. eg:\n * lastModifiedDateTime asc. Supported fields - lastModifiedDateTime\n */\n orderby?: string;\n /**\n * Prefix based, case sensitive search on searchable fields - displayName,\n * createdBy. For example, to search for a test, with display name is Login Test,\n * the search parameter can be Login.\n */\n search?: string;\n /** Start DateTime(RFC 3339 literal format) of the last updated time range to filter tests. */\n lastModifiedStartTime?: Date | string;\n /** End DateTime(RFC 3339 literal format) of the last updated time range to filter tests. */\n lastModifiedEndTime?: Date | string;\n /** Number of results in response. */\n maxpagesize?: number;\n}\n\nexport interface LoadTestAdministrationListTestsQueryParam {\n queryParameters?: LoadTestAdministrationListTestsQueryParamProperties;\n}\n\nexport type LoadTestAdministrationListTestsParameters = LoadTestAdministrationListTestsQueryParam &\n RequestParameters;\n\nexport interface LoadTestAdministrationCloneTestBodyParam {\n body: CloneTestRequest;\n}\n\nexport type LoadTestAdministrationCloneTestParameters = LoadTestAdministrationCloneTestBodyParam &\n RequestParameters;\nexport type LoadTestAdministrationGenerateTestPlanRecommendationsParameters = RequestParameters;\n\nexport interface LoadTestAdministrationUploadTestFileBodyParam {\n /**\n * The file content as application/octet-stream.\n *\n * Value may contain any sequence of octets\n */\n body: string | Uint8Array | ReadableStream<Uint8Array> | NodeJS.ReadableStream;\n}\n\nexport interface LoadTestAdministrationUploadTestFileQueryParamProperties {\n /**\n * File type\n *\n * Possible values: \"JMX_FILE\", \"USER_PROPERTIES\", \"ADDITIONAL_ARTIFACTS\", \"ZIPPED_ARTIFACTS\", \"URL_TEST_CONFIG\", \"TEST_SCRIPT\", \"BROWSER_RECORDING\", \"TEST_PLAN_RECOMMENDATIONS\"\n */\n fileType?: FileType;\n}\n\nexport interface LoadTestAdministrationUploadTestFileQueryParam {\n queryParameters?: LoadTestAdministrationUploadTestFileQueryParamProperties;\n}\n\nexport interface LoadTestAdministrationUploadTestFileMediaTypesParam {\n /** Content type. */\n contentType: \"application/octet-stream\";\n}\n\nexport type LoadTestAdministrationUploadTestFileParameters =\n LoadTestAdministrationUploadTestFileQueryParam &\n LoadTestAdministrationUploadTestFileMediaTypesParam &\n LoadTestAdministrationUploadTestFileBodyParam &\n RequestParameters;\nexport type LoadTestAdministrationGetTestFileParameters = RequestParameters;\nexport type LoadTestAdministrationDeleteTestFileParameters = RequestParameters;\nexport type LoadTestAdministrationListTestFilesParameters = RequestParameters;\n/** App Component model. */\nexport type TestAppComponentsResourceMergeAndPatch = Partial<TestAppComponents>;\n\nexport interface LoadTestAdministrationCreateOrUpdateAppComponentsBodyParam {\n /** App Component model. */\n body: TestAppComponentsResourceMergeAndPatch;\n}\n\nexport interface LoadTestAdministrationCreateOrUpdateAppComponentsMediaTypesParam {\n /** Content type. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type LoadTestAdministrationCreateOrUpdateAppComponentsParameters =\n LoadTestAdministrationCreateOrUpdateAppComponentsMediaTypesParam &\n LoadTestAdministrationCreateOrUpdateAppComponentsBodyParam &\n RequestParameters;\nexport type LoadTestAdministrationGetAppComponentsParameters = RequestParameters;\n/** Server metric configuration model. */\nexport type TestServerMetricsConfigurationResourceMergeAndPatch =\n Partial<TestServerMetricsConfiguration>;\n\nexport interface LoadTestAdministrationCreateOrUpdateServerMetricsConfigBodyParam {\n /** Server metric configuration model. */\n body: TestServerMetricsConfigurationResourceMergeAndPatch;\n}\n\nexport interface LoadTestAdministrationCreateOrUpdateServerMetricsConfigMediaTypesParam {\n /** Content type. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type LoadTestAdministrationCreateOrUpdateServerMetricsConfigParameters =\n LoadTestAdministrationCreateOrUpdateServerMetricsConfigMediaTypesParam &\n LoadTestAdministrationCreateOrUpdateServerMetricsConfigBodyParam &\n RequestParameters;\nexport type LoadTestAdministrationGetServerMetricsConfigParameters = RequestParameters;\n/** The resource instance. */\nexport type TestProfileResourceMergeAndPatch = Partial<TestProfile>;\n\nexport interface TestProfileAdministrationCreateOrUpdateTestProfileBodyParam {\n /** The resource instance. */\n body: TestProfileResourceMergeAndPatch;\n}\n\nexport interface TestProfileAdministrationCreateOrUpdateTestProfileMediaTypesParam {\n /** This request has a JSON Merge Patch body. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type TestProfileAdministrationCreateOrUpdateTestProfileParameters =\n TestProfileAdministrationCreateOrUpdateTestProfileMediaTypesParam &\n TestProfileAdministrationCreateOrUpdateTestProfileBodyParam &\n RequestParameters;\nexport type TestProfileAdministrationDeleteTestProfileParameters = RequestParameters;\nexport type TestProfileAdministrationGetTestProfileParameters = RequestParameters;\n\n/** This is the wrapper object for the parameter `testProfileIds` with explode set to false and style set to form. */\nexport interface TestProfileAdministrationListTestProfilesTestProfileIdsQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\n/** This is the wrapper object for the parameter `testIds` with explode set to false and style set to form. */\nexport interface TestProfileAdministrationListTestProfilesTestIdsQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\nexport interface TestProfileAdministrationListTestProfilesQueryParamProperties {\n /** Maximum number of results to include in a single response. */\n maxpagesize?: number;\n /** Start DateTime(RFC 3339 literal format) of the last updated time range to filter test profiles. */\n lastModifiedStartTime?: Date | string;\n /** End DateTime(RFC 3339 literal format) of the last updated time range to filter test profiles. */\n lastModifiedEndTime?: Date | string;\n /** Comma separated list of IDs of the test profiles to filter. */\n testProfileIds?: string[] | TestProfileAdministrationListTestProfilesTestProfileIdsQueryParam;\n /** Comma separated list IDs of the tests which should be associated with the test profiles to fetch. */\n testIds?: string[] | TestProfileAdministrationListTestProfilesTestIdsQueryParam;\n}\n\nexport interface TestProfileAdministrationListTestProfilesQueryParam {\n queryParameters?: TestProfileAdministrationListTestProfilesQueryParamProperties;\n}\n\nexport type TestProfileAdministrationListTestProfilesParameters =\n TestProfileAdministrationListTestProfilesQueryParam & RequestParameters;\nexport type TriggerAdministrationGetTriggerParameters = RequestParameters;\n/** The resource instance. */\nexport type TriggerResourceMergeAndPatch = Partial<Trigger>;\n\nexport interface TriggerAdministrationCreateOrUpdateTriggerBodyParam {\n /** The resource instance. */\n body: TriggerResourceMergeAndPatch;\n}\n\nexport interface TriggerAdministrationCreateOrUpdateTriggerMediaTypesParam {\n /** This request has a JSON Merge Patch body. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type TriggerAdministrationCreateOrUpdateTriggerParameters =\n TriggerAdministrationCreateOrUpdateTriggerMediaTypesParam &\n TriggerAdministrationCreateOrUpdateTriggerBodyParam &\n RequestParameters;\nexport type TriggerAdministrationDeleteTriggerParameters = RequestParameters;\n\nexport interface TriggerAdministrationListTriggerQueryParamProperties {\n /** Search based on triggers associated with the provided test ids. */\n testIds?: string;\n /**\n * Filter triggers based on a comma separated list of states.\n *\n * Possible values: \"Active\", \"Paused\", \"Completed\", \"Disabled\"\n */\n states?: TriggerState;\n /** Start DateTime(RFC 3339 literal format) of the last updated time range to filter triggers. */\n lastModifiedStartTime?: Date | string;\n /** End DateTime(RFC 3339 literal format) of the last updated time range to filter triggers. */\n lastModifiedEndTime?: Date | string;\n /** Number of results in response. Default page size is 50. */\n maxpagesize?: number;\n}\n\nexport interface TriggerAdministrationListTriggerQueryParam {\n queryParameters?: TriggerAdministrationListTriggerQueryParamProperties;\n}\n\nexport type TriggerAdministrationListTriggerParameters =\n TriggerAdministrationListTriggerQueryParam & RequestParameters;\nexport type NotificationRuleAdministrationGetNotificationRuleParameters = RequestParameters;\n/** The resource instance. */\nexport type NotificationRuleResourceMergeAndPatch = Partial<NotificationRule>;\n\nexport interface NotificationRuleAdministrationCreateOrUpdateNotificationRuleBodyParam {\n /** The resource instance. */\n body: NotificationRuleResourceMergeAndPatch;\n}\n\nexport interface NotificationRuleAdministrationCreateOrUpdateNotificationRuleMediaTypesParam {\n /** This request has a JSON Merge Patch body. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type NotificationRuleAdministrationCreateOrUpdateNotificationRuleParameters =\n NotificationRuleAdministrationCreateOrUpdateNotificationRuleMediaTypesParam &\n NotificationRuleAdministrationCreateOrUpdateNotificationRuleBodyParam &\n RequestParameters;\nexport type NotificationRuleAdministrationDeleteNotificationRuleParameters = RequestParameters;\n\nexport interface NotificationRuleAdministrationListNotificationRuleQueryParamProperties {\n /** Search based on notification rules associated with the provided test ids. */\n testIds?: string;\n /** Search based on notification rules for the provided scopes. */\n scopes?: string;\n /** Start DateTime(RFC 3339 literal format) of the last updated time range to filter notification rules. */\n lastModifiedStartTime?: Date | string;\n /** End DateTime(RFC 3339 literal format) of the last updated time range to filter notification rules. */\n lastModifiedEndTime?: Date | string;\n /** Number of results in response. Default page size is 50. */\n maxpagesize?: number;\n}\n\nexport interface NotificationRuleAdministrationListNotificationRuleQueryParam {\n queryParameters?: NotificationRuleAdministrationListNotificationRuleQueryParamProperties;\n}\n\nexport type NotificationRuleAdministrationListNotificationRuleParameters =\n NotificationRuleAdministrationListNotificationRuleQueryParam & RequestParameters;\nexport type LoadTestRunGetTestRunParameters = RequestParameters;\n/** The resource instance. */\nexport type TestRunResourceMergeAndPatch = Partial<TestRun>;\n\nexport interface LoadTestRunCreateOrUpdateTestRunBodyParam {\n /** The resource instance. */\n body: TestRunResourceMergeAndPatch;\n}\n\nexport interface LoadTestRunCreateOrUpdateTestRunQueryParamProperties {\n /**\n * Existing test run identifier that should be rerun, if this is provided, the\n * test will run with the JMX file, configuration and app components from the\n * existing test run. You can override the configuration values for new test run\n * in the request body.\n */\n oldTestRunId?: string;\n}\n\nexport interface LoadTestRunCreateOrUpdateTestRunQueryParam {\n queryParameters?: LoadTestRunCreateOrUpdateTestRunQueryParamProperties;\n}\n\nexport interface LoadTestRunCreateOrUpdateTestRunMediaTypesParam {\n /** This request has a JSON Merge Patch body. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type LoadTestRunCreateOrUpdateTestRunParameters =\n LoadTestRunCreateOrUpdateTestRunQueryParam &\n LoadTestRunCreateOrUpdateTestRunMediaTypesParam &\n LoadTestRunCreateOrUpdateTestRunBodyParam &\n RequestParameters;\nexport type LoadTestRunDeleteTestRunParameters = RequestParameters;\n\n/** This is the wrapper object for the parameter `createdByTypes` with explode set to false and style set to form. */\nexport interface LoadTestRunListTestRunsCreatedByTypesQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\n/** This is the wrapper object for the parameter `testIds` with explode set to false and style set to form. */\nexport interface LoadTestRunListTestRunsTestIdsQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\nexport interface LoadTestRunListTestRunsQueryParamProperties {\n /**\n * Sort on the supported fields in (field asc/desc) format. eg: createdDateTime asc.\n * Supported fields - createdDateTime, executedDateTime (legacy)\n */\n orderby?: string;\n /**\n * Prefix based, case sensitive search on searchable fields - description,\n * executedUser. For example, to search for a test run, with description 500 VUs,\n * the search parameter can be 500.\n */\n search?: string;\n /** Unique name of an existing load test. */\n testId?: string;\n /** Start DateTime(RFC 3339 literal format) of test-run execution time filter range. */\n executionFrom?: Date | string;\n /** End DateTime(RFC 3339 literal format) of test-run execution time filter range. */\n executionTo?: Date | string;\n /** Comma separated list of test run status. */\n status?: string;\n /** Number of results in response. */\n maxpagesize?: number;\n /** Comma separated list of type of entities that have created the test run. */\n createdByTypes?: string[] | LoadTestRunListTestRunsCreatedByTypesQueryParam;\n /** Comma-separated list of test IDs. If you are using testIds, do not send a value for testId. */\n testIds?: string[] | LoadTestRunListTestRunsTestIdsQueryParam;\n}\n\nexport interface LoadTestRunListTestRunsQueryParam {\n queryParameters?: LoadTestRunListTestRunsQueryParamProperties;\n}\n\nexport type LoadTestRunListTestRunsParameters = LoadTestRunListTestRunsQueryParam &\n RequestParameters;\nexport type LoadTestRunGetTestRunFileParameters = RequestParameters;\nexport type LoadTestRunStopParameters = RequestParameters;\nexport type LoadTestRunGetLatestInsightsParameters = RequestParameters;\n/** Test run insights model. */\nexport type TestRunInsightsResourceMergeAndPatch = Partial<TestRunInsights>;\n\nexport interface LoadTestRunUpdateLatestInsightsBodyParam {\n /** Test run insights model. */\n body: TestRunInsightsResourceMergeAndPatch;\n}\n\nexport interface LoadTestRunUpdateLatestInsightsMediaTypesParam {\n /** Content type. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type LoadTestRunUpdateLatestInsightsParameters =\n LoadTestRunUpdateLatestInsightsMediaTypesParam &\n LoadTestRunUpdateLatestInsightsBodyParam &\n RequestParameters;\nexport type LoadTestRunGenerateInsightsParameters = RequestParameters;\nexport type LoadTestRunListMetricNamespacesParameters = RequestParameters;\n\nexport interface LoadTestRunListMetricDefinitionsQueryParamProperties {\n /** Metric namespace to query metric definitions for. */\n metricNamespace: string;\n}\n\nexport interface LoadTestRunListMetricDefinitionsQueryParam {\n queryParameters: LoadTestRunListMetricDefinitionsQueryParamProperties;\n}\n\nexport type LoadTestRunListMetricDefinitionsParameters =\n LoadTestRunListMetricDefinitionsQueryParam & RequestParameters;\n\nexport interface LoadTestRunListMetricsBodyParam {\n /** Metric dimension filter */\n body?: MetricRequestPayload;\n}\n\nexport interface LoadTestRunListMetricsQueryParamProperties {\n /** The aggregation */\n aggregation?: string;\n /** Metric name */\n metricname: string;\n /**\n * The interval (i.e. timegrain) of the query.\n *\n * Possible values: \"PT5S\", \"PT10S\", \"PT1M\", \"PT5M\", \"PT1H\"\n */\n interval?: TimeGrain;\n /** Metric namespace to query metric definitions for. */\n metricNamespace: string;\n /** The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. */\n timespan: string;\n}\n\nexport interface LoadTestRunListMetricsQueryParam {\n queryParameters: LoadTestRunListMetricsQueryParamProperties;\n}\n\nexport type LoadTestRunListMetricsParameters = LoadTestRunListMetricsQueryParam &\n LoadTestRunListMetricsBodyParam &\n RequestParameters;\n\nexport interface LoadTestRunListMetricDimensionValuesQueryParamProperties {\n /** Metric name */\n metricname: string;\n /**\n * The interval (i.e. timegrain) of the query.\n *\n * Possible values: \"PT5S\", \"PT10S\", \"PT1M\", \"PT5M\", \"PT1H\"\n */\n interval?: TimeGrain;\n /** Metric namespace to query metric definitions for. */\n metricNamespace: string;\n /** The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. */\n timespan: string;\n}\n\nexport interface LoadTestRunListMetricDimensionValuesQueryParam {\n queryParameters: LoadTestRunListMetricDimensionValuesQueryParamProperties;\n}\n\nexport type LoadTestRunListMetricDimensionValuesParameters =\n LoadTestRunListMetricDimensionValuesQueryParam & RequestParameters;\n/** App Component model. */\nexport type TestRunAppComponentsResourceMergeAndPatch = Partial<TestRunAppComponents>;\n\nexport interface LoadTestRunCreateOrUpdateAppComponentsBodyParam {\n /** App Component model. */\n body: TestRunAppComponentsResourceMergeAndPatch;\n}\n\nexport interface LoadTestRunCreateOrUpdateAppComponentsMediaTypesParam {\n /** Content type. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type LoadTestRunCreateOrUpdateAppComponentsParameters =\n LoadTestRunCreateOrUpdateAppComponentsMediaTypesParam &\n LoadTestRunCreateOrUpdateAppComponentsBodyParam &\n RequestParameters;\nexport type LoadTestRunGetAppComponentsParameters = RequestParameters;\n/** Server metric configuration model. */\nexport type TestRunServerMetricsConfigurationResourceMergeAndPatch =\n Partial<TestRunServerMetricsConfiguration>;\n\nexport interface LoadTestRunCreateOrUpdateServerMetricsConfigBodyParam {\n /** Server metric configuration model. */\n body: TestRunServerMetricsConfigurationResourceMergeAndPatch;\n}\n\nexport interface LoadTestRunCreateOrUpdateServerMetricsConfigMediaTypesParam {\n /** Content type. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type LoadTestRunCreateOrUpdateServerMetricsConfigParameters =\n LoadTestRunCreateOrUpdateServerMetricsConfigMediaTypesParam &\n LoadTestRunCreateOrUpdateServerMetricsConfigBodyParam &\n RequestParameters;\nexport type LoadTestRunGetServerMetricsConfigParameters = RequestParameters;\nexport type TestProfileRunAdministrationGetTestProfileRunParameters = RequestParameters;\n/** The resource instance. */\nexport type TestProfileRunResourceMergeAndPatch = Partial<TestProfileRun>;\n\nexport interface TestProfileRunAdministrationCreateOrUpdateTestProfileRunBodyParam {\n /** The resource instance. */\n body: TestProfileRunResourceMergeAndPatch;\n}\n\nexport interface TestProfileRunAdministrationCreateOrUpdateTestProfileRunMediaTypesParam {\n /** This request has a JSON Merge Patch body. */\n contentType: \"application/merge-patch+json\";\n}\n\nexport type TestProfileRunAdministrationCreateOrUpdateTestProfileRunParameters =\n TestProfileRunAdministrationCreateOrUpdateTestProfileRunMediaTypesParam &\n TestProfileRunAdministrationCreateOrUpdateTestProfileRunBodyParam &\n RequestParameters;\nexport type TestProfileRunAdministrationDeleteTestProfileRunParameters = RequestParameters;\nexport type TestProfileRunAdministrationStopParameters = RequestParameters;\n\n/** This is the wrapper object for the parameter `testProfileRunIds` with explode set to false and style set to form. */\nexport interface TestProfileRunAdministrationListTestProfileRunsTestProfileRunIdsQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\n/** This is the wrapper object for the parameter `testProfileIds` with explode set to false and style set to form. */\nexport interface TestProfileRunAdministrationListTestProfileRunsTestProfileIdsQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\n/** This is the wrapper object for the parameter `statuses` with explode set to false and style set to form. */\nexport interface TestProfileRunAdministrationListTestProfileRunsStatusesQueryParam {\n /** Value of the parameter */\n value: string[];\n /** Should we explode the value? */\n explode: false;\n /** Style of the value */\n style: \"form\";\n}\n\nexport interface TestProfileRunAdministrationListTestProfileRunsQueryParamProperties {\n /** Maximum number of results to include in a single response. */\n maxpagesize?: number;\n /** Minimum Start DateTime(RFC 3339 literal format) of the test profile runs to filter on. */\n minStartDateTime?: Date | string;\n /** Maximum Start DateTime(RFC 3339 literal format) of the test profile runs to filter on. */\n maxStartDateTime?: Date | string;\n /** Minimum End DateTime(RFC 3339 literal format) of the test profile runs to filter on. */\n minEndDateTime?: Date | string;\n /** Maximum End DateTime(RFC 3339 literal format) of the test profile runs to filter on. */\n maxEndDateTime?: Date | string;\n /** Start DateTime(RFC 3339 literal format) of the created time range to filter test profile runs. */\n createdDateStartTime?: Date | string;\n /** End DateTime(RFC 3339 literal format) of the created time range to filter test profile runs. */\n createdDateEndTime?: Date | string;\n /** Comma separated list of IDs of the test profile runs to filter. */\n testProfileRunIds?:\n | string[]\n | TestProfileRunAdministrationListTestProfileRunsTestProfileRunIdsQueryParam;\n /** Comma separated IDs of the test profiles which should be associated with the test profile runs to fetch. */\n testProfileIds?:\n | string[]\n | TestProfileRunAdministrationListTestProfileRunsTestProfileIdsQueryParam;\n /** Comma separated list of Statuses of the test profile runs to filter. */\n statuses?: string[] | TestProfileRunAdministrationListTestProfileRunsStatusesQueryParam;\n}\n\nexport interface TestProfileRunAdministrationListTestProfileRunsQueryParam {\n queryParameters?: TestProfileRunAdministrationListTestProfileRunsQueryParamProperties;\n}\n\nexport type TestProfileRunAdministrationListTestProfileRunsParameters =\n TestProfileRunAdministrationListTestProfileRunsQueryParam & RequestParameters;\n"],
5
+ "mappings": ";;;;;;;;;;;;;AAAA;AAAA;",
6
+ "names": []
7
+ }
@@ -1,6 +1,84 @@
1
+ import type { Client } from "@azure-rest/core-client";
2
+ import type { AbortSignalLike } from "@azure/abort-controller";
3
+ import type { CancelOnProgress, CreateHttpPollerOptions, OperationState } from "@azure/core-lro";
1
4
  import type { AzureLoadTestingClient } from "./clientDefinitions.js";
2
- import type { FileUploadAndValidatePoller, TestUploadFileSuccessResponse, TestRunCompletionPoller, TestRunCreateOrUpdateSuccessResponse, TestProfileRunCreateOrUpdateSuccessResponse, TestProfileRunCompletionPoller } from "./models.js";
3
- export declare function getLongRunningPoller(client: AzureLoadTestingClient, initialResponse: TestUploadFileSuccessResponse): Promise<FileUploadAndValidatePoller>;
4
- export declare function getLongRunningPoller(client: AzureLoadTestingClient, initialResponse: TestRunCreateOrUpdateSuccessResponse): Promise<TestRunCompletionPoller>;
5
- export declare function getLongRunningPoller(client: AzureLoadTestingClient, initialResponse: TestProfileRunCreateOrUpdateSuccessResponse): Promise<TestProfileRunCompletionPoller>;
5
+ import type { LoadTestAdministrationCloneTest202Response, LoadTestAdministrationCloneTestDefaultResponse, LoadTestAdministrationCloneTestLogicalResponse, LoadTestAdministrationGenerateTestPlanRecommendations202Response, LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse, LoadTestAdministrationGenerateTestPlanRecommendationsLogicalResponse, LoadTestRunGenerateInsights202Response, LoadTestRunGenerateInsightsDefaultResponse, LoadTestRunGenerateInsightsLogicalResponse } from "./responses.js";
6
+ import type { FileUploadAndValidatePoller, TestUploadFileSuccessResponse, TestRunCompletionPoller, TestRunCreateOrUpdateSuccessResponse, TestProfileRunCreateOrUpdateSuccessResponse, TestProfileRunCompletionPoller, PolledOperationOptions } from "./models.js";
7
+ /**
8
+ * A simple poller that can be used to poll a long running operation.
9
+ */
10
+ export interface SimplePollerLike<TState extends OperationState<TResult>, TResult> {
11
+ /**
12
+ * Returns true if the poller has finished polling.
13
+ */
14
+ isDone(): boolean;
15
+ /**
16
+ * Returns the state of the operation.
17
+ */
18
+ getOperationState(): TState;
19
+ /**
20
+ * Returns the result value of the operation,
21
+ * regardless of the state of the poller.
22
+ * It can return undefined or an incomplete form of the final TResult value
23
+ * depending on the implementation.
24
+ */
25
+ getResult(): TResult | undefined;
26
+ /**
27
+ * Returns a promise that will resolve once a single polling request finishes.
28
+ * It does this by calling the update method of the Poller's operation.
29
+ */
30
+ poll(options?: {
31
+ abortSignal?: AbortSignalLike;
32
+ }): Promise<TState>;
33
+ /**
34
+ * Returns a promise that will resolve once the underlying operation is completed.
35
+ */
36
+ pollUntilDone(pollOptions?: {
37
+ abortSignal?: AbortSignalLike;
38
+ }): Promise<TResult>;
39
+ /**
40
+ * Invokes the provided callback after each polling is completed,
41
+ * sending the current state of the poller's operation.
42
+ *
43
+ * It returns a method that can be used to stop receiving updates on the given callback function.
44
+ */
45
+ onProgress(callback: (state: TState) => void): CancelOnProgress;
46
+ /**
47
+ * Returns a promise that could be used for serialized version of the poller's operation
48
+ * by invoking the operation's serialize method.
49
+ */
50
+ serialize(): Promise<string>;
51
+ /**
52
+ * Wait the poller to be submitted.
53
+ */
54
+ submitted(): Promise<void>;
55
+ /**
56
+ * Returns a string representation of the poller's operation. Similar to serialize but returns a string.
57
+ * @deprecated Use serialize() instead.
58
+ */
59
+ toString(): string;
60
+ /**
61
+ * Stops the poller from continuing to poll. Please note this will only stop the client-side polling
62
+ * @deprecated Use abortSignal to stop polling instead.
63
+ */
64
+ stopPolling(): void;
65
+ /**
66
+ * Returns true if the poller is stopped.
67
+ * @deprecated Use abortSignal status to track this instead.
68
+ */
69
+ isStopped(): boolean;
70
+ }
71
+ /**
72
+ * Helper function that builds a Poller object to help polling a long running operation.
73
+ * @param client - Client to use for sending the request to get additional pages.
74
+ * @param initialResponse - The initial response.
75
+ * @param options - Options to set a resume state or custom polling interval.
76
+ * @returns - A poller object to poll for operation state updates and eventually get the final response.
77
+ */
78
+ export declare function getLongRunningPoller(client: AzureLoadTestingClient, initialResponse: TestUploadFileSuccessResponse, polledOperationOptions?: PolledOperationOptions): Promise<FileUploadAndValidatePoller>;
79
+ export declare function getLongRunningPoller(client: AzureLoadTestingClient, initialResponse: TestRunCreateOrUpdateSuccessResponse, polledOperationOptions?: PolledOperationOptions): Promise<TestRunCompletionPoller>;
80
+ export declare function getLongRunningPoller(client: AzureLoadTestingClient, initialResponse: TestProfileRunCreateOrUpdateSuccessResponse, polledOperationOptions?: PolledOperationOptions): Promise<TestProfileRunCompletionPoller>;
81
+ export declare function getLongRunningPoller<TResult extends LoadTestAdministrationCloneTestLogicalResponse | LoadTestAdministrationCloneTestDefaultResponse>(client: Client, initialResponse: LoadTestAdministrationCloneTest202Response | LoadTestAdministrationCloneTestDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
82
+ export declare function getLongRunningPoller<TResult extends LoadTestAdministrationGenerateTestPlanRecommendationsLogicalResponse | LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse>(client: Client, initialResponse: LoadTestAdministrationGenerateTestPlanRecommendations202Response | LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
83
+ export declare function getLongRunningPoller<TResult extends LoadTestRunGenerateInsightsLogicalResponse | LoadTestRunGenerateInsightsDefaultResponse>(client: Client, initialResponse: LoadTestRunGenerateInsights202Response | LoadTestRunGenerateInsightsDefaultResponse, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>;
6
84
  //# sourceMappingURL=pollingHelper.d.ts.map