@azure/arm-playwright 1.0.0-alpha.20250804.1 → 1.0.0-alpha.20250826.2

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 (167) hide show
  1. package/README.md +1 -1
  2. package/dist/browser/api/operations/operations.d.ts +1 -1
  3. package/dist/browser/api/operations/operations.js +1 -1
  4. package/dist/browser/api/operations/operations.js.map +1 -1
  5. package/dist/browser/api/playwrightManagementContext.d.ts +5 -2
  6. package/dist/browser/api/playwrightManagementContext.js +5 -4
  7. package/dist/browser/api/playwrightManagementContext.js.map +1 -1
  8. package/dist/browser/api/playwrightQuotas/operations.d.ts +3 -3
  9. package/dist/browser/api/playwrightQuotas/operations.js +3 -3
  10. package/dist/browser/api/playwrightQuotas/operations.js.map +1 -1
  11. package/dist/browser/api/playwrightWorkspaceQuotas/operations.d.ts +3 -3
  12. package/dist/browser/api/playwrightWorkspaceQuotas/operations.js +3 -3
  13. package/dist/browser/api/playwrightWorkspaceQuotas/operations.js.map +1 -1
  14. package/dist/browser/api/playwrightWorkspaces/operations.d.ts +4 -4
  15. package/dist/browser/api/playwrightWorkspaces/operations.js +7 -13
  16. package/dist/browser/api/playwrightWorkspaces/operations.js.map +1 -1
  17. package/dist/browser/classic/operations/index.d.ts +1 -1
  18. package/dist/browser/classic/operations/index.js.map +1 -1
  19. package/dist/browser/classic/playwrightQuotas/index.d.ts +3 -3
  20. package/dist/browser/classic/playwrightQuotas/index.js.map +1 -1
  21. package/dist/browser/classic/playwrightWorkspaceQuotas/index.d.ts +3 -3
  22. package/dist/browser/classic/playwrightWorkspaceQuotas/index.js.map +1 -1
  23. package/dist/browser/classic/playwrightWorkspaces/index.d.ts +4 -4
  24. package/dist/browser/classic/playwrightWorkspaces/index.js.map +1 -1
  25. package/dist/browser/index.d.ts +2 -0
  26. package/dist/browser/index.js +2 -0
  27. package/dist/browser/index.js.map +1 -1
  28. package/dist/browser/models/models.d.ts +41 -39
  29. package/dist/browser/models/models.js +14 -13
  30. package/dist/browser/models/models.js.map +1 -1
  31. package/dist/browser/playwrightManagementClient.d.ts +4 -4
  32. package/dist/browser/playwrightManagementClient.js +3 -3
  33. package/dist/browser/playwrightManagementClient.js.map +1 -1
  34. package/dist/browser/restorePollerHelpers.js +1 -1
  35. package/dist/browser/restorePollerHelpers.js.map +1 -1
  36. package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +13 -0
  37. package/dist/browser/static-helpers/cloudSettingHelpers.js +29 -0
  38. package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
  39. package/dist/browser/static-helpers/urlTemplate.js +2 -1
  40. package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
  41. package/dist/commonjs/api/operations/operations.d.ts +1 -1
  42. package/dist/commonjs/api/operations/operations.js +1 -1
  43. package/dist/commonjs/api/operations/operations.js.map +1 -1
  44. package/dist/commonjs/api/playwrightManagementContext.d.ts +5 -2
  45. package/dist/commonjs/api/playwrightManagementContext.js +5 -4
  46. package/dist/commonjs/api/playwrightManagementContext.js.map +1 -1
  47. package/dist/commonjs/api/playwrightQuotas/operations.d.ts +3 -3
  48. package/dist/commonjs/api/playwrightQuotas/operations.js +3 -3
  49. package/dist/commonjs/api/playwrightQuotas/operations.js.map +1 -1
  50. package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.d.ts +3 -3
  51. package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.js +3 -3
  52. package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.js.map +1 -1
  53. package/dist/commonjs/api/playwrightWorkspaces/operations.d.ts +4 -4
  54. package/dist/commonjs/api/playwrightWorkspaces/operations.js +7 -13
  55. package/dist/commonjs/api/playwrightWorkspaces/operations.js.map +1 -1
  56. package/dist/commonjs/classic/operations/index.d.ts +1 -1
  57. package/dist/commonjs/classic/operations/index.js.map +1 -1
  58. package/dist/commonjs/classic/playwrightQuotas/index.d.ts +3 -3
  59. package/dist/commonjs/classic/playwrightQuotas/index.js.map +1 -1
  60. package/dist/commonjs/classic/playwrightWorkspaceQuotas/index.d.ts +3 -3
  61. package/dist/commonjs/classic/playwrightWorkspaceQuotas/index.js.map +1 -1
  62. package/dist/commonjs/classic/playwrightWorkspaces/index.d.ts +4 -4
  63. package/dist/commonjs/classic/playwrightWorkspaces/index.js.map +1 -1
  64. package/dist/commonjs/index.d.ts +2 -0
  65. package/dist/commonjs/index.js +3 -1
  66. package/dist/commonjs/index.js.map +1 -1
  67. package/dist/commonjs/models/models.d.ts +41 -39
  68. package/dist/commonjs/models/models.js +14 -13
  69. package/dist/commonjs/models/models.js.map +1 -1
  70. package/dist/commonjs/playwrightManagementClient.d.ts +4 -4
  71. package/dist/commonjs/playwrightManagementClient.js +7 -7
  72. package/dist/commonjs/playwrightManagementClient.js.map +1 -1
  73. package/dist/commonjs/restorePollerHelpers.js +1 -1
  74. package/dist/commonjs/restorePollerHelpers.js.map +1 -1
  75. package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +13 -0
  76. package/dist/commonjs/static-helpers/cloudSettingHelpers.js +33 -0
  77. package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
  78. package/dist/commonjs/static-helpers/urlTemplate.js +2 -1
  79. package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
  80. package/dist/commonjs/tsdoc-metadata.json +1 -1
  81. package/dist/esm/api/operations/operations.d.ts +1 -1
  82. package/dist/esm/api/operations/operations.js +1 -1
  83. package/dist/esm/api/operations/operations.js.map +1 -1
  84. package/dist/esm/api/playwrightManagementContext.d.ts +5 -2
  85. package/dist/esm/api/playwrightManagementContext.js +5 -4
  86. package/dist/esm/api/playwrightManagementContext.js.map +1 -1
  87. package/dist/esm/api/playwrightQuotas/operations.d.ts +3 -3
  88. package/dist/esm/api/playwrightQuotas/operations.js +3 -3
  89. package/dist/esm/api/playwrightQuotas/operations.js.map +1 -1
  90. package/dist/esm/api/playwrightWorkspaceQuotas/operations.d.ts +3 -3
  91. package/dist/esm/api/playwrightWorkspaceQuotas/operations.js +3 -3
  92. package/dist/esm/api/playwrightWorkspaceQuotas/operations.js.map +1 -1
  93. package/dist/esm/api/playwrightWorkspaces/operations.d.ts +4 -4
  94. package/dist/esm/api/playwrightWorkspaces/operations.js +7 -13
  95. package/dist/esm/api/playwrightWorkspaces/operations.js.map +1 -1
  96. package/dist/esm/classic/operations/index.d.ts +1 -1
  97. package/dist/esm/classic/operations/index.js.map +1 -1
  98. package/dist/esm/classic/playwrightQuotas/index.d.ts +3 -3
  99. package/dist/esm/classic/playwrightQuotas/index.js.map +1 -1
  100. package/dist/esm/classic/playwrightWorkspaceQuotas/index.d.ts +3 -3
  101. package/dist/esm/classic/playwrightWorkspaceQuotas/index.js.map +1 -1
  102. package/dist/esm/classic/playwrightWorkspaces/index.d.ts +4 -4
  103. package/dist/esm/classic/playwrightWorkspaces/index.js.map +1 -1
  104. package/dist/esm/index.d.ts +2 -0
  105. package/dist/esm/index.js +2 -0
  106. package/dist/esm/index.js.map +1 -1
  107. package/dist/esm/models/models.d.ts +41 -39
  108. package/dist/esm/models/models.js +14 -13
  109. package/dist/esm/models/models.js.map +1 -1
  110. package/dist/esm/playwrightManagementClient.d.ts +4 -4
  111. package/dist/esm/playwrightManagementClient.js +3 -3
  112. package/dist/esm/playwrightManagementClient.js.map +1 -1
  113. package/dist/esm/restorePollerHelpers.js +1 -1
  114. package/dist/esm/restorePollerHelpers.js.map +1 -1
  115. package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +13 -0
  116. package/dist/esm/static-helpers/cloudSettingHelpers.js +29 -0
  117. package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
  118. package/dist/esm/static-helpers/urlTemplate.js +2 -1
  119. package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
  120. package/dist/react-native/api/operations/operations.d.ts +1 -1
  121. package/dist/react-native/api/operations/operations.js +1 -1
  122. package/dist/react-native/api/operations/operations.js.map +1 -1
  123. package/dist/react-native/api/playwrightManagementContext.d.ts +5 -2
  124. package/dist/react-native/api/playwrightManagementContext.js +5 -4
  125. package/dist/react-native/api/playwrightManagementContext.js.map +1 -1
  126. package/dist/react-native/api/playwrightQuotas/operations.d.ts +3 -3
  127. package/dist/react-native/api/playwrightQuotas/operations.js +3 -3
  128. package/dist/react-native/api/playwrightQuotas/operations.js.map +1 -1
  129. package/dist/react-native/api/playwrightWorkspaceQuotas/operations.d.ts +3 -3
  130. package/dist/react-native/api/playwrightWorkspaceQuotas/operations.js +3 -3
  131. package/dist/react-native/api/playwrightWorkspaceQuotas/operations.js.map +1 -1
  132. package/dist/react-native/api/playwrightWorkspaces/operations.d.ts +4 -4
  133. package/dist/react-native/api/playwrightWorkspaces/operations.js +7 -13
  134. package/dist/react-native/api/playwrightWorkspaces/operations.js.map +1 -1
  135. package/dist/react-native/classic/operations/index.d.ts +1 -1
  136. package/dist/react-native/classic/operations/index.js.map +1 -1
  137. package/dist/react-native/classic/playwrightQuotas/index.d.ts +3 -3
  138. package/dist/react-native/classic/playwrightQuotas/index.js.map +1 -1
  139. package/dist/react-native/classic/playwrightWorkspaceQuotas/index.d.ts +3 -3
  140. package/dist/react-native/classic/playwrightWorkspaceQuotas/index.js.map +1 -1
  141. package/dist/react-native/classic/playwrightWorkspaces/index.d.ts +4 -4
  142. package/dist/react-native/classic/playwrightWorkspaces/index.js.map +1 -1
  143. package/dist/react-native/index.d.ts +2 -0
  144. package/dist/react-native/index.js +2 -0
  145. package/dist/react-native/index.js.map +1 -1
  146. package/dist/react-native/models/models.d.ts +41 -39
  147. package/dist/react-native/models/models.js +14 -13
  148. package/dist/react-native/models/models.js.map +1 -1
  149. package/dist/react-native/playwrightManagementClient.d.ts +4 -4
  150. package/dist/react-native/playwrightManagementClient.js +3 -3
  151. package/dist/react-native/playwrightManagementClient.js.map +1 -1
  152. package/dist/react-native/restorePollerHelpers.js +1 -1
  153. package/dist/react-native/restorePollerHelpers.js.map +1 -1
  154. package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +13 -0
  155. package/dist/react-native/static-helpers/cloudSettingHelpers.js +29 -0
  156. package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
  157. package/dist/react-native/static-helpers/urlTemplate.js +2 -1
  158. package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
  159. package/package.json +39 -41
  160. package/CHANGELOG.md +0 -7
  161. package/review/arm-playwright-api-node.api.md +0 -27
  162. package/review/arm-playwright-api-operations-node.api.md +0 -19
  163. package/review/arm-playwright-api-playwrightQuotas-node.api.md +0 -26
  164. package/review/arm-playwright-api-playwrightWorkspaceQuotas-node.api.md +0 -26
  165. package/review/arm-playwright-api-playwrightWorkspaces-node.api.md +0 -65
  166. package/review/arm-playwright-models-node.api.md +0 -232
  167. package/review/arm-playwright-node.api.md +0 -361
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure PlaywrightManagement client.
4
4
 
