@azure/arm-playwrighttesting 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/LICENSE +4 -4
- package/README.md +25 -14
- package/dist/browser/api/accountQuotas/index.js +2 -2
- package/dist/browser/api/accountQuotas/index.js.map +1 -1
- package/dist/browser/api/accounts/index.js +20 -11
- package/dist/browser/api/accounts/index.js.map +1 -1
- package/dist/browser/api/azurePlaywrightServiceContext.js +12 -9
- package/dist/browser/api/azurePlaywrightServiceContext.js.map +1 -1
- package/dist/browser/api/operations/index.js +1 -1
- package/dist/browser/api/operations/index.js.map +1 -1
- package/dist/browser/api/quotas/index.js +2 -2
- package/dist/browser/api/quotas/index.js.map +1 -1
- package/dist/browser/azurePlaywrightServiceClient.js +16 -3
- package/dist/browser/azurePlaywrightServiceClient.js.map +1 -1
- package/dist/browser/classic/accountQuotas/index.js +3 -1
- package/dist/browser/classic/accountQuotas/index.js.map +1 -1
- package/dist/browser/classic/accounts/index.js +3 -1
- package/dist/browser/classic/accounts/index.js.map +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/quotas/index.js +3 -1
- package/dist/browser/classic/quotas/index.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +11 -13
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- 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/commonjs/api/accountQuotas/index.js +2 -2
- package/dist/commonjs/api/accountQuotas/index.js.map +1 -1
- package/dist/commonjs/api/accounts/index.js +20 -11
- package/dist/commonjs/api/accounts/index.js.map +1 -1
- package/dist/commonjs/api/azurePlaywrightServiceContext.js +12 -9
- package/dist/commonjs/api/azurePlaywrightServiceContext.js.map +1 -1
- package/dist/commonjs/api/operations/index.js +1 -1
- package/dist/commonjs/api/operations/index.js.map +1 -1
- package/dist/commonjs/api/quotas/index.js +2 -2
- package/dist/commonjs/api/quotas/index.js.map +1 -1
- package/dist/commonjs/azurePlaywrightServiceClient.js +16 -3
- package/dist/commonjs/azurePlaywrightServiceClient.js.map +1 -1
- package/dist/commonjs/classic/accountQuotas/index.js +3 -1
- package/dist/commonjs/classic/accountQuotas/index.js.map +1 -1
- package/dist/commonjs/classic/accounts/index.js +3 -1
- package/dist/commonjs/classic/accounts/index.js.map +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/quotas/index.js +3 -1
- package/dist/commonjs/classic/quotas/index.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +11 -13
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- 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/tsdoc-metadata.json +11 -11
- package/dist/esm/api/accountQuotas/index.js +2 -2
- package/dist/esm/api/accountQuotas/index.js.map +1 -1
- package/dist/esm/api/accounts/index.js +20 -11
- package/dist/esm/api/accounts/index.js.map +1 -1
- package/dist/esm/api/azurePlaywrightServiceContext.js +12 -9
- package/dist/esm/api/azurePlaywrightServiceContext.js.map +1 -1
- package/dist/esm/api/operations/index.js +1 -1
- package/dist/esm/api/operations/index.js.map +1 -1
- package/dist/esm/api/quotas/index.js +2 -2
- package/dist/esm/api/quotas/index.js.map +1 -1
- package/dist/esm/azurePlaywrightServiceClient.js +16 -3
- package/dist/esm/azurePlaywrightServiceClient.js.map +1 -1
- package/dist/esm/classic/accountQuotas/index.js +3 -1
- package/dist/esm/classic/accountQuotas/index.js.map +1 -1
- package/dist/esm/classic/accounts/index.js +3 -1
- package/dist/esm/classic/accounts/index.js.map +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/quotas/index.js +3 -1
- package/dist/esm/classic/quotas/index.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +11 -13
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- 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/react-native/api/accountQuotas/index.js +2 -2
- package/dist/react-native/api/accountQuotas/index.js.map +1 -1
- package/dist/react-native/api/accounts/index.js +20 -11
- package/dist/react-native/api/accounts/index.js.map +1 -1
- package/dist/react-native/api/azurePlaywrightServiceContext.js +12 -9
- package/dist/react-native/api/azurePlaywrightServiceContext.js.map +1 -1
- package/dist/react-native/api/operations/index.js +1 -1
- package/dist/react-native/api/operations/index.js.map +1 -1
- package/dist/react-native/api/quotas/index.js +2 -2
- package/dist/react-native/api/quotas/index.js.map +1 -1
- package/dist/react-native/azurePlaywrightServiceClient.js +16 -3
- package/dist/react-native/azurePlaywrightServiceClient.js.map +1 -1
- package/dist/react-native/classic/accountQuotas/index.js +3 -1
- package/dist/react-native/classic/accountQuotas/index.js.map +1 -1
- package/dist/react-native/classic/accounts/index.js +3 -1
- package/dist/react-native/classic/accounts/index.js.map +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/quotas/index.js +3 -1
- package/dist/react-native/classic/quotas/index.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +11 -13
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- 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/package.json +41 -50
- /package/review/{arm-playwrighttesting-models.api.md → arm-playwrighttesting-models-node.api.md} +0 -0
- /package/review/{arm-playwrighttesting.api.md → arm-playwrighttesting-node.api.md} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Release History
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
## 1.0.1 (2025-09-09)
|
|
4
|
+
|
|
5
|
+
### Other Changes
|
|
6
|
+
|
|
7
|
+
Added deprecation notice: This package has been deprecated and will no longer be maintained after **March 8, 2026**. Upgrade to the replacement package, **@azure/arm-playwright**, to continue receiving updates. Refer to the [migration guide](https://aka.ms/mpt/migration-guidance) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.
|
|
8
|
+
|
|
3
9
|
## 1.0.0 (2024-12-13)
|
|
4
10
|
|
|
5
11
|
### Features Added
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MIT License
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -12,10 +12,10 @@ furnished to do so, subject to the following conditions:
|
|
|
12
12
|
The above copyright notice and this permission notice shall be included in all
|
|
13
13
|
copies or substantial portions of the Software.
|
|
14
14
|
|
|
15
|
-
THE SOFTWARE IS PROVIDED
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# AzurePlaywrightService client library for JavaScript
|
|
2
2
|
|
|
3
|
+
**Deprecation message**
|
|
4
|
+
|
|
5
|
+
This package has been deprecated and will no longer be maintained after **March 8, 2026**. Upgrade to the replacement package, **@azure/arm-playwright**, to continue receiving updates. Refer to the [migration guide](https://aka.ms/mpt/migration-guidance) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.
|
|
6
|
+
|
|
3
7
|
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzurePlaywrightService client.
|
|
4
8
|
|
|
5
9
|
Microsoft.AzurePlaywrightService Resource Provider Management API.
|
|
@@ -47,20 +51,28 @@ You will also need to **register a new AAD application and grant access to Azure
|
|
|
47
51
|
|
|
48
52
|
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
49
53
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
55
|
+
|
|
56
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
57
|
+
import { AzurePlaywrightServiceClient } from "@azure/arm-playwrighttesting";
|
|
58
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
54
59
|
|
|
55
60
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
56
61
|
const client = new AzurePlaywrightServiceClient(new DefaultAzureCredential(), subscriptionId);
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
57
65
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
66
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
67
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
68
|
+
import { AzurePlaywrightServiceClient } from "@azure/arm-playwrighttesting";
|
|
69
|
+
|
|
70
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
71
|
+
const credential = new InteractiveBrowserCredential({
|
|
72
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
73
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
74
|
+
});
|
|
75
|
+
const client = new AzurePlaywrightServiceClient(credential, subscriptionId);
|
|
64
76
|
```
|
|
65
77
|
|
|
66
78
|
### JavaScript Bundle
|
|
@@ -79,8 +91,9 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
79
91
|
|
|
80
92
|
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
81
93
|
|
|
82
|
-
```
|
|
83
|
-
|
|
94
|
+
```ts snippet:SetLogLevel
|
|
95
|
+
import { setLogLevel } from "@azure/logger";
|
|
96
|
+
|
|
84
97
|
setLogLevel("info");
|
|
85
98
|
```
|
|
86
99
|
|
|
@@ -98,8 +111,6 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
98
111
|
|
|
99
112
|
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
100
113
|
|
|
101
|
-

|
|
102
|
-
|
|
103
114
|
[azure_cli]: https://learn.microsoft.com/cli/azure
|
|
104
115
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
105
116
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
@@ -6,7 +6,7 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
|
|
|
6
6
|
export function _accountQuotasGetSend(context, subscriptionId, resourceGroupName, accountName, quotaName, options = { requestOptions: {} }) {
|
|
7
7
|
return context
|
|
8
8
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas/{quotaName}", subscriptionId, resourceGroupName, accountName, quotaName)
|
|
9
|
-
.get(
|
|
9
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
10
10
|
}
|
|
11
11
|
export async function _accountQuotasGetDeserialize(result) {
|
|
12
12
|
const expectedStatuses = ["200"];
|
|
@@ -23,7 +23,7 @@ export async function accountQuotasGet(context, subscriptionId, resourceGroupNam
|
|
|
23
23
|
export function _accountQuotasListByAccountSend(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
|
|
24
24
|
return context
|
|
25
25
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas", subscriptionId, resourceGroupName, accountName)
|
|
26
|
-
.get(
|
|
26
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
27
27
|
}
|
|
28
28
|
export async function _accountQuotasListByAccountDeserialize(result) {
|
|
29
29
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/accountQuotas/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAEL,wBAAwB,EAGxB,mCAAmC,GACpC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,qBAAqB,CACnC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,WAAmB,EACnB,SAAqB,EACrB,UAA0C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEhE,OAAO,OAAO;SACX,IAAI,CACH,yJAAyJ,EACzJ,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,SAAS,CACV;SACA,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/accountQuotas/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAEL,wBAAwB,EAGxB,mCAAmC,GACpC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,qBAAqB,CACnC,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,WAAmB,EACnB,SAAqB,EACrB,UAA0C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEhE,OAAO,OAAO;SACX,IAAI,CACH,yJAAyJ,EACzJ,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,SAAS,CACV;SACA,GAAG,CAAC,EAAE,GAAG,mCAAmC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,wBAAwB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC/C,CAAC;AAED,wCAAwC;AACxC,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,OAAe,EACf,cAAsB,EACtB,i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;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n AccountQuotasGetOptionalParams,\n AccountQuotasListByAccountOptionalParams,\n AzurePlaywrightServiceContext as Client,\n} from \"../index.js\";\nimport {\n AccountQuota,\n accountQuotaDeserializer,\n QuotaNames,\n _AccountQuotaListResult,\n _accountQuotaListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _accountQuotasGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n quotaName: QuotaNames,\n options: AccountQuotasGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas/{quotaName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n quotaName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountQuotasGetDeserialize(\n result: PathUncheckedResponse,\n): Promise<AccountQuota> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return accountQuotaDeserializer(result.body);\n}\n\n/** Get quota by name for an account. */\nexport async function accountQuotasGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n quotaName: QuotaNames,\n options: AccountQuotasGetOptionalParams = { requestOptions: {} },\n): Promise<AccountQuota> {\n const result = await _accountQuotasGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n quotaName,\n options,\n );\n return _accountQuotasGetDeserialize(result);\n}\n\nexport function _accountQuotasListByAccountSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountQuotasListByAccountOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}/quotas\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountQuotasListByAccountDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AccountQuotaListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _accountQuotaListResultDeserializer(result.body);\n}\n\n/** List quotas for a given account. */\nexport function accountQuotasListByAccount(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountQuotasListByAccountOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<AccountQuota> {\n return buildPagedAsyncIterator(\n context,\n () =>\n _accountQuotasListByAccountSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n options,\n ),\n _accountQuotasListByAccountDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -7,7 +7,7 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
|
|
|
7
7
|
export function _accountsGetSend(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
|
|
8
8
|
return context
|
|
9
9
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}", subscriptionId, resourceGroupName, accountName)
|
|
10
|
-
.get(
|
|
10
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
11
11
|
}
|
|
12
12
|
export async function _accountsGetDeserialize(result) {
|
|
13
13
|
const expectedStatuses = ["200"];
|
|
@@ -24,7 +24,10 @@ export async function accountsGet(context, subscriptionId, resourceGroupName, ac
|
|
|
24
24
|
export function _accountsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, accountName, resource, options = { requestOptions: {} }) {
|
|
25
25
|
return context
|
|
26
26
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}", subscriptionId, resourceGroupName, accountName)
|
|
27
|
-
.put(
|
|
27
|
+
.put({
|
|
28
|
+
...operationOptionsToRequestParameters(options),
|
|
29
|
+
body: accountSerializer(resource),
|
|
30
|
+
});
|
|
28
31
|
}
|
|
29
32
|
export async function _accountsCreateOrUpdateDeserialize(result) {
|
|
30
33
|
const expectedStatuses = ["200", "201"];
|
|
@@ -36,8 +39,8 @@ export async function _accountsCreateOrUpdateDeserialize(result) {
|
|
|
36
39
|
/** Create a Account */
|
|
37
40
|
export function accountsCreateOrUpdate(context, subscriptionId, resourceGroupName, accountName, resource, options = { requestOptions: {} }) {
|
|
38
41
|
return getLongRunningPoller(context, _accountsCreateOrUpdateDeserialize, ["200", "201"], {
|
|
39
|
-
updateIntervalInMs: options
|
|
40
|
-
abortSignal: options
|
|
42
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
43
|
+
abortSignal: options?.abortSignal,
|
|
41
44
|
getInitialResponse: () => _accountsCreateOrUpdateSend(context, subscriptionId, resourceGroupName, accountName, resource, options),
|
|
42
45
|
resourceLocationConfig: "azure-async-operation",
|
|
43
46
|
});
|
|
@@ -45,7 +48,10 @@ export function accountsCreateOrUpdate(context, subscriptionId, resourceGroupNam
|
|
|
45
48
|
export function _accountsUpdateSend(context, subscriptionId, resourceGroupName, accountName, properties, options = { requestOptions: {} }) {
|
|
46
49
|
return context
|
|
47
50
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}", subscriptionId, resourceGroupName, accountName)
|
|
48
|
-
.patch(
|
|
51
|
+
.patch({
|
|
52
|
+
...operationOptionsToRequestParameters(options),
|
|
53
|
+
body: accountUpdateSerializer(properties),
|
|
54
|
+
});
|
|
49
55
|
}
|
|
50
56
|
export async function _accountsUpdateDeserialize(result) {
|
|
51
57
|
const expectedStatuses = ["200"];
|
|
@@ -62,7 +68,7 @@ export async function accountsUpdate(context, subscriptionId, resourceGroupName,
|
|
|
62
68
|
export function _accountsDeleteSend(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
|
|
63
69
|
return context
|
|
64
70
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}", subscriptionId, resourceGroupName, accountName)
|
|
65
|
-
.delete(
|
|
71
|
+
.delete({ ...operationOptionsToRequestParameters(options) });
|
|
66
72
|
}
|
|
67
73
|
export async function _accountsDeleteDeserialize(result) {
|
|
68
74
|
const expectedStatuses = ["202", "204", "200"];
|
|
@@ -74,8 +80,8 @@ export async function _accountsDeleteDeserialize(result) {
|
|
|
74
80
|
/** Delete a Account */
|
|
75
81
|
export function accountsDelete(context, subscriptionId, resourceGroupName, accountName, options = { requestOptions: {} }) {
|
|
76
82
|
return getLongRunningPoller(context, _accountsDeleteDeserialize, ["202", "204", "200"], {
|
|
77
|
-
updateIntervalInMs: options
|
|
78
|
-
abortSignal: options
|
|
83
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
84
|
+
abortSignal: options?.abortSignal,
|
|
79
85
|
getInitialResponse: () => _accountsDeleteSend(context, subscriptionId, resourceGroupName, accountName, options),
|
|
80
86
|
resourceLocationConfig: "location",
|
|
81
87
|
});
|
|
@@ -83,7 +89,7 @@ export function accountsDelete(context, subscriptionId, resourceGroupName, accou
|
|
|
83
89
|
export function _accountsListByResourceGroupSend(context, subscriptionId, resourceGroupName, options = { requestOptions: {} }) {
|
|
84
90
|
return context
|
|
85
91
|
.path("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts", subscriptionId, resourceGroupName)
|
|
86
|
-
.get(
|
|
92
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
87
93
|
}
|
|
88
94
|
export async function _accountsListByResourceGroupDeserialize(result) {
|
|
89
95
|
const expectedStatuses = ["200"];
|
|
@@ -99,7 +105,7 @@ export function accountsListByResourceGroup(context, subscriptionId, resourceGro
|
|
|
99
105
|
export function _accountsListBySubscriptionSend(context, subscriptionId, options = { requestOptions: {} }) {
|
|
100
106
|
return context
|
|
101
107
|
.path("/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/accounts", subscriptionId)
|
|
102
|
-
.get(
|
|
108
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
103
109
|
}
|
|
104
110
|
export async function _accountsListBySubscriptionDeserialize(result) {
|
|
105
111
|
const expectedStatuses = ["200"];
|
|
@@ -115,7 +121,10 @@ export function accountsListBySubscription(context, subscriptionId, options = {
|
|
|
115
121
|
export function _accountsCheckNameAvailabilitySend(context, subscriptionId, body, options = { requestOptions: {} }) {
|
|
116
122
|
return context
|
|
117
123
|
.path("/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/checkNameAvailability", subscriptionId)
|
|
118
|
-
.post(
|
|
124
|
+
.post({
|
|
125
|
+
...operationOptionsToRequestParameters(options),
|
|
126
|
+
body: checkNameAvailabilityRequestSerializer(body),
|
|
127
|
+
});
|
|
119
128
|
}
|
|
120
129
|
export async function _accountsCheckNameAvailabilityDeserialize(result) {
|
|
121
130
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/accounts/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAYlC,OAAO,EAEL,iBAAiB,EACjB,mBAAmB,EAEnB,uBAAuB,EAEvB,8BAA8B,EAE9B,sCAAsC,EAEtC,yCAAyC,GAC1C,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,E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,CACH,kGAAkG,EAClG,cAAc,CACf;SACA,IAAI,iCACA,mCAAmC,CAAC,OAAO,CAAC,KAC/C,IAAI,EAAE,sCAAsC,CAAC,IAAI,CAAC,IAClD,CAAC;AACP,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,yCAAyC,CAC7D,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,yCAAyC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAChE,CAAC;AAED,+GAA+G;AAC/G,MAAM,CAAC,KAAK,UAAU,6BAA6B,CACjD,OAAe,EACf,cAAsB,EACtB,IAAkC,EAClC,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,MAAM,MAAM,GAAG,MAAM,kCAAkC,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAChG,OAAO,yCAAyC,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n AccountsCheckNameAvailabilityOptionalParams,\n AccountsCreateOrUpdateOptionalParams,\n AccountsDeleteOptionalParams,\n AccountsGetOptionalParams,\n AccountsListByResourceGroupOptionalParams,\n AccountsListBySubscriptionOptionalParams,\n AccountsUpdateOptionalParams,\n AzurePlaywrightServiceContext as Client,\n} from \"../index.js\";\nimport {\n Account,\n accountSerializer,\n accountDeserializer,\n AccountUpdate,\n accountUpdateSerializer,\n _AccountListResult,\n _accountListResultDeserializer,\n CheckNameAvailabilityRequest,\n checkNameAvailabilityRequestSerializer,\n CheckNameAvailabilityResponse,\n checkNameAvailabilityResponseDeserializer,\n} from \"../../models/models.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _accountsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountsGetDeserialize(result: PathUncheckedResponse): Promise<Account> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return accountDeserializer(result.body);\n}\n\n/** Get a Account */\nexport async function accountsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountsGetOptionalParams = { requestOptions: {} },\n): Promise<Account> {\n const result = await _accountsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n options,\n );\n return _accountsGetDeserialize(result);\n}\n\nexport function _accountsCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n resource: Account,\n options: AccountsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: accountSerializer(resource),\n });\n}\n\nexport async function _accountsCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<Account> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return accountDeserializer(result.body);\n}\n\n/** Create a Account */\nexport function accountsCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n resource: Account,\n options: AccountsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Account>, Account> {\n return getLongRunningPoller(context, _accountsCreateOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _accountsCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<Account>, Account>;\n}\n\nexport function _accountsUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n properties: AccountUpdate,\n options: AccountsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: accountUpdateSerializer(properties),\n });\n}\n\nexport async function _accountsUpdateDeserialize(result: PathUncheckedResponse): Promise<Account> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return accountDeserializer(result.body);\n}\n\n/** Update a Account */\nexport async function accountsUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n properties: AccountUpdate,\n options: AccountsUpdateOptionalParams = { requestOptions: {} },\n): Promise<Account> {\n const result = await _accountsUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n properties,\n options,\n );\n return _accountsUpdateDeserialize(result);\n}\n\nexport function _accountsDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountsDeleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete a Account */\nexport function accountsDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _accountsDeleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _accountsDeleteSend(context, subscriptionId, resourceGroupName, accountName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _accountsListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: AccountsListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountsListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AccountListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _accountListResultDeserializer(result.body);\n}\n\n/** List Account resources by resource group */\nexport function accountsListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: AccountsListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Account> {\n return buildPagedAsyncIterator(\n context,\n () => _accountsListByResourceGroupSend(context, subscriptionId, resourceGroupName, options),\n _accountsListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _accountsListBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: AccountsListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/accounts\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountsListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AccountListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _accountListResultDeserializer(result.body);\n}\n\n/** List Account resources by subscription ID */\nexport function accountsListBySubscription(\n context: Client,\n subscriptionId: string,\n options: AccountsListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Account> {\n return buildPagedAsyncIterator(\n context,\n () => _accountsListBySubscriptionSend(context, subscriptionId, options),\n _accountsListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _accountsCheckNameAvailabilitySend(\n context: Client,\n subscriptionId: string,\n body: CheckNameAvailabilityRequest,\n options: AccountsCheckNameAvailabilityOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/checkNameAvailability\",\n subscriptionId,\n )\n .post({\n ...operationOptionsToRequestParameters(options),\n body: checkNameAvailabilityRequestSerializer(body),\n });\n}\n\nexport async function _accountsCheckNameAvailabilityDeserialize(\n result: PathUncheckedResponse,\n): Promise<CheckNameAvailabilityResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return checkNameAvailabilityResponseDeserializer(result.body);\n}\n\n/** Adds check global name availability operation, normally used if a resource name must be globally unique. */\nexport async function accountsCheckNameAvailability(\n context: Client,\n subscriptionId: string,\n body: CheckNameAvailabilityRequest,\n options: AccountsCheckNameAvailabilityOptionalParams = { requestOptions: {} },\n): Promise<CheckNameAvailabilityResponse> {\n const result = await _accountsCheckNameAvailabilitySend(context, subscriptionId, body, options);\n return _accountsCheckNameAvailabilityDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/accounts/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAYlC,OAAO,EAEL,iBAAiB,EACjB,mBAAmB,EAEnB,uBAAuB,EAEvB,8BAA8B,EAE9B,sCAAsC,EAEtC,yCAAyC,GAC1C,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,gBAAgB,CAC9B,OAAe,EACf,cAAsB,EACtB,iBAAyB,EACzB,WAAmB,EACnB,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE3D,OAAO,OAAO;SACX,IAAI,CACH,sIAAsI,EACtI,cAAc,EACd,iBAAiB,EACjB,WAAW,CACZ;SACA,GAAG,CAAC,EAAE,GAAG,mCAAmC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,MAA6B;IACzE,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eA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,EACtB,IAAkC,EAClC,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,MAAM,MAAM,GAAG,MAAM,kCAAkC,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAChG,OAAO,yCAAyC,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n AccountsCheckNameAvailabilityOptionalParams,\n AccountsCreateOrUpdateOptionalParams,\n AccountsDeleteOptionalParams,\n AccountsGetOptionalParams,\n AccountsListByResourceGroupOptionalParams,\n AccountsListBySubscriptionOptionalParams,\n AccountsUpdateOptionalParams,\n AzurePlaywrightServiceContext as Client,\n} from \"../index.js\";\nimport {\n Account,\n accountSerializer,\n accountDeserializer,\n AccountUpdate,\n accountUpdateSerializer,\n _AccountListResult,\n _accountListResultDeserializer,\n CheckNameAvailabilityRequest,\n checkNameAvailabilityRequestSerializer,\n CheckNameAvailabilityResponse,\n checkNameAvailabilityResponseDeserializer,\n} from \"../../models/models.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _accountsGetSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountsGetDeserialize(result: PathUncheckedResponse): Promise<Account> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return accountDeserializer(result.body);\n}\n\n/** Get a Account */\nexport async function accountsGet(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountsGetOptionalParams = { requestOptions: {} },\n): Promise<Account> {\n const result = await _accountsGetSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n options,\n );\n return _accountsGetDeserialize(result);\n}\n\nexport function _accountsCreateOrUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n resource: Account,\n options: AccountsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .put({\n ...operationOptionsToRequestParameters(options),\n body: accountSerializer(resource),\n });\n}\n\nexport async function _accountsCreateOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<Account> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return accountDeserializer(result.body);\n}\n\n/** Create a Account */\nexport function accountsCreateOrUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n resource: Account,\n options: AccountsCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<Account>, Account> {\n return getLongRunningPoller(context, _accountsCreateOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _accountsCreateOrUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<Account>, Account>;\n}\n\nexport function _accountsUpdateSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n properties: AccountUpdate,\n options: AccountsUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .patch({\n ...operationOptionsToRequestParameters(options),\n body: accountUpdateSerializer(properties),\n });\n}\n\nexport async function _accountsUpdateDeserialize(result: PathUncheckedResponse): Promise<Account> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return accountDeserializer(result.body);\n}\n\n/** Update a Account */\nexport async function accountsUpdate(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n properties: AccountUpdate,\n options: AccountsUpdateOptionalParams = { requestOptions: {} },\n): Promise<Account> {\n const result = await _accountsUpdateSend(\n context,\n subscriptionId,\n resourceGroupName,\n accountName,\n properties,\n options,\n );\n return _accountsUpdateDeserialize(result);\n}\n\nexport function _accountsDeleteSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountsDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts/{accountName}\",\n subscriptionId,\n resourceGroupName,\n accountName,\n )\n .delete({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountsDeleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete a Account */\nexport function accountsDelete(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n accountName: string,\n options: AccountsDeleteOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _accountsDeleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _accountsDeleteSend(context, subscriptionId, resourceGroupName, accountName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _accountsListByResourceGroupSend(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: AccountsListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzurePlaywrightService/accounts\",\n subscriptionId,\n resourceGroupName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountsListByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AccountListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _accountListResultDeserializer(result.body);\n}\n\n/** List Account resources by resource group */\nexport function accountsListByResourceGroup(\n context: Client,\n subscriptionId: string,\n resourceGroupName: string,\n options: AccountsListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Account> {\n return buildPagedAsyncIterator(\n context,\n () => _accountsListByResourceGroupSend(context, subscriptionId, resourceGroupName, options),\n _accountsListByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _accountsListBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n options: AccountsListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/accounts\",\n subscriptionId,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _accountsListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AccountListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _accountListResultDeserializer(result.body);\n}\n\n/** List Account resources by subscription ID */\nexport function accountsListBySubscription(\n context: Client,\n subscriptionId: string,\n options: AccountsListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Account> {\n return buildPagedAsyncIterator(\n context,\n () => _accountsListBySubscriptionSend(context, subscriptionId, options),\n _accountsListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _accountsCheckNameAvailabilitySend(\n context: Client,\n subscriptionId: string,\n body: CheckNameAvailabilityRequest,\n options: AccountsCheckNameAvailabilityOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/checkNameAvailability\",\n subscriptionId,\n )\n .post({\n ...operationOptionsToRequestParameters(options),\n body: checkNameAvailabilityRequestSerializer(body),\n });\n}\n\nexport async function _accountsCheckNameAvailabilityDeserialize(\n result: PathUncheckedResponse,\n): Promise<CheckNameAvailabilityResponse> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return checkNameAvailabilityResponseDeserializer(result.body);\n}\n\n/** Adds check global name availability operation, normally used if a resource name must be globally unique. */\nexport async function accountsCheckNameAvailability(\n context: Client,\n subscriptionId: string,\n body: CheckNameAvailabilityRequest,\n options: AccountsCheckNameAvailabilityOptionalParams = { requestOptions: {} },\n): Promise<CheckNameAvailabilityResponse> {\n const result = await _accountsCheckNameAvailabilitySend(context, subscriptionId, body, options);\n return _accountsCheckNameAvailabilityDeserialize(result);\n}\n"]}
|
|
@@ -1,23 +1,26 @@
|
|
|
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";
|
|
5
4
|
import { getClient } from "@azure-rest/core-client";
|
|
6
5
|
/** Microsoft.AzurePlaywrightService Resource Provider Management API. */
|
|
7
6
|
export function createAzurePlaywrightService(credential, options = {}) {
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const userAgentInfo = `azsdk-js-arm-playwrighttesting/1.0.0`;
|
|
7
|
+
const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;
|
|
8
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
9
|
+
const userAgentInfo = `azsdk-js-arm-playwrighttesting/1.0.1`;
|
|
12
10
|
const userAgentPrefix = prefixFromOptions
|
|
13
11
|
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
14
12
|
: `azsdk-js-api ${userAgentInfo}`;
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
const { apiVersion: _, ...updatedOptions } = {
|
|
14
|
+
...options,
|
|
15
|
+
userAgentOptions: { userAgentPrefix },
|
|
16
|
+
loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
|
|
17
|
+
credentials: {
|
|
18
|
+
scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],
|
|
19
|
+
},
|
|
20
|
+
};
|
|
18
21
|
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
19
22
|
clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
20
|
-
const apiVersion =
|
|
23
|
+
const apiVersion = options.apiVersion ?? "2024-12-01";
|
|
21
24
|
clientContext.pipeline.addPolicy({
|
|
22
25
|
name: "ClientApiVersionPolicy",
|
|
23
26
|
sendRequest: (req, next) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azurePlaywrightServiceContext.js","sourceRoot":"","sources":["../../../src/api/azurePlaywrightServiceContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC
|
|
1
|
+
{"version":3,"file":"azurePlaywrightServiceContext.js","sourceRoot":"","sources":["../../../src/api/azurePlaywrightServiceContext.ts"],"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ACzB,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,aAAa,CAAC;AACvB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\n/** Microsoft.AzurePlaywrightService Resource Provider Management API. */\nexport interface AzurePlaywrightServiceContext extends Client {}\n\n/** Optional parameters for the client. */\nexport interface AzurePlaywrightServiceClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** Microsoft.AzurePlaywrightService Resource Provider Management API. */\nexport function createAzurePlaywrightService(\n credential: TokenCredential,\n options: AzurePlaywrightServiceClientOptionalParams = {},\n): AzurePlaywrightServiceContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://management.azure.com`;\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-playwrighttesting/1.0.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2024-12-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 clientContext;\n}\n"]}
|
|
@@ -6,7 +6,7 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
|
|
|
6
6
|
export function _operationsListSend(context, options = { requestOptions: {} }) {
|
|
7
7
|
return context
|
|
8
8
|
.path("/providers/Microsoft.AzurePlaywrightService/operations")
|
|
9
|
-
.get(
|
|
9
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
10
10
|
}
|
|
11
11
|
export async function _operationsListDeserialize(result) {
|
|
12
12
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,gCAAgC,GAEjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,wDAAwD,CAAC;SAC9D,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/operations/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,gCAAgC,GAEjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,OAAO;SACX,IAAI,CAAC,wDAAwD,CAAC;SAC9D,GAAG,CAAC,EAAE,GAAG,mCAAmC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,gCAAgC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,2CAA2C;AAC3C,MAAM,UAAU,cAAc,CAC5B,OAAe,EACf,UAAwC,EAAE,cAAc,EAAE,EAAE,EAAE;IAE9D,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC3C,0BAA0B,EAC1B,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 { AzurePlaywrightServiceContext as Client, OperationsListOptionalParams } from \"../index.js\";\nimport {\n _OperationListResult,\n _operationListResultDeserializer,\n Operation,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _operationsListSend(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\"/providers/Microsoft.AzurePlaywrightService/operations\")\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _operationsListDeserialize(\n result: PathUncheckedResponse,\n): Promise<_OperationListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _operationListResultDeserializer(result.body);\n}\n\n/** List the operations for the provider */\nexport function operationsList(\n context: Client,\n options: OperationsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Operation> {\n return buildPagedAsyncIterator(\n context,\n () => _operationsListSend(context, options),\n _operationsListDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -6,7 +6,7 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
|
|
|
6
6
|
export function _quotasGetSend(context, subscriptionId, location, quotaName, options = { requestOptions: {} }) {
|
|
7
7
|
return context
|
|
8
8
|
.path("/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas/{quotaName}", subscriptionId, location, quotaName)
|
|
9
|
-
.get(
|
|
9
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
10
10
|
}
|
|
11
11
|
export async function _quotasGetDeserialize(result) {
|
|
12
12
|
const expectedStatuses = ["200"];
|
|
@@ -23,7 +23,7 @@ export async function quotasGet(context, subscriptionId, location, quotaName, op
|
|
|
23
23
|
export function _quotasListBySubscriptionSend(context, subscriptionId, location, options = { requestOptions: {} }) {
|
|
24
24
|
return context
|
|
25
25
|
.path("/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas", subscriptionId, location)
|
|
26
|
-
.get(
|
|
26
|
+
.get({ ...operationOptionsToRequestParameters(options) });
|
|
27
27
|
}
|
|
28
28
|
export async function _quotasListBySubscriptionDeserialize(result) {
|
|
29
29
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/quotas/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAGL,iBAAiB,EAEjB,4BAA4B,GAC7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,cAAc,CAC5B,OAAe,EACf,cAAsB,EACtB,QAAgB,EAChB,SAAqB,EACrB,UAAmC,EAAE,cAAc,EAAE,EAAE,EAAE;IAEzD,OAAO,OAAO;SACX,IAAI,CACH,oHAAoH,EACpH,cAAc,EACd,QAAQ,EACR,SAAS,CACV;SACA,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/quotas/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAGL,iBAAiB,EAEjB,4BAA4B,GAC7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,cAAc,CAC5B,OAAe,EACf,cAAsB,EACtB,QAAgB,EAChB,SAAqB,EACr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,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,4BAA4B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACnD,CAAC;AAED,+CAA+C;AAC/C,MAAM,UAAU,wBAAwB,CACtC,OAAe,EACf,cAAsB,EACtB,QAAgB,EAChB,UAAkD,EAAE,cAAc,EAAE,EAAE,EAAE;IAExE,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,6BAA6B,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,OAAO,CAAC,EAC/E,oCAAoC,EACpC,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 {\n AzurePlaywrightServiceContext as Client,\n QuotasGetOptionalParams,\n QuotasListBySubscriptionOptionalParams,\n} from \"../index.js\";\nimport {\n QuotaNames,\n Quota,\n quotaDeserializer,\n _QuotaListResult,\n _quotaListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _quotasGetSend(\n context: Client,\n subscriptionId: string,\n location: string,\n quotaName: QuotaNames,\n options: QuotasGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas/{quotaName}\",\n subscriptionId,\n location,\n quotaName,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _quotasGetDeserialize(result: PathUncheckedResponse): Promise<Quota> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return quotaDeserializer(result.body);\n}\n\n/** Get subscription quota by name. */\nexport async function quotasGet(\n context: Client,\n subscriptionId: string,\n location: string,\n quotaName: QuotaNames,\n options: QuotasGetOptionalParams = { requestOptions: {} },\n): Promise<Quota> {\n const result = await _quotasGetSend(context, subscriptionId, location, quotaName, options);\n return _quotasGetDeserialize(result);\n}\n\nexport function _quotasListBySubscriptionSend(\n context: Client,\n subscriptionId: string,\n location: string,\n options: QuotasListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n return context\n .path(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.AzurePlaywrightService/locations/{location}/quotas\",\n subscriptionId,\n location,\n )\n .get({ ...operationOptionsToRequestParameters(options) });\n}\n\nexport async function _quotasListBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_QuotaListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _quotaListResultDeserializer(result.body);\n}\n\n/** List quotas for a given subscription Id. */\nexport function quotasListBySubscription(\n context: Client,\n subscriptionId: string,\n location: string,\n options: QuotasListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Quota> {\n return buildPagedAsyncIterator(\n context,\n () => _quotasListBySubscriptionSend(context, subscriptionId, location, options),\n _quotasListBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -6,19 +6,32 @@ import { getQuotasOperations } from "./classic/quotas/index.js";
|
|
|
6
6
|
import { getAccountQuotasOperations, } from "./classic/accountQuotas/index.js";
|
|
7
7
|
import { createAzurePlaywrightService, } from "./api/index.js";
|
|
8
8
|
export class AzurePlaywrightServiceClient {
|
|
9
|
+
_client;
|
|
10
|
+
/** The pipeline used by this client to make requests */
|
|
11
|
+
pipeline;
|
|
9
12
|
/** Microsoft.AzurePlaywrightService Resource Provider Management API. */
|
|
10
13
|
constructor(credential, subscriptionId, options = {}) {
|
|
11
|
-
|
|
12
|
-
const prefixFromOptions = (_a = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _a === void 0 ? void 0 : _a.userAgentPrefix;
|
|
14
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
13
15
|
const userAgentPrefix = prefixFromOptions
|
|
14
16
|
? `${prefixFromOptions} azsdk-js-client`
|
|
15
17
|
: `azsdk-js-client`;
|
|
16
|
-
this._client = createAzurePlaywrightService(credential,
|
|
18
|
+
this._client = createAzurePlaywrightService(credential, {
|
|
19
|
+
...options,
|
|
20
|
+
userAgentOptions: { userAgentPrefix },
|
|
21
|
+
});
|
|
17
22
|
this.pipeline = this._client.pipeline;
|
|
18
23
|
this.operations = getOperationsOperations(this._client);
|
|
19
24
|
this.accounts = getAccountsOperations(this._client, subscriptionId);
|
|
20
25
|
this.quotas = getQuotasOperations(this._client, subscriptionId);
|
|
21
26
|
this.accountQuotas = getAccountQuotasOperations(this._client, subscriptionId);
|
|
22
27
|
}
|
|
28
|
+
/** The operation groups for Operations */
|
|
29
|
+
operations;
|
|
30
|
+
/** The operation groups for Accounts */
|
|
31
|
+
accounts;
|
|
32
|
+
/** The operation groups for Quotas */
|
|
33
|
+
quotas;
|
|
34
|
+
/** The operation groups for AccountQuotas */
|
|
35
|
+
accountQuotas;
|
|
23
36
|
}
|
|
24
37
|
//# sourceMappingURL=azurePlaywrightServiceClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azurePlaywrightServiceClient.js","sourceRoot":"","sources":["../../src/azurePlaywrightServiceClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,uBAAuB,EAAwB,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAE,qBAAqB,EAAsB,MAAM,6BAA6B,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAoB,MAAM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ACpE,IAAI,CAAC,MAAM,GAAG,mBAAmB,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;QAChE,IAAI,CAAC,aAAa,GAAG,0BAA0B,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;IAChF,CAAC;IAED,0CAA0C;IAC1B,UAAU,CAAuB;IACjD,wCAAwC;IACxB,QAAQ,CAAqB;IAC7C,sCAAsC;IACtB,MAAM,CAAmB;IACzC,6CAA6C;IAC7B,aAAa,CAA0B;CACxD","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { getOperationsOperations, OperationsOperations } from \"./classic/operations/index.js\";\nimport { getAccountsOperations, AccountsOperations } from \"./classic/accounts/index.js\";\nimport { getQuotasOperations, QuotasOperations } from \"./classic/quotas/index.js\";\nimport {\n getAccountQuotasOperations,\n AccountQuotasOperations,\n} from \"./classic/accountQuotas/index.js\";\nimport {\n createAzurePlaywrightService,\n AzurePlaywrightServiceContext,\n AzurePlaywrightServiceClientOptionalParams,\n} from \"./api/index.js\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport { AzurePlaywrightServiceClientOptionalParams } from \"./api/azurePlaywrightServiceContext.js\";\n\nexport class AzurePlaywrightServiceClient {\n private _client: AzurePlaywrightServiceContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n /** Microsoft.AzurePlaywrightService Resource Provider Management API. */\n constructor(\n credential: TokenCredential,\n subscriptionId: string,\n options: AzurePlaywrightServiceClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createAzurePlaywrightService(credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.operations = getOperationsOperations(this._client);\n this.accounts = getAccountsOperations(this._client, subscriptionId);\n this.quotas = getQuotasOperations(this._client, subscriptionId);\n this.accountQuotas = getAccountQuotasOperations(this._client, subscriptionId);\n }\n\n /** The operation groups for Operations */\n public readonly operations: OperationsOperations;\n /** The operation groups for Accounts */\n public readonly accounts: AccountsOperations;\n /** The operation groups for Quotas */\n public readonly quotas: QuotasOperations;\n /** The operation groups for AccountQuotas */\n public readonly accountQuotas: AccountQuotasOperations;\n}\n"]}
|
|
@@ -8,6 +8,8 @@ export function getAccountQuotas(context, subscriptionId) {
|
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
export function getAccountQuotasOperations(context, subscriptionId) {
|
|
11
|
-
return
|
|
11
|
+
return {
|
|
12
|
+
...getAccountQuotas(context, subscriptionId),
|
|
13
|
+
};
|
|
12
14
|
}
|
|
13
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/accountQuotas/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAyBhG,MAAM,UAAU,gBAAgB,CAAC,OAAsC,EAAE,cAAsB;IAC7F,OAAO;QACL,GAAG,EAAE,CACH,iBAAyB,EACzB,WAAmB,EACnB,SAAqB,EACrB,OAAwC,EACxC,EAAE,CACF,gBAAgB,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,CAAC;QAC/F,aAAa,EAAE,CACb,iBAAyB,EACzB,WAAmB,EACnB,OAAkD,EAClD,EAAE,CACF,0BAA0B,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC;KAC/F,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,OAAsC,EACtC,cAAsB;IAEtB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/accountQuotas/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAyBhG,MAAM,UAAU,gBAAgB,CAAC,OAAsC,EAAE,cAAsB;IAC7F,OAAO;QACL,GAAG,EAAE,CACH,iBAAyB,EACzB,WAAmB,EACnB,SAAqB,EACrB,OAAwC,EACxC,EAAE,CACF,gBAAgB,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,CAAC;QAC/F,aAAa,EAAE,CACb,iBAAyB,EACzB,WAAmB,EACnB,OAAkD,EAClD,EAAE,CACF,0BAA0B,CAAC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC;KAC/F,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,OAAsC,EACtC,cAAsB;IAEtB,OAAO;QACL,GAAG,gBAAgB,CAAC,OAAO,EAAE,cAAc,CAAC;KAC7C,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AzurePlaywrightServiceContext } from \"../../api/azurePlaywrightServiceContext.js\";\nimport { accountQuotasGet, accountQuotasListByAccount } from \"../../api/accountQuotas/index.js\";\nimport { AccountQuota, QuotaNames } from \"../../models/models.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport {\n AccountQuotasGetOptionalParams,\n AccountQuotasListByAccountOptionalParams,\n} from \"../../api/options.js\";\n\n/** Interface representing a AccountQuotas operations. */\nexport interface AccountQuotasOperations {\n /** Get quota by name for an account. */\n get: (\n resourceGroupName: string,\n accountName: string,\n quotaName: QuotaNames,\n options?: AccountQuotasGetOptionalParams,\n ) => Promise<AccountQuota>;\n /** List quotas for a given account. */\n listByAccount: (\n resourceGroupName: string,\n accountName: string,\n options?: AccountQuotasListByAccountOptionalParams,\n ) => PagedAsyncIterableIterator<AccountQuota>;\n}\n\nexport function getAccountQuotas(context: AzurePlaywrightServiceContext, subscriptionId: string) {\n return {\n get: (\n resourceGroupName: string,\n accountName: string,\n quotaName: QuotaNames,\n options?: AccountQuotasGetOptionalParams,\n ) =>\n accountQuotasGet(context, subscriptionId, resourceGroupName, accountName, quotaName, options),\n listByAccount: (\n resourceGroupName: string,\n accountName: string,\n options?: AccountQuotasListByAccountOptionalParams,\n ) =>\n accountQuotasListByAccount(context, subscriptionId, resourceGroupName, accountName, options),\n };\n}\n\nexport function getAccountQuotasOperations(\n context: AzurePlaywrightServiceContext,\n subscriptionId: string,\n): AccountQuotasOperations {\n return {\n ...getAccountQuotas(context, subscriptionId),\n };\n}\n"]}
|
|
@@ -13,6 +13,8 @@ export function getAccounts(context, subscriptionId) {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
export function getAccountsOperations(context, subscriptionId) {
|
|
16
|
-
return
|
|
16
|
+
return {
|
|
17
|
+
...getAccounts(context, subscriptionId),
|
|
18
|
+
};
|
|
17
19
|
}
|
|
18
20
|
//# sourceMappingURL=index.js.map
|