@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
|
@@ -3,24 +3,28 @@
|
|
|
3
3
|
// Licensed under the MIT License.
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.createPlaywrightManagement = createPlaywrightManagement;
|
|
6
|
-
const tslib_1 = require("tslib");
|
|
7
6
|
const logger_js_1 = require("../logger.js");
|
|
7
|
+
const cloudSettingHelpers_js_1 = require("../static-helpers/cloudSettingHelpers.js");
|
|
8
8
|
const core_client_1 = require("@azure-rest/core-client");
|
|
9
|
-
/** Playwright
|
|
9
|
+
/** Playwright Service Management API provides access to Playwright workspace resources and their operations through Azure Resource Manager. */
|
|
10
10
|
function createPlaywrightManagement(credential, subscriptionId, options = {}) {
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const userAgentInfo = `azsdk-js-arm-playwright/1.0.0-beta.1`;
|
|
11
|
+
const endpointUrl = options.endpoint ?? (0, cloudSettingHelpers_js_1.getArmEndpoint)(options.cloudSetting) ?? "https://management.azure.com";
|
|
12
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
13
|
+
const userAgentInfo = `azsdk-js-arm-playwright/1.0.0`;
|
|
15
14
|
const userAgentPrefix = prefixFromOptions
|
|
16
15
|
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
17
16
|
: `azsdk-js-api ${userAgentInfo}`;
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
const { apiVersion: _, ...updatedOptions } = {
|
|
18
|
+
...options,
|
|
19
|
+
userAgentOptions: { userAgentPrefix },
|
|
20
|
+
loggingOptions: { logger: options.loggingOptions?.logger ?? logger_js_1.logger.info },
|
|
21
|
+
credentials: {
|
|
22
|
+
scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],
|
|
23
|
+
},
|
|
24
|
+
};
|
|
21
25
|
const clientContext = (0, core_client_1.getClient)(endpointUrl, credential, updatedOptions);
|
|
22
26
|
clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
23
|
-
const apiVersion =
|
|
27
|
+
const apiVersion = options.apiVersion ?? "2025-09-01";
|
|
24
28
|
clientContext.pipeline.addPolicy({
|
|
25
29
|
name: "ClientApiVersionPolicy",
|
|
26
30
|
sendRequest: (req, next) => {
|
|
@@ -33,7 +37,10 @@ function createPlaywrightManagement(credential, subscriptionId, options = {}) {
|
|
|
33
37
|
return next(req);
|
|
34
38
|
},
|
|
35
39
|
});
|
|
36
|
-
return
|
|
37
|
-
|
|
40
|
+
return {
|
|
41
|
+
...clientContext,
|
|
42
|
+
apiVersion,
|
|
43
|
+
subscriptionId,
|
|
44
|
+
};
|
|
38
45
|
}
|
|
39
46
|
//# 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;;AA2BlC,gEA2CC;AApED,4CAAsC;AAEtC,qFAAgG;AAChG,yDAA2E;AAqB3E,+IAA+I;AAC/I,SAAgB,0BAA0B,CACxC,UAA2B,EAC3B,cAAsB,EACtB,UAAoD,EAAE;IAEtD,MAAM,WAAW,GACf,OAAO,CAAC,QAAQ,IAAI,IAAA,uCAAc,EAAC,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,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,kBAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE;KACF,CAAC;IACF,MAAM,aAAa,GAAG,IAAA,uBAAS,EAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACtD,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC/B,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,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 { 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
|
|
@@ -9,21 +9,26 @@ exports._getSend = _getSend;
|
|
|
9
9
|
exports._getDeserialize = _getDeserialize;
|
|
10
10
|
exports.get = get;
|
|
11
11
|
const models_js_1 = require("../../models/models.js");
|
|
12
|
-
const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
|
|
13
12
|
const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
13
|
+
const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
|
|
14
14
|
const core_client_1 = require("@azure-rest/core-client");
|
|
15
15
|
function _listBySubscriptionSend(context, location, options = {
|
|
16
16
|
requestOptions: {},
|
|
17
17
|
}) {
|
|
18
|
-
var _a, _b;
|
|
19
18
|
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/playwrightQuotas{?api%2Dversion}", {
|
|
20
19
|
subscriptionId: context.subscriptionId,
|
|
21
20
|
location: location,
|
|
22
21
|
"api%2Dversion": context.apiVersion,
|
|
23
22
|
}, {
|
|
24
|
-
allowReserved:
|
|
23
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
24
|
+
});
|
|
25
|
+
return context.path(path).get({
|
|
26
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
27
|
+
headers: {
|
|
28
|
+
accept: "application/json",
|
|
29
|
+
...options.requestOptions?.headers,
|
|
30
|
+
},
|
|
25
31
|
});
|
|
26
|
-
return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
27
32
|
}
|
|
28
33
|
async function _listBySubscriptionDeserialize(result) {
|
|
29
34
|
const expectedStatuses = ["200"];
|
|
@@ -34,23 +39,28 @@ async function _listBySubscriptionDeserialize(result) {
|
|
|
34
39
|
}
|
|
35
40
|
return (0, models_js_1._playwrightQuotaListResultDeserializer)(result.body);
|
|
36
41
|
}
|
|
37
|
-
/**
|
|
42
|
+
/** Lists Playwright quota resources for a given subscription ID. */
|
|
38
43
|
function listBySubscription(context, location, options = {
|
|
39
44
|
requestOptions: {},
|
|
40
45
|
}) {
|
|
41
46
|
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listBySubscriptionSend(context, location, options), _listBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
42
47
|
}
|
|
43
48
|
function _getSend(context, location, playwrightQuotaName, options = { requestOptions: {} }) {
|
|
44
|
-
var _a, _b;
|
|
45
49
|
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/locations/{location}/playwrightQuotas/{playwrightQuotaName}{?api%2Dversion}", {
|
|
46
50
|
subscriptionId: context.subscriptionId,
|
|
47
51
|
location: location,
|
|
48
52
|
playwrightQuotaName: playwrightQuotaName,
|
|
49
53
|
"api%2Dversion": context.apiVersion,
|
|
50
54
|
}, {
|
|
51
|
-
allowReserved:
|
|
55
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
56
|
+
});
|
|
57
|
+
return context.path(path).get({
|
|
58
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
59
|
+
headers: {
|
|
60
|
+
accept: "application/json",
|
|
61
|
+
...options.requestOptions?.headers,
|
|
62
|
+
},
|
|
52
63
|
});
|
|
53
|
-
return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
54
64
|
}
|
|
55
65
|
async function _getDeserialize(result) {
|
|
56
66
|
const expectedStatuses = ["200"];
|
|
@@ -61,7 +71,7 @@ async function _getDeserialize(result) {
|
|
|
61
71
|
}
|
|
62
72
|
return (0, models_js_1.playwrightQuotaDeserializer)(result.body);
|
|
63
73
|
}
|
|
64
|
-
/**
|
|
74
|
+
/** Gets a subscription-level location-based Playwright quota resource by name. */
|
|
65
75
|
async function get(context, location, playwrightQuotaName, options = { requestOptions: {} }) {
|
|
66
76
|
const result = await _getSend(context, location, playwrightQuotaName, options);
|
|
67
77
|
return _getDeserialize(result);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/playwrightQuotas/operations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA2BlC,0DAyBC;AAED,wEAWC;AAGD,gDAcC;AAED,4BAyBC;AAED,0CASC;AAGD,kBAQC;AAhID,sDAOgC;
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/playwrightQuotas/operations.ts"],"names":[],"mappings":"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","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
|
|
@@ -9,22 +9,27 @@ exports._getSend = _getSend;
|
|
|
9
9
|
exports._getDeserialize = _getDeserialize;
|
|
10
10
|
exports.get = get;
|
|
11
11
|
const models_js_1 = require("../../models/models.js");
|
|
12
|
-
const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
|
|
13
12
|
const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
13
|
+
const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
|
|
14
14
|
const core_client_1 = require("@azure-rest/core-client");
|
|
15
15
|
function _listByPlaywrightWorkspaceSend(context, resourceGroupName, playwrightWorkspaceName, options = {
|
|
16
16
|
requestOptions: {},
|
|
17
17
|
}) {
|
|
18
|
-
var _a, _b;
|
|
19
18
|
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}/quotas{?api%2Dversion}", {
|
|
20
19
|
subscriptionId: context.subscriptionId,
|
|
21
20
|
resourceGroupName: resourceGroupName,
|
|
22
21
|
playwrightWorkspaceName: playwrightWorkspaceName,
|
|
23
22
|
"api%2Dversion": context.apiVersion,
|
|
24
23
|
}, {
|
|
25
|
-
allowReserved:
|
|
24
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
25
|
+
});
|
|
26
|
+
return context.path(path).get({
|
|
27
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
28
|
+
headers: {
|
|
29
|
+
accept: "application/json",
|
|
30
|
+
...options.requestOptions?.headers,
|
|
31
|
+
},
|
|
26
32
|
});
|
|
27
|
-
return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
28
33
|
}
|
|
29
34
|
async function _listByPlaywrightWorkspaceDeserialize(result) {
|
|
30
35
|
const expectedStatuses = ["200"];
|
|
@@ -35,14 +40,13 @@ async function _listByPlaywrightWorkspaceDeserialize(result) {
|
|
|
35
40
|
}
|
|
36
41
|
return (0, models_js_1._playwrightWorkspaceQuotaListResultDeserializer)(result.body);
|
|
37
42
|
}
|
|
38
|
-
/**
|
|
43
|
+
/** Lists quota resources for a given Playwright workspace. */
|
|
39
44
|
function listByPlaywrightWorkspace(context, resourceGroupName, playwrightWorkspaceName, options = {
|
|
40
45
|
requestOptions: {},
|
|
41
46
|
}) {
|
|
42
47
|
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listByPlaywrightWorkspaceSend(context, resourceGroupName, playwrightWorkspaceName, options), _listByPlaywrightWorkspaceDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
43
48
|
}
|
|
44
49
|
function _getSend(context, resourceGroupName, playwrightWorkspaceName, quotaName, options = { requestOptions: {} }) {
|
|
45
|
-
var _a, _b;
|
|
46
50
|
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}/quotas/{quotaName}{?api%2Dversion}", {
|
|
47
51
|
subscriptionId: context.subscriptionId,
|
|
48
52
|
resourceGroupName: resourceGroupName,
|
|
@@ -50,9 +54,15 @@ function _getSend(context, resourceGroupName, playwrightWorkspaceName, quotaName
|
|
|
50
54
|
quotaName: quotaName,
|
|
51
55
|
"api%2Dversion": context.apiVersion,
|
|
52
56
|
}, {
|
|
53
|
-
allowReserved:
|
|
57
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
58
|
+
});
|
|
59
|
+
return context.path(path).get({
|
|
60
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
61
|
+
headers: {
|
|
62
|
+
accept: "application/json",
|
|
63
|
+
...options.requestOptions?.headers,
|
|
64
|
+
},
|
|
54
65
|
});
|
|
55
|
-
return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
56
66
|
}
|
|
57
67
|
async function _getDeserialize(result) {
|
|
58
68
|
const expectedStatuses = ["200"];
|
|
@@ -63,7 +73,7 @@ async function _getDeserialize(result) {
|
|
|
63
73
|
}
|
|
64
74
|
return (0, models_js_1.playwrightWorkspaceQuotaDeserializer)(result.body);
|
|
65
75
|
}
|
|
66
|
-
/**
|
|
76
|
+
/** Gets a Playwright workspace quota resource by name. */
|
|
67
77
|
async function get(context, resourceGroupName, playwrightWorkspaceName, quotaName, options = { requestOptions: {} }) {
|
|
68
78
|
const result = await _getSend(context, resourceGroupName, playwrightWorkspaceName, quotaName, options);
|
|
69
79
|
return _getDeserialize(result);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/playwrightWorkspaceQuotas/operations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA2BlC,wEA2BC;AAED,sFAWC;AAGD,8DAgBC;AAED,4BA2BC;AAED,0CAWC;AAGD,kBAeC;AA/ID,sDAOgC;
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/playwrightWorkspaceQuotas/operations.ts"],"names":[],"mappings":"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","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>;
|
|
@@ -24,21 +24,28 @@ exports._getSend = _getSend;
|
|
|
24
24
|
exports._getDeserialize = _getDeserialize;
|
|
25
25
|
exports.get = get;
|
|
26
26
|
const models_js_1 = require("../../models/models.js");
|
|
27
|
+
const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
27
28
|
const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
|
|
28
29
|
const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
|
|
29
|
-
const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
30
30
|
const core_client_1 = require("@azure-rest/core-client");
|
|
31
31
|
function _checkNameAvailabilitySend(context, body, options = {
|
|
32
32
|
requestOptions: {},
|
|
33
33
|
}) {
|
|
34
|
-
var _a, _b;
|
|
35
34
|
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/checkNameAvailability{?api%2Dversion}", {
|
|
36
35
|
subscriptionId: context.subscriptionId,
|
|
37
36
|
"api%2Dversion": context.apiVersion,
|
|
38
37
|
}, {
|
|
39
|
-
allowReserved:
|
|
38
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
39
|
+
});
|
|
40
|
+
return context.path(path).post({
|
|
41
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
42
|
+
contentType: "application/json",
|
|
43
|
+
headers: {
|
|
44
|
+
accept: "application/json",
|
|
45
|
+
...options.requestOptions?.headers,
|
|
46
|
+
},
|
|
47
|
+
body: (0, models_js_1.checkNameAvailabilityRequestSerializer)(body),
|
|
40
48
|
});
|
|
41
|
-
return context.path(path).post(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.checkNameAvailabilityRequestSerializer)(body) }));
|
|
42
49
|
}
|
|
43
50
|
async function _checkNameAvailabilityDeserialize(result) {
|
|
44
51
|
const expectedStatuses = ["200"];
|
|
@@ -49,7 +56,7 @@ async function _checkNameAvailabilityDeserialize(result) {
|
|
|
49
56
|
}
|
|
50
57
|
return (0, models_js_1.checkNameAvailabilityResponseDeserializer)(result.body);
|
|
51
58
|
}
|
|
52
|
-
/**
|
|
59
|
+
/** Checks if a Playwright workspace name is available globally. */
|
|
53
60
|
async function checkNameAvailability(context, body, options = {
|
|
54
61
|
requestOptions: {},
|
|
55
62
|
}) {
|
|
@@ -59,14 +66,19 @@ async function checkNameAvailability(context, body, options = {
|
|
|
59
66
|
function _listBySubscriptionSend(context, options = {
|
|
60
67
|
requestOptions: {},
|
|
61
68
|
}) {
|
|
62
|
-
var _a, _b;
|
|
63
69
|
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.LoadTestService/playwrightWorkspaces{?api%2Dversion}", {
|
|
64
70
|
subscriptionId: context.subscriptionId,
|
|
65
71
|
"api%2Dversion": context.apiVersion,
|
|
66
72
|
}, {
|
|
67
|
-
allowReserved:
|
|
73
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
74
|
+
});
|
|
75
|
+
return context.path(path).get({
|
|
76
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
77
|
+
headers: {
|
|
78
|
+
accept: "application/json",
|
|
79
|
+
...options.requestOptions?.headers,
|
|
80
|
+
},
|
|
68
81
|
});
|
|
69
|
-
return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
70
82
|
}
|
|
71
83
|
async function _listBySubscriptionDeserialize(result) {
|
|
72
84
|
const expectedStatuses = ["200"];
|
|
@@ -86,15 +98,20 @@ function listBySubscription(context, options = {
|
|
|
86
98
|
function _listByResourceGroupSend(context, resourceGroupName, options = {
|
|
87
99
|
requestOptions: {},
|
|
88
100
|
}) {
|
|
89
|
-
var _a, _b;
|
|
90
101
|
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces{?api%2Dversion}", {
|
|
91
102
|
subscriptionId: context.subscriptionId,
|
|
92
103
|
resourceGroupName: resourceGroupName,
|
|
93
104
|
"api%2Dversion": context.apiVersion,
|
|
94
105
|
}, {
|
|
95
|
-
allowReserved:
|
|
106
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
107
|
+
});
|
|
108
|
+
return context.path(path).get({
|
|
109
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
110
|
+
headers: {
|
|
111
|
+
accept: "application/json",
|
|
112
|
+
...options.requestOptions?.headers,
|
|
113
|
+
},
|
|
96
114
|
});
|
|
97
|
-
return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
98
115
|
}
|
|
99
116
|
async function _listByResourceGroupDeserialize(result) {
|
|
100
117
|
const expectedStatuses = ["200"];
|
|
@@ -112,16 +129,15 @@ function listByResourceGroup(context, resourceGroupName, options = {
|
|
|
112
129
|
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
113
130
|
}
|
|
114
131
|
function _$deleteSend(context, resourceGroupName, playwrightWorkspaceName, options = { requestOptions: {} }) {
|
|
115
|
-
var _a, _b;
|
|
116
132
|
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}", {
|
|
117
133
|
subscriptionId: context.subscriptionId,
|
|
118
134
|
resourceGroupName: resourceGroupName,
|
|
119
135
|
playwrightWorkspaceName: playwrightWorkspaceName,
|
|
120
136
|
"api%2Dversion": context.apiVersion,
|
|
121
137
|
}, {
|
|
122
|
-
allowReserved:
|
|
138
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
123
139
|
});
|
|
124
|
-
return context.path(path).delete(
|
|
140
|
+
return context.path(path).delete({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
125
141
|
}
|
|
126
142
|
async function _$deleteDeserialize(result) {
|
|
127
143
|
const expectedStatuses = ["202", "204", "200"];
|
|
@@ -132,7 +148,7 @@ async function _$deleteDeserialize(result) {
|
|
|
132
148
|
}
|
|
133
149
|
return;
|
|
134
150
|
}
|
|
135
|
-
/**
|
|
151
|
+
/** Deletes a Playwright workspace resource asynchronously. */
|
|
136
152
|
/**
|
|
137
153
|
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
138
154
|
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
@@ -140,23 +156,30 @@ async function _$deleteDeserialize(result) {
|
|
|
140
156
|
*/
|
|
141
157
|
function $delete(context, resourceGroupName, playwrightWorkspaceName, options = { requestOptions: {} }) {
|
|
142
158
|
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
143
|
-
updateIntervalInMs: options
|
|
144
|
-
abortSignal: options
|
|
159
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
160
|
+
abortSignal: options?.abortSignal,
|
|
145
161
|
getInitialResponse: () => _$deleteSend(context, resourceGroupName, playwrightWorkspaceName, options),
|
|
146
162
|
resourceLocationConfig: "location",
|
|
147
163
|
});
|
|
148
164
|
}
|
|
149
165
|
function _updateSend(context, resourceGroupName, playwrightWorkspaceName, properties, options = { requestOptions: {} }) {
|
|
150
|
-
var _a, _b;
|
|
151
166
|
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}", {
|
|
152
167
|
subscriptionId: context.subscriptionId,
|
|
153
168
|
resourceGroupName: resourceGroupName,
|
|
154
169
|
playwrightWorkspaceName: playwrightWorkspaceName,
|
|
155
170
|
"api%2Dversion": context.apiVersion,
|
|
156
171
|
}, {
|
|
157
|
-
allowReserved:
|
|
172
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
173
|
+
});
|
|
174
|
+
return context.path(path).patch({
|
|
175
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
176
|
+
contentType: "application/json",
|
|
177
|
+
headers: {
|
|
178
|
+
accept: "application/json",
|
|
179
|
+
...options.requestOptions?.headers,
|
|
180
|
+
},
|
|
181
|
+
body: (0, models_js_1.playwrightWorkspaceUpdateSerializer)(properties),
|
|
158
182
|
});
|
|
159
|
-
return context.path(path).patch(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.playwrightWorkspaceUpdateSerializer)(properties) }));
|
|
160
183
|
}
|
|
161
184
|
async function _updateDeserialize(result) {
|
|
162
185
|
const expectedStatuses = ["200"];
|
|
@@ -167,7 +190,7 @@ async function _updateDeserialize(result) {
|
|
|
167
190
|
}
|
|
168
191
|
return (0, models_js_1.playwrightWorkspaceDeserializer)(result.body);
|
|
169
192
|
}
|
|
170
|
-
/**
|
|
193
|
+
/** Updates a Playwright workspace resource synchronously. */
|
|
171
194
|
async function update(context, resourceGroupName, playwrightWorkspaceName, properties, options = { requestOptions: {} }) {
|
|
172
195
|
const result = await _updateSend(context, resourceGroupName, playwrightWorkspaceName, properties, options);
|
|
173
196
|
return _updateDeserialize(result);
|
|
@@ -175,19 +198,26 @@ async function update(context, resourceGroupName, playwrightWorkspaceName, prope
|
|
|
175
198
|
function _createOrUpdateSend(context, resourceGroupName, playwrightWorkspaceName, resource, options = {
|
|
176
199
|
requestOptions: {},
|
|
177
200
|
}) {
|
|
178
|
-
var _a, _b;
|
|
179
201
|
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}", {
|
|
180
202
|
subscriptionId: context.subscriptionId,
|
|
181
203
|
resourceGroupName: resourceGroupName,
|
|
182
204
|
playwrightWorkspaceName: playwrightWorkspaceName,
|
|
183
205
|
"api%2Dversion": context.apiVersion,
|
|
184
206
|
}, {
|
|
185
|
-
allowReserved:
|
|
207
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
208
|
+
});
|
|
209
|
+
return context.path(path).put({
|
|
210
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
211
|
+
contentType: "application/json",
|
|
212
|
+
headers: {
|
|
213
|
+
accept: "application/json",
|
|
214
|
+
...options.requestOptions?.headers,
|
|
215
|
+
},
|
|
216
|
+
body: (0, models_js_1.playwrightWorkspaceSerializer)(resource),
|
|
186
217
|
});
|
|
187
|
-
return context.path(path).put(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: (0, models_js_1.playwrightWorkspaceSerializer)(resource) }));
|
|
188
218
|
}
|
|
189
219
|
async function _createOrUpdateDeserialize(result) {
|
|
190
|
-
const expectedStatuses = ["200", "201"];
|
|
220
|
+
const expectedStatuses = ["200", "201", "202"];
|
|
191
221
|
if (!expectedStatuses.includes(result.status)) {
|
|
192
222
|
const error = (0, core_client_1.createRestError)(result);
|
|
193
223
|
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
@@ -199,24 +229,29 @@ async function _createOrUpdateDeserialize(result) {
|
|
|
199
229
|
function createOrUpdate(context, resourceGroupName, playwrightWorkspaceName, resource, options = {
|
|
200
230
|
requestOptions: {},
|
|
201
231
|
}) {
|
|
202
|
-
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createOrUpdateDeserialize, ["200", "201"], {
|
|
203
|
-
updateIntervalInMs: options
|
|
204
|
-
abortSignal: options
|
|
232
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
|
|
233
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
234
|
+
abortSignal: options?.abortSignal,
|
|
205
235
|
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, playwrightWorkspaceName, resource, options),
|
|
206
236
|
resourceLocationConfig: "azure-async-operation",
|
|
207
237
|
});
|
|
208
238
|
}
|
|
209
239
|
function _getSend(context, resourceGroupName, playwrightWorkspaceName, options = { requestOptions: {} }) {
|
|
210
|
-
var _a, _b;
|
|
211
240
|
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/playwrightWorkspaces/{playwrightWorkspaceName}{?api%2Dversion}", {
|
|
212
241
|
subscriptionId: context.subscriptionId,
|
|
213
242
|
resourceGroupName: resourceGroupName,
|
|
214
243
|
playwrightWorkspaceName: playwrightWorkspaceName,
|
|
215
244
|
"api%2Dversion": context.apiVersion,
|
|
216
245
|
}, {
|
|
217
|
-
allowReserved:
|
|
246
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
247
|
+
});
|
|
248
|
+
return context.path(path).get({
|
|
249
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
250
|
+
headers: {
|
|
251
|
+
accept: "application/json",
|
|
252
|
+
...options.requestOptions?.headers,
|
|
253
|
+
},
|
|
218
254
|
});
|
|
219
|
-
return context.path(path).get(Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
220
255
|
}
|
|
221
256
|
async function _getDeserialize(result) {
|
|
222
257
|
const expectedStatuses = ["200"];
|