@azure/arm-playwright 1.0.0-beta.1 → 1.0.0
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.
- package/README.md +1 -1
- package/dist/browser/api/operations/operations.d.ts +1 -1
- package/dist/browser/api/operations/operations.js +9 -4
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/playwrightManagementContext.d.ts +5 -2
- package/dist/browser/api/playwrightManagementContext.js +19 -12
- package/dist/browser/api/playwrightManagementContext.js.map +1 -1
- package/dist/browser/api/playwrightQuotas/operations.d.ts +3 -3
- package/dist/browser/api/playwrightQuotas/operations.js +19 -9
- package/dist/browser/api/playwrightQuotas/operations.js.map +1 -1
- package/dist/browser/api/playwrightWorkspaceQuotas/operations.d.ts +3 -3
- package/dist/browser/api/playwrightWorkspaceQuotas/operations.js +19 -9
- package/dist/browser/api/playwrightWorkspaceQuotas/operations.js.map +1 -1
- package/dist/browser/api/playwrightWorkspaces/operations.d.ts +4 -4
- package/dist/browser/api/playwrightWorkspaces/operations.js +66 -31
- package/dist/browser/api/playwrightWorkspaces/operations.js.map +1 -1
- package/dist/browser/classic/operations/index.d.ts +1 -1
- package/dist/browser/classic/operations/index.js +3 -1
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/classic/playwrightQuotas/index.d.ts +3 -3
- package/dist/browser/classic/playwrightQuotas/index.js +3 -1
- package/dist/browser/classic/playwrightQuotas/index.js.map +1 -1
- package/dist/browser/classic/playwrightWorkspaceQuotas/index.d.ts +3 -3
- package/dist/browser/classic/playwrightWorkspaceQuotas/index.js +3 -1
- package/dist/browser/classic/playwrightWorkspaceQuotas/index.js.map +1 -1
- package/dist/browser/classic/playwrightWorkspaces/index.d.ts +4 -4
- package/dist/browser/classic/playwrightWorkspaces/index.js +3 -1
- package/dist/browser/classic/playwrightWorkspaces/index.js.map +1 -1
- package/dist/browser/index.d.ts +2 -0
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +41 -39
- package/dist/browser/models/models.js +14 -13
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/playwrightManagementClient.d.ts +4 -4
- package/dist/browser/playwrightManagementClient.js +19 -6
- package/dist/browser/playwrightManagementClient.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +12 -14
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.js +31 -50
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js +14 -11
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js +4 -3
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/api/operations/operations.d.ts +1 -1
- package/dist/commonjs/api/operations/operations.js +9 -4
- package/dist/commonjs/api/operations/operations.js.map +1 -1
- package/dist/commonjs/api/playwrightManagementContext.d.ts +5 -2
- package/dist/commonjs/api/playwrightManagementContext.js +19 -12
- package/dist/commonjs/api/playwrightManagementContext.js.map +1 -1
- package/dist/commonjs/api/playwrightQuotas/operations.d.ts +3 -3
- package/dist/commonjs/api/playwrightQuotas/operations.js +19 -9
- package/dist/commonjs/api/playwrightQuotas/operations.js.map +1 -1
- package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.d.ts +3 -3
- package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.js +19 -9
- package/dist/commonjs/api/playwrightWorkspaceQuotas/operations.js.map +1 -1
- package/dist/commonjs/api/playwrightWorkspaces/operations.d.ts +4 -4
- package/dist/commonjs/api/playwrightWorkspaces/operations.js +66 -31
- package/dist/commonjs/api/playwrightWorkspaces/operations.js.map +1 -1
- package/dist/commonjs/classic/operations/index.d.ts +1 -1
- package/dist/commonjs/classic/operations/index.js +3 -1
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/classic/playwrightQuotas/index.d.ts +3 -3
- package/dist/commonjs/classic/playwrightQuotas/index.js +3 -1
- package/dist/commonjs/classic/playwrightQuotas/index.js.map +1 -1
- package/dist/commonjs/classic/playwrightWorkspaceQuotas/index.d.ts +3 -3
- package/dist/commonjs/classic/playwrightWorkspaceQuotas/index.js +3 -1
- package/dist/commonjs/classic/playwrightWorkspaceQuotas/index.js.map +1 -1
- package/dist/commonjs/classic/playwrightWorkspaces/index.d.ts +4 -4
- package/dist/commonjs/classic/playwrightWorkspaces/index.js +3 -1
- package/dist/commonjs/classic/playwrightWorkspaces/index.js.map +1 -1
- package/dist/commonjs/index.d.ts +2 -0
- package/dist/commonjs/index.js +3 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +41 -39
- package/dist/commonjs/models/models.js +14 -13
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/playwrightManagementClient.d.ts +4 -4
- package/dist/commonjs/playwrightManagementClient.js +23 -10
- package/dist/commonjs/playwrightManagementClient.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +12 -14
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +33 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +14 -11
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +4 -3
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/api/operations/operations.d.ts +1 -1
- package/dist/esm/api/operations/operations.js +9 -4
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/playwrightManagementContext.d.ts +5 -2
- package/dist/esm/api/playwrightManagementContext.js +19 -12
- package/dist/esm/api/playwrightManagementContext.js.map +1 -1
- package/dist/esm/api/playwrightQuotas/operations.d.ts +3 -3
- package/dist/esm/api/playwrightQuotas/operations.js +19 -9
- package/dist/esm/api/playwrightQuotas/operations.js.map +1 -1
- package/dist/esm/api/playwrightWorkspaceQuotas/operations.d.ts +3 -3
- package/dist/esm/api/playwrightWorkspaceQuotas/operations.js +19 -9
- package/dist/esm/api/playwrightWorkspaceQuotas/operations.js.map +1 -1
- package/dist/esm/api/playwrightWorkspaces/operations.d.ts +4 -4
- package/dist/esm/api/playwrightWorkspaces/operations.js +66 -31
- package/dist/esm/api/playwrightWorkspaces/operations.js.map +1 -1
- package/dist/esm/classic/operations/index.d.ts +1 -1
- package/dist/esm/classic/operations/index.js +3 -1
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/classic/playwrightQuotas/index.d.ts +3 -3
- package/dist/esm/classic/playwrightQuotas/index.js +3 -1
- package/dist/esm/classic/playwrightQuotas/index.js.map +1 -1
- package/dist/esm/classic/playwrightWorkspaceQuotas/index.d.ts +3 -3
- package/dist/esm/classic/playwrightWorkspaceQuotas/index.js +3 -1
- package/dist/esm/classic/playwrightWorkspaceQuotas/index.js.map +1 -1
- package/dist/esm/classic/playwrightWorkspaces/index.d.ts +4 -4
- package/dist/esm/classic/playwrightWorkspaces/index.js +3 -1
- package/dist/esm/classic/playwrightWorkspaces/index.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +41 -39
- package/dist/esm/models/models.js +14 -13
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/playwrightManagementClient.d.ts +4 -4
- package/dist/esm/playwrightManagementClient.js +19 -6
- package/dist/esm/playwrightManagementClient.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +12 -14
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.js +31 -50
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js +14 -11
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.js +4 -3
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/api/operations/operations.d.ts +1 -1
- package/dist/react-native/api/operations/operations.js +9 -4
- package/dist/react-native/api/operations/operations.js.map +1 -1
- package/dist/react-native/api/playwrightManagementContext.d.ts +5 -2
- package/dist/react-native/api/playwrightManagementContext.js +19 -12
- package/dist/react-native/api/playwrightManagementContext.js.map +1 -1
- package/dist/react-native/api/playwrightQuotas/operations.d.ts +3 -3
- package/dist/react-native/api/playwrightQuotas/operations.js +19 -9
- package/dist/react-native/api/playwrightQuotas/operations.js.map +1 -1
- package/dist/react-native/api/playwrightWorkspaceQuotas/operations.d.ts +3 -3
- package/dist/react-native/api/playwrightWorkspaceQuotas/operations.js +19 -9
- package/dist/react-native/api/playwrightWorkspaceQuotas/operations.js.map +1 -1
- package/dist/react-native/api/playwrightWorkspaces/operations.d.ts +4 -4
- package/dist/react-native/api/playwrightWorkspaces/operations.js +66 -31
- package/dist/react-native/api/playwrightWorkspaces/operations.js.map +1 -1
- package/dist/react-native/classic/operations/index.d.ts +1 -1
- package/dist/react-native/classic/operations/index.js +3 -1
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/classic/playwrightQuotas/index.d.ts +3 -3
- package/dist/react-native/classic/playwrightQuotas/index.js +3 -1
- package/dist/react-native/classic/playwrightQuotas/index.js.map +1 -1
- package/dist/react-native/classic/playwrightWorkspaceQuotas/index.d.ts +3 -3
- package/dist/react-native/classic/playwrightWorkspaceQuotas/index.js +3 -1
- package/dist/react-native/classic/playwrightWorkspaceQuotas/index.js.map +1 -1
- package/dist/react-native/classic/playwrightWorkspaces/index.d.ts +4 -4
- package/dist/react-native/classic/playwrightWorkspaces/index.js +3 -1
- package/dist/react-native/classic/playwrightWorkspaces/index.js.map +1 -1
- package/dist/react-native/index.d.ts +2 -0
- package/dist/react-native/index.js +2 -0
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +41 -39
- package/dist/react-native/models/models.js +14 -13
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/playwrightManagementClient.d.ts +4 -4
- package/dist/react-native/playwrightManagementClient.js +19 -6
- package/dist/react-native/playwrightManagementClient.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +12 -14
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +13 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js +29 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.js +14 -11
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.js +4 -3
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/package.json +40 -42
- package/CHANGELOG.md +0 -7
- package/review/arm-playwright-api-operations.api.md +0 -19
- package/review/arm-playwright-api-playwrightQuotas.api.md +0 -26
- package/review/arm-playwright-api-playwrightWorkspaceQuotas.api.md +0 -26
- package/review/arm-playwright-api-playwrightWorkspaces.api.md +0 -65
- package/review/arm-playwright-api.api.md +0 -27
- package/review/arm-playwright-models.api.md +0 -232
- package/review/arm-playwright.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
|
|
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,17 +1,22 @@
|
|
|
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
|
-
var _a, _b;
|
|
9
8
|
const path = expandUrlTemplate("/providers/Microsoft.LoadTestService/operations{?api%2Dversion}", {
|
|
10
9
|
"api%2Dversion": context.apiVersion,
|
|
11
10
|
}, {
|
|
12
|
-
allowReserved:
|
|
11
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
12
|
+
});
|
|
13
|
+
return context.path(path).get({
|
|
14
|
+
...operationOptionsToRequestParameters(options),
|
|
15
|
+
headers: {
|
|
16
|
+
accept: "application/json",
|
|
17
|
+
...options.requestOptions?.headers,
|
|
18
|
+
},
|
|
13
19
|
});
|
|
14
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
15
20
|
}
|
|
16
21
|
export async function _listDeserialize(result) {
|
|
17
22
|
const expectedStatuses = ["200"];
|
|
@@ -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;
|
|
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
|
|
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
|
|
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,23 +1,27 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { __rest } from "tslib";
|
|
4
3
|
import { logger } from "../logger.js";
|
|
4
|
+
import { getArmEndpoint } from "../static-helpers/cloudSettingHelpers.js";
|
|
5
5
|
import { getClient } from "@azure-rest/core-client";
|
|
6
|
-
/** Playwright
|
|
6
|
+
/** Playwright Service Management API provides access to Playwright workspace resources and their operations through Azure Resource Manager. */
|
|
7
7
|
export function createPlaywrightManagement(credential, subscriptionId, options = {}) {
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const userAgentInfo = `azsdk-js-arm-playwright/1.0.0-beta.1`;
|
|
8
|
+
const endpointUrl = options.endpoint ?? getArmEndpoint(options.cloudSetting) ?? "https://management.azure.com";
|
|
9
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
10
|
+
const userAgentInfo = `azsdk-js-arm-playwright/1.0.0`;
|
|
12
11
|
const userAgentPrefix = prefixFromOptions
|
|
13
12
|
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
14
13
|
: `azsdk-js-api ${userAgentInfo}`;
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
const { apiVersion: _, ...updatedOptions } = {
|
|
15
|
+
...options,
|
|
16
|
+
userAgentOptions: { userAgentPrefix },
|
|
17
|
+
loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
|
|
18
|
+
credentials: {
|
|
19
|
+
scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
18
22
|
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
19
23
|
clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
20
|
-
const apiVersion =
|
|
24
|
+
const apiVersion = options.apiVersion ?? "2025-09-01";
|
|
21
25
|
clientContext.pipeline.addPolicy({
|
|
22
26
|
name: "ClientApiVersionPolicy",
|
|
23
27
|
sendRequest: (req, next) => {
|
|
@@ -30,7 +34,10 @@ export function createPlaywrightManagement(credential, subscriptionId, options =
|
|
|
30
34
|
return next(req);
|
|
31
35
|
},
|
|
32
36
|
});
|
|
33
|
-
return
|
|
34
|
-
|
|
37
|
+
return {
|
|
38
|
+
...clientContext,
|
|
39
|
+
apiVersion,
|
|
40
|
+
subscriptionId,
|
|
41
|
+
};
|
|
35
42
|
}
|
|
36
43
|
//# sourceMappingURL=playwrightManagementContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playwrightManagementContext.js","sourceRoot":"","sources":["../../../src/api/playwrightManagementContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC
|
|
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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AC,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 { 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
|
-
/**
|
|
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
|
-
/**
|
|
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,21 +1,26 @@
|
|
|
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: {},
|
|
9
9
|
}) {
|
|
10
|
-
var _a, _b;
|
|
11
10
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/playwrightQuotas{?api%2Dversion}", {
|
|
12
11
|
subscriptionId: context.subscriptionId,
|
|
13
12
|
location: location,
|
|
14
13
|
"api%2Dversion": context.apiVersion,
|
|
15
14
|
}, {
|
|
16
|
-
allowReserved:
|
|
15
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
16
|
+
});
|
|
17
|
+
return context.path(path).get({
|
|
18
|
+
...operationOptionsToRequestParameters(options),
|
|
19
|
+
headers: {
|
|
20
|
+
accept: "application/json",
|
|
21
|
+
...options.requestOptions?.headers,
|
|
22
|
+
},
|
|
17
23
|
});
|
|
18
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
19
24
|
}
|
|
20
25
|
export async function _listBySubscriptionDeserialize(result) {
|
|
21
26
|
const expectedStatuses = ["200"];
|
|
@@ -26,23 +31,28 @@ export async function _listBySubscriptionDeserialize(result) {
|
|
|
26
31
|
}
|
|
27
32
|
return _playwrightQuotaListResultDeserializer(result.body);
|
|
28
33
|
}
|
|
29
|
-
/**
|
|
34
|
+
/** Lists Playwright quota resources for a given subscription ID. */
|
|
30
35
|
export function listBySubscription(context, location, options = {
|
|
31
36
|
requestOptions: {},
|
|
32
37
|
}) {
|
|
33
38
|
return buildPagedAsyncIterator(context, () => _listBySubscriptionSend(context, location, options), _listBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
34
39
|
}
|
|
35
40
|
export function _getSend(context, location, playwrightQuotaName, options = { requestOptions: {} }) {
|
|
36
|
-
var _a, _b;
|
|
37
41
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/playwrightQuotas/{playwrightQuotaName}{?api%2Dversion}", {
|
|
38
42
|
subscriptionId: context.subscriptionId,
|
|
39
43
|
location: location,
|
|
40
44
|
playwrightQuotaName: playwrightQuotaName,
|
|
41
45
|
"api%2Dversion": context.apiVersion,
|
|
42
46
|
}, {
|
|
43
|
-
allowReserved:
|
|
47
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
48
|
+
});
|
|
49
|
+
return context.path(path).get({
|
|
50
|
+
...operationOptionsToRequestParameters(options),
|
|
51
|
+
headers: {
|
|
52
|
+
accept: "application/json",
|
|
53
|
+
...options.requestOptions?.headers,
|
|
54
|
+
},
|
|
44
55
|
});
|
|
45
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
46
56
|
}
|
|
47
57
|
export async function _getDeserialize(result) {
|
|
48
58
|
const expectedStatuses = ["200"];
|
|
@@ -53,7 +63,7 @@ export async function _getDeserialize(result) {
|
|
|
53
63
|
}
|
|
54
64
|
return playwrightQuotaDeserializer(result.body);
|
|
55
65
|
}
|
|
56
|
-
/**
|
|
66
|
+
/** Gets a subscription-level location-based Playwright quota resource by name. */
|
|
57
67
|
export async function get(context, location, playwrightQuotaName, options = { requestOptions: {} }) {
|
|
58
68
|
const result = await _getSend(context, location, playwrightQuotaName, options);
|
|
59
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,wBAAwB,CAAC;
|
|
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,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,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
|
-
/**
|
|
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
|
-
/**
|
|
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,22 +1,27 @@
|
|
|
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: {},
|
|
9
9
|
}) {
|
|
10
|
-
var _a, _b;
|
|
11
10
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}/quotas{?api%2Dversion}", {
|
|
12
11
|
subscriptionId: context.subscriptionId,
|
|
13
12
|
resourceGroupName: resourceGroupName,
|
|
14
13
|
playwrightWorkspaceName: playwrightWorkspaceName,
|
|
15
14
|
"api%2Dversion": context.apiVersion,
|
|
16
15
|
}, {
|
|
17
|
-
allowReserved:
|
|
16
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
17
|
+
});
|
|
18
|
+
return context.path(path).get({
|
|
19
|
+
...operationOptionsToRequestParameters(options),
|
|
20
|
+
headers: {
|
|
21
|
+
accept: "application/json",
|
|
22
|
+
...options.requestOptions?.headers,
|
|
23
|
+
},
|
|
18
24
|
});
|
|
19
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
20
25
|
}
|
|
21
26
|
export async function _listByPlaywrightWorkspaceDeserialize(result) {
|
|
22
27
|
const expectedStatuses = ["200"];
|
|
@@ -27,14 +32,13 @@ export async function _listByPlaywrightWorkspaceDeserialize(result) {
|
|
|
27
32
|
}
|
|
28
33
|
return _playwrightWorkspaceQuotaListResultDeserializer(result.body);
|
|
29
34
|
}
|
|
30
|
-
/**
|
|
35
|
+
/** Lists quota resources for a given Playwright workspace. */
|
|
31
36
|
export function listByPlaywrightWorkspace(context, resourceGroupName, playwrightWorkspaceName, options = {
|
|
32
37
|
requestOptions: {},
|
|
33
38
|
}) {
|
|
34
39
|
return buildPagedAsyncIterator(context, () => _listByPlaywrightWorkspaceSend(context, resourceGroupName, playwrightWorkspaceName, options), _listByPlaywrightWorkspaceDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
35
40
|
}
|
|
36
41
|
export function _getSend(context, resourceGroupName, playwrightWorkspaceName, quotaName, options = { requestOptions: {} }) {
|
|
37
|
-
var _a, _b;
|
|
38
42
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}/quotas/{quotaName}{?api%2Dversion}", {
|
|
39
43
|
subscriptionId: context.subscriptionId,
|
|
40
44
|
resourceGroupName: resourceGroupName,
|
|
@@ -42,9 +46,15 @@ export function _getSend(context, resourceGroupName, playwrightWorkspaceName, qu
|
|
|
42
46
|
quotaName: quotaName,
|
|
43
47
|
"api%2Dversion": context.apiVersion,
|
|
44
48
|
}, {
|
|
45
|
-
allowReserved:
|
|
49
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
50
|
+
});
|
|
51
|
+
return context.path(path).get({
|
|
52
|
+
...operationOptionsToRequestParameters(options),
|
|
53
|
+
headers: {
|
|
54
|
+
accept: "application/json",
|
|
55
|
+
...options.requestOptions?.headers,
|
|
56
|
+
},
|
|
46
57
|
});
|
|
47
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
48
58
|
}
|
|
49
59
|
export async function _getDeserialize(result) {
|
|
50
60
|
const expectedStatuses = ["200"];
|
|
@@ -55,7 +65,7 @@ export async function _getDeserialize(result) {
|
|
|
55
65
|
}
|
|
56
66
|
return playwrightWorkspaceQuotaDeserializer(result.body);
|
|
57
67
|
}
|
|
58
|
-
/**
|
|
68
|
+
/** Gets a Playwright workspace quota resource by name. */
|
|
59
69
|
export async function get(context, resourceGroupName, playwrightWorkspaceName, quotaName, options = { requestOptions: {} }) {
|
|
60
70
|
const result = await _getSend(context, resourceGroupName, playwrightWorkspaceName, quotaName, options);
|
|
61
71
|
return _getDeserialize(result);
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,OAAe,EACf,iBAAyB,EACzB,uBAA+B,EAC/B,UAA4E;IAC1E,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,8KAA8K,EAC9K;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,uBAAuB,EAAE,uBAAuB;Q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C,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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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>;
|