5
- Playwright service provides access to Playwright workspace resource and it's operations.
5
+ Playwright Service Management API provides access to Playwright workspace resources and their operations through Azure Resource Manager.
6
6
 
7
7
  Key links:
8
8
 
@@ -1,7 +1,7 @@
1
1
  import { PlaywrightManagementContext as Client } from "../index.js";
2
2
  import { _OperationListResult, Operation } from "../../models/models.js";
3
- import { OperationsListOptionalParams } from "./options.js";
4
3
  import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import { OperationsListOptionalParams } from "./options.js";
5
5
  import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
6
  export declare function _listSend(context: Client, options?: OperationsListOptionalParams): StreamableMethod;
7
7
  export declare function _listDeserialize(result: PathUncheckedResponse): Promise<_OperationListResult>;
@@ -1,8 +1,8 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  import { _operationListResultDeserializer, errorResponseDeserializer, } from "../../models/models.js";
4
- import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
5
4
  import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
5
+ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
6
6
  import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
7
7
  export function _listSend(context, options = { requestOptions: {} }) {
8
8
  const path = expandUrlTemplate("/providers/Microsoft.LoadTestService/operations{?api%2Dversion}", {
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,gCAAgC,EAEhC,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,iEAAiE,EACjE;QACE,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext as Client } from \"../index.js\";\nimport {\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n errorResponseDeserializer,\n} from \"../../models/models.js\";\nimport { OperationsListOptionalParams } from \"./options.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.LoadTestService/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/operations/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,gCAAgC,EAEhC,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,iEAAiE,EACjE;QACE,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,IAAI,CAClB,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,EACjC,gBAAgB,EAChB,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext as Client } from \"../index.js\";\nimport {\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n errorResponseDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport { OperationsListOptionalParams } from \"./options.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/providers/Microsoft.LoadTestService/operations{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function list(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
@@ -1,6 +1,7 @@
1
+ import { AzureSupportedClouds } from "../static-helpers/cloudSettingHelpers.js";
1
2
  import { Client, ClientOptions } from "@azure-rest/core-client";
2
3
  import { TokenCredential } from "@azure/core-auth";
3
- /** Playwright service provides access to Playwright workspace resource and it's operations. */
4
+ /** Playwright Service Management API provides access to Playwright workspace resources and their operations through Azure Resource Manager. */
4
5
  export interface PlaywrightManagementContext extends Client {
5
6
  /** The API version to use for this operation. */
6
7
  /** Known values of {@link KnownVersions} that the service accepts. */
@@ -13,7 +14,9 @@ export interface PlaywrightManagementClientOptionalParams extends ClientOptions
13
14
  /** The API version to use for this operation. */
14
15
  /** Known values of {@link KnownVersions} that the service accepts. */
15
16
  apiVersion?: string;
17
+ /** Specifies the Azure cloud environment for the client. */
18
+ cloudSetting?: AzureSupportedClouds;
16
19
  }
17
- /** Playwright service provides access to Playwright workspace resource and it's operations. */
20
+ /** Playwright Service Management API provides access to Playwright workspace resources and their operations through Azure Resource Manager. */
18
21
  export declare function createPlaywrightManagement(credential: TokenCredential, subscriptionId: string, options?: PlaywrightManagementClientOptionalParams): PlaywrightManagementContext;
19
22
  //# sourceMappingURL=playwrightManagementContext.d.ts.map
@@ -1,12 +1,13 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  import { logger } from "../logger.js";
4
+ import { getArmEndpoint } from "../static-helpers/cloudSettingHelpers.js";
4
5
  import { getClient } from "@azure-rest/core-client";
5
- /** Playwright service provides access to Playwright workspace resource and it's operations. */
6
+ /** Playwright Service Management API provides access to Playwright workspace resources and their operations through Azure Resource Manager. */
6
7
  export function createPlaywrightManagement(credential, subscriptionId, options = {}) {
7
- const endpointUrl = options.endpoint ?? options.baseUrl ?? "https://management.azure.com";
8
+ const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
8
9
  const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
9
- const userAgentInfo = `azsdk-js-arm-playwright/1.0.0-beta.1`;
10
+ const userAgentInfo = `azsdk-js-arm-playwright/1.0.0`;
10
11
  const userAgentPrefix = prefixFromOptions
11
12
  ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
12
13
  : `azsdk-js-api ${userAgentInfo}`;
@@ -20,7 +21,7 @@ export function createPlaywrightManagement(credential, subscriptionId, options =
20
21
  };
21
22
  const clientContext = getClient(endpointUrl, credential, updatedOptions);
22
23
  clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
23
- const apiVersion = options.apiVersion ?? "2025-07-01-preview";
24
+ const apiVersion = options.apiVersion ?? "2025-09-01";
24
25
  clientContext.pipeline.addPolicy({
25
26
  name: "ClientApiVersionPolicy",
26
27
  sendRequest: (req, next) => {
@@ -1 +1 @@
1
- {"version":3,"file":"playwrightManagementContext.js","sourceRoot":"","sources":["../../../src/api/playwrightManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAmB3E,+FAA+F;AAC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GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO;QACL,GAAG,aAAa;QAChB,UAAU;QACV,cAAc;KACgB,CAAC;AACnC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\n/** Playwright service provides access to Playwright workspace resource and it's operations. */\nexport interface PlaywrightManagementContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion: string;\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n}\n\n/** Optional parameters for the client. */\nexport interface PlaywrightManagementClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Playwright service provides access to Playwright workspace resource and it's operations. */\nexport function createPlaywrightManagement(\n credential: TokenCredential,\n subscriptionId: string,\n options: PlaywrightManagementClientOptionalParams = {},\n): PlaywrightManagementContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-playwright/1.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2025-07-01-preview\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return {\n ...clientContext,\n apiVersion,\n subscriptionId,\n } as PlaywrightManagementContext;\n}\n"]}
1
+ {"version":3,"file":"playwrightManagementContext.js","sourceRoot":"","sources":["../../../src/api/playwrightManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAwB,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAChG,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAqB3E,+IAA+I;AAC/I,MAAM,UAAU,0BAA0B,CACxC,UAA2B,EAC3B,cAAsB,EACtB,UAAoD,EAAE;IAEtD,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,8BAA8B,CAAC;IAC7F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,+BAA+B,CAAC;IACtD,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,i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ACF,CAAC,CAAC;IACH,OAAO;QACL,GAAG,aAAa;QAChB,UAAU;QACV,cAAc;KACgB,CAAC;AACnC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { AzureSupportedClouds, getArmEndpoint } from \"../static-helpers/cloudSettingHelpers.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\n/** Playwright Service Management API provides access to Playwright workspace resources and their operations through Azure Resource Manager. */\nexport interface PlaywrightManagementContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion: string;\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n}\n\n/** Optional parameters for the client. */\nexport interface PlaywrightManagementClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n /** Specifies the Azure cloud environment for the client. */\n cloudSetting?: AzureSupportedClouds;\n}\n\n/** Playwright Service Management API provides access to Playwright workspace resources and their operations through Azure Resource Manager. */\nexport function createPlaywrightManagement(\n credential: TokenCredential,\n subscriptionId: string,\n options: PlaywrightManagementClientOptionalParams = {},\n): PlaywrightManagementContext {\n const endpointUrl =\n options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-playwright/1.0.0`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2025-09-01\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return {\n ...clientContext,\n apiVersion,\n subscriptionId,\n } as PlaywrightManagementContext;\n}\n"]}
@@ -1,14 +1,14 @@
1
1
  import { PlaywrightManagementContext as Client } from "../index.js";
2
2
  import { PlaywrightQuota, QuotaName, _PlaywrightQuotaListResult } from "../../models/models.js";
3
- import { PlaywrightQuotasListBySubscriptionOptionalParams, PlaywrightQuotasGetOptionalParams } from "./options.js";
4
3
  import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import { PlaywrightQuotasListBySubscriptionOptionalParams, PlaywrightQuotasGetOptionalParams } from "./options.js";
5
5
  import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
6
  export declare function _listBySubscriptionSend(context: Client, location: string, options?: PlaywrightQuotasListBySubscriptionOptionalParams): StreamableMethod;
7
7
  export declare function _listBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_PlaywrightQuotaListResult>;
8
- /** List Playwright quota resources for a given subscription Id. */
8
+ /** Lists Playwright quota resources for a given subscription ID. */
9
9
  export declare function listBySubscription(context: Client, location: string, options?: PlaywrightQuotasListBySubscriptionOptionalParams): PagedAsyncIterableIterator<PlaywrightQuota>;
10
10
  export declare function _getSend(context: Client, location: string, playwrightQuotaName: QuotaName, options?: PlaywrightQuotasGetOptionalParams): StreamableMethod;
11
11
  export declare function _getDeserialize(result: PathUncheckedResponse): Promise<PlaywrightQuota>;
12
- /** Get subscription-level location-based Playwright quota resource by name. */
12
+ /** Gets a subscription-level location-based Playwright quota resource by name. */
13
13
  export declare function get(context: Client, location: string, playwrightQuotaName: QuotaName, options?: PlaywrightQuotasGetOptionalParams): Promise<PlaywrightQuota>;
14
14
  //# sourceMappingURL=operations.d.ts.map
@@ -1,8 +1,8 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  import { errorResponseDeserializer, playwrightQuotaDeserializer, _playwrightQuotaListResultDeserializer, } from "../../models/models.js";
4
- import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
5
4
  import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
5
+ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
6
6
  import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
7
7
  export function _listBySubscriptionSend(context, location, options = {
8
8
  requestOptions: {},
@@ -31,7 +31,7 @@ export async function _listBySubscriptionDeserialize(result) {
31
31
  }
32
32
  return _playwrightQuotaListResultDeserializer(result.body);
33
33
  }
34
- /** List Playwright quota resources for a given subscription Id. */
34
+ /** Lists Playwright quota resources for a given subscription ID. */
35
35
  export function listBySubscription(context, location, options = {
36
36
  requestOptions: {},
37
37
  }) {
@@ -63,7 +63,7 @@ export async function _getDeserialize(result) {
63
63
  }
64
64
  return playwrightQuotaDeserializer(result.body);
65
65
  }
66
- /** Get subscription-level location-based Playwright quota resource by name. */
66
+ /** Gets a subscription-level location-based Playwright quota resource by name. */
67
67
  export async function get(context, location, playwrightQuotaName, options = { requestOptions: {} }) {
68
68
  const result = await _getSend(context, location, playwrightQuotaName, options);
69
69
  return _getDeserialize(result);
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/playwrightQuotas/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,2BAA2B,EAG3B,sCAAsC,GACvC,MAAM,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C,IAAI,CAAC,CAAC;AAClD,CAAC;AAED,+EAA+E;AAC/E,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,QAAgB,EAChB,mBAA8B,EAC9B,UAA6C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEnE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAC/E,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n PlaywrightQuota,\n playwrightQuotaDeserializer,\n QuotaName,\n _PlaywrightQuotaListResult,\n _playwrightQuotaListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PlaywrightQuotasListBySubscriptionOptionalParams,\n PlaywrightQuotasGetOptionalParams,\n} from \"./options.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionSend(\n context: Client,\n location: string,\n options: PlaywrightQuotasListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/playwrightQuotas{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PlaywrightQuotaListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _playwrightQuotaListResultDeserializer(result.body);\n}\n\n/** List Playwright quota resources for a given subscription Id. */\nexport function listBySubscription(\n context: Client,\n location: string,\n options: PlaywrightQuotasListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PlaywrightQuota> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, location, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n playwrightQuotaName: QuotaName,\n options: PlaywrightQuotasGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/playwrightQuotas/{playwrightQuotaName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n playwrightQuotaName: playwrightQuotaName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<PlaywrightQuota> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return playwrightQuotaDeserializer(result.body);\n}\n\n/** Get subscription-level location-based Playwright quota resource by name. */\nexport async function get(\n context: Client,\n location: string,\n playwrightQuotaName: QuotaName,\n options: PlaywrightQuotasGetOptionalParams = { requestOptions: {} },\n): Promise<PlaywrightQuota> {\n const result = await _getSend(context, location, playwrightQuotaName, options);\n return _getDeserialize(result);\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/playwrightQuotas/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,2BAA2B,EAG3B,sCAAsC,GACvC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAKxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,uBAAuB,CACrC,OAAe,EACf,QAAgB,EAChB,UAA4D;IAC1D,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,2HAA2H,EAC3H;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,QAAQ,EAAE,QAAQ;QAClB,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CA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AAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,2BAA2B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC;AAED,kFAAkF;AAClF,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,QAAgB,EAChB,mBAA8B,EAC9B,UAA6C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEnE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;IAC/E,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n PlaywrightQuota,\n playwrightQuotaDeserializer,\n QuotaName,\n _PlaywrightQuotaListResult,\n _playwrightQuotaListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PlaywrightQuotasListBySubscriptionOptionalParams,\n PlaywrightQuotasGetOptionalParams,\n} from \"./options.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listBySubscriptionSend(\n context: Client,\n location: string,\n options: PlaywrightQuotasListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/playwrightQuotas{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PlaywrightQuotaListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _playwrightQuotaListResultDeserializer(result.body);\n}\n\n/** Lists Playwright quota resources for a given subscription ID. */\nexport function listBySubscription(\n context: Client,\n location: string,\n options: PlaywrightQuotasListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PlaywrightQuota> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, location, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n playwrightQuotaName: QuotaName,\n options: PlaywrightQuotasGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/playwrightQuotas/{playwrightQuotaName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n playwrightQuotaName: playwrightQuotaName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<PlaywrightQuota> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return playwrightQuotaDeserializer(result.body);\n}\n\n/** Gets a subscription-level location-based Playwright quota resource by name. */\nexport async function get(\n context: Client,\n location: string,\n playwrightQuotaName: QuotaName,\n options: PlaywrightQuotasGetOptionalParams = { requestOptions: {} },\n): Promise<PlaywrightQuota> {\n const result = await _getSend(context, location, playwrightQuotaName, options);\n return _getDeserialize(result);\n}\n"]}
@@ -1,14 +1,14 @@
1
1
  import { PlaywrightManagementContext as Client } from "../index.js";
2
2
  import { QuotaName, PlaywrightWorkspaceQuota, _PlaywrightWorkspaceQuotaListResult } from "../../models/models.js";
3
- import { PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams, PlaywrightWorkspaceQuotasGetOptionalParams } from "./options.js";
4
3
  import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import { PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams, PlaywrightWorkspaceQuotasGetOptionalParams } from "./options.js";
5
5
  import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
6
  export declare function _listByPlaywrightWorkspaceSend(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, options?: PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams): StreamableMethod;
7
7
  export declare function _listByPlaywrightWorkspaceDeserialize(result: PathUncheckedResponse): Promise<_PlaywrightWorkspaceQuotaListResult>;
8
- /** List quota resources for a given Playwright workspace resource. */
8
+ /** Lists quota resources for a given Playwright workspace. */
9
9
  export declare function listByPlaywrightWorkspace(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, options?: PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams): PagedAsyncIterableIterator<PlaywrightWorkspaceQuota>;
10
10
  export declare function _getSend(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, quotaName: QuotaName, options?: PlaywrightWorkspaceQuotasGetOptionalParams): StreamableMethod;
11
11
  export declare function _getDeserialize(result: PathUncheckedResponse): Promise<PlaywrightWorkspaceQuota>;
12
- /** Get Playwright workspace quota resource by name. */
12
+ /** Gets a Playwright workspace quota resource by name. */
13
13
  export declare function get(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, quotaName: QuotaName, options?: PlaywrightWorkspaceQuotasGetOptionalParams): Promise<PlaywrightWorkspaceQuota>;
14
14
  //# sourceMappingURL=operations.d.ts.map
@@ -1,8 +1,8 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  import { errorResponseDeserializer, playwrightWorkspaceQuotaDeserializer, _playwrightWorkspaceQuotaListResultDeserializer, } from "../../models/models.js";
4
- import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
5
4
  import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
5
+ import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
6
6
  import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
7
7
  export function _listByPlaywrightWorkspaceSend(context, resourceGroupName, playwrightWorkspaceName, options = {
8
8
  requestOptions: {},
@@ -32,7 +32,7 @@ export async function _listByPlaywrightWorkspaceDeserialize(result) {
32
32
  }
33
33
  return _playwrightWorkspaceQuotaListResultDeserializer(result.body);
34
34
  }
35
- /** List quota resources for a given Playwright workspace resource. */
35
+ /** Lists quota resources for a given Playwright workspace. */
36
36
  export function listByPlaywrightWorkspace(context, resourceGroupName, playwrightWorkspaceName, options = {
37
37
  requestOptions: {},
38
38
  }) {
@@ -65,7 +65,7 @@ export async function _getDeserialize(result) {
65
65
  }
66
66
  return playwrightWorkspaceQuotaDeserializer(result.body);
67
67
  }
68
- /** Get Playwright workspace quota resource by name. */
68
+ /** Gets a Playwright workspace quota resource by name. */
69
69
  export async function get(context, resourceGroupName, playwrightWorkspaceName, quotaName, options = { requestOptions: {} }) {
70
70
  const result = await _getSend(context, resourceGroupName, playwrightWorkspaceName, quotaName, options);
71
71
  return _getDeserialize(result);
@@ -1 +1 @@
1
- {"version":3,"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CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,oCAAoC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC3D,CAAC;AAED,uDAAuD;AACvD,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,uBAA+B,EAC/B,SAAoB,EACpB,UAAsD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE5E,MAAM,MAAM,GAAG,MAAM,QAAQ,CAC3B,OAAO,EACP,iBAAiB,EACjB,uBAAuB,EACvB,SAAS,EACT,OAAO,CACR,CAAC;IACF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n QuotaName,\n PlaywrightWorkspaceQuota,\n playwrightWorkspaceQuotaDeserializer,\n _PlaywrightWorkspaceQuotaListResult,\n _playwrightWorkspaceQuotaListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams,\n PlaywrightWorkspaceQuotasGetOptionalParams,\n} from \"./options.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listByPlaywrightWorkspaceSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}/quotas{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n playwrightWorkspaceName: playwrightWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByPlaywrightWorkspaceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PlaywrightWorkspaceQuotaListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _playwrightWorkspaceQuotaListResultDeserializer(result.body);\n}\n\n/** List quota resources for a given Playwright workspace resource. */\nexport function listByPlaywrightWorkspace(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PlaywrightWorkspaceQuota> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _listByPlaywrightWorkspaceSend(context, resourceGroupName, playwrightWorkspaceName, options),\n _listByPlaywrightWorkspaceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n quotaName: QuotaName,\n options: PlaywrightWorkspaceQuotasGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}/quotas/{quotaName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n playwrightWorkspaceName: playwrightWorkspaceName,\n quotaName: quotaName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<PlaywrightWorkspaceQuota> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return playwrightWorkspaceQuotaDeserializer(result.body);\n}\n\n/** Get Playwright workspace quota resource by name. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n quotaName: QuotaName,\n options: PlaywrightWorkspaceQuotasGetOptionalParams = { requestOptions: {} },\n): Promise<PlaywrightWorkspaceQuota> {\n const result = await _getSend(\n context,\n resourceGroupName,\n playwrightWorkspaceName,\n quotaName,\n options,\n );\n return _getDeserialize(result);\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/playwrightWorkspaceQuotas/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAGzB,oCAAoC,EAEpC,+CAA+C,GAChD,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAKxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,8BAA8B,CAC5C,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,iBAAyB,EACzB,uBAA+B,EAC/B,SAAoB,EACpB,UAAsD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE5E,MAAM,MAAM,GAAG,MAAM,QAAQ,CAC3B,OAAO,EACP,iBAAiB,EACjB,uBAAuB,EACvB,SAAS,EACT,OAAO,CACR,CAAC;IACF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n QuotaName,\n PlaywrightWorkspaceQuota,\n playwrightWorkspaceQuotaDeserializer,\n _PlaywrightWorkspaceQuotaListResult,\n _playwrightWorkspaceQuotaListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams,\n PlaywrightWorkspaceQuotasGetOptionalParams,\n} from \"./options.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listByPlaywrightWorkspaceSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}/quotas{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n playwrightWorkspaceName: playwrightWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByPlaywrightWorkspaceDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PlaywrightWorkspaceQuotaListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _playwrightWorkspaceQuotaListResultDeserializer(result.body);\n}\n\n/** Lists quota resources for a given Playwright workspace. */\nexport function listByPlaywrightWorkspace(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspaceQuotasListByPlaywrightWorkspaceOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PlaywrightWorkspaceQuota> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _listByPlaywrightWorkspaceSend(context, resourceGroupName, playwrightWorkspaceName, options),\n _listByPlaywrightWorkspaceDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n quotaName: QuotaName,\n options: PlaywrightWorkspaceQuotasGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}/quotas/{quotaName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n playwrightWorkspaceName: playwrightWorkspaceName,\n quotaName: quotaName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<PlaywrightWorkspaceQuota> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return playwrightWorkspaceQuotaDeserializer(result.body);\n}\n\n/** Gets a Playwright workspace quota resource by name. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n quotaName: QuotaName,\n options: PlaywrightWorkspaceQuotasGetOptionalParams = { requestOptions: {} },\n): Promise<PlaywrightWorkspaceQuota> {\n const result = await _getSend(\n context,\n resourceGroupName,\n playwrightWorkspaceName,\n quotaName,\n options,\n );\n return _getDeserialize(result);\n}\n"]}
@@ -1,12 +1,12 @@
1
1
  import { PlaywrightManagementContext as Client } from "../index.js";
2
2
  import { PlaywrightWorkspace, PlaywrightWorkspaceUpdate, _PlaywrightWorkspaceListResult, CheckNameAvailabilityRequest, CheckNameAvailabilityResponse } from "../../models/models.js";
3
- import { PlaywrightWorkspacesCheckNameAvailabilityOptionalParams, PlaywrightWorkspacesListBySubscriptionOptionalParams, PlaywrightWorkspacesListByResourceGroupOptionalParams, PlaywrightWorkspacesDeleteOptionalParams, PlaywrightWorkspacesUpdateOptionalParams, PlaywrightWorkspacesCreateOrUpdateOptionalParams, PlaywrightWorkspacesGetOptionalParams } from "./options.js";
4
3
  import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
4
+ import { PlaywrightWorkspacesCheckNameAvailabilityOptionalParams, PlaywrightWorkspacesListBySubscriptionOptionalParams, PlaywrightWorkspacesListByResourceGroupOptionalParams, PlaywrightWorkspacesDeleteOptionalParams, PlaywrightWorkspacesUpdateOptionalParams, PlaywrightWorkspacesCreateOrUpdateOptionalParams, PlaywrightWorkspacesGetOptionalParams } from "./options.js";
5
5
  import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
6
6
  import { PollerLike, OperationState } from "@azure/core-lro";
7
7
  export declare function _checkNameAvailabilitySend(context: Client, body: CheckNameAvailabilityRequest, options?: PlaywrightWorkspacesCheckNameAvailabilityOptionalParams): StreamableMethod;
8
8
  export declare function _checkNameAvailabilityDeserialize(result: PathUncheckedResponse): Promise<CheckNameAvailabilityResponse>;
9
- /** Implements global CheckNameAvailability operations */
9
+ /** Checks if a Playwright workspace name is available globally. */
10
10
  export declare function checkNameAvailability(context: Client, body: CheckNameAvailabilityRequest, options?: PlaywrightWorkspacesCheckNameAvailabilityOptionalParams): Promise<CheckNameAvailabilityResponse>;
11
11
  export declare function _listBySubscriptionSend(context: Client, options?: PlaywrightWorkspacesListBySubscriptionOptionalParams): StreamableMethod;
12
12
  export declare function _listBySubscriptionDeserialize(result: PathUncheckedResponse): Promise<_PlaywrightWorkspaceListResult>;
@@ -18,7 +18,7 @@ export declare function _listByResourceGroupDeserialize(result: PathUncheckedRes
18
18
  export declare function listByResourceGroup(context: Client, resourceGroupName: string, options?: PlaywrightWorkspacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<PlaywrightWorkspace>;
19
19
  export declare function _$deleteSend(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, options?: PlaywrightWorkspacesDeleteOptionalParams): StreamableMethod;
20
20
  export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
21
- /** Delete a PlaywrightWorkspace */
21
+ /** Deletes a Playwright workspace resource asynchronously. */
22
22
  /**
23
23
  * @fixme delete is a reserved word that cannot be used as an operation name.
24
24
  * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
@@ -27,7 +27,7 @@ export declare function _$deleteDeserialize(result: PathUncheckedResponse): Prom
27
27
  export declare function $delete(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, options?: PlaywrightWorkspacesDeleteOptionalParams): PollerLike<OperationState<void>, void>;
28
28
  export declare function _updateSend(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, properties: PlaywrightWorkspaceUpdate, options?: PlaywrightWorkspacesUpdateOptionalParams): StreamableMethod;
29
29
  export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<PlaywrightWorkspace>;
30
- /** Update a PlaywrightWorkspace */
30
+ /** Updates a Playwright workspace resource synchronously. */
31
31
  export declare function update(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, properties: PlaywrightWorkspaceUpdate, options?: PlaywrightWorkspacesUpdateOptionalParams): Promise<PlaywrightWorkspace>;
32
32
  export declare function _createOrUpdateSend(context: Client, resourceGroupName: string, playwrightWorkspaceName: string, resource: PlaywrightWorkspace, options?: PlaywrightWorkspacesCreateOrUpdateOptionalParams): StreamableMethod;
33
33
  export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<PlaywrightWorkspace>;
@@ -1,9 +1,9 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT License.
3
3
  import { errorResponseDeserializer, playwrightWorkspaceSerializer, playwrightWorkspaceDeserializer, playwrightWorkspaceUpdateSerializer, _playwrightWorkspaceListResultDeserializer, checkNameAvailabilityRequestSerializer, checkNameAvailabilityResponseDeserializer, } from "../../models/models.js";
4
+ import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
4
5
  import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
5
6
  import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
6
- import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
7
7
  import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
8
8
  export function _checkNameAvailabilitySend(context, body, options = {
9
9
  requestOptions: {},
@@ -33,7 +33,7 @@ export async function _checkNameAvailabilityDeserialize(result) {
33
33
  }
34
34
  return checkNameAvailabilityResponseDeserializer(result.body);
35
35
  }
36
- /** Implements global CheckNameAvailability operations */
36
+ /** Checks if a Playwright workspace name is available globally. */
37
37
  export async function checkNameAvailability(context, body, options = {
38
38
  requestOptions: {},
39
39
  }) {
@@ -114,13 +114,7 @@ export function _$deleteSend(context, resourceGroupName, playwrightWorkspaceName
114
114
  }, {
115
115
  allowReserved: options?.requestOptions?.skipUrlEncoding,
116
116
  });
117
- return context.path(path).delete({
118
- ...operationOptionsToRequestParameters(options),
119
- headers: {
120
- accept: "application/json",
121
- ...options.requestOptions?.headers,
122
- },
123
- });
117
+ return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });
124
118
  }
125
119
  export async function _$deleteDeserialize(result) {
126
120
  const expectedStatuses = ["202", "204", "200"];
@@ -131,7 +125,7 @@ export async function _$deleteDeserialize(result) {
131
125
  }
132
126
  return;
133
127
  }
134
- /** Delete a PlaywrightWorkspace */
128
+ /** Deletes a Playwright workspace resource asynchronously. */
135
129
  /**
136
130
  * @fixme delete is a reserved word that cannot be used as an operation name.
137
131
  * Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
@@ -173,7 +167,7 @@ export async function _updateDeserialize(result) {
173
167
  }
174
168
  return playwrightWorkspaceDeserializer(result.body);
175
169
  }
176
- /** Update a PlaywrightWorkspace */
170
+ /** Updates a Playwright workspace resource synchronously. */
177
171
  export async function update(context, resourceGroupName, playwrightWorkspaceName, properties, options = { requestOptions: {} }) {
178
172
  const result = await _updateSend(context, resourceGroupName, playwrightWorkspaceName, properties, options);
179
173
  return _updateDeserialize(result);
@@ -200,7 +194,7 @@ export function _createOrUpdateSend(context, resourceGroupName, playwrightWorksp
200
194
  });
201
195
  }
202
196
  export async function _createOrUpdateDeserialize(result) {
203
- const expectedStatuses = ["200", "201"];
197
+ const expectedStatuses = ["200", "201", "202"];
204
198
  if (!expectedStatuses.includes(result.status)) {
205
199
  const error = createRestError(result);
206
200
  error.details = errorResponseDeserializer(result.body);
@@ -212,7 +206,7 @@ export async function _createOrUpdateDeserialize(result) {
212
206
  export function createOrUpdate(context, resourceGroupName, playwrightWorkspaceName, resource, options = {
213
207
  requestOptions: {},
214
208
  }) {
215
- return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201"], {
209
+ return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
216
210
  updateIntervalInMs: options?.updateIntervalInMs,
217
211
  abortSignal: options?.abortSignal,
218
212
  getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, playwrightWorkspaceName, resource, options),
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/playwrightWorkspaces/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,6BAA6B,EAC7B,+BAA+B,EAE/B,mCAAmC,EAEnC,0CAA0C,EAE1C,sCAAsC,EAEtC,yCAAyC,GAC1C,MAAM,wBAAwB,CAAC;AAUhC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,0BAA0B,CACxC,OAAe,EACf,IAAkC,EAClC,UAAmE;IACjE,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,2GAA2G,EAC3G;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;QAC7B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;QACD,IAAI,EAAE,sCAAsC,CAAC,IAAI,CAAC;KACnD,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UA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,+BAA+B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC;AAED,gCAAgC;AAChC,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,uBAA+B,EAC/B,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5F,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n PlaywrightWorkspace,\n playwrightWorkspaceSerializer,\n playwrightWorkspaceDeserializer,\n PlaywrightWorkspaceUpdate,\n playwrightWorkspaceUpdateSerializer,\n _PlaywrightWorkspaceListResult,\n _playwrightWorkspaceListResultDeserializer,\n CheckNameAvailabilityRequest,\n checkNameAvailabilityRequestSerializer,\n CheckNameAvailabilityResponse,\n checkNameAvailabilityResponseDeserializer,\n} from \"../../models/models.js\";\nimport {\n PlaywrightWorkspacesCheckNameAvailabilityOptionalParams,\n PlaywrightWorkspacesListBySubscriptionOptionalParams,\n PlaywrightWorkspacesListByResourceGroupOptionalParams,\n PlaywrightWorkspacesDeleteOptionalParams,\n PlaywrightWorkspacesUpdateOptionalParams,\n PlaywrightWorkspacesCreateOrUpdateOptionalParams,\n PlaywrightWorkspacesGetOptionalParams,\n} from \"./options.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _checkNameAvailabilitySend(\n context: Client,\n body: CheckNameAvailabilityRequest,\n options: PlaywrightWorkspacesCheckNameAvailabilityOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/checkNameAvailability{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: checkNameAvailabilityRequestSerializer(body),\n });\n}\n\nexport async function _checkNameAvailabilityDeserialize(\n result: PathUncheckedResponse,\n): Promise<CheckNameAvailabilityResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return checkNameAvailabilityResponseDeserializer(result.body);\n}\n\n/** Implements global CheckNameAvailability operations */\nexport async function checkNameAvailability(\n context: Client,\n body: CheckNameAvailabilityRequest,\n options: PlaywrightWorkspacesCheckNameAvailabilityOptionalParams = {\n requestOptions: {},\n },\n): Promise<CheckNameAvailabilityResponse> {\n const result = await _checkNameAvailabilitySend(context, body, options);\n return _checkNameAvailabilityDeserialize(result);\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: PlaywrightWorkspacesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/playwrightWorkspaces{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PlaywrightWorkspaceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _playwrightWorkspaceListResultDeserializer(result.body);\n}\n\n/** List PlaywrightWorkspace resources by subscription ID */\nexport function listBySubscription(\n context: Client,\n options: PlaywrightWorkspacesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PlaywrightWorkspace> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: PlaywrightWorkspacesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PlaywrightWorkspaceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _playwrightWorkspaceListResultDeserializer(result.body);\n}\n\n/** List PlaywrightWorkspace resources by resource group */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: PlaywrightWorkspacesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PlaywrightWorkspace> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspacesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n playwrightWorkspaceName: playwrightWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a PlaywrightWorkspace */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspacesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, resourceGroupName, playwrightWorkspaceName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n properties: PlaywrightWorkspaceUpdate,\n options: PlaywrightWorkspacesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n playwrightWorkspaceName: playwrightWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: playwrightWorkspaceUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<PlaywrightWorkspace> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return playwrightWorkspaceDeserializer(result.body);\n}\n\n/** Update a PlaywrightWorkspace */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n properties: PlaywrightWorkspaceUpdate,\n options: PlaywrightWorkspacesUpdateOptionalParams = { requestOptions: {} },\n): Promise<PlaywrightWorkspace> {\n const result = await _updateSend(\n context,\n resourceGroupName,\n playwrightWorkspaceName,\n properties,\n options,\n );\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n resource: PlaywrightWorkspace,\n options: PlaywrightWorkspacesCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n playwrightWorkspaceName: playwrightWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: playwrightWorkspaceSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<PlaywrightWorkspace> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return playwrightWorkspaceDeserializer(result.body);\n}\n\n/** Create a PlaywrightWorkspace */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n resource: PlaywrightWorkspace,\n options: PlaywrightWorkspacesCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<PlaywrightWorkspace>, PlaywrightWorkspace> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, playwrightWorkspaceName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<PlaywrightWorkspace>, PlaywrightWorkspace>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspacesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n playwrightWorkspaceName: playwrightWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<PlaywrightWorkspace> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return playwrightWorkspaceDeserializer(result.body);\n}\n\n/** Get a PlaywrightWorkspace */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspacesGetOptionalParams = { requestOptions: {} },\n): Promise<PlaywrightWorkspace> {\n const result = await _getSend(context, resourceGroupName, playwrightWorkspaceName, options);\n return _getDeserialize(result);\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/playwrightWorkspaces/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,6BAA6B,EAC7B,+BAA+B,EAE/B,mCAAmC,EAEnC,0CAA0C,EAE1C,sCAAsC,EAEtC,yCAAyC,GAC1C,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAUxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBA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AAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAA6B;IACjE,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,+BAA+B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC;AAED,gCAAgC;AAChC,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,uBAA+B,EAC/B,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;IAEvE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5F,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n PlaywrightWorkspace,\n playwrightWorkspaceSerializer,\n playwrightWorkspaceDeserializer,\n PlaywrightWorkspaceUpdate,\n playwrightWorkspaceUpdateSerializer,\n _PlaywrightWorkspaceListResult,\n _playwrightWorkspaceListResultDeserializer,\n CheckNameAvailabilityRequest,\n checkNameAvailabilityRequestSerializer,\n CheckNameAvailabilityResponse,\n checkNameAvailabilityResponseDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PlaywrightWorkspacesCheckNameAvailabilityOptionalParams,\n PlaywrightWorkspacesListBySubscriptionOptionalParams,\n PlaywrightWorkspacesListByResourceGroupOptionalParams,\n PlaywrightWorkspacesDeleteOptionalParams,\n PlaywrightWorkspacesUpdateOptionalParams,\n PlaywrightWorkspacesCreateOrUpdateOptionalParams,\n PlaywrightWorkspacesGetOptionalParams,\n} from \"./options.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _checkNameAvailabilitySend(\n context: Client,\n body: CheckNameAvailabilityRequest,\n options: PlaywrightWorkspacesCheckNameAvailabilityOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/checkNameAvailability{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: checkNameAvailabilityRequestSerializer(body),\n });\n}\n\nexport async function _checkNameAvailabilityDeserialize(\n result: PathUncheckedResponse,\n): Promise<CheckNameAvailabilityResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return checkNameAvailabilityResponseDeserializer(result.body);\n}\n\n/** Checks if a Playwright workspace name is available globally. */\nexport async function checkNameAvailability(\n context: Client,\n body: CheckNameAvailabilityRequest,\n options: PlaywrightWorkspacesCheckNameAvailabilityOptionalParams = {\n requestOptions: {},\n },\n): Promise<CheckNameAvailabilityResponse> {\n const result = await _checkNameAvailabilitySend(context, body, options);\n return _checkNameAvailabilityDeserialize(result);\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: PlaywrightWorkspacesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/playwrightWorkspaces{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PlaywrightWorkspaceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _playwrightWorkspaceListResultDeserializer(result.body);\n}\n\n/** List PlaywrightWorkspace resources by subscription ID */\nexport function listBySubscription(\n context: Client,\n options: PlaywrightWorkspacesListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PlaywrightWorkspace> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: PlaywrightWorkspacesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PlaywrightWorkspaceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _playwrightWorkspaceListResultDeserializer(result.body);\n}\n\n/** List PlaywrightWorkspace resources by resource group */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: PlaywrightWorkspacesListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PlaywrightWorkspace> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspacesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n playwrightWorkspaceName: playwrightWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Deletes a Playwright workspace resource asynchronously. */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspacesDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, resourceGroupName, playwrightWorkspaceName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n properties: PlaywrightWorkspaceUpdate,\n options: PlaywrightWorkspacesUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n playwrightWorkspaceName: playwrightWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: playwrightWorkspaceUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<PlaywrightWorkspace> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return playwrightWorkspaceDeserializer(result.body);\n}\n\n/** Updates a Playwright workspace resource synchronously. */\nexport async function update(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n properties: PlaywrightWorkspaceUpdate,\n options: PlaywrightWorkspacesUpdateOptionalParams = { requestOptions: {} },\n): Promise<PlaywrightWorkspace> {\n const result = await _updateSend(\n context,\n resourceGroupName,\n playwrightWorkspaceName,\n properties,\n options,\n );\n return _updateDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n resource: PlaywrightWorkspace,\n options: PlaywrightWorkspacesCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n playwrightWorkspaceName: playwrightWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: playwrightWorkspaceSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<PlaywrightWorkspace> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return playwrightWorkspaceDeserializer(result.body);\n}\n\n/** Create a PlaywrightWorkspace */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n resource: PlaywrightWorkspace,\n options: PlaywrightWorkspacesCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<PlaywrightWorkspace>, PlaywrightWorkspace> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, playwrightWorkspaceName, resource, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<PlaywrightWorkspace>, PlaywrightWorkspace>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspacesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n playwrightWorkspaceName: playwrightWorkspaceName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<PlaywrightWorkspace> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return playwrightWorkspaceDeserializer(result.body);\n}\n\n/** Get a PlaywrightWorkspace */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n playwrightWorkspaceName: string,\n options: PlaywrightWorkspacesGetOptionalParams = { requestOptions: {} },\n): Promise<PlaywrightWorkspace> {\n const result = await _getSend(context, resourceGroupName, playwrightWorkspaceName, options);\n return _getDeserialize(result);\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import { PlaywrightManagementContext } from "../../api/playwrightManagementContext.js";
2
- import { Operation } from "../../models/models.js";
3
2
  import { OperationsListOptionalParams } from "../../api/operations/options.js";
3
+ import { Operation } from "../../models/models.js";
4
4
  import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
5
  /** Interface representing a Operations operations. */
6
6
  export interface OperationsOperations {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAKlC,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAS1D,SAAS,cAAc,CAAC,OAAoC;IAC1D,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KACzE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAoC;IAEpC,OAAO;QACL,GAAG,cAAc,CAAC,OAAO,CAAC;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext } from \"../../api/playwrightManagementContext.js\";\nimport { Operation } from \"../../models/models.js\";\nimport { OperationsListOptionalParams } from \"../../api/operations/options.js\";\nimport { list } from \"../../api/operations/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Operations operations. */\nexport interface OperationsOperations {\n /** List the operations for the provider */\n list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;\n}\n\nfunction _getOperations(context: PlaywrightManagementContext) {\n return {\n list: (options?: OperationsListOptionalParams) => list(context, options),\n };\n}\n\nexport function _getOperationsOperations(\n context: PlaywrightManagementContext,\n): OperationsOperations {\n return {\n ..._getOperations(context),\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAW1D,SAAS,cAAc,CAAC,OAAoC;IAC1D,OAAO;QACL,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;KACzE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAoC;IAEpC,OAAO;QACL,GAAG,cAAc,CAAC,OAAO,CAAC;KAC3B,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext } from \"../../api/playwrightManagementContext.js\";\nimport { list } from \"../../api/operations/operations.js\";\nimport { OperationsListOptionalParams } from \"../../api/operations/options.js\";\nimport { Operation } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Operations operations. */\nexport interface OperationsOperations {\n /** List the operations for the provider */\n list: (options?: OperationsListOptionalParams) => PagedAsyncIterableIterator<Operation>;\n}\n\nfunction _getOperations(context: PlaywrightManagementContext) {\n return {\n list: (options?: OperationsListOptionalParams) => list(context, options),\n };\n}\n\nexport function _getOperationsOperations(\n context: PlaywrightManagementContext,\n): OperationsOperations {\n return {\n ..._getOperations(context),\n };\n}\n"]}
@@ -1,12 +1,12 @@
1
1
  import { PlaywrightManagementContext } from "../../api/playwrightManagementContext.js";
2
- import { PlaywrightQuota, QuotaName } from "../../models/models.js";
3
2
  import { PlaywrightQuotasListBySubscriptionOptionalParams, PlaywrightQuotasGetOptionalParams } from "../../api/playwrightQuotas/options.js";
3
+ import { PlaywrightQuota, QuotaName } from "../../models/models.js";
4
4
  import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
5
5
  /** Interface representing a PlaywrightQuotas operations. */
6
6
  export interface PlaywrightQuotasOperations {
7
- /** List Playwright quota resources for a given subscription Id. */
7
+ /** Lists Playwright quota resources for a given subscription ID. */
8
8
  listBySubscription: (location: string, options?: PlaywrightQuotasListBySubscriptionOptionalParams) => PagedAsyncIterableIterator<PlaywrightQuota>;
9
- /** Get subscription-level location-based Playwright quota resource by name. */
9
+ /** Gets a subscription-level location-based Playwright quota resource by name. */
10
10
  get: (location: string, playwrightQuotaName: QuotaName, options?: PlaywrightQuotasGetOptionalParams) => Promise<PlaywrightQuota>;
11
11
  }
12
12
  export declare function _getPlaywrightQuotasOperations(context: PlaywrightManagementContext): PlaywrightQuotasOperations;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/playwrightQuotas/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,0CAA0C,CAAC;AAkBnF,SAAS,oBAAoB,CAAC,OAAoC;IAChE,OAAO;QACL,kBAAkB,EAAE,CAClB,QAAgB,EAChB,OAA0D,EAC1D,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QACnD,GAAG,EAAE,CACH,QAAgB,EAChB,mBAA8B,EAC9B,OAA2C,EAC3C,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,CAAC;KAC1D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,OAAoC;IAEpC,OAAO;QACL,GAAG,oBAAoB,CAAC,OAAO,CAAC;KACjC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext } from \"../../api/playwrightManagementContext.js\";\nimport { PlaywrightQuota, QuotaName } from \"../../models/models.js\";\nimport {\n PlaywrightQuotasListBySubscriptionOptionalParams,\n PlaywrightQuotasGetOptionalParams,\n} from \"../../api/playwrightQuotas/options.js\";\nimport { listBySubscription, get } from \"../../api/playwrightQuotas/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a PlaywrightQuotas operations. */\nexport interface PlaywrightQuotasOperations {\n /** List Playwright quota resources for a given subscription Id. */\n listBySubscription: (\n location: string,\n options?: PlaywrightQuotasListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<PlaywrightQuota>;\n /** Get subscription-level location-based Playwright quota resource by name. */\n get: (\n location: string,\n playwrightQuotaName: QuotaName,\n options?: PlaywrightQuotasGetOptionalParams,\n ) => Promise<PlaywrightQuota>;\n}\n\nfunction _getPlaywrightQuotas(context: PlaywrightManagementContext) {\n return {\n listBySubscription: (\n location: string,\n options?: PlaywrightQuotasListBySubscriptionOptionalParams,\n ) => listBySubscription(context, location, options),\n get: (\n location: string,\n playwrightQuotaName: QuotaName,\n options?: PlaywrightQuotasGetOptionalParams,\n ) => get(context, location, playwrightQuotaName, options),\n };\n}\n\nexport function _getPlaywrightQuotasOperations(\n context: PlaywrightManagementContext,\n): PlaywrightQuotasOperations {\n return {\n ..._getPlaywrightQuotas(context),\n };\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/playwrightQuotas/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,0CAA0C,CAAC;AAuBnF,SAAS,oBAAoB,CAAC,OAAoC;IAChE,OAAO;QACL,kBAAkB,EAAE,CAClB,QAAgB,EAChB,OAA0D,EAC1D,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QACnD,GAAG,EAAE,CACH,QAAgB,EAChB,mBAA8B,EAC9B,OAA2C,EAC3C,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,OAAO,CAAC;KAC1D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,OAAoC;IAEpC,OAAO;QACL,GAAG,oBAAoB,CAAC,OAAO,CAAC;KACjC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { PlaywrightManagementContext } from \"../../api/playwrightManagementContext.js\";\nimport { listBySubscription, get } from \"../../api/playwrightQuotas/operations.js\";\nimport {\n PlaywrightQuotasListBySubscriptionOptionalParams,\n PlaywrightQuotasGetOptionalParams,\n} from \"../../api/playwrightQuotas/options.js\";\nimport { PlaywrightQuota, QuotaName } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a PlaywrightQuotas operations. */\nexport interface PlaywrightQuotasOperations {\n /** Lists Playwright quota resources for a given subscription ID. */\n listBySubscription: (\n location: string,\n options?: PlaywrightQuotasListBySubscriptionOptionalParams,\n ) => PagedAsyncIterableIterator<PlaywrightQuota>;\n /** Gets a subscription-level location-based Playwright quota resource by name. */\n get: (\n location: string,\n playwrightQuotaName: QuotaName,\n options?: PlaywrightQuotasGetOptionalParams,\n ) => Promise<PlaywrightQuota>;\n}\n\nfunction _getPlaywrightQuotas(context: PlaywrightManagementContext) {\n return {\n listBySubscription: (\n location: string,\n options?: PlaywrightQuotasListBySubscriptionOptionalParams,\n ) => listBySubscription(context, location, options),\n get: (\n location: string,\n playwrightQuotaName: QuotaName,\n options?: PlaywrightQuotasGetOptionalParams,\n ) => get(context, location, playwrightQuotaName, options),\n };\n}\n\nexport function _getPlaywrightQuotasOperations(\n context: PlaywrightManagementContext,\n): PlaywrightQuotasOperations {\n return {\n ..._getPlaywrightQuotas(context),\n };\n}\n"]}