diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index c0c69cc21f93..0c96b00b6d1f 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -8757,7 +8757,7 @@ packages: dev: false file:projects/arm-appservice.tgz: - resolution: {integrity: sha512-aJraI3T9AOAXBy7uKxYZ7jX01W4DOG73u2YEMJ1PdasBSnwJ/SjH9ZI5RT1CbaRqdUAuJsFBhHJdDKc0mXQG2A==, tarball: file:projects/arm-appservice.tgz} + resolution: {integrity: sha512-XIoOFmPuJZ6mZqxVNMcVXvYwTzAzdzCMuF1jGGex+3+kC2m1R0Td+YwQw12Xd1qfTrSCRIQXWdqonBi/z/mJow==, tarball: file:projects/arm-appservice.tgz} name: '@rush-temp/arm-appservice' version: 0.0.0 dependencies: @@ -8766,7 +8766,10 @@ packages: '@rollup/plugin-json': 4.1.0_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 + cross-env: 7.0.3 mkdirp: 1.0.4 + mocha: 7.2.0 + rimraf: 3.0.2 rollup: 1.32.1 rollup-plugin-node-resolve: 3.4.0 rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 diff --git a/sdk/appservice/arm-appservice/CHANGELOG.md b/sdk/appservice/arm-appservice/CHANGELOG.md index cafea19c25b2..11a6b7037f67 100644 --- a/sdk/appservice/arm-appservice/CHANGELOG.md +++ b/sdk/appservice/arm-appservice/CHANGELOG.md @@ -1,26 +1,11 @@ # Release History + +## 10.0.0 (2021-12-13) -## 10.0.0-beta.2 (Unreleased) +The package of @azure/arm-appservice is using our next generation design principles since version 10.0.0, which contains breaking changes. -### Features Added +To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). -### Breaking Changes +To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -### Bugs Fixed - -### Other Changes - -## 10.0.0-beta.1 (2021-10-09) - -This is the first preview for the new version of the `@azure/arm-appservice` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services. - -While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/). - -Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies. - -**Noteworthy changes and features** -- Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice. -- Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead. -- List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page. -- Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`. -- The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6. +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/appservice/arm-appservice/README.md b/sdk/appservice/arm-appservice/README.md index 43cec2856a7e..4d6ce450b076 100644 --- a/sdk/appservice/arm-appservice/README.md +++ b/sdk/appservice/arm-appservice/README.md @@ -2,8 +2,6 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure WebSiteManagement client. -You can also follow this [link](https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/appservice/arm-appservice) to see the previous stable versions for this package. Note that they might not implement the guidelines(https://azure.github.io/azure-sdk/typescript_introduction.html) or have the same feature set as the new releases. - WebSite Management Client [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appservice/arm-appservice) | @@ -35,9 +33,9 @@ npm install @azure/arm-appservice To create a client object to access the Azure WebSiteManagement API, you will need the `endpoint` of your Azure WebSiteManagement resource and a `credential`. The Azure WebSiteManagement client can use Azure Active Directory credentials to authenticate. You can find the endpoint for your Azure WebSiteManagement resource in the [Azure Portal][azure_portal]. -#### Using an Azure Active Directory Credential +You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). -You can authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: +To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: ```bash npm install @azure/identity @@ -55,6 +53,10 @@ const subscriptionId = "00000000-0000-0000-0000-000000000000"; const client = new WebSiteManagementClient(new DefaultAzureCredential(), subscriptionId); ``` + +### JavaScript Bundle +To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). + ## Key concepts ### WebSiteManagementClient @@ -68,7 +70,7 @@ const client = new WebSiteManagementClient(new DefaultAzureCredential(), subscri 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`: ```javascript -import { setLogLevel } from "@azure/logger"; +const { setLogLevel } = require("@azure/logger"); setLogLevel("info"); ``` diff --git a/sdk/appservice/arm-appservice/_meta.json b/sdk/appservice/arm-appservice/_meta.json index 1734633b080d..d8ba943f7094 100644 --- a/sdk/appservice/arm-appservice/_meta.json +++ b/sdk/appservice/arm-appservice/_meta.json @@ -1,7 +1,7 @@ { - "commit": "8036a01b7eb766906f238e4c5d0ef34b9565af9a", + "commit": "b8cae07c799a07f2e779a9e301f639e9b85124b1", "readme": "specification/web/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/web/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.8.20210810.1", + "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/web/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211207.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.8.20210810.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20211207.1" } \ No newline at end of file diff --git a/sdk/appservice/arm-appservice/api-extractor.json b/sdk/appservice/arm-appservice/api-extractor.json index 44c291a575b0..fc0bdb365c04 100644 --- a/sdk/appservice/arm-appservice/api-extractor.json +++ b/sdk/appservice/arm-appservice/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./dist-esm/index.d.ts", + "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", "docModel": { "enabled": true }, "apiReport": { "enabled": true, "reportFolder": "./review" }, "dtsRollup": { diff --git a/sdk/appservice/arm-appservice/package.json b/sdk/appservice/arm-appservice/package.json index 5c6085bac158..81f2ecf877a8 100644 --- a/sdk/appservice/arm-appservice/package.json +++ b/sdk/appservice/arm-appservice/package.json @@ -3,29 +3,21 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for WebSiteManagementClient.", - "version": "10.0.0-beta.2", - "engines": { - "node": ">=12.0.0" - }, + "version": "10.0.0", + "engines": { "node": ">=12.0.0" }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", - "@azure/core-paging": "^1.1.1", + "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.0.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], + "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], "license": "MIT", "main": "./dist/index.js", - "module": "./dist-esm/index.js", + "module": "./dist-esm/src/index.js", "types": "./types/arm-appservice.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.18.11", @@ -36,18 +28,20 @@ "mkdirp": "^1.0.4", "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", - "rollup-plugin-node-resolve": "^3.4.0", "typescript": "~4.2.0", - "uglify-js": "^3.4.9" + "uglify-js": "^3.4.9", + "rimraf": "^3.0.0", + "@azure/identity": "^2.0.1", + "@azure-tools/test-recorder": "^1.0.0", + "mocha": "^7.1.1", + "cross-env": "^7.0.2" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appservice/arm-appservice", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, + "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", "dist/**/*.js.map", @@ -64,17 +58,17 @@ "tsconfig.json", "review/*", "CHANGELOG.md", - "types" + "types/*" ], "scripts": { - "build": "tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api", + "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api", "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "prepack": "npm run build", "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", "audit": "echo skipped", - "clean": "echo skipped", + "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", "build:test": "echo skipped", @@ -82,16 +76,15 @@ "check-format": "echo skipped", "execute:samples": "echo skipped", "format": "echo skipped", - "test": "echo skipped", - "prebuild": "echo skipped", + "test": "npm run integration-test", "test:node": "echo skipped", "test:browser": "echo skipped", - "unit-test": "echo skipped", - "unit-test:node": "echo skipped", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", "integration-test:browser": "echo skipped", - "integration-test:node": "echo skipped", - "integration-test": "echo skipped", "docs": "echo skipped" }, "sideEffects": false, diff --git a/sdk/appservice/arm-appservice/recordings/node/web_test/recording_appserviceplans_create_test.js b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_appserviceplans_create_test.js new file mode 100644 index 000000000000..d53dddbe9c66 --- /dev/null +++ b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_appserviceplans_create_test.js @@ -0,0 +1,153 @@ +let nock = require('nock'); + +module.exports.hash = "eee383ef49bad09a5aa91ad20ba1e504"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '35c844ca-d564-432c-ba13-b3e94c2a2100', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AiLLRRzx7ghJovQJ4jCP04M; expires=Wed, 12-Jan-2022 08:37:44 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYWGy1f45iIbkYZ9XIs2jgvzFJE9QbJYqkROGr65Ll4L3XRszFuhQrPAls_Qk0Ea8hZAIPmCzBBW8WX0rM_Db-nDWyAEXi_sGrONa5CbzZDvw3L6ivI4jF9rUO25hrIN7O_azoaC4uuEmzbgVi6VEoLrZo4GhsyQohMhHwdRofLggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:37:44 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '35c844ca-d564-432c-ba13-b3e94e2a2100', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=Amz1ceYuxZhLjusCG1su5Ms; expires=Wed, 12-Jan-2022 08:37:44 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrTiDajjLWmqnpc3QrULPbfKPx47vHQLCNumEfF3yYU9s87oxPkdv_zgI6a11Tp1aTcfGx5igH1c6e8lo8Js6GgMSdXPOcEReo4G9wDV-vFGOnFot-YhRF1Af4hkgFX79C6SL_EzBittifc3BIXS6DiKFS0005RdDOHmRRpW00fxYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:37:44 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=b91c5747-d481-477e-b301-912c2a9b459a&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '68d71f8e-81a4-42ac-abb0-d6011b172000', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AlSrRInmdz9DiU3p4HLZUSIWPr5BAQAAAFj9SNkOAAAA; expires=Wed, 12-Jan-2022 08:37:45 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:37:44 GMT', + 'Content-Length', + '1374' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Web/serverfarms/myappserviceplanxxx', {"location":"eastus","sku":{"name":"S1","tier":"STANDARD","capacity":1},"properties":{"perSiteScaling":false,"isXenon":false}}) + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8ebf9b4fee36797d99d7e759bd40e36cb5c207c5345f95d9f2ddbb771f8d3e5a668b9c90897fd95eaff0e5204c6af2b6586230f436fd5156d30ca3a10ff2ac69d76840a8adf2ba2df2e6a347bff82379f919bd7c46afeddefff4dea737e0d0bc5de3456df37a973e2260357e6fb3e52cab67f44953fcc07e7b9e2d8af21a7fd11fd36c954d8b96fedcfd25a38faeaafa6d5ebf96c64ff3f36c5db6d4c87d0ca476cc076fa89b17dced725d9684e67a31c9eb2fcfbfcbdfd2707609febaaef3652b1f014200b8f7adc2d7cf5f4400366d06ba3dfae8559ecdae09c6553e794d63006033dddba759d37ef59abe69f81b7acb63256a781b5ea2b7b2d9a258be2edadc1fe5bc6ada627971babc2cea6ab9203487bf795957e745695f5d64ef8ac57ad11b168d18f329bd7cf49345ddaeb3f2693e2b885bf2d94bfaca20f36abd6c8b45dec5695a2d56eb36ffa29ad147445f7d93de6aa8a57c2c2d2ff2ea557e21540095d2afc005c48000f97a9a9534808f1e9d6765938f3eca4b6a514cf1717ebacc26258134dfe9584ea5890ce5a422f478960c2b00aa0cb04f1cccb5205534af5715bda8a01bfae3f4ddaaa85956ded0784dc3f33acfbf3c3fcfebf8d76d76419dc9ef81dc056a813e358c225f914479032b9adf3b5f823efaf79c64bcfe49fbe762c692f9d15576d56c93ecceb627e57a7befe0deefcfc24a10dbacbec895a79522347eff538fd309c265d1d038883624af2d8de5a3d7ebe934cf6784937037d110ad655cf9bb8209f91a58aba270835e4f68a22c853becf7836a99bfca676b520a408a074442ffcd29905f","f2ff00a19c95fbba050000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'ETag', + '"1D7EFFCBAB8F6C0"', + 'Vary', + 'Accept-Encoding', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + '4f221c9a-8ed4-4e69-8bf5-84687b1ae0f9', + 'Server', + 'Microsoft-IIS/10.0', + 'X-AspNet-Version', + '4.0.30319', + 'X-Powered-By', + 'ASP.NET', + 'x-ms-ratelimit-remaining-subscription-writes', + '1199', + 'x-ms-correlation-request-id', + '2a2de8f6-ad7c-4c10-bcbf-2b2fb02795f2', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211213T083759Z:2a2de8f6-ad7c-4c10-bcbf-2b2fb02795f2', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Mon, 13 Dec 2021 08:37:59 GMT' +]); diff --git a/sdk/appservice/arm-appservice/recordings/node/web_test/recording_appserviceplans_delete_test.js b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_appserviceplans_delete_test.js new file mode 100644 index 000000000000..90f6354bc64c --- /dev/null +++ b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_appserviceplans_delete_test.js @@ -0,0 +1,179 @@ +let nock = require('nock'); + +module.exports.hash = "1dde321c23eec5a1bb300c44b0f2a600"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '6e42cbf6-77fe-4524-bb47-09aaa7551f00', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AqJ0RxFVh85Hmuo5DngYIGA; expires=Wed, 12-Jan-2022 08:38:44 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9nG7PTT-kHR5-_PUCdd8aDduBHS4PLU2gk8UYuFNkItEYPiPjJlo0ypCCfCUbjtSH7WlIn48djLVMJPxdEATf0rSjGzQV8g8dlrVtdwZyaU2-A7yO92IG8tkoehdq-uioEjPoqqabEd1tJmq43ZtzSTjlxYSX0ke6zPqQXOe2c8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:44 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '6e42cbf6-77fe-4524-bb47-09aaac551f00', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AqSsqWmfEHJJo5-uuYYkCFI; expires=Wed, 12-Jan-2022 08:38:44 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrxZuLeby9JL9NHPbvkV_0S7aTVx3vU26r9TmQZsA83uCLRM5hlxVqbxhHMsqwDU_Ejq5ETE7RLieO5dq2qM22yk_iyFdGCsQ23Mbew5zj1uffr2UGMJ8dkZpwy4T3eivq3Q3zmsMa0p-l6fbxZzmKg_KtWxR6fV6nbWRslCPdJsogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:44 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=6c907453-757c-44cb-ad4a-b19bf691dbe8&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '6e42cbf6-77fe-4524-bb47-09aab1551f00', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AtLu7WQag5pPsCgRo2Oa2nEWPr5BAQAAAJT9SNkOAAAA; expires=Wed, 12-Jan-2022 08:38:45 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:44 GMT', + 'Content-Length', + '1374' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Web/serverfarms/myappserviceplanxxx') + .query(true) + .reply(200, "", [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + '3bf15ed0-bc2a-4954-afcc-262f6d70bc99', + 'Server', + 'Microsoft-IIS/10.0', + 'X-AspNet-Version', + '4.0.30319', + 'X-Powered-By', + 'ASP.NET', + 'x-ms-ratelimit-remaining-subscription-deletes', + '14998', + 'x-ms-correlation-request-id', + 'a7c13bbd-ddc6-4c9f-afd4-bbb325f56b12', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211213T083849Z:a7c13bbd-ddc6-4c9f-afd4-bbb325f56b12', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Mon, 13 Dec 2021 08:38:48 GMT', + 'Content-Length', + '0' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Web/serverfarms') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff92ff0742ea40440c000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11994', + 'x-ms-request-id', + 'acd5c17a-4931-4878-ba5f-31076206e7bc', + 'x-ms-correlation-request-id', + 'acd5c17a-4931-4878-ba5f-31076206e7bc', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211213T083849Z:acd5c17a-4931-4878-ba5f-31076206e7bc', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Mon, 13 Dec 2021 08:38:48 GMT', + 'Content-Length', + '133' +]); diff --git a/sdk/appservice/arm-appservice/recordings/node/web_test/recording_appserviceplans_get_test.js b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_appserviceplans_get_test.js new file mode 100644 index 000000000000..711b1a7f72b9 --- /dev/null +++ b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_appserviceplans_get_test.js @@ -0,0 +1,151 @@ +let nock = require('nock'); + +module.exports.hash = "c4a71338ea0e051b0433703fa031993d"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '6e42cbf6-77fe-4524-bb47-09aa61541f00', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AmkW1Im-P4pFlMe670xjLd0; expires=Wed, 12-Jan-2022 08:38:22 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrAkgQ_Rw7vsXO7iafS05W1Tbv_BtD2JACQRB5KH-YWfWvcIIdoBQ-lbGzSjUd3wyWBX5cc-3QsceEyVHmm-HP5W76xIfu1o9ZMNg8b2HhDbAOUf8E9XnfaKbD7K9YoopCKePROL9xCsEitPOdfiTjBcoANAdFLtcqkj0e6Kb2_OAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:22 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e64ab049-807d-4477-81d6-ab38cb432000', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AoLVijrewkNOl3JvzAWrfbg; expires=Wed, 12-Jan-2022 08:38:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrjVH33gqQnwL6BYA0IfNKBsQBKMm6twsfTyDWo20scrXHK0KWlQ2yjxCuAK1ryeDq-dyOPAoEO9X17Xgz0L8ZLRhGkzjH31vbW6InMSTMXMx_-1r7J_7XsIysgWMzhel0BdQFhJYOdm6P04tCat47ffP5WhKibPvU2fUs2gshV_IgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:22 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=5fcd2067-4b65-4037-8ebe-0fffbe7b5218&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '8b939701-2336-4eda-ab78-39d292e22100', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AsbVDfLcsqRNogaAtVgdenYWPr5BAQAAAH79SNkOAAAA; expires=Wed, 12-Jan-2022 08:38:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:22 GMT', + 'Content-Length', + '1374' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Web/serverfarms/myappserviceplanxxx') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8ebf9b4fee36797d99d7e759bd40e36cb5c207c5345f95d9f2ddbb771f8d3e5a668b9c90897fd95eaff0e5204c6af2b6586230f436fd5156d30ca3a10f4eb3a64dbf7a4d1f126eabbc6e8bbcf9e8d12ffe48de7e466f9fd17bbbf73fbdf7e90d485c55f5dbbc7e5dfc004d9ee6e7d9ba6c838f0168c77cf0a6c8eb170c6eb92e4b02bd5e4cf2facbf3eff2b784c2eee8a3e9baaef3652b1f014200b8f7adc2d7cf5f4400366dd6aee9d78f5ee5d9ec9a605ce593d7ab6c0ac0668eb64191af5ed3370d7f436f79f34f0d6fc300f456365b14cbd7459bfba39c574d5b2c2f4e9797455d2d1784e6f0372febeabc28edab8bec5db1582ffac3a2216312a49b8f7eb2a8db75563ecd6705cd713e7b495f196c5ead976db1c8bb484dabc56adde65f5433fa8808ac6fd25b0db5948fa5e5455ebdca2f840c2093320ec8dfe6afa7594923f8e8d1795636f9e8a3bca416c5141fe7a7cb6c521248f39d0ee6549ac8584e2a428fc6e378015031c2187530d98254d1bc5e55f4a2826ee88fd377aba2660e7f43e3350dcfeb3cfff2fc3cafe35fb7d9057526bf07d21208337d6a3845be2231f0065634bf77be047df4ef394966fd93f6cfc58cc5e9a3abecaad926819b6d4fcaf5f6dec1bddf9f258c20b6597d912b532b456882fd4f3d562708974543e320dabc26dea6b17cf47a3d9de6f98c7012f6261aa2b58c2b7f5730215f036b956e37e8f58426ca52b8c37f3fa896f9ab7cb65ece3220c503fa2544eeb76ba80bd50cafc1f9a4426afcde66d4b6061e0da18c4ff0ed79b628ca6bfc457f4c3392b1a2a53f777fc9","2ff97f008c4da14e70050000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + '4be53679-75cc-444b-aaaa-bb2469a71fd7', + 'Server', + 'Microsoft-IIS/10.0', + 'X-AspNet-Version', + '4.0.30319', + 'X-Powered-By', + 'ASP.NET', + 'x-ms-ratelimit-remaining-subscription-reads', + '11999', + 'x-ms-correlation-request-id', + '683b809d-fc73-4ec8-861f-53579b171c1d', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211213T083824Z:683b809d-fc73-4ec8-861f-53579b171c1d', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Mon, 13 Dec 2021 08:38:23 GMT' +]); diff --git a/sdk/appservice/arm-appservice/recordings/node/web_test/recording_appserviceplans_list_test.js b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_appserviceplans_list_test.js new file mode 100644 index 000000000000..d19ec4b6198c --- /dev/null +++ b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_appserviceplans_list_test.js @@ -0,0 +1,151 @@ +let nock = require('nock'); + +module.exports.hash = "7e4732dc6bf6d2082b4e9d783d788fb0"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '861ea296-1c2c-49dd-984c-64b1b1b52000', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AgRHXuq_qShElkowswibfUg; expires=Wed, 12-Jan-2022 08:38:25 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2-ChEPSyvtGCM1WF3WqJgYshysUo51ZpQXoCi2Vl5ZcdqZSrYLNTzlxN2nYZCgSE6Uq491azCdSQQfSvNBwracYDJrzAK9lf7lWoyV2i85nY8CsOgAno-p1Re3Q6iQJPPljNlN9E_9nQ9VkyxzFvCguNItbhOXzoAbxUx0kwn4MgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:24 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '1a38419d-bfc2-443e-bb1b-f20c8f0b2300', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=Al6SZ_SZ26ZHvU4zxb1LekA; expires=Wed, 12-Jan-2022 08:38:25 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrE8zmji_V1hG1ZrXagfjdLpUSKhDRnbp-ZBmMVw8-5-w0yyg6rUFQyVSW1FWHwrLxObWlN_fY3P5jKf1RjeGBp9PYYlilyxmWsstAvEyqerDTrBaAYBli8-RTgBC94UINWrg2_XwM_4NaSLBQ2uBGezWzlfl-lX8qP0TAjP9vEdQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:25 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=4ab0f010-9912-4810-af88-9b34735eddf6&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '1a38419d-bfc2-443e-bb1b-f20c950b2300', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AgQdPFaD8RVKmkh9PY29RmQWPr5BAQAAAIH9SNkOAAAA; expires=Wed, 12-Jan-2022 08:38:25 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:25 GMT', + 'Content-Length', + '1374' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Web/serverfarms') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffc5131fbe8d147779bf5a499d6c5aa2daa6573f7e1def9c3fbb383f3ed7bd34f1f6cefefeeed6f3fdc9d3ed83e989eef3c98ce26e77bfbbb77ebbca9d6f534ffbcaed6abe6eee2faa79b366fdabbabbaba2c6679dddcfda298d655539db7e3efe693bb4d5e5fe6f579562fd0385badf04131cd5765b67cf7eedd47a38f96d98270fa28fe657bbdc2978330a9c9db6289c1d0dbf447594d338c863e38cd9a36fdea357d48b8adf2ba2df2e6a347bff82379fb19bd7d46efeddefff4dea737207155d56ff3fa75f10334799a9f67ebb20d3e06a01df3c19b22af5f30b8e5ba2c09f47a31c9eb2fcfbfcbdf120abba38fa6ebbace97ad7c040801e0deb70a5f3f7f1101d8b459bba65f3f7a9567b36b8271954f5eafb229009b39da0645be7a4ddf34fc0dbde5cd3f35bc0d03d05bd96c512c5f176dee8f725e356db1bc385d5e1675b55c109ac3dfbcacabf3a2b4af2eb277c562bde80f8b868c49906e3efac9a26ed759f9349f1534c7f9ec257d65b079b55eb6c522ef2235ad16ab759b7f51cde82322b0be496f35d4523e96961779f52abf1032804cca38207f9bbf9e66258de0a347e759d9e4a38ff2925a14537c9c9f2eb3494920cd773a985369226339a9083d1a8fe30540c50863d4c1640b5245f37a55d18b0abaa13f4edfad8a9a39fc0d8dd7343caff3fccbf3f3bc8e7fdd6617d499fc1e484b20ccf4a9e114f98ac4c01b58d1fcdef912f4d1bfe72499f54fda3f173316a78faeb2ab669b046eb63d29d7db7b07f77e7f963082d866f545ae4cad14a109f63ff5589d205c160d8d8368f39a789bc6f2d1ebf5749ae733c249d89b6888d632aefc5dc1847c0dac55badda0d7139a284be10efffda05ae6aff2d97a39cb80140fe89710b9dfaea12e5433bc06e7930aa9f17b9b51db1a783484323ec1b7e7d9a228aff117fd31cd48c68a96fedcfd25bfe4fb34f3f9bbf679b17c6b3a8502c66f","bfe4ff011374d9b296050000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + '5ef8c6e2-a4f5-4b13-b743-503104a86aab', + 'Server', + 'Microsoft-IIS/10.0', + 'X-AspNet-Version', + '4.0.30319', + 'X-Powered-By', + 'ASP.NET', + 'x-ms-ratelimit-remaining-subscription-reads', + '11997', + 'x-ms-correlation-request-id', + '5e04b457-f817-4584-889c-535f8c9addef', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211213T083826Z:5e04b457-f817-4584-889c-535f8c9addef', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Mon, 13 Dec 2021 08:38:25 GMT' +]); diff --git a/sdk/appservice/arm-appservice/recordings/node/web_test/recording_sample_test.js b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_sample_test.js new file mode 100644 index 000000000000..db3dec4c4a73 --- /dev/null +++ b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_sample_test.js @@ -0,0 +1,179 @@ +let nock = require('nock'); + +module.exports.hash = "1dde321c23eec5a1bb300c44b0f2a600"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '9e4deb1d-59f9-4f91-a0fa-cb1eab222200', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AuCoZR0yP9pMvF_uJbGxxdk; expires=Wed, 12-Jan-2022 08:18:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr5AqfB5PmVN4F-vP1r_LGOPt5wHufM4Sil8dBZXZPSlib1uVRc5ZRfMPjIL-ZOBKrpVEdMIdjT2jSofTlkgXWpPDIMjBfMEbAJyEIGytzrXopxmH7qrIJPZUBY-OqE_MEe4tU7MttXL7Z72TPqt59cBzAf-KHXzIt0Wy6T4OPUJ0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:18:20 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '515b7f7a-a6ec-4d9d-a61d-90fd43c72200', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AgdwnjYPWJRPmHsl6yjZ5lY; expires=Wed, 12-Jan-2022 08:18:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrDaPt4W98HV7uN1S0pTkuAbCllNNRTlisuE9YIx94rfkmbCEJGAYMLTDUifMvgqf3tdHqKdhBwC-x8MjPxibNEsWf2bzQ8Qzydkxnloi-f6buVhNVA67NMnPQm8CG51A8mflqnEMoYwKhvGCPWzmoF_WHK3rJn9JHVSBiDW8l3RwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:18:20 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=cddc4c11-2dc3-4bb5-9a65-02a76a4554f4&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '25e1b200-ca8c-4386-a214-6e12f64e2100', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=Amm1iNPRi39JhGT2Pg5wDq4WPr5BAQAAAM34SNkOAAAA; expires=Wed, 12-Jan-2022 08:18:22 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:18:21 GMT', + 'Content-Length', + '1374' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Web/serverfarms/myappserviceplanxxx') + .query(true) + .reply(200, "", [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + 'd82e63dd-0aa7-4001-bf02-65f3286dcddd', + 'Server', + 'Microsoft-IIS/10.0', + 'X-AspNet-Version', + '4.0.30319', + 'X-Powered-By', + 'ASP.NET', + 'x-ms-ratelimit-remaining-subscription-deletes', + '14998', + 'x-ms-correlation-request-id', + 'e16b44b7-70c4-4562-8147-91deae0e728a', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211213T081826Z:e16b44b7-70c4-4562-8147-91deae0e728a', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Mon, 13 Dec 2021 08:18:26 GMT', + 'Content-Length', + '0' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Web/serverfarms') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff92ff0742ea40440c000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11994', + 'x-ms-request-id', + 'd3958518-56f4-4192-ba60-70f758b01a1c', + 'x-ms-correlation-request-id', + 'd3958518-56f4-4192-ba60-70f758b01a1c', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211213T081826Z:d3958518-56f4-4192-ba60-70f758b01a1c', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Mon, 13 Dec 2021 08:18:26 GMT', + 'Content-Length', + '133' +]); diff --git a/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_create_test.js b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_create_test.js new file mode 100644 index 000000000000..2f6ecd9a75aa --- /dev/null +++ b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_create_test.js @@ -0,0 +1,153 @@ +let nock = require('nock'); + +module.exports.hash = "9b1f648b9d2d41a7bd9932eaf6933bad"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '861ea296-1c2c-49dd-984c-64b140b42000', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=Au6SYbZwdYZLvCt5nTXKmeo; expires=Wed, 12-Jan-2022 08:37:59 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEqlloDMYlWvK_82Jx1c8sWyJhTEOnukIzFC6oOnkwtAE4bHgXN9wtHYXDr_dsHEfaaIewlhyq9HkvR74GgYNYug87wbC6nwj5OEv4exBPmgvzfPgbTbzj4dvvSiq9tfxw-zRT57Ld-p18mOLkpOuJRLZGNdd-_30DlDXa13m-EcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:37:59 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '6e42cbf6-77fe-4524-bb47-09aa32531f00', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AspBxlQE0AhJgC9UEOiEAoE; expires=Wed, 12-Jan-2022 08:37:59 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevroYZD4MhLqdem881ql5bYm5Uq3W-PLQmSnAXsrNZhOLn0a7HhSWVN09rCD1MhiJC7m45ZWmUxL75-We_SW3FQ-s2fBQjGmzqC09mL8xQnjdH0SzQ87d_UMEX_8RETcr2nMviCXloBzBw7ihgXUWc8MoB-c7nXMfZJTKupfBxhmS4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:37:59 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=8362ae36-2215-4dbe-870f-db9723b85f62&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '1a38419d-bfc2-443e-bb1b-f20c200a2300', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=Al4ArxcLo9VDkLFJjysvskQWPr5BAQAAAGf9SNkOAAAA; expires=Wed, 12-Jan-2022 08:38:00 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:37:59 GMT', + 'Content-Length', + '1374' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Web/sites/mysitexxxx', {"location":"eastus","properties":{"serverFarmId":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Web/serverfarms/myappserviceplanxxx","reserved":false,"isXenon":false,"hyperV":false,"siteConfig":{"netFrameworkVersion":"v4.6","appSettings":[{"name":"WEBSITE_NODE_DEFAULT_VERSION","value":"10.14"}],"localMySqlEnabled":false,"http20Enabled":true},"scmSiteAlsoStopped":false,"httpsOnly":false}}) + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8ebf9b4fee36057d4dcdf0f31d3d1f8d3e5a668b9c7a0f3e6baf57f82cf22e7df9b65802dd6cb5a23fca6a9a015ffa20cf9a768d06d4f92aafdb825a3ffac551f84d9bb5f8f0d57ab92c9617f4c9bc6ada17d4925ef99ed7769cfd605de757f9041f34e365de7ef4fdd147f4f7eb5536050433e2ed53eafdabd7f44dc3df501f7979febc58bea546f3b65d358feedebdcaae9a6dc26eb63d29d7db7b07f7c6d9aae8747145a3abaeb8ab47fbf7f7ef7e8d49012c20014247b11352d2b7f849a30449ea7c55d19f557dfd9a3e042908f1a04575b5cceb8f1e2dd76539fa68dd6417f96b25e38baa5e642535c997d9a4cc6976da7a9d8f3eca668b62791a7ea64dbe7d6b7a8ffcaf9be922d284a6047fbc0ce67d91b7d92c6b338331d1dd7efb3dcb163443eb77cfdefd24b12a11983abbccca35bef8e8978c6ca3efca9c449a01f42fa1ee89195fe76d4bbc44d0f943faec322bca6c5294457bdda354d39427c0e6bc20fe054a7869f4d1b4a9e9f7ef11c42975653ec5e0bea8660440fe36ccfaba291930357423f2a8d5a714c1d277a8e5d3a2e1b9a04f8bd593acc96704f055deaccbd6f47459d4ed3a2bcf5e9a0fdaf97a3159d5c5d23669abaf5644670218fe7d66419a6f5c27068317557b522dcf8b0bc2136860606f44f6a9c97296d5337f1ebca1c519e1ff3bc37b65c5ed23f0cfb45aacd6e12437797d99d7cfb27ad1ffe48cc4e987a3afb9cb73ea128d89cbf14131cd5765b6a469a0311144fa8886f7e83c2b1b12f0a2f9bdf325c988f97b4e03ae7fd2fe59664d4bc324c6cf676f8a45fe553ba5b1ecedeced6eefee6defde7bb373f0e8dec1a39dfbe3fddd4fe979407d3444275237aff26945d85c3fcdcf339a444365a7c4a7d5b2cd97edf126c1abd7cb96baddd88626269789832259124be4f597e7dfadeab744a18f1eed8e3e9a090a4fabe97a413dd2873245c484cf6a62d62b6a6b94857eb59aafba9f5cb7f36ad9f970492cd0f968555de5f5eb795e969d2fca507991d222dbd4d555dab6ce7fd19a66fa4d9d4d895856299b2f17559b3fcd27eb8b8b1bbfed0086717b5ef1379df7583ebfa89660736a714254bea86a56c0da605a7fd5e45f644b9adcd9d98c0849b37142b2422d945da449dd6973f6d48028ab8be66951e753ea832cd70ff2e7c5a2b0c23b231b501046a775cd2844905cad2765d1cce90bf4238aa6fbcdcbac696846ed3b2407a1b6271b453d915ab0d68658714948119d5eb7a44ebc86d99440e6bf577e6d3e9993a22b31c4d5ca6f3853de7a5555763ca4f5447fc89feb26bfb7f7a4688533c9fc91cdb7ef93627c5d4ddfe66dd31971565e65d7cd9734814ae39f264bd599547c441240d4f36c7ef061e70542fea45a2c682864512d82f437a6ed65b1ca895789179c7a53d57bbc5a95308104ca615e2c8fd7edfc18de83ca66f0c51bf2219646fce59be99a74c48280bdacaad270491f40b459049c51124fc113d10fbb2c5156d9ec49465a11d2653e24250b2679b52e1dcfe7ef481d12184f69946059fb57b66eab6fe759d99d35fd3800d68a347f2926c07c7a495a08ee81fff72b42253f2ebb50f1d5cbbab8a4b1bfaceab639a96890e64b1680e98bbca581be3d9efacc35ada008e5f7d5ba999bdfc99f25ed5c90c81342de8722bf18353110eb55fd8a46f5fa2a5bbd2eab0065b8f5e517d7af7f511761e5a8d76473c80c9929843d94efdf494fc30ddee6d73f09d5fd2a3fcfeb7ce99a980605c9f6745dd327e42b90ecb210d360c9c32a56c7b319193cfaeba3e3e53569db8cbfc59f65595dd107e43b908a0334b212a24de4bb342b615a66b935d9fe376926e4852f40427ef6ff5a1c88f7bf20f937c482f2dfdbb173a40a85c4ee4dd974340481fc22f6f979bb6a02e15bd5f977c9e1c867674b8ad3688602a63c5f2f191312e2d7c42346dfef102e241dedfc649e4fdfbecc5acb92e764004e48c75ee4c7eb59d15a5cf55b05d7901701e966986ab348b23aad49a7c23780dff253d5d2624ce32d16ebc5297c9b62da419b306343f89a201267921ce1739a3e79572848bafbddf5b332b382816e2091e66fd25005a9cc754308ba900adf51a431237facba867481cf3f726e324d76d3912c5219e714748898d45e18265f376fd70481e6439c6ffa60ba4040785c36158d60b542b73acd6d565fe4ad115f03014e2e538ed0ad96406af81b1a36a6c7349896057d784cf811fdafed282570942f1134d92f140ff78d181872ae7fd19a7c02a0efbe3b7d372dd7603c30871d2f706202d868c1409d550b627462567255c54089a620c7d5e93e31284f234d098dfbf79fed9deeefdfbb7ffce983fd83673b27f78ef7c9a3bdbf73ffc9bd4f1fecedef7f7afc90fe3b7df6f4e9c9deceb38707a7cf4e4ff79fdc7f7a72f2e060e7c129a11fe43a8ae584586776e66980bd9df1fec3f1eecefef8fe0eb5a098a2296814679d9698df6e5b923b1266f5783c9ef97d7fdfdfcdfd21ed1ac326d4107f465319f445272223730d57149119671cee5e5d5dd5f0662897b06e2318dedf1befeded8f1f1c8cefef8d80e8fefdf1ee03c279777fc4df7dca2378b0e3fd45518df9ebfe8edf127fedef8d3aa33614faf2878680f7d7830716e8c1ee786fe7bef972ff604cdfe91fd472ef9e7b6f9790f7ffd83df0ffbaffd0ffeb81ff97071f7fedb9eff6c61e5e7be34f3ff5fef040ec8d1f3a08f487c3706fbcbba77f11b51e8e1ff8ed763ff541ec3e74e4a11f3baee37b63f7d6bd605cf4d743ff2feaa53b8fe45f8b1f0a9f9f95ec8c3cfdeb2f2854a9afa19f7f625dc11ba72f9a75b3ca9733849b64fe5470c18f46e45f51e610f688da1a7370fa8e6c1f7ef98a345173423e3b75226f2eb2772fba11a17c33afc87eb4d962459cd4930fe05c925d595e9c2dcf2bf74a57254273c8776de68201e25017b7137813b813540d453d1175e2db114812447a0116819536195dca976a0fb043141494e435a8022405ba262bb09c5eab5a7d01930735446afb82306abe2457d6aa3b0173915744567217264c3e0b9e7c123899a7cbd9aaa2ec0a79811a1ed916937551ce488742459bcfc4c23c897cb3282ea46b8c8290934f29cab8807453a8e7479b1fc1591087907ea32f9b11fd349fc02be87c46e8351583f13ffdf69b372f3b1f9dbd24272906e16599b5e7944fe08f61b3f10b118fcc85e705584365684e6c80a8487deed7eb094d9923ee06dff5a3d7d7c4108b63d26e174b02f84b","7ec9ff03ad5a8f1cd6170000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'ETag', + '"1D7EFFCBFFC50A0"', + 'Vary', + 'Accept-Encoding', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + '56d3537c-56d5-4b3f-896b-c9f45068102e', + 'Server', + 'Microsoft-IIS/10.0', + 'X-AspNet-Version', + '4.0.30319', + 'X-Powered-By', + 'ASP.NET', + 'x-ms-ratelimit-remaining-subscription-resource-requests', + '499', + 'x-ms-correlation-request-id', + 'e99fc707-8ce7-4c55-98e1-2a8f872cb325', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211213T083822Z:e99fc707-8ce7-4c55-98e1-2a8f872cb325', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Mon, 13 Dec 2021 08:38:22 GMT' +]); diff --git a/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_delete_test.js b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_delete_test.js new file mode 100644 index 000000000000..353d3c25eeac --- /dev/null +++ b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_delete_test.js @@ -0,0 +1,181 @@ +let nock = require('nock'); + +module.exports.hash = "7a214d3b60cfc7b7ba86954dfd08810f"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '6e42cbf6-77fe-4524-bb47-09aa11551f00', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=AojDhAkwSvZOuA1d9Mdl3xM; expires=Wed, 12-Jan-2022 08:38:35 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBEp6S55rdDU-l-Sykxo7_k6wXT-FiYh17968s29p6dIBu-FeiZ0vOHjLOkkbYWOiZnDSSjw3e2fUxPD1Xo1plocy1twOZZm6RUHGYW44tJPwnOg2akNKLFMvFCkTvJyjwDSAzamiZYraCDQ7SI2VKIDawFtxDfWdlsFBtngu2l0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:34 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e64ab049-807d-4477-81d6-ab3864442000', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=Ai9i0q6tmJRDsjKrOGgol64; expires=Wed, 12-Jan-2022 08:38:35 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrayRtc12_XlAHCFdSnDtm__cb3NfhiHPK1HMN4VgiAj_I6_et1Ex4I36Py9u5PKTdV32ipzJwVqLOHRUIXOXUl7neqPKBm3gd2cuppCcPkUkOztzrE6mfK2VbKF30QXJ7Vnr6wgJFLNrVQyXzfnAfBaun9fdOm-CyzF8ijWhbhvEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:34 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=7f51da0d-8705-4a8f-82b6-1a9bd053afd4&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '68d71f8e-81a4-42ac-abb0-d60180192000', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AiFPj4LwuZ5GrZiAM7f8h_oWPr5BAQAAAIv9SNkOAAAA; expires=Wed, 12-Jan-2022 08:38:35 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:35 GMT', + 'Content-Length', + '1374' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Web/sites/mysitexxxx') + .query(true) + .reply(200, "", [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Expires', + '-1', + 'ETag', + '"1D7EFFCCE369680"', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + '45dcff85-7300-4385-bb5c-2f331a555146', + 'Server', + 'Microsoft-IIS/10.0', + 'X-AspNet-Version', + '4.0.30319', + 'X-Powered-By', + 'ASP.NET', + 'x-ms-ratelimit-remaining-subscription-deletes', + '14999', + 'x-ms-correlation-request-id', + '95a80b15-ea52-4ca6-acb8-7c394957dd8a', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211213T083844Z:95a80b15-ea52-4ca6-acb8-7c394957dd8a', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Mon, 13 Dec 2021 08:38:43 GMT', + 'Content-Length', + '0' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Web/sites') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff92ff0742ea40440c000000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding', + 'x-ms-ratelimit-remaining-subscription-reads', + '11995', + 'x-ms-request-id', + '256a178d-9fde-486f-92e2-1b3a65615927', + 'x-ms-correlation-request-id', + '256a178d-9fde-486f-92e2-1b3a65615927', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211213T083844Z:256a178d-9fde-486f-92e2-1b3a65615927', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Mon, 13 Dec 2021 08:38:44 GMT', + 'Content-Length', + '133' +]); diff --git a/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_get_test.js b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_get_test.js new file mode 100644 index 000000000000..40a2f441c7da --- /dev/null +++ b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_get_test.js @@ -0,0 +1,153 @@ +let nock = require('nock'); + +module.exports.hash = "f2d87a377b87fe0ff04c8b0a51a3451c"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '35c844ca-d564-432c-ba13-b3e90d2c2100', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=Au52ibCsv1xEqkrVT1pvJ3I; expires=Wed, 12-Jan-2022 08:38:24 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrdup15ObKroXA7tHLTxPAAKh7B-pqCSKeBhTLhqYsPa2kI05G8uwxPPIqB2IIcURUmqEPwPVY5WUVn6uOzywOOSPt8XuNQRtm36TwWY7a2rcc6XFZazqsYjEwmL-HkRcxn6l80Qj0L1FAScH2iuY932FjflkR6kbZvq9IoCwOTNsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:23 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '6e42cbf6-77fe-4524-bb47-09aa6e541f00', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=ApnVCB4tAYBBoeacCfmGM18; expires=Wed, 12-Jan-2022 08:38:24 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBA0QkKSHgIDtJfBFg0ari0VLOEfoqLqeDs3JBnPuVucJNb1f6WBJrZyW1tcBaVXO4-6H0-l69Q0qBJs4iRs43e67FLNls1N8Aci6vm_UFHfaRiehW7NMO8kMgDLSYSiFzM7niYCQ4BeYAJEXCMcatP2E-8snmwvzsqpCLVGK598gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:23 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=c9260c47-9972-4710-84e5-9b8608bd85a1&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '6e42cbf6-77fe-4524-bb47-09aa72541f00', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=Av2W2g2iw55GnWPNfkU54TgWPr5BAQAAAID9SNkOAAAA; expires=Wed, 12-Jan-2022 08:38:24 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:24 GMT', + 'Content-Length', + '1374' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Web/sites/mysitexxxx') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8ebf9b4fee36057d4dcdf0f31d3d1f8d3e5a668b9c7a0f3e6baf57f82cf22e7df9b65802dd6cb5a23fca6a9a015ffae0346bdaf4abd7f421f5becaebb6a0e68f7e71b483a6cd5a7cf86abd5c16cb0bfa645e35ed0b6a49af7ccf6b3bce7eb0aef3ab7c820f9af1326f3ffafee823fafbf52a9b028219f236baffea357dd3f037d4475e9e3f2f966fa9d1bc6d57cda3bb77afb2ab669bb09b6d4fcaf5f6dec1bd71b62a3a5d5cd1f0aa2beeead1fefdfdbb5f6356000b4880d251ec8496f42d7ed22841923a5f55f467555fbfa60f410a423c68515d2df3faa347cb75598e3e5a37d945fe5ac9f8a2aa1759494df2653629739a9eb65ee7a38fb2d9a2589e869f69936fdf9ade23ffeb66ba8834a129c11f2f83795fe46d36cbdacc604c74b7df7ecfb205cdd0faddb3773f49bc4a04a6ce2eb3728d2f3efa2523dbe8bb3227916600fd4ba87be2c6d779db122f1174fe903ebbcc8a329b1465d15ef728d534e509b0392f888181125e1a7d346d6afafd7b04714a5d994f31b82faa190190bf0db3be6e4a064c0ddd883c6af52945b0f41d6af9b468782ee8d362f5246bf219017c9537ebb2353d5d1675bbcecab397e68376be5e4c5675b1b44ddaeaab15d19900867f9f5990e61bd789c1e045d59e54cbf3e282f0041a18d81b117e6ab29c65f5cc9f076f687146f8ffcef05e5971fb08fc33ad16ab7538c94d5e5fe6f5b3ac5ef43f392371fae1286ceef29cba4463e2727c504cf355992d691a684c04913ea2e13d3acfca8604bc687eef7c493262fe9ed380eb9fb47f9659d3d23089f1f3d99b62917fd54e692c7b3b7bbbdbbb7bdbbbf7deec1c3cba77f068e7d3f1de7d02df108948d3bccaa7152172fd343fcf68fe0c819dfe9e56cb365fb6c79b64ae5e2f5bea71631b9a935ce60c3a6449dc90d75f9e7fb7aadf12713e7ab43bfa6826283cada6eb05f5481fcaec10ff3dab894fafa8add113fad56abeea7e72ddceab65e7c325cd7ee7a3557595d7afe7795976be2843bd45fa8acc52574d69db3aff456b9ae43775362562597d6cbe5c546dfe349fac2f2e6efcb6031876ed79c5df74de63d1fca25a82c3a9c50951f9a2aa59f76a8369fd55937f912d69726767332224cdc6098909b5504e912675a7cdd95303a2ac2e9aa7459d4fa90f325a3fc89f178bc2caed8cd47f41189dd635a3104172b59e944533a72fd08fe898ee372fb3a6a119b5ef9008848a9ecc13f5441ac11a1a62c5252145747add9226f11a66530299ff5ef9b5f9644e3aaec410572bbfe14c79eb5555d9f190c213d5217fae9bfcdede93a215ce24cb47e6debe4f3af175357d9bb74d67c45979955d375fd2042a8d7f9a8c546752f111490051cf33f7c1879d1708f9936ab1a0a19031b508d2df98b697c52a275e255e709a4db5eef16a55c2fa11288779b13c5eb7f363380e2a9bc1176fc87d581af1976fa66bd2110b02f6b2aa4ac3257d00d166117046493c054f443fecb2445965b3271929444897f990f42b98e4d5ba743c9fbf234d48603ca5518265ed5fd9baadbe9d676577d6f4e300582bd2fca5687ff3e92569217806fedfaf0895fcb8ec42c5572febe292c6feb2aadbe6a4a2419a2f5900a62ff29606faf678ea33d7b4822294df57eb666e7e275796b47341224f08791f8afc62d4c440ac57f52b1ad5ebab6cf5baac0294e1d2975f5cbffe455d8495a35e93b9210b64a610a650be7f273d0d37789b5fff2454f7abfc3caff3a56b621a1424dbd3754d9f909b40b2cb426c074b1278f6f51a10d77c419263da416deeedd8d1895f4cfcfaa66c3aa24510bf887d7edeae9a806b5775fe5d32d2f9ec6c49b10d0d2d98cdf3f5921121ee7f4dc4358a72875021b66ae727f37cfaf665d6dab93c27cd7942cae9223f5ecf8ad6a2aadf2ab886cc2fc48261aab22796ecb4266504a30a5bff53d5d2624ce32d16ebc529fc8162da419b30630bf29a20d2941203e2734b68212029bd77d7cfcacc7214ba012b9bbf49b40bd235eb8610746108be23ef7c463e4c750db604837ce45c4b32a44d872549d6cec95117feaabdd045be6edeae0902cd8738acf4c1748120eab86c2a1ac16a856e55e1b6597d91b786ef0d0438864c3942b75a02a9e16f68d8981ed3605a16f4e131e147f4bfb6a314a6922f1168d82f140ff78d686672487fd19a8c29d077df9dbe9b966b301e98c38e17383101ac876da0ceaa05f139312bb977a2d945c4c8d9734a4334f1d3485342e3fefd677ba7fbfbf7ee1f7ffa60ffe0d9cec9bde3fd4f3ffdf4fecefd27f73e7db0b7bfffe9f143faeff4d9d3a7277b3bcf1e1e9c3e3b3ddd7f72ffe9c9c983839d07a7847e9020289613629dd9d9ea783623579590205f73bcff70bcbbb33fbebf432dc80f6f0a1ac559a725e6b7db96e48e64595d058f677edfdff777737f48bbc6b00935c49fd1f09fbee8443164e7e0c3219ae128fdeed5d5550d3780e2ef751bc1f0fede786f6f7ffce0607c7f6f0444f7ef8f771f10cebbfb23feee531ec1831def2f8a04cc5ff777fc96f86b7f6fd419b5a1d0973f3404bcbf1e3cb0400f76c77b3bf7cd97fb0763fa4effa0967bf7dc7bbb84bcffc7ee81ffd7fd87fe5f0ffcbf3cf8f86bcf7db737f6f0da1b7ffaa9f78707626ffcd041a03f1c867be3dd3dfd8ba8f570fcc06fb7fba90f62f7a1230ffdd8711ddf1bbbb7ee05e3a2bf1efa7f512fdd7924c7541c3838cbac6467e4225f7f413e7e7d0dfdfc13eb0a6e2c7dd1ac9b55be9c21442b6d800b7e3422ff2acf1ad8236a6bccc1e93b327df8e52bd244cd0939bbd489bcb9c8debde88652f2cdbc22fbd1668b1571524f3e80734976657971b63cafdc2b5d9508cd21dfb599f3a289435dac4be04db04b503586f344d4896f47204910e905580456da6474d7b607d821f2a64b7220540192025d9315584eaf55adbe80c9831a22b57d4118355f920f68d59d80b9c82b222b790b13269f054f79087867a7cbd9aaa28c04b94f1a57500ba48826eba29c9106858236ef887d7912f966515c48c71803a1269f92737e01d9a608c90fd23e82ab207e14fd465f3623fa693e814fd0f98c906b2a06e37ffaed376f5e763e3a7b491e520cc2cb326bcf290ce78f61b1f10b918e8c85e703583365284e4c8060425dd5d7eb094d9823ed0697efa3d7d7c40e8b63d26d174b02f84b7e","c9ff03966ac7c009170000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'ETag', + '"1D7EFFCBFFC50A0"', + 'Vary', + 'Accept-Encoding', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + '7bf5a5fb-59ad-4090-9462-e2ad4ca42640', + 'Server', + 'Microsoft-IIS/10.0', + 'X-AspNet-Version', + '4.0.30319', + 'X-Powered-By', + 'ASP.NET', + 'x-ms-ratelimit-remaining-subscription-reads', + '11998', + 'x-ms-correlation-request-id', + 'fe5d6135-2b4b-4ea7-a36b-e3f76c1979ad', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211213T083825Z:fe5d6135-2b4b-4ea7-a36b-e3f76c1979ad', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Mon, 13 Dec 2021 08:38:24 GMT' +]); diff --git a/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_list_test.js b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_list_test.js new file mode 100644 index 000000000000..da331a372708 --- /dev/null +++ b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_list_test.js @@ -0,0 +1,153 @@ +let nock = require('nock'); + +module.exports.hash = "fa11008e2454bd54fb1d0d9c1317f4a9"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e64ab049-807d-4477-81d6-ab3801442000', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR1 ProdSlices', + 'Set-Cookie', + 'fpc=An2WBw1kcw9Hs3LSND-MvUs; expires=Wed, 12-Jan-2022 08:38:26 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrfQ9xxcrog7LCdPmTZtiJFvEjrULB5R2FbzO2GKhV-LHi3-EefvQvkciPccGJXzcZ3GVwaWblFT0g9bO-CoWIVoSuvlJjLK4KbtcpDilcc6W4ZVkXh3y8iRZu-wKw8E_c5OTRXBOXwEVu74SPPRUH4jbu4NjWIYGH-5B5ibBUNKEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:26 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '8b939701-2336-4eda-ab78-39d2bae22100', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR1 ProdSlices', + 'Set-Cookie', + 'fpc=AkektGwpSOFMoHCHo94kKv8; expires=Wed, 12-Jan-2022 08:38:26 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrO57eNlBqMKsGFeIrIVEDpicWcn6NJgVwnmUbDoaidOS5FUZi0BZArV_xg4AiddeUSmIsVvwuiyIlmtPiwWsGwTAnW0PVDxGup3DU8OtUdkuevjDKjSppUTCjJs5ARENy3uIh4IbA_at3Xl9zCyujlKCSWW2yiiW32g9PEdZVflUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:26 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=b1887347-e4ee-49df-ba43-85129b617931&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '68d71f8e-81a4-42ac-abb0-d60118192000', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=AiE7SRgERExKrukJfk2LNF0WPr5BAQAAAIL9SNkOAAAA; expires=Wed, 12-Jan-2022 08:38:27 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:26 GMT', + 'Content-Length', + '1374' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/providers/Microsoft.Web/sites') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffc5131fbe8d147779bf5a499d6c5aa2daa6573f7e1def9c3fbb383f3ed7bd34f1f6cefefeeed6f3fdc9d3ed83e989eef3c98ce26e77bfbbb77ebbca9d6f534ffbcaed6abe6eee2faa79b366fdabbabbaba2c6679dddcfda298d655539db7e3efe693bb4d415f5333fc7c47cf47a38f96d98290f828f8acbd5ee1b3c8bbf4e5db620974b3d58afe28ab69067ce983d3ac69d3af5ed387d4fb2aafdb829a3ffac5d10e9a366bf1e1abf572592c2fe89379d5b42fa825bdf23dafed38fbc1baceaff2093e68c6cbbcfde8fba38fe8efd7ab6c0a0866c8dbe8feabd7f44dc3df501f7979febc58bea546f3b65d358feedebdcaae9a6dc26eb63d29d7db7b07f7c6d9aae8747145c3abaeb8ab47fbf7f7ef7e8d59012c20014a47b1135ad2b7f849a30449ea7c55d19f557dfd9a3e042908f1a04575b5cceb8f1e2dd76539fa68dd6417f96b25e38baa5e642535c997d9a4cc697ada7a9d8f3eca668b62791a7ea64dbe7d6b7a8ffcaf9be922d284a6047fbc0ce67d91b7d92c6b338331d1dd7e4b3caf6c4133b47ef7ecdd4f12af1281a933958a8f3efa2523dbe8bb3227916600fd4ba87be2c6d779db122f1174fe903ebbcc8a329b1465d15ef728d534e509b0392f8881192582326d6af31b752480a8290ded8b6a86d79f170bfa6346ef1b7e7ddd940c9b5abb417904eb138b00ea3bd4f269d1f074d0a7c5ea49d6e43302f82a6fd6656bbabf2cea769d95672fcd07ed7cbd98acea62699bb4d5572b2235010cff3eb320cd37ae1383c18baa3da996e7c505e1093430b03722ffd46439cbea993f15ded0e2bcf0ff9de1bdb212f71158685a2d566b3bd34ff3197306de69f2fa32af9f65f5c2f4e33e3923c1fae1a86eeef29cba4463e2777c504cf355992d6936084d82481f11c68fceb3b221512f9adf3b5f92b498bfe734eefa27ed9f65d6b4345a12817cf6a658e45fb5531acbdecedeeef6eedef6eebd373b078fee1d3cdaf974bc779fc0374429d239aff26945885c3fcdcf339a464367a7c9a7d5b2cd97edf126e9abd7cb967adcd886a62697a98336591253e4f597e7dfadeab7449c8f1eed8e3e9a090a4fabe97a413dd287323bc486cf6a62d72b6a6b34867eb59aafba9f5cb7f36ad9f970494cd0f968555de5f5eb795e969d2fca508391e62203d55558dab6ce7fd19a26f94d9d4d895856339b2f17559b3fcd27eb8b8b1bbfed0086857b5ef1379df75842bfa89660746a714254bea86ad6c2da605a7fd5e45f644b9adcd9d98c0849b37142d2422d9453a449dd6973f6d48028ab8be66951e753ea83ccd70f72d693e6db19198282303aad6b462182e46a3d298b664e5fa01f5135dd6f5e664d43336adf211108553e192aea8914833539c48a4b428ae8f4ba2585e235cca60432ffbdf26bf3c99c545d8921ae567ec399f2d6abaab2e321bd271a44fe5c37f9bdbd27452b9c4936900cbf7d9f54e3eb6afa366f9bce88b3f22abb6ebea409541aff3499abcea4e2239200a29e67f8830f3b2f10f227d562414321b36a11a4bf316d2f8b554ebc4abc0005275fa9f23d5ead4a683b02e5302f96c7eb767e0c17426533f8e20d39124b23fef2cd744d3a6241c05e565569b8a40f20da2c02ce2889a7e089e8875d9628ab6cf624238508e9321f927e0593bc5a978ee7f377a409098ca7344ab0acfd2b5bb7d5b7f3acecce9a7e1c006b459abf14ed6f3ebd242d0407c1fffb15a1921f975da8f8ea655d5cd2d85f5675db9c543448f3250bc0f445ded240df1e4f7de69a565084f2fb6addcccdefe4d492762e48e40921ef43915f8c9a1888f5aa7e45a37a7d95ad5e975580329cfbf28bebd7bfa88bb072d46b32376481cc14c214caf7efa4a7e1066ff3eb9f84ea7e959fe775be744d4c8382647bbaaee913f21648765988ed604902cfbe5e03e29a2f48724c3ba8cdbd1d3b3af190895fdf944d47b408e217b1cfcfdb551370edaacebf4b463a9f9d2d29caa1a105b379be5e3222c4fdaf89b84651ee102ac456edfc649e4fdfbecc5a3b97e7a4394f48395de4c7eb59d15a54f55b05d790f98558304c55f6c4929dd6a48c605461eb7faa5a5a8c69bcc562bd38853f504c3b6813666c415e13449a5262407c6e092d0424a5f7eefa5999598e42376065f337897641ba66dd10822e20c177e4a7cfc887a9aec19660908f9c874986b4e9b024c9da39b9ecc25fb517c4c8d7cddb3541a0f910bf953e982e104e1d974d452358add0ad2adc36ab2ff2d6f0bd8100ff902947e8564b2035fc0d0d1bd3631a4ccb823e3c26fc88fed77694c254f225420efb85e2e1be11cd4c7ee92f5a933105faeebbd377d3720dc60373d8f10227268075b40dd459b5203e276625f74e34bb8818397b4e6988267e1a694a68dcbfff6cef747fffdefde34f1fec1f3cdb39b977bcffe9a79fdedfb9ffe4dea70ff6f6f73f3d7e48ff9d3e7bfaf4646fe7d9c383d367a7a7fb4fee3f3d397970b0f3e094d00f5205c57242ac333b5b1dcf66e4aa1212e46b8ef71f8e7777f6c7f777a805b9e34d41a338ebb4c4fc76db92dc912cababe0f1cceffbfbfe6eee0f69d71836a186f8339a08a02f3ac10cd939f870086a385ebf7b757555c30da0487cdd4630bcbf37dedbdb1f3f3818dfdf1b01d1fdfbe3dd0784f3eefe88bffb9447f060c7fb8b2201f3d7fd1dbf25fedadf1b75466d28f4e50f0d01efaf070f2cd083ddf1dece7df3e5fec198bed33fa8e5de3df7de2e21efffb17be0ff75ffa1ffd703ff2f0f3efeda73dfed8d3dbcf6c69f7eeafde181d81b3f7410e80f87e1de78774fff226a3d1c3ff0dbed7eea83d87de8c8433f765cc7f7c6eead7bc1b8e8af87fe5fd44b771ec93115070ece322bd919b9c8d75f908f5f5f433fffc4ba821b4b5f34eb66952f6708d14a1be7821f8dc8bfcab306f688da1a7370fa8e4c1f7ef98a34517342ce2e75226f2eb2772fbaa1947c33afc87eb4d962459cd4930fe05c925d595e9c2dcf2bf74a57254273c8776de6bc68e25017eb127813ec12548de13c1175e2db114812447a011681953619ddb5ed017688bce9921c085580a440d7640596d36b55ab2f60f2a086486d5f1046cd97e4035a7527602ef28ac84adec284c967c1533a02ded9e972b6aa283141ee93c615b6c5645d9433d2a150d1e633b1304f22df2c8a0be91aa320e4e45372cf2f20dd1423f961da477016c493a2dfe8cb66443fcd27f00a3a9f117a4dc560fc4fbffde6cdcbce47672fc9478a41785966ed3905e2fc316c367e21e291b9f0bc006ba80ccd890d104ea8b3fa7a3da12973c4dde0f47df4fa9a1862714cdaed6249007f091232cbfc5d4b710c2570e57d64c9f1db","2ff97f00f4ee2bce3b170000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'ETag', + '"1D7EFFCBFFC50A0"', + 'Vary', + 'Accept-Encoding', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + '182fd9ff-1424-4647-ba3d-597ccbaf3c96', + 'Server', + 'Microsoft-IIS/10.0', + 'X-AspNet-Version', + '4.0.30319', + 'X-Powered-By', + 'ASP.NET', + 'x-ms-ratelimit-remaining-subscription-reads', + '11996', + 'x-ms-correlation-request-id', + 'cdfc9f62-5af7-4398-bee5-e0ed14c9fa2f', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211213T083827Z:cdfc9f62-5af7-4398-bee5-e0ed14c9fa2f', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Mon, 13 Dec 2021 08:38:27 GMT' +]); diff --git a/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_update_test.js b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_update_test.js new file mode 100644 index 000000000000..60ae199264f9 --- /dev/null +++ b/sdk/appservice/arm-appservice/recordings/node/web_test/recording_webapps_update_test.js @@ -0,0 +1,153 @@ +let nock = require('nock'); + +module.exports.hash = "92d7bf919355037888d4505297dfc444"; + +module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '6e42cbf6-77fe-4524-bb47-09aaa7541f00', + 'x-ms-ests-server', + '2.1.12261.14 - SEASLR2 ProdSlices', + 'Set-Cookie', + 'fpc=ArTwlqCf9C1Coxv5Tc5vwT8; expires=Wed, 12-Jan-2022 08:38:27 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOoHJroQaGDAWbMcsw4Ss3hGLcGaATlzMsl3-TIxouMTPERfgnTB7CAHiK_tgYG1l8_gFWtq3-_1WXhr_hON3Ofi9QBD4y9QbjO-jvYcW4k-VcNbYz3GdIVSFxNeJSCJ-tmKuydLTGtQYtNdZn3GVhSMeMnRMs3J8rKcY7v4SFHogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:27 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '68d71f8e-81a4-42ac-abb0-d60120192000', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR2 ProdSlices', + 'Set-Cookie', + 'fpc=Agu49x_BKrNBhcfndG2aQdw; expires=Wed, 12-Jan-2022 08:38:28 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtNF2w6hNjvGpl_CPo3YOfu6gOeNqKMrpSSbyYTwZgUaL3zDCZxXoyApKixSG9KuT7K_7Es_NoPuKJP_G0OEX6WC3Jq6sWfFYTzl9ToI3c4m9jvXDmH-zs1tORiHp3pVCOkGhcqMkZATWdsAxaC5ZcgZSYW7BZYhselQ9AtGbrXcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:27 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=1f6f8e98-012d-41c1-81b3-33713e94c80d&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") + .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ + 'Cache-Control', + 'no-store, no-cache', + 'Pragma', + 'no-cache', + 'Content-Type', + 'application/json; charset=utf-8', + 'Expires', + '-1', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '8b939701-2336-4eda-ab78-39d2cde22100', + 'x-ms-ests-server', + '2.1.12261.14 - KRSLR1 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', + 'Set-Cookie', + 'fpc=ArBAgXhhtgBItH7-IsYhQOgWPr5BAQAAAIP9SNkOAAAA; expires=Wed, 12-Jan-2022 08:38:28 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 13 Dec 2021 08:38:27 GMT', + 'Content-Length', + '1374' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .patch('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Web/sites/mysitexxxx', {"properties":{"serverFarmId":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Web/serverfarms/myappserviceplanxxx","reserved":false,"isXenon":false,"hyperV":false,"siteConfig":{"netFrameworkVersion":"v4.6","localMySqlEnabled":false,"http20Enabled":true},"scmSiteAlsoStopped":false}}) + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8ebf9b4fee36057d4dcdf0f31d3d1f8d3e5a668b9c7a0f3e6baf57f82cf22e7df9b65802dd6cb5a23fca6a9a015ffae0346bdaf4abd7f421f5becaebb6a0e68f7e71b483a6cd5a7cf86abd5c16cb0bfa645e35ed0b6a49af7ccf6b3bce7eb0aef3ab7c820f9af1326f3ffafee823fafbf52a9b028219f236baffea357dd3f037d4475e9e3f2f966fa9d1bc6d57cda3bb77afb2ab669bb09b6d4fcaf5f6dec1bd71b62a3a5d5cd1f0aa2beeead1fefdfdbb5f6356000b4880d251ec8496f42d7ed22841923a5f55f467555fbfa60f410a423c68515d2df3faa347cb75598e3e5a37d945fe5ac9f8a2aa1759494df2653629739a9eb65ee7a38fb2d9a2589e869f69936fdf9ade23ffeb66ba8834a129c11f2f83795fe46d36cbdacc604c74b7df7ecfb205cdd0faddb3773f49bc4a04a6ce2eb3728d2f3efa2523dbe8bb3227916600fd4ba87be2c6d779db122f1174fe903ebbcc8a329b1465d15ef728d534e509b0392f888181125e1a7d346d6afafd7b04714a5d994f31b82faa190190bf0db3be6e4a064c0ddd883c6af52945b0f41d6af9b468782ee8d362f5246bf219017c9537ebb2353d5d1675bbcecab397e68376be5e4c5675b1b44ddaeaab15d19900867f9f5990e61bd789c1e045d59e54cbf3e282f0041a18d81b117e6ab29c65f5cc9f076f687146f8ffcef05e5971fb08fc33ad16ab7538c94d5e5fe6f5b3ac5ef43f392371fae1286ceef29cba4463e2727c504cf355992d691a684c04913ea2e13d3acfca8604bc687eef7c493262fe9ed380eb9fb47f9659d3d23089f1f3d99b62917fd54e692c7b3b7bbbdbbb7bdbbbf7deec1c3cba47ffdb19efee11f88648449ae6553ead0891eba7f97946f36708ecf4f7b45ab6f9b23dde2473f57ad9528f1bdbd09ce43267d0214be286bcfef2fcbb55fd9688f3d1a3ddd1473341e169355d2fa847fa506687f8ef594d7c7a456d8d9ed0af56f355f793eb765e2d3b1f2e69f63b1fadaaabbc7e3dcfcbb2f34519ea2dd2576496ba6a4adbd6f92f5ad324bfa9b32911cbea63f3e5a26af3a7f9647d7171e3b71dc0b06bcf2bfea6f31e8be617d5121c4e2d4e88ca1755cdba571b4cebaf9afc8b6c49933b3b9b112169364e484ca885728a34a93b6dce9e1a106575d13c2dea7c4a7d90d1fa41febc5814566e67a4fe0bc2e8b4ae19850892abf5a42c9a397d817e44c774bf7999350dcda87d87442054f4649ea827d208d6d0102b2e0929a2d3eb963489d7309b12c8fcf7caafcd2773d2712586b85af90d67ca5bafaaca8e87149ea80ef973dde4f7f69e14ad7026593e32f7f67dd289afabe9dbbc6d3a23cecaabecbaf992265069fcd364a43a938a8f4802887a9eb90f3eecbc40c89f548b050d858ca94590fec6b4bd2c5639f12af182d36caa758f57ab12d68f4039cc8be5f1ba9d1fc37150d90cbe7843eec3d288bf7c335d938e5810b09755551a2ee90388368b80334ae2297822fa619725ca2a9b3dc9482142bacc87a45fc124afd6a5e3f9fc1d694202e3298d122c6bffcad66df5ed3c2bbbb3a61f07c05a91e62f45fb9b4f2f490bc133f0ff7e45a8e4c765172abe7a59179734f69755dd3627150dd27cc902307d91b734d0b7c7539fb9a61514a1fcbe5a3773f33bb9b2a49d0b127942c8fb50e417a3260662bdaa5fd1a85e5f65abd76515a00c97befce2faf52fea22ac1cf59acc0d592033853085f2fd3be969b8c1dbfcfa27a1ba5fe5e7799d2f5d13d3a020d99eae6bfa84dc04925d16621a2c3957c5ea7836235b477f7d74bcbc266d9bf1b7f8b32cab2bfa80dc06527180465642b4897c9766254ccb2cb7d6daff26cd84bc700348c8cffe5f8b03f1fe1724ff865850fe7b3b768ec4bb27a97b53361d054110bf887d7edeae9a40f65675fe5d7235f2d9d99222349aa08027cfd74b468464f835b18851f73b840a09473b3f99e7d3b72fb3d672e439e9ff1352b117f9f17a56b41655fd56c135e44440b819a69a2c12ac4e6b52a9700de0b1fc54b5b418d3788bc57a710aafa69876d026ccd80ebe2688c4982446f89c664fde150292ea7e77fdacccac5ca01b08a4f99b1454411a73dd10822e98c2771463ccc813abae215c60f38f9c834c73dd74048b34c639851b2225b51780c9d7cddb3541a0f910b79b3e982e100a1e974d452358add0ad9a8d36ab2ff2d648af8100f7962947e8564b2035fc0d0d1bd3631a4ccb823e3c26fc88fed77694c254f225c225fb85e2e1be11fb426ef52f5a934b00f4dd77a7efa6e51a8c07e6b0e3054e4c001b2718a8b36a417c4ecc4a4eaad8275114e4b23ad527f6e469a429a171fffeb3bdd3fdfd7bf78f3f7db07ff06ce7e4def1fea79f7e7a7fe7fe937b9f3ed8dbdffff4f821fd77faece9d393bd9d670f0f4e9f9d9eee3fb9fff4e4e4c1c1ce8353423f487314cb09b1ceeccc53007b3be3fd87e3dd9dfdf1fd1d6a41d14453d028ce3a2d31bfddb6247724cbeaf0783cf3fbfebebf9bfb43da35864da821fe8c2631e88b4e2c46d61a9e286232ce35dcbdbabaaae1cc501661dd4630bcbf37dedbdb1f3f3818dfdf1b01d1fdfbe3dd0784f3eefe88bffb9447f060c7fb8be219f3d77d8a165c4bfcb5bf37ea8cda50e8cb1f1a02de5f0f1e58a007bbe3bd9dfbe6cbfd83317da77f50cbbd7beebd5d42deff63f7c0ffebfe43ffaf07fe5f1e7cfcb5e7bedb1b7b78ed8d3ffdd4fbc303b1377ee820d01f0ec33d0acbf42fa2d6c3f103bfddeea73e88dd878e3cf463c7757c6fecdeba178c8bfe7ae8ff45bd74e791dc6b7143e1f2b3929d91a37ffd05452af535f4f34fac2b38e3f445b36e56f972864093ac9f0a2ef8d188fcab3c6b608fa8ad3107a7efc8f4e197af48133527e4b25327f2e6227bf7a21b10ca37f38aec479b2d56c4493df900ce25d995e5c5d9f2bc72af74552234877cd7662e16200e75113b8137213b41d548d4135127be1d812441a4176011586993d15ddb1e6087282628c9695005480a744d566039bd56b5fa02260f6a88d4f60561d47c499eac557702e622af88ace42d4c987c163cb924f0314f97b3554579157202353ab22d26eba29c910e858a369f89857912f966515c48d7180521279f52907101e9a648cf0f363f82b320fe20fd465f3623fa693e8157d0f98cd06b2a06e37ffaed376f5e763e3a7b493e520cc2cb326bcf299dc01fc366e317221e990bcf0bb086cad09cd8004191badcafd7139a3247dc0daeeb47afaf892116c7a4dd2e9604f097fc","92ff07b6ee7154d1170000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'ETag', + '"1D7EFFCBFFC50A0"', + 'Vary', + 'Accept-Encoding', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'x-ms-request-id', + 'e41934c0-0937-4c08-97f3-7f472830674a', + 'Server', + 'Microsoft-IIS/10.0', + 'X-AspNet-Version', + '4.0.30319', + 'X-Powered-By', + 'ASP.NET', + 'x-ms-ratelimit-remaining-subscription-resource-requests', + '498', + 'x-ms-correlation-request-id', + 'd5900270-bcb8-495c-aadf-c64b6cb11ce9', + 'x-ms-routing-request-id', + 'SOUTHEASTASIA:20211213T083835Z:d5900270-bcb8-495c-aadf-c64b6cb11ce9', + 'X-Content-Type-Options', + 'nosniff', + 'Date', + 'Mon, 13 Dec 2021 08:38:34 GMT' +]); diff --git a/sdk/appservice/arm-appservice/review/arm-appservice.api.md b/sdk/appservice/arm-appservice/review/arm-appservice.api.md index d34cf7425908..baae67de81e7 100644 --- a/sdk/appservice/arm-appservice/review/arm-appservice.api.md +++ b/sdk/appservice/arm-appservice/review/arm-appservice.api.md @@ -44,10 +44,10 @@ export interface AllowedAudiencesValidation { } // @public -export type AllowedPrincipals = ProxyOnlyResource & { +export interface AllowedPrincipals { groups?: string[]; identities?: string[]; -}; +} // @public export interface AnalysisData { @@ -99,11 +99,11 @@ export interface AppInsightsWebAppStackSettings { } // @public -export type Apple = ProxyOnlyResource & { +export interface Apple { enabled?: boolean; - registration?: AppleRegistration; login?: LoginScopes; -}; + registration?: AppleRegistration; +} // @public export interface AppleRegistration { @@ -153,10 +153,10 @@ export interface AppLogsConfiguration { } // @public -export type AppRegistration = ProxyOnlyResource & { +export interface AppRegistration { appId?: string; appSecretSettingName?: string; -}; +} // @public export interface AppServiceCertificate { @@ -1436,27 +1436,27 @@ export interface AzureActiveDirectory { } // @public -export type AzureActiveDirectoryLogin = ProxyOnlyResource & { - loginParameters?: string[]; +export interface AzureActiveDirectoryLogin { disableWWWAuthenticate?: boolean; -}; + loginParameters?: string[]; +} // @public -export type AzureActiveDirectoryRegistration = ProxyOnlyResource & { - openIdIssuer?: string; +export interface AzureActiveDirectoryRegistration { clientId?: string; - clientSecretSettingName?: string; - clientSecretCertificateThumbprint?: string; - clientSecretCertificateSubjectAlternativeName?: string; clientSecretCertificateIssuer?: string; -}; + clientSecretCertificateSubjectAlternativeName?: string; + clientSecretCertificateThumbprint?: string; + clientSecretSettingName?: string; + openIdIssuer?: string; +} // @public -export type AzureActiveDirectoryValidation = ProxyOnlyResource & { - jwtClaimChecks?: JwtClaimChecks; +export interface AzureActiveDirectoryValidation { allowedAudiences?: string[]; defaultAuthorizationPolicy?: DefaultAuthorizationPolicy; -}; + jwtClaimChecks?: JwtClaimChecks; +} // @public export interface AzureBlobStorageApplicationLogsConfig { @@ -1476,10 +1476,10 @@ export interface AzureBlobStorageHttpLogsConfig { export type AzureResourceType = "Website" | "TrafficManager"; // @public -export type AzureStaticWebApps = ProxyOnlyResource & { +export interface AzureStaticWebApps { enabled?: boolean; registration?: AzureStaticWebAppsRegistration; -}; +} // @public export interface AzureStaticWebAppsRegistration { @@ -1582,9 +1582,9 @@ export interface BillingMeterCollection { } // @public -export type BlobStorageTokenStore = ProxyOnlyResource & { +export interface BlobStorageTokenStore { sasUrlSettingName?: string; -}; +} // @public export type BuildStatus = string; @@ -1818,6 +1818,14 @@ export type CertificatesUpdateResponse = Certificate; // @public export type Channels = "Notification" | "Api" | "Email" | "Webhook" | "All"; +// @public +export interface CheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { + isFqdn?: boolean; +} + +// @public +export type CheckNameAvailabilityResponse = ResourceNameAvailability; + // @public export type CheckNameResourceTypes = string; @@ -2110,11 +2118,11 @@ export type CustomHostnameAnalysisResult = ProxyOnlyResource & { export type CustomHostNameDnsRecordType = "CName" | "A"; // @public -export type CustomOpenIdConnectProvider = ProxyOnlyResource & { +export interface CustomOpenIdConnectProvider { enabled?: boolean; - registration?: OpenIdConnectRegistration; login?: OpenIdConnectLogin; -}; + registration?: OpenIdConnectRegistration; +} // @public export interface DatabaseBackupSetting { @@ -3168,11 +3176,32 @@ export interface GeoRegionCollection { } // @public -export type GitHub = ProxyOnlyResource & { +export interface GetPublishingUserOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GetPublishingUserResponse = User; + +// @public +export interface GetSourceControlOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GetSourceControlResponse = SourceControl; + +// @public +export interface GetSubscriptionDeploymentLocationsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GetSubscriptionDeploymentLocationsResponse = DeploymentLocations; + +// @public +export interface GitHub { enabled?: boolean; - registration?: ClientRegistration; login?: LoginScopes; -}; + registration?: ClientRegistration; +} // @public export interface GitHubActionCodeConfiguration { @@ -3247,12 +3276,12 @@ export interface GlobalValidation { } // @public -export type Google = ProxyOnlyResource & { +export interface Google { enabled?: boolean; - registration?: ClientRegistration; login?: LoginScopes; + registration?: ClientRegistration; validation?: AllowedAudiencesValidation; -}; +} // @public export interface HandlerMapping { @@ -3921,12 +3950,12 @@ export interface KubeEnvironmentsUpdateOptionalParams extends coreClient.Operati export type KubeEnvironmentsUpdateResponse = KubeEnvironment; // @public -export type LegacyMicrosoftAccount = ProxyOnlyResource & { +export interface LegacyMicrosoftAccount { enabled?: boolean; - registration?: ClientRegistration; login?: LoginScopes; + registration?: ClientRegistration; validation?: AllowedAudiencesValidation; -}; +} // @public export interface LinuxJavaContainerSettings { @@ -3940,6 +3969,95 @@ export interface LinuxJavaContainerSettings { readonly java8Runtime?: string; } +// @public +export interface ListBillingMetersNextOptionalParams extends coreClient.OperationOptions { + billingLocation?: string; + osType?: string; +} + +// @public +export type ListBillingMetersNextResponse = BillingMeterCollection; + +// @public +export interface ListBillingMetersOptionalParams extends coreClient.OperationOptions { + billingLocation?: string; + osType?: string; +} + +// @public +export type ListBillingMetersResponse = BillingMeterCollection; + +// @public +export interface ListGeoRegionsNextOptionalParams extends coreClient.OperationOptions { + linuxDynamicWorkersEnabled?: boolean; + linuxWorkersEnabled?: boolean; + sku?: SkuName; + xenonWorkersEnabled?: boolean; +} + +// @public +export type ListGeoRegionsNextResponse = GeoRegionCollection; + +// @public +export interface ListGeoRegionsOptionalParams extends coreClient.OperationOptions { + linuxDynamicWorkersEnabled?: boolean; + linuxWorkersEnabled?: boolean; + sku?: SkuName; + xenonWorkersEnabled?: boolean; +} + +// @public +export type ListGeoRegionsResponse = GeoRegionCollection; + +// @public +export interface ListPremierAddOnOffersNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ListPremierAddOnOffersNextResponse = PremierAddOnOfferCollection; + +// @public +export interface ListPremierAddOnOffersOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ListPremierAddOnOffersResponse = PremierAddOnOfferCollection; + +// @public +export interface ListSiteIdentifiersAssignedToHostNameNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ListSiteIdentifiersAssignedToHostNameNextResponse = IdentifierCollection; + +// @public +export interface ListSiteIdentifiersAssignedToHostNameOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ListSiteIdentifiersAssignedToHostNameResponse = IdentifierCollection; + +// @public +export interface ListSkusOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ListSkusResponse = SkuInfos; + +// @public +export interface ListSourceControlsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ListSourceControlsNextResponse = SourceControlCollection; + +// @public +export interface ListSourceControlsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ListSourceControlsResponse = SourceControlCollection; + // @public export type LoadBalancingMode = string; @@ -4067,6 +4185,10 @@ export type MigrateMySqlStatus = ProxyOnlyResource & { readonly localMySqlEnabled?: boolean; }; +// @public +export interface MoveOptionalParams extends coreClient.OperationOptions { +} + // @public export type MSDeploy = ProxyOnlyResource & { packageUri?: string; @@ -4922,85 +5044,85 @@ export interface ResourceHealthMetadataCollection { } // @public -export interface ResourceHealthMetadataOperations { - getBySite(resourceGroupName: string, name: string, options?: ResourceHealthMetadataOperationsGetBySiteOptionalParams): Promise; - getBySiteSlot(resourceGroupName: string, name: string, slot: string, options?: ResourceHealthMetadataOperationsGetBySiteSlotOptionalParams): Promise; - list(options?: ResourceHealthMetadataOperationsListOptionalParams): PagedAsyncIterableIterator; - listByResourceGroup(resourceGroupName: string, options?: ResourceHealthMetadataOperationsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listBySite(resourceGroupName: string, name: string, options?: ResourceHealthMetadataOperationsListBySiteOptionalParams): PagedAsyncIterableIterator; - listBySiteSlot(resourceGroupName: string, name: string, slot: string, options?: ResourceHealthMetadataOperationsListBySiteSlotOptionalParams): PagedAsyncIterableIterator; +export interface ResourceHealthMetadataGetBySiteOptionalParams extends coreClient.OperationOptions { } // @public -export interface ResourceHealthMetadataOperationsGetBySiteOptionalParams extends coreClient.OperationOptions { +export type ResourceHealthMetadataGetBySiteResponse = ResourceHealthMetadata; + +// @public +export interface ResourceHealthMetadataGetBySiteSlotOptionalParams extends coreClient.OperationOptions { } // @public -export type ResourceHealthMetadataOperationsGetBySiteResponse = ResourceHealthMetadata; +export type ResourceHealthMetadataGetBySiteSlotResponse = ResourceHealthMetadata; // @public -export interface ResourceHealthMetadataOperationsGetBySiteSlotOptionalParams extends coreClient.OperationOptions { +export interface ResourceHealthMetadataListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ResourceHealthMetadataOperationsGetBySiteSlotResponse = ResourceHealthMetadata; +export type ResourceHealthMetadataListByResourceGroupNextResponse = ResourceHealthMetadataCollection; // @public -export interface ResourceHealthMetadataOperationsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +export interface ResourceHealthMetadataListByResourceGroupOptionalParams extends coreClient.OperationOptions { } // @public -export type ResourceHealthMetadataOperationsListByResourceGroupNextResponse = ResourceHealthMetadataCollection; +export type ResourceHealthMetadataListByResourceGroupResponse = ResourceHealthMetadataCollection; // @public -export interface ResourceHealthMetadataOperationsListByResourceGroupOptionalParams extends coreClient.OperationOptions { +export interface ResourceHealthMetadataListBySiteNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ResourceHealthMetadataOperationsListByResourceGroupResponse = ResourceHealthMetadataCollection; +export type ResourceHealthMetadataListBySiteNextResponse = ResourceHealthMetadataCollection; // @public -export interface ResourceHealthMetadataOperationsListBySiteNextOptionalParams extends coreClient.OperationOptions { +export interface ResourceHealthMetadataListBySiteOptionalParams extends coreClient.OperationOptions { } // @public -export type ResourceHealthMetadataOperationsListBySiteNextResponse = ResourceHealthMetadataCollection; +export type ResourceHealthMetadataListBySiteResponse = ResourceHealthMetadataCollection; // @public -export interface ResourceHealthMetadataOperationsListBySiteOptionalParams extends coreClient.OperationOptions { +export interface ResourceHealthMetadataListBySiteSlotNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ResourceHealthMetadataOperationsListBySiteResponse = ResourceHealthMetadataCollection; +export type ResourceHealthMetadataListBySiteSlotNextResponse = ResourceHealthMetadataCollection; // @public -export interface ResourceHealthMetadataOperationsListBySiteSlotNextOptionalParams extends coreClient.OperationOptions { +export interface ResourceHealthMetadataListBySiteSlotOptionalParams extends coreClient.OperationOptions { } // @public -export type ResourceHealthMetadataOperationsListBySiteSlotNextResponse = ResourceHealthMetadataCollection; +export type ResourceHealthMetadataListBySiteSlotResponse = ResourceHealthMetadataCollection; // @public -export interface ResourceHealthMetadataOperationsListBySiteSlotOptionalParams extends coreClient.OperationOptions { +export interface ResourceHealthMetadataListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ResourceHealthMetadataOperationsListBySiteSlotResponse = ResourceHealthMetadataCollection; +export type ResourceHealthMetadataListNextResponse = ResourceHealthMetadataCollection; // @public -export interface ResourceHealthMetadataOperationsListNextOptionalParams extends coreClient.OperationOptions { +export interface ResourceHealthMetadataListOptionalParams extends coreClient.OperationOptions { } // @public -export type ResourceHealthMetadataOperationsListNextResponse = ResourceHealthMetadataCollection; +export type ResourceHealthMetadataListResponse = ResourceHealthMetadataCollection; // @public -export interface ResourceHealthMetadataOperationsListOptionalParams extends coreClient.OperationOptions { +export interface ResourceHealthMetadataOperations { + getBySite(resourceGroupName: string, name: string, options?: ResourceHealthMetadataGetBySiteOptionalParams): Promise; + getBySiteSlot(resourceGroupName: string, name: string, slot: string, options?: ResourceHealthMetadataGetBySiteSlotOptionalParams): Promise; + list(options?: ResourceHealthMetadataListOptionalParams): PagedAsyncIterableIterator; + listByResourceGroup(resourceGroupName: string, options?: ResourceHealthMetadataListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySite(resourceGroupName: string, name: string, options?: ResourceHealthMetadataListBySiteOptionalParams): PagedAsyncIterableIterator; + listBySiteSlot(resourceGroupName: string, name: string, slot: string, options?: ResourceHealthMetadataListBySiteSlotOptionalParams): PagedAsyncIterableIterator; } -// @public -export type ResourceHealthMetadataOperationsListResponse = ResourceHealthMetadataCollection; - // @public export interface ResourceMetricAvailability { readonly retention?: string; @@ -6583,10 +6705,10 @@ export type TriggeredWebJobStatus = "Success" | "Failed" | "Error"; export type TriggerTypes = string; // @public -export type Twitter = ProxyOnlyResource & { +export interface Twitter { enabled?: boolean; registration?: TwitterRegistration; -}; +} // @public export interface TwitterRegistration { @@ -6600,6 +6722,20 @@ export type UnauthenticatedClientAction = "RedirectToLoginPage" | "AllowAnonymou // @public export type UnauthenticatedClientActionV2 = "RedirectToLoginPage" | "AllowAnonymous" | "Return401" | "Return403"; +// @public +export interface UpdatePublishingUserOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type UpdatePublishingUserResponse = User; + +// @public +export interface UpdateSourceControlOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type UpdateSourceControlResponse = SourceControl; + // @public export type Usage = ProxyOnlyResource & { readonly displayName?: string; @@ -6636,6 +6772,17 @@ export interface UserAssignedIdentity { readonly principalId?: string; } +// @public +export interface ValidateMoveOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ValidateOperationResponse = ValidateResponse; + +// @public +export interface ValidateOptionalParams extends coreClient.OperationOptions { +} + // @public export interface ValidateRequest { appServiceEnvironment?: AppServiceEnvironment; @@ -6672,6 +6819,13 @@ export interface ValidateResponseError { message?: string; } +// @public +export interface VerifyHostingEnvironmentVnetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type VerifyHostingEnvironmentVnetResponse = VnetValidationFailureDetails; + // @public export interface VirtualApplication { physicalPath?: string; @@ -10361,9 +10515,13 @@ export type WebSiteInstanceStatus = ProxyOnlyResource & { }; // @public (undocumented) -export class WebSiteManagementClient extends WebSiteManagementClientContext { +export class WebSiteManagementClient extends coreClient.ServiceClient { + // (undocumented) + $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: WebSiteManagementClientOptionalParams); // (undocumented) + apiVersion: string; + // (undocumented) appServiceCertificateOrders: AppServiceCertificateOrders; // (undocumented) appServiceEnvironments: AppServiceEnvironments; @@ -10375,7 +10533,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { certificateRegistrationProvider: CertificateRegistrationProvider; // (undocumented) certificates: Certificates; - checkNameAvailability(name: string, typeParam: CheckNameResourceTypes, options?: WebSiteManagementClientCheckNameAvailabilityOptionalParams): Promise; + checkNameAvailability(name: string, typeParam: CheckNameResourceTypes, options?: CheckNameAvailabilityOptionalParams): Promise; // (undocumented) deletedWebApps: DeletedWebApps; // (undocumented) @@ -10384,21 +10542,20 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { domainRegistrationProvider: DomainRegistrationProvider; // (undocumented) domains: Domains; - generateGithubAccessTokenForAppserviceCLIAsync(code: string, state: string, options?: WebSiteManagementClientGenerateGithubAccessTokenForAppserviceCLIAsyncOptionalParams): Promise; - getPublishingUser(options?: WebSiteManagementClientGetPublishingUserOptionalParams): Promise; - getSourceControl(sourceControlType: string, options?: WebSiteManagementClientGetSourceControlOptionalParams): Promise; - getSubscriptionDeploymentLocations(options?: WebSiteManagementClientGetSubscriptionDeploymentLocationsOptionalParams): Promise; + getPublishingUser(options?: GetPublishingUserOptionalParams): Promise; + getSourceControl(sourceControlType: string, options?: GetSourceControlOptionalParams): Promise; + getSubscriptionDeploymentLocations(options?: GetSubscriptionDeploymentLocationsOptionalParams): Promise; // (undocumented) global: Global; // (undocumented) kubeEnvironments: KubeEnvironments; - listBillingMeters(options?: WebSiteManagementClientListBillingMetersOptionalParams): PagedAsyncIterableIterator; - listGeoRegions(options?: WebSiteManagementClientListGeoRegionsOptionalParams): PagedAsyncIterableIterator; - listPremierAddOnOffers(options?: WebSiteManagementClientListPremierAddOnOffersOptionalParams): PagedAsyncIterableIterator; - listSiteIdentifiersAssignedToHostName(nameIdentifier: NameIdentifier, options?: WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptionalParams): PagedAsyncIterableIterator; - listSkus(options?: WebSiteManagementClientListSkusOptionalParams): Promise; - listSourceControls(options?: WebSiteManagementClientListSourceControlsOptionalParams): PagedAsyncIterableIterator; - move(resourceGroupName: string, moveResourceEnvelope: CsmMoveResourceEnvelope, options?: WebSiteManagementClientMoveOptionalParams): Promise; + listBillingMeters(options?: ListBillingMetersOptionalParams): PagedAsyncIterableIterator; + listGeoRegions(options?: ListGeoRegionsOptionalParams): PagedAsyncIterableIterator; + listPremierAddOnOffers(options?: ListPremierAddOnOffersOptionalParams): PagedAsyncIterableIterator; + listSiteIdentifiersAssignedToHostName(nameIdentifier: NameIdentifier, options?: ListSiteIdentifiersAssignedToHostNameOptionalParams): PagedAsyncIterableIterator; + listSkus(options?: ListSkusOptionalParams): Promise; + listSourceControls(options?: ListSourceControlsOptionalParams): PagedAsyncIterableIterator; + move(resourceGroupName: string, moveResourceEnvelope: CsmMoveResourceEnvelope, options?: MoveOptionalParams): Promise; // (undocumented) provider: Provider; // (undocumented) @@ -10408,156 +10565,18 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { // (undocumented) staticSites: StaticSites; // (undocumented) + subscriptionId: string; + // (undocumented) topLevelDomains: TopLevelDomains; - updatePublishingUser(userDetails: User, options?: WebSiteManagementClientUpdatePublishingUserOptionalParams): Promise; - updateSourceControl(sourceControlType: string, requestMessage: SourceControl, options?: WebSiteManagementClientUpdateSourceControlOptionalParams): Promise; - validate(resourceGroupName: string, validateRequest: ValidateRequest, options?: WebSiteManagementClientValidateOptionalParams): Promise; - validateMove(resourceGroupName: string, moveResourceEnvelope: CsmMoveResourceEnvelope, options?: WebSiteManagementClientValidateMoveOptionalParams): Promise; - verifyHostingEnvironmentVnet(parameters: VnetParameters, options?: WebSiteManagementClientVerifyHostingEnvironmentVnetOptionalParams): Promise; + updatePublishingUser(userDetails: User, options?: UpdatePublishingUserOptionalParams): Promise; + updateSourceControl(sourceControlType: string, requestMessage: SourceControl, options?: UpdateSourceControlOptionalParams): Promise; + validate(resourceGroupName: string, validateRequest: ValidateRequest, options?: ValidateOptionalParams): Promise; + validateMove(resourceGroupName: string, moveResourceEnvelope: CsmMoveResourceEnvelope, options?: ValidateMoveOptionalParams): Promise; + verifyHostingEnvironmentVnet(parameters: VnetParameters, options?: VerifyHostingEnvironmentVnetOptionalParams): Promise; // (undocumented) webApps: WebApps; } -// @public -export interface WebSiteManagementClientCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { - isFqdn?: boolean; -} - -// @public -export type WebSiteManagementClientCheckNameAvailabilityResponse = ResourceNameAvailability; - -// @public (undocumented) -export class WebSiteManagementClientContext extends coreClient.ServiceClient { - // (undocumented) - $host: string; - constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: WebSiteManagementClientOptionalParams); - // (undocumented) - apiVersion: string; - // (undocumented) - subscriptionId: string; -} - -// @public -export interface WebSiteManagementClientGenerateGithubAccessTokenForAppserviceCLIAsyncOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientGenerateGithubAccessTokenForAppserviceCLIAsyncResponse = AppserviceGithubToken; - -// @public -export interface WebSiteManagementClientGetPublishingUserOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientGetPublishingUserResponse = User; - -// @public -export interface WebSiteManagementClientGetSourceControlOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientGetSourceControlResponse = SourceControl; - -// @public -export interface WebSiteManagementClientGetSubscriptionDeploymentLocationsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse = DeploymentLocations; - -// @public -export interface WebSiteManagementClientListBillingMetersNextOptionalParams extends coreClient.OperationOptions { - billingLocation?: string; - osType?: string; -} - -// @public -export type WebSiteManagementClientListBillingMetersNextResponse = BillingMeterCollection; - -// @public -export interface WebSiteManagementClientListBillingMetersOptionalParams extends coreClient.OperationOptions { - billingLocation?: string; - osType?: string; -} - -// @public -export type WebSiteManagementClientListBillingMetersResponse = BillingMeterCollection; - -// @public -export interface WebSiteManagementClientListGeoRegionsNextOptionalParams extends coreClient.OperationOptions { - linuxDynamicWorkersEnabled?: boolean; - linuxWorkersEnabled?: boolean; - sku?: SkuName; - xenonWorkersEnabled?: boolean; -} - -// @public -export type WebSiteManagementClientListGeoRegionsNextResponse = GeoRegionCollection; - -// @public -export interface WebSiteManagementClientListGeoRegionsOptionalParams extends coreClient.OperationOptions { - linuxDynamicWorkersEnabled?: boolean; - linuxWorkersEnabled?: boolean; - sku?: SkuName; - xenonWorkersEnabled?: boolean; -} - -// @public -export type WebSiteManagementClientListGeoRegionsResponse = GeoRegionCollection; - -// @public -export interface WebSiteManagementClientListPremierAddOnOffersNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientListPremierAddOnOffersNextResponse = PremierAddOnOfferCollection; - -// @public -export interface WebSiteManagementClientListPremierAddOnOffersOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientListPremierAddOnOffersResponse = PremierAddOnOfferCollection; - -// @public -export interface WebSiteManagementClientListSiteIdentifiersAssignedToHostNameNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientListSiteIdentifiersAssignedToHostNameNextResponse = IdentifierCollection; - -// @public -export interface WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse = IdentifierCollection; - -// @public -export interface WebSiteManagementClientListSkusOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientListSkusResponse = SkuInfos; - -// @public -export interface WebSiteManagementClientListSourceControlsNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientListSourceControlsNextResponse = SourceControlCollection; - -// @public -export interface WebSiteManagementClientListSourceControlsOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientListSourceControlsResponse = SourceControlCollection; - -// @public -export interface WebSiteManagementClientMoveOptionalParams extends coreClient.OperationOptions { -} - // @public export interface WebSiteManagementClientOptionalParams extends coreClient.ServiceClientOptions { $host?: string; @@ -10565,38 +10584,6 @@ export interface WebSiteManagementClientOptionalParams extends coreClient.Servic endpoint?: string; } -// @public -export interface WebSiteManagementClientUpdatePublishingUserOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientUpdatePublishingUserResponse = User; - -// @public -export interface WebSiteManagementClientUpdateSourceControlOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientUpdateSourceControlResponse = SourceControl; - -// @public -export interface WebSiteManagementClientValidateMoveOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface WebSiteManagementClientValidateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientValidateResponse = ValidateResponse; - -// @public -export interface WebSiteManagementClientVerifyHostingEnvironmentVnetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type WebSiteManagementClientVerifyHostingEnvironmentVnetResponse = VnetValidationFailureDetails; - // @public export interface WindowsJavaContainerSettings { readonly endOfLifeDate?: Date; diff --git a/sdk/appservice/arm-appservice/src/index.ts b/sdk/appservice/arm-appservice/src/index.ts index dda82fdc99a7..64dc74bf07d2 100644 --- a/sdk/appservice/arm-appservice/src/index.ts +++ b/sdk/appservice/arm-appservice/src/index.ts @@ -9,5 +9,4 @@ /// export * from "./models"; export { WebSiteManagementClient } from "./webSiteManagementClient"; -export { WebSiteManagementClientContext } from "./webSiteManagementClientContext"; export * from "./operationsInterfaces"; diff --git a/sdk/appservice/arm-appservice/src/models/index.ts b/sdk/appservice/arm-appservice/src/models/index.ts index 5c213e6ca71b..71c802d51f81 100644 --- a/sdk/appservice/arm-appservice/src/models/index.ts +++ b/sdk/appservice/arm-appservice/src/models/index.ts @@ -19,31 +19,6 @@ export interface AppServiceCertificateOrderCollection { readonly nextLink?: string; } -/** Azure resource. This resource is tracked in Azure Resource Manager */ -export interface Resource { - /** - * Resource Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource Name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** Kind of resource. */ - kind?: string; - /** Resource Location. */ - location: string; - /** - * Resource type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; -} - /** Key Vault container for a certificate that is purchased through Azure. */ export interface AppServiceCertificate { /** Key Vault resource Id. */ @@ -113,6 +88,31 @@ export interface CertificateOrderContact { phone?: string; } +/** Azure resource. This resource is tracked in Azure Resource Manager */ +export interface Resource { + /** + * Resource Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Resource Name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** Kind of resource. */ + kind?: string; + /** Resource Location. */ + location: string; + /** + * Resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; +} + /** App Service error response. */ export interface DefaultErrorResponse { /** @@ -2508,28 +2508,6 @@ export interface ResourceHealthMetadataCollection { readonly nextLink?: string; } -/** Appservice Github token request content. */ -export interface AppserviceGithubTokenRequest { - /** Code string to exchange for Github Access token */ - code: string; - /** State string used for verification. */ - state: string; -} - -/** Github access token for Appservice CLI github integration. */ -export interface AppserviceGithubToken { - /** Github access token for Appservice CLI github integration */ - accessToken?: string; - /** Scope of the github access token */ - scope?: string; - /** token type */ - tokenType?: string; - /** True if valid github token received, False otherwise */ - gotToken?: boolean; - /** Error message if unable to get token */ - errorMessage?: string; -} - /** Collection of source controls. */ export interface SourceControlCollection { /** Collection of resources. */ @@ -2974,8 +2952,14 @@ export interface IdentityProviders { gitHub?: GitHub; /** The configuration settings of the Google provider. */ google?: Google; + /** The configuration settings of the legacy Microsoft Account provider. */ + legacyMicrosoftAccount?: LegacyMicrosoftAccount; /** The configuration settings of the Twitter provider. */ twitter?: Twitter; + /** The configuration settings of the Apple provider. */ + apple?: Apple; + /** The configuration settings of the Azure Static Web Apps provider. */ + azureStaticWebApps?: AzureStaticWebApps; /** * The map of the name of the alias of each custom Open ID Connect provider to the * configuration settings of the custom Open ID Connect provider. @@ -2983,12 +2967,6 @@ export interface IdentityProviders { customOpenIdConnectProviders?: { [propertyName: string]: CustomOpenIdConnectProvider; }; - /** The configuration settings of the legacy Microsoft Account provider. */ - legacyMicrosoftAccount?: LegacyMicrosoftAccount; - /** The configuration settings of the Apple provider. */ - apple?: Apple; - /** The configuration settings of the Azure Static Web Apps provider. */ - azureStaticWebApps?: AzureStaticWebApps; } /** The configuration settings of the Azure Active directory provider. */ @@ -3009,6 +2987,62 @@ export interface AzureActiveDirectory { isAutoProvisioned?: boolean; } +/** The configuration settings of the Azure Active Directory app registration. */ +export interface AzureActiveDirectoryRegistration { + /** + * The OpenID Connect Issuer URI that represents the entity which issues access tokens for this application. + * When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://login.microsoftonline.com/v2.0/{tenant-guid}/. + * This URI is a case-sensitive identifier for the token issuer. + * More information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html + */ + openIdIssuer?: string; + /** + * The Client ID of this relying party application, known as the client_id. + * This setting is required for enabling OpenID Connection authentication with Azure Active Directory or + * other 3rd party OpenID Connect providers. + * More information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html + */ + clientId?: string; + /** The app setting name that contains the client secret of the relying party application. */ + clientSecretSettingName?: string; + /** + * An alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts as + * a replacement for the Client Secret. It is also optional. + */ + clientSecretCertificateThumbprint?: string; + /** + * An alternative to the client secret thumbprint, that is the subject alternative name of a certificate used for signing purposes. This property acts as + * a replacement for the Client Secret Certificate Thumbprint. It is also optional. + */ + clientSecretCertificateSubjectAlternativeName?: string; + /** + * An alternative to the client secret thumbprint, that is the issuer of a certificate used for signing purposes. This property acts as + * a replacement for the Client Secret Certificate Thumbprint. It is also optional. + */ + clientSecretCertificateIssuer?: string; +} + +/** The configuration settings of the Azure Active Directory login flow. */ +export interface AzureActiveDirectoryLogin { + /** + * Login parameters to send to the OpenID Connect authorization endpoint when + * a user logs in. Each parameter must be in the form "key=value". + */ + loginParameters?: string[]; + /** true if the www-authenticate provider should be omitted from the request; otherwise, false. */ + disableWWWAuthenticate?: boolean; +} + +/** The configuration settings of the Azure Active Directory token validation flow. */ +export interface AzureActiveDirectoryValidation { + /** The configuration settings of the checks that should be made while validating the JWT Claims. */ + jwtClaimChecks?: JwtClaimChecks; + /** The list of audiences that can make successful authentication/authorization requests. */ + allowedAudiences?: string[]; + /** The configuration settings of the default authorization policy. */ + defaultAuthorizationPolicy?: DefaultAuthorizationPolicy; +} + /** The configuration settings of the checks that should be made while validating the JWT Claims. */ export interface JwtClaimChecks { /** The list of the allowed groups. */ @@ -3025,6 +3059,14 @@ export interface DefaultAuthorizationPolicy { allowedApplications?: string[]; } +/** The configuration settings of the Azure Active Directory allowed principals. */ +export interface AllowedPrincipals { + /** The list of the allowed groups. */ + groups?: string[]; + /** The list of the allowed identities. */ + identities?: string[]; +} + /** The configuration settings of the Facebook provider. */ export interface Facebook { /** false if the Facebook provider should not be enabled despite the set registration; otherwise, true. */ @@ -3037,12 +3079,30 @@ export interface Facebook { login?: LoginScopes; } +/** The configuration settings of the app registration for providers that have app ids and app secrets */ +export interface AppRegistration { + /** The App ID of the app used for login. */ + appId?: string; + /** The app setting name that contains the app secret. */ + appSecretSettingName?: string; +} + /** The configuration settings of the login flow, including the scopes that should be requested. */ export interface LoginScopes { /** A list of the scopes that should be requested while authenticating. */ scopes?: string[]; } +/** The configuration settings of the GitHub provider. */ +export interface GitHub { + /** false if the GitHub provider should not be enabled despite the set registration; otherwise, true. */ + enabled?: boolean; + /** The configuration settings of the app registration for the GitHub provider. */ + registration?: ClientRegistration; + /** The configuration settings of the login flow. */ + login?: LoginScopes; +} + /** The configuration settings of the app registration for providers that have client ids and client secrets */ export interface ClientRegistration { /** The Client ID of the app used for login. */ @@ -3051,12 +3111,44 @@ export interface ClientRegistration { clientSecretSettingName?: string; } +/** The configuration settings of the Google provider. */ +export interface Google { + /** false if the Google provider should not be enabled despite the set registration; otherwise, true. */ + enabled?: boolean; + /** The configuration settings of the app registration for the Google provider. */ + registration?: ClientRegistration; + /** The configuration settings of the login flow. */ + login?: LoginScopes; + /** The configuration settings of the Azure Active Directory token validation flow. */ + validation?: AllowedAudiencesValidation; +} + /** The configuration settings of the Allowed Audiences validation flow. */ export interface AllowedAudiencesValidation { /** The configuration settings of the allowed list of audiences from which to validate the JWT token. */ allowedAudiences?: string[]; } +/** The configuration settings of the legacy Microsoft Account provider. */ +export interface LegacyMicrosoftAccount { + /** false if the legacy Microsoft Account provider should not be enabled despite the set registration; otherwise, true. */ + enabled?: boolean; + /** The configuration settings of the app registration for the legacy Microsoft Account provider. */ + registration?: ClientRegistration; + /** The configuration settings of the login flow. */ + login?: LoginScopes; + /** The configuration settings of the legacy Microsoft Account provider token validation flow. */ + validation?: AllowedAudiencesValidation; +} + +/** The configuration settings of the Twitter provider. */ +export interface Twitter { + /** false if the Twitter provider should not be enabled despite the set registration; otherwise, true. */ + enabled?: boolean; + /** The configuration settings of the app registration for the Twitter provider. */ + registration?: TwitterRegistration; +} + /** The configuration settings of the app registration for the Twitter provider. */ export interface TwitterRegistration { /** @@ -3072,6 +3164,48 @@ export interface TwitterRegistration { consumerSecretSettingName?: string; } +/** The configuration settings of the Apple provider. */ +export interface Apple { + /** false if the Apple provider should not be enabled despite the set registration; otherwise, true. */ + enabled?: boolean; + /** The configuration settings of the Apple registration. */ + registration?: AppleRegistration; + /** The configuration settings of the login flow. */ + login?: LoginScopes; +} + +/** The configuration settings of the registration for the Apple provider */ +export interface AppleRegistration { + /** The Client ID of the app used for login. */ + clientId?: string; + /** The app setting name that contains the client secret. */ + clientSecretSettingName?: string; +} + +/** The configuration settings of the Azure Static Web Apps provider. */ +export interface AzureStaticWebApps { + /** false if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true. */ + enabled?: boolean; + /** The configuration settings of the Azure Static Web Apps registration. */ + registration?: AzureStaticWebAppsRegistration; +} + +/** The configuration settings of the registration for the Azure Static Web Apps provider */ +export interface AzureStaticWebAppsRegistration { + /** The Client ID of the app used for login. */ + clientId?: string; +} + +/** The configuration settings of the custom Open ID Connect provider. */ +export interface CustomOpenIdConnectProvider { + /** false if the custom Open ID provider provider should not be enabled; otherwise, true. */ + enabled?: boolean; + /** The configuration settings of the app registration for the custom Open ID Connect provider. */ + registration?: OpenIdConnectRegistration; + /** The configuration settings of the login flow of the custom Open ID Connect provider. */ + login?: OpenIdConnectLogin; +} + /** The configuration settings of the app registration for the custom Open ID Connect provider. */ export interface OpenIdConnectRegistration { /** The client id of the custom Open ID Connect provider. */ @@ -3112,20 +3246,6 @@ export interface OpenIdConnectLogin { scopes?: string[]; } -/** The configuration settings of the registration for the Apple provider */ -export interface AppleRegistration { - /** The Client ID of the app used for login. */ - clientId?: string; - /** The app setting name that contains the client secret. */ - clientSecretSettingName?: string; -} - -/** The configuration settings of the registration for the Azure Static Web Apps provider */ -export interface AzureStaticWebAppsRegistration { - /** The Client ID of the app used for login. */ - clientId?: string; -} - /** The configuration settings of the login flow of users using App Service Authentication/Authorization. */ export interface Login { /** The routes that specify the endpoints used for login and logout requests. */ @@ -3176,6 +3296,12 @@ export interface FileSystemTokenStore { directory?: string; } +/** The configuration settings of the storage of the tokens if blob storage is used. */ +export interface BlobStorageTokenStore { + /** The name of the app setting containing the SAS URL of the blob storage containing the tokens. */ + sasUrlSettingName?: string; +} + /** The configuration settings of the session cookie's expiration. */ export interface CookieExpiration { /** The convention used when determining the session cookie's expiration. */ @@ -3770,6 +3896,28 @@ export interface WebJobCollection { readonly nextLink?: string; } +/** Github access token for Appservice CLI github integration. */ +export interface AppserviceGithubToken { + /** Github access token for Appservice CLI github integration */ + accessToken?: string; + /** Scope of the github access token */ + scope?: string; + /** token type */ + tokenType?: string; + /** True if valid github token received, False otherwise */ + gotToken?: boolean; + /** Error message if unable to get token */ + errorMessage?: string; +} + +/** Appservice Github token request content. */ +export interface AppserviceGithubTokenRequest { + /** Code string to exchange for Github Access token */ + code: string; + /** State string used for verification. */ + state: string; +} + /** SSL certificate purchase order. */ export type AppServiceCertificateOrder = Resource & { /** State of the Key Vault secret. */ @@ -6569,154 +6717,6 @@ export type SiteAuthSettings = ProxyOnlyResource & { configVersion?: string; }; -/** The configuration settings of the Azure Active Directory app registration. */ -export type AzureActiveDirectoryRegistration = ProxyOnlyResource & { - /** - * The OpenID Connect Issuer URI that represents the entity which issues access tokens for this application. - * When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://login.microsoftonline.com/v2.0/{tenant-guid}/. - * This URI is a case-sensitive identifier for the token issuer. - * More information on OpenID Connect Discovery: http://openid.net/specs/openid-connect-discovery-1_0.html - */ - openIdIssuer?: string; - /** - * The Client ID of this relying party application, known as the client_id. - * This setting is required for enabling OpenID Connection authentication with Azure Active Directory or - * other 3rd party OpenID Connect providers. - * More information on OpenID Connect: http://openid.net/specs/openid-connect-core-1_0.html - */ - clientId?: string; - /** The app setting name that contains the client secret of the relying party application. */ - clientSecretSettingName?: string; - /** - * An alternative to the client secret, that is the thumbprint of a certificate used for signing purposes. This property acts as - * a replacement for the Client Secret. It is also optional. - */ - clientSecretCertificateThumbprint?: string; - /** - * An alternative to the client secret thumbprint, that is the subject alternative name of a certificate used for signing purposes. This property acts as - * a replacement for the Client Secret Certificate Thumbprint. It is also optional. - */ - clientSecretCertificateSubjectAlternativeName?: string; - /** - * An alternative to the client secret thumbprint, that is the issuer of a certificate used for signing purposes. This property acts as - * a replacement for the Client Secret Certificate Thumbprint. It is also optional. - */ - clientSecretCertificateIssuer?: string; -}; - -/** The configuration settings of the Azure Active Directory login flow. */ -export type AzureActiveDirectoryLogin = ProxyOnlyResource & { - /** - * Login parameters to send to the OpenID Connect authorization endpoint when - * a user logs in. Each parameter must be in the form "key=value". - */ - loginParameters?: string[]; - /** true if the www-authenticate provider should be omitted from the request; otherwise, false. */ - disableWWWAuthenticate?: boolean; -}; - -/** The configuration settings of the Azure Active Directory allowed principals. */ -export type AllowedPrincipals = ProxyOnlyResource & { - /** The list of the allowed groups. */ - groups?: string[]; - /** The list of the allowed identities. */ - identities?: string[]; -}; - -/** The configuration settings of the Azure Active Directory token validation flow. */ -export type AzureActiveDirectoryValidation = ProxyOnlyResource & { - /** The configuration settings of the checks that should be made while validating the JWT Claims. */ - jwtClaimChecks?: JwtClaimChecks; - /** The list of audiences that can make successful authentication/authorization requests. */ - allowedAudiences?: string[]; - /** The configuration settings of the default authorization policy. */ - defaultAuthorizationPolicy?: DefaultAuthorizationPolicy; -}; - -/** The configuration settings of the app registration for providers that have app ids and app secrets */ -export type AppRegistration = ProxyOnlyResource & { - /** The App ID of the app used for login. */ - appId?: string; - /** The app setting name that contains the app secret. */ - appSecretSettingName?: string; -}; - -/** The configuration settings of the GitHub provider. */ -export type GitHub = ProxyOnlyResource & { - /** false if the GitHub provider should not be enabled despite the set registration; otherwise, true. */ - enabled?: boolean; - /** The configuration settings of the app registration for the GitHub provider. */ - registration?: ClientRegistration; - /** The configuration settings of the login flow. */ - login?: LoginScopes; -}; - -/** The configuration settings of the Google provider. */ -export type Google = ProxyOnlyResource & { - /** false if the Google provider should not be enabled despite the set registration; otherwise, true. */ - enabled?: boolean; - /** The configuration settings of the app registration for the Google provider. */ - registration?: ClientRegistration; - /** The configuration settings of the login flow. */ - login?: LoginScopes; - /** The configuration settings of the Azure Active Directory token validation flow. */ - validation?: AllowedAudiencesValidation; -}; - -/** The configuration settings of the Twitter provider. */ -export type Twitter = ProxyOnlyResource & { - /** false if the Twitter provider should not be enabled despite the set registration; otherwise, true. */ - enabled?: boolean; - /** The configuration settings of the app registration for the Twitter provider. */ - registration?: TwitterRegistration; -}; - -/** The configuration settings of the custom Open ID Connect provider. */ -export type CustomOpenIdConnectProvider = ProxyOnlyResource & { - /** false if the custom Open ID provider provider should not be enabled; otherwise, true. */ - enabled?: boolean; - /** The configuration settings of the app registration for the custom Open ID Connect provider. */ - registration?: OpenIdConnectRegistration; - /** The configuration settings of the login flow of the custom Open ID Connect provider. */ - login?: OpenIdConnectLogin; -}; - -/** The configuration settings of the legacy Microsoft Account provider. */ -export type LegacyMicrosoftAccount = ProxyOnlyResource & { - /** false if the legacy Microsoft Account provider should not be enabled despite the set registration; otherwise, true. */ - enabled?: boolean; - /** The configuration settings of the app registration for the legacy Microsoft Account provider. */ - registration?: ClientRegistration; - /** The configuration settings of the login flow. */ - login?: LoginScopes; - /** The configuration settings of the legacy Microsoft Account provider token validation flow. */ - validation?: AllowedAudiencesValidation; -}; - -/** The configuration settings of the Apple provider. */ -export type Apple = ProxyOnlyResource & { - /** false if the Apple provider should not be enabled despite the set registration; otherwise, true. */ - enabled?: boolean; - /** The configuration settings of the Apple registration. */ - registration?: AppleRegistration; - /** The configuration settings of the login flow. */ - login?: LoginScopes; -}; - -/** The configuration settings of the Azure Static Web Apps provider. */ -export type AzureStaticWebApps = ProxyOnlyResource & { - /** false if the Azure Static Web Apps provider should not be enabled despite the set registration; otherwise, true. */ - enabled?: boolean; - /** The configuration settings of the Azure Static Web Apps registration. */ - registration?: AzureStaticWebAppsRegistration; -}; - -/** The configuration settings of the storage of the tokens if blob storage is used. */ -export type BlobStorageTokenStore = ProxyOnlyResource & { - /** The name of the app setting containing the SAS URL of the blob storage containing the tokens. */ - sasUrlSettingName?: string; -}; - /** Configuration settings for the Azure App Service Authentication / Authorization V2 feature. */ export type SiteAuthSettingsV2 = ProxyOnlyResource & { /** The configuration settings of the platform of App Service Authentication/Authorization. */ @@ -10223,119 +10223,112 @@ export interface RecommendationsListRecommendedRulesForWebAppNextOptionalParams export type RecommendationsListRecommendedRulesForWebAppNextResponse = RecommendationCollection; /** Optional parameters. */ -export interface ResourceHealthMetadataOperationsListOptionalParams +export interface ResourceHealthMetadataListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ResourceHealthMetadataOperationsListResponse = ResourceHealthMetadataCollection; +export type ResourceHealthMetadataListResponse = ResourceHealthMetadataCollection; /** Optional parameters. */ -export interface ResourceHealthMetadataOperationsListByResourceGroupOptionalParams +export interface ResourceHealthMetadataListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type ResourceHealthMetadataOperationsListByResourceGroupResponse = ResourceHealthMetadataCollection; +export type ResourceHealthMetadataListByResourceGroupResponse = ResourceHealthMetadataCollection; /** Optional parameters. */ -export interface ResourceHealthMetadataOperationsListBySiteOptionalParams +export interface ResourceHealthMetadataListBySiteOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySite operation. */ -export type ResourceHealthMetadataOperationsListBySiteResponse = ResourceHealthMetadataCollection; +export type ResourceHealthMetadataListBySiteResponse = ResourceHealthMetadataCollection; /** Optional parameters. */ -export interface ResourceHealthMetadataOperationsGetBySiteOptionalParams +export interface ResourceHealthMetadataGetBySiteOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getBySite operation. */ -export type ResourceHealthMetadataOperationsGetBySiteResponse = ResourceHealthMetadata; +export type ResourceHealthMetadataGetBySiteResponse = ResourceHealthMetadata; /** Optional parameters. */ -export interface ResourceHealthMetadataOperationsListBySiteSlotOptionalParams +export interface ResourceHealthMetadataListBySiteSlotOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySiteSlot operation. */ -export type ResourceHealthMetadataOperationsListBySiteSlotResponse = ResourceHealthMetadataCollection; +export type ResourceHealthMetadataListBySiteSlotResponse = ResourceHealthMetadataCollection; /** Optional parameters. */ -export interface ResourceHealthMetadataOperationsGetBySiteSlotOptionalParams +export interface ResourceHealthMetadataGetBySiteSlotOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getBySiteSlot operation. */ -export type ResourceHealthMetadataOperationsGetBySiteSlotResponse = ResourceHealthMetadata; +export type ResourceHealthMetadataGetBySiteSlotResponse = ResourceHealthMetadata; /** Optional parameters. */ -export interface ResourceHealthMetadataOperationsListNextOptionalParams +export interface ResourceHealthMetadataListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ResourceHealthMetadataOperationsListNextResponse = ResourceHealthMetadataCollection; +export type ResourceHealthMetadataListNextResponse = ResourceHealthMetadataCollection; /** Optional parameters. */ -export interface ResourceHealthMetadataOperationsListByResourceGroupNextOptionalParams +export interface ResourceHealthMetadataListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type ResourceHealthMetadataOperationsListByResourceGroupNextResponse = ResourceHealthMetadataCollection; +export type ResourceHealthMetadataListByResourceGroupNextResponse = ResourceHealthMetadataCollection; /** Optional parameters. */ -export interface ResourceHealthMetadataOperationsListBySiteNextOptionalParams +export interface ResourceHealthMetadataListBySiteNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySiteNext operation. */ -export type ResourceHealthMetadataOperationsListBySiteNextResponse = ResourceHealthMetadataCollection; +export type ResourceHealthMetadataListBySiteNextResponse = ResourceHealthMetadataCollection; /** Optional parameters. */ -export interface ResourceHealthMetadataOperationsListBySiteSlotNextOptionalParams +export interface ResourceHealthMetadataListBySiteSlotNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySiteSlotNext operation. */ -export type ResourceHealthMetadataOperationsListBySiteSlotNextResponse = ResourceHealthMetadataCollection; - -/** Optional parameters. */ -export interface WebSiteManagementClientGenerateGithubAccessTokenForAppserviceCLIAsyncOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the generateGithubAccessTokenForAppserviceCLIAsync operation. */ -export type WebSiteManagementClientGenerateGithubAccessTokenForAppserviceCLIAsyncResponse = AppserviceGithubToken; +export type ResourceHealthMetadataListBySiteSlotNextResponse = ResourceHealthMetadataCollection; /** Optional parameters. */ -export interface WebSiteManagementClientGetPublishingUserOptionalParams +export interface GetPublishingUserOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getPublishingUser operation. */ -export type WebSiteManagementClientGetPublishingUserResponse = User; +export type GetPublishingUserResponse = User; /** Optional parameters. */ -export interface WebSiteManagementClientUpdatePublishingUserOptionalParams +export interface UpdatePublishingUserOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the updatePublishingUser operation. */ -export type WebSiteManagementClientUpdatePublishingUserResponse = User; +export type UpdatePublishingUserResponse = User; /** Optional parameters. */ -export interface WebSiteManagementClientListSourceControlsOptionalParams +export interface ListSourceControlsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSourceControls operation. */ -export type WebSiteManagementClientListSourceControlsResponse = SourceControlCollection; +export type ListSourceControlsResponse = SourceControlCollection; /** Optional parameters. */ -export interface WebSiteManagementClientGetSourceControlOptionalParams +export interface GetSourceControlOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getSourceControl operation. */ -export type WebSiteManagementClientGetSourceControlResponse = SourceControl; +export type GetSourceControlResponse = SourceControl; /** Optional parameters. */ -export interface WebSiteManagementClientUpdateSourceControlOptionalParams +export interface UpdateSourceControlOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the updateSourceControl operation. */ -export type WebSiteManagementClientUpdateSourceControlResponse = SourceControl; +export type UpdateSourceControlResponse = SourceControl; /** Optional parameters. */ -export interface WebSiteManagementClientListBillingMetersOptionalParams +export interface ListBillingMetersOptionalParams extends coreClient.OperationOptions { /** Azure Location of billable resource */ billingLocation?: string; @@ -10344,27 +10337,27 @@ export interface WebSiteManagementClientListBillingMetersOptionalParams } /** Contains response data for the listBillingMeters operation. */ -export type WebSiteManagementClientListBillingMetersResponse = BillingMeterCollection; +export type ListBillingMetersResponse = BillingMeterCollection; /** Optional parameters. */ -export interface WebSiteManagementClientCheckNameAvailabilityOptionalParams +export interface CheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { /** Is fully qualified domain name. */ isFqdn?: boolean; } /** Contains response data for the checkNameAvailability operation. */ -export type WebSiteManagementClientCheckNameAvailabilityResponse = ResourceNameAvailability; +export type CheckNameAvailabilityResponse = ResourceNameAvailability; /** Optional parameters. */ -export interface WebSiteManagementClientGetSubscriptionDeploymentLocationsOptionalParams +export interface GetSubscriptionDeploymentLocationsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getSubscriptionDeploymentLocations operation. */ -export type WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse = DeploymentLocations; +export type GetSubscriptionDeploymentLocationsResponse = DeploymentLocations; /** Optional parameters. */ -export interface WebSiteManagementClientListGeoRegionsOptionalParams +export interface ListGeoRegionsOptionalParams extends coreClient.OperationOptions { /** Name of SKU used to filter the regions. */ sku?: SkuName; @@ -10377,60 +10370,57 @@ export interface WebSiteManagementClientListGeoRegionsOptionalParams } /** Contains response data for the listGeoRegions operation. */ -export type WebSiteManagementClientListGeoRegionsResponse = GeoRegionCollection; +export type ListGeoRegionsResponse = GeoRegionCollection; /** Optional parameters. */ -export interface WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptionalParams +export interface ListSiteIdentifiersAssignedToHostNameOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSiteIdentifiersAssignedToHostName operation. */ -export type WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse = IdentifierCollection; +export type ListSiteIdentifiersAssignedToHostNameResponse = IdentifierCollection; /** Optional parameters. */ -export interface WebSiteManagementClientListPremierAddOnOffersOptionalParams +export interface ListPremierAddOnOffersOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPremierAddOnOffers operation. */ -export type WebSiteManagementClientListPremierAddOnOffersResponse = PremierAddOnOfferCollection; +export type ListPremierAddOnOffersResponse = PremierAddOnOfferCollection; /** Optional parameters. */ -export interface WebSiteManagementClientListSkusOptionalParams - extends coreClient.OperationOptions {} +export interface ListSkusOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSkus operation. */ -export type WebSiteManagementClientListSkusResponse = SkuInfos; +export type ListSkusResponse = SkuInfos; /** Optional parameters. */ -export interface WebSiteManagementClientVerifyHostingEnvironmentVnetOptionalParams +export interface VerifyHostingEnvironmentVnetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the verifyHostingEnvironmentVnet operation. */ -export type WebSiteManagementClientVerifyHostingEnvironmentVnetResponse = VnetValidationFailureDetails; +export type VerifyHostingEnvironmentVnetResponse = VnetValidationFailureDetails; /** Optional parameters. */ -export interface WebSiteManagementClientMoveOptionalParams - extends coreClient.OperationOptions {} +export interface MoveOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface WebSiteManagementClientValidateOptionalParams - extends coreClient.OperationOptions {} +export interface ValidateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the validate operation. */ -export type WebSiteManagementClientValidateResponse = ValidateResponse; +export type ValidateOperationResponse = ValidateResponse; /** Optional parameters. */ -export interface WebSiteManagementClientValidateMoveOptionalParams +export interface ValidateMoveOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface WebSiteManagementClientListSourceControlsNextOptionalParams +export interface ListSourceControlsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSourceControlsNext operation. */ -export type WebSiteManagementClientListSourceControlsNextResponse = SourceControlCollection; +export type ListSourceControlsNextResponse = SourceControlCollection; /** Optional parameters. */ -export interface WebSiteManagementClientListBillingMetersNextOptionalParams +export interface ListBillingMetersNextOptionalParams extends coreClient.OperationOptions { /** Azure Location of billable resource */ billingLocation?: string; @@ -10439,10 +10429,10 @@ export interface WebSiteManagementClientListBillingMetersNextOptionalParams } /** Contains response data for the listBillingMetersNext operation. */ -export type WebSiteManagementClientListBillingMetersNextResponse = BillingMeterCollection; +export type ListBillingMetersNextResponse = BillingMeterCollection; /** Optional parameters. */ -export interface WebSiteManagementClientListGeoRegionsNextOptionalParams +export interface ListGeoRegionsNextOptionalParams extends coreClient.OperationOptions { /** Name of SKU used to filter the regions. */ sku?: SkuName; @@ -10455,21 +10445,21 @@ export interface WebSiteManagementClientListGeoRegionsNextOptionalParams } /** Contains response data for the listGeoRegionsNext operation. */ -export type WebSiteManagementClientListGeoRegionsNextResponse = GeoRegionCollection; +export type ListGeoRegionsNextResponse = GeoRegionCollection; /** Optional parameters. */ -export interface WebSiteManagementClientListSiteIdentifiersAssignedToHostNameNextOptionalParams +export interface ListSiteIdentifiersAssignedToHostNameNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSiteIdentifiersAssignedToHostNameNext operation. */ -export type WebSiteManagementClientListSiteIdentifiersAssignedToHostNameNextResponse = IdentifierCollection; +export type ListSiteIdentifiersAssignedToHostNameNextResponse = IdentifierCollection; /** Optional parameters. */ -export interface WebSiteManagementClientListPremierAddOnOffersNextOptionalParams +export interface ListPremierAddOnOffersNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPremierAddOnOffersNext operation. */ -export type WebSiteManagementClientListPremierAddOnOffersNextResponse = PremierAddOnOfferCollection; +export type ListPremierAddOnOffersNextResponse = PremierAddOnOfferCollection; /** Optional parameters. */ export interface StaticSitesPreviewWorkflowOptionalParams diff --git a/sdk/appservice/arm-appservice/src/models/mappers.ts b/sdk/appservice/arm-appservice/src/models/mappers.ts index 845fb6de0cb6..51cc4dc1ed54 100644 --- a/sdk/appservice/arm-appservice/src/models/mappers.ts +++ b/sdk/appservice/arm-appservice/src/models/mappers.ts @@ -41,63 +41,6 @@ export const AppServiceCertificateOrderCollection: coreClient.CompositeMapper = } }; -export const Resource: coreClient.CompositeMapper = { - serializedName: "Resource", - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - xmlName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - xmlName: "name", - type: { - name: "String" - } - }, - kind: { - serializedName: "kind", - xmlName: "kind", - type: { - name: "String" - } - }, - location: { - serializedName: "location", - required: true, - xmlName: "location", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - xmlName: "type", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - xmlName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - export const AppServiceCertificate: coreClient.CompositeMapper = { serializedName: "AppServiceCertificate", type: { @@ -263,6 +206,63 @@ export const CertificateOrderContact: coreClient.CompositeMapper = { } }; +export const Resource: coreClient.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + xmlName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + xmlName: "name", + type: { + name: "String" + } + }, + kind: { + serializedName: "kind", + xmlName: "kind", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + required: true, + xmlName: "location", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + xmlName: "type", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + xmlName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + } + } + } +}; + export const DefaultErrorResponse: coreClient.CompositeMapper = { serializedName: "DefaultErrorResponse", type: { @@ -2892,6 +2892,7 @@ export const SiteConfig: coreClient.CompositeMapper = { } }, localMySqlEnabled: { + defaultValue: false, serializedName: "localMySqlEnabled", xmlName: "localMySqlEnabled", type: { @@ -7264,77 +7265,6 @@ export const ResourceHealthMetadataCollection: coreClient.CompositeMapper = { } }; -export const AppserviceGithubTokenRequest: coreClient.CompositeMapper = { - serializedName: "AppserviceGithubTokenRequest", - type: { - name: "Composite", - className: "AppserviceGithubTokenRequest", - modelProperties: { - code: { - serializedName: "code", - required: true, - xmlName: "code", - type: { - name: "String" - } - }, - state: { - serializedName: "state", - required: true, - xmlName: "state", - type: { - name: "String" - } - } - } - } -}; - -export const AppserviceGithubToken: coreClient.CompositeMapper = { - serializedName: "AppserviceGithubToken", - type: { - name: "Composite", - className: "AppserviceGithubToken", - modelProperties: { - accessToken: { - serializedName: "accessToken", - xmlName: "accessToken", - type: { - name: "String" - } - }, - scope: { - serializedName: "scope", - xmlName: "scope", - type: { - name: "String" - } - }, - tokenType: { - serializedName: "tokenType", - xmlName: "tokenType", - type: { - name: "String" - } - }, - gotToken: { - serializedName: "gotToken", - xmlName: "gotToken", - type: { - name: "Boolean" - } - }, - errorMessage: { - serializedName: "errorMessage", - xmlName: "errorMessage", - type: { - name: "String" - } - } - } - } -}; - export const SourceControlCollection: coreClient.CompositeMapper = { serializedName: "SourceControlCollection", type: { @@ -8770,27 +8700,6 @@ export const IdentityProviders: coreClient.CompositeMapper = { className: "Google" } }, - twitter: { - serializedName: "twitter", - xmlName: "twitter", - type: { - name: "Composite", - className: "Twitter" - } - }, - customOpenIdConnectProviders: { - serializedName: "customOpenIdConnectProviders", - xmlName: "customOpenIdConnectProviders", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "CustomOpenIdConnectProvider" - } - } - } - }, legacyMicrosoftAccount: { serializedName: "legacyMicrosoftAccount", xmlName: "legacyMicrosoftAccount", @@ -8799,6 +8708,14 @@ export const IdentityProviders: coreClient.CompositeMapper = { className: "LegacyMicrosoftAccount" } }, + twitter: { + serializedName: "twitter", + xmlName: "twitter", + type: { + name: "Composite", + className: "Twitter" + } + }, apple: { serializedName: "apple", xmlName: "apple", @@ -8814,6 +8731,19 @@ export const IdentityProviders: coreClient.CompositeMapper = { name: "Composite", className: "AzureStaticWebApps" } + }, + customOpenIdConnectProviders: { + serializedName: "customOpenIdConnectProviders", + xmlName: "customOpenIdConnectProviders", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "CustomOpenIdConnectProvider" + } + } + } } } } @@ -8867,34 +8797,155 @@ export const AzureActiveDirectory: coreClient.CompositeMapper = { } }; -export const JwtClaimChecks: coreClient.CompositeMapper = { - serializedName: "JwtClaimChecks", +export const AzureActiveDirectoryRegistration: coreClient.CompositeMapper = { + serializedName: "AzureActiveDirectoryRegistration", type: { name: "Composite", - className: "JwtClaimChecks", + className: "AzureActiveDirectoryRegistration", modelProperties: { - allowedGroups: { - serializedName: "allowedGroups", - xmlName: "allowedGroups", - xmlElementName: "JwtClaimChecksAllowedGroupsItem", + openIdIssuer: { + serializedName: "openIdIssuer", + xmlName: "openIdIssuer", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - allowedClientApplications: { - serializedName: "allowedClientApplications", - xmlName: "allowedClientApplications", - xmlElementName: "JwtClaimChecksAllowedClientApplicationsItem", + clientId: { + serializedName: "clientId", + xmlName: "clientId", type: { - name: "Sequence", - element: { - type: { - name: "String" + name: "String" + } + }, + clientSecretSettingName: { + serializedName: "clientSecretSettingName", + xmlName: "clientSecretSettingName", + type: { + name: "String" + } + }, + clientSecretCertificateThumbprint: { + serializedName: "clientSecretCertificateThumbprint", + xmlName: "clientSecretCertificateThumbprint", + type: { + name: "String" + } + }, + clientSecretCertificateSubjectAlternativeName: { + serializedName: "clientSecretCertificateSubjectAlternativeName", + xmlName: "clientSecretCertificateSubjectAlternativeName", + type: { + name: "String" + } + }, + clientSecretCertificateIssuer: { + serializedName: "clientSecretCertificateIssuer", + xmlName: "clientSecretCertificateIssuer", + type: { + name: "String" + } + } + } + } +}; + +export const AzureActiveDirectoryLogin: coreClient.CompositeMapper = { + serializedName: "AzureActiveDirectoryLogin", + type: { + name: "Composite", + className: "AzureActiveDirectoryLogin", + modelProperties: { + loginParameters: { + serializedName: "loginParameters", + xmlName: "loginParameters", + xmlElementName: "AzureActiveDirectoryLoginParametersItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + disableWWWAuthenticate: { + serializedName: "disableWWWAuthenticate", + xmlName: "disableWWWAuthenticate", + type: { + name: "Boolean" + } + } + } + } +}; + +export const AzureActiveDirectoryValidation: coreClient.CompositeMapper = { + serializedName: "AzureActiveDirectoryValidation", + type: { + name: "Composite", + className: "AzureActiveDirectoryValidation", + modelProperties: { + jwtClaimChecks: { + serializedName: "jwtClaimChecks", + xmlName: "jwtClaimChecks", + type: { + name: "Composite", + className: "JwtClaimChecks" + } + }, + allowedAudiences: { + serializedName: "allowedAudiences", + xmlName: "allowedAudiences", + xmlElementName: "AzureActiveDirectoryValidationAllowedAudiencesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + defaultAuthorizationPolicy: { + serializedName: "defaultAuthorizationPolicy", + xmlName: "defaultAuthorizationPolicy", + type: { + name: "Composite", + className: "DefaultAuthorizationPolicy" + } + } + } + } +}; + +export const JwtClaimChecks: coreClient.CompositeMapper = { + serializedName: "JwtClaimChecks", + type: { + name: "Composite", + className: "JwtClaimChecks", + modelProperties: { + allowedGroups: { + serializedName: "allowedGroups", + xmlName: "allowedGroups", + xmlElementName: "JwtClaimChecksAllowedGroupsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + allowedClientApplications: { + serializedName: "allowedClientApplications", + xmlName: "allowedClientApplications", + xmlElementName: "JwtClaimChecksAllowedClientApplicationsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" } } } @@ -8934,6 +8985,42 @@ export const DefaultAuthorizationPolicy: coreClient.CompositeMapper = { } }; +export const AllowedPrincipals: coreClient.CompositeMapper = { + serializedName: "AllowedPrincipals", + type: { + name: "Composite", + className: "AllowedPrincipals", + modelProperties: { + groups: { + serializedName: "groups", + xmlName: "groups", + xmlElementName: "AllowedPrincipalsGroupsItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + identities: { + serializedName: "identities", + xmlName: "identities", + xmlElementName: "AllowedPrincipalsIdentitiesItem", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const Facebook: coreClient.CompositeMapper = { serializedName: "Facebook", type: { @@ -8974,6 +9061,30 @@ export const Facebook: coreClient.CompositeMapper = { } }; +export const AppRegistration: coreClient.CompositeMapper = { + serializedName: "AppRegistration", + type: { + name: "Composite", + className: "AppRegistration", + modelProperties: { + appId: { + serializedName: "appId", + xmlName: "appId", + type: { + name: "String" + } + }, + appSecretSettingName: { + serializedName: "appSecretSettingName", + xmlName: "appSecretSettingName", + type: { + name: "String" + } + } + } + } +}; + export const LoginScopes: coreClient.CompositeMapper = { serializedName: "LoginScopes", type: { @@ -8997,6 +9108,39 @@ export const LoginScopes: coreClient.CompositeMapper = { } }; +export const GitHub: coreClient.CompositeMapper = { + serializedName: "GitHub", + type: { + name: "Composite", + className: "GitHub", + modelProperties: { + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean" + } + }, + registration: { + serializedName: "registration", + xmlName: "registration", + type: { + name: "Composite", + className: "ClientRegistration" + } + }, + login: { + serializedName: "login", + xmlName: "login", + type: { + name: "Composite", + className: "LoginScopes" + } + } + } + } +}; + export const ClientRegistration: coreClient.CompositeMapper = { serializedName: "ClientRegistration", type: { @@ -9021,6 +9165,47 @@ export const ClientRegistration: coreClient.CompositeMapper = { } }; +export const Google: coreClient.CompositeMapper = { + serializedName: "Google", + type: { + name: "Composite", + className: "Google", + modelProperties: { + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean" + } + }, + registration: { + serializedName: "registration", + xmlName: "registration", + type: { + name: "Composite", + className: "ClientRegistration" + } + }, + login: { + serializedName: "login", + xmlName: "login", + type: { + name: "Composite", + className: "LoginScopes" + } + }, + validation: { + serializedName: "validation", + xmlName: "validation", + type: { + name: "Composite", + className: "AllowedAudiencesValidation" + } + } + } + } +}; + export const AllowedAudiencesValidation: coreClient.CompositeMapper = { serializedName: "AllowedAudiencesValidation", type: { @@ -9044,21 +9229,87 @@ export const AllowedAudiencesValidation: coreClient.CompositeMapper = { } }; -export const TwitterRegistration: coreClient.CompositeMapper = { - serializedName: "TwitterRegistration", +export const LegacyMicrosoftAccount: coreClient.CompositeMapper = { + serializedName: "LegacyMicrosoftAccount", type: { name: "Composite", - className: "TwitterRegistration", + className: "LegacyMicrosoftAccount", modelProperties: { - consumerKey: { - serializedName: "consumerKey", - xmlName: "consumerKey", + enabled: { + serializedName: "enabled", + xmlName: "enabled", type: { - name: "String" + name: "Boolean" } }, - consumerSecretSettingName: { - serializedName: "consumerSecretSettingName", + registration: { + serializedName: "registration", + xmlName: "registration", + type: { + name: "Composite", + className: "ClientRegistration" + } + }, + login: { + serializedName: "login", + xmlName: "login", + type: { + name: "Composite", + className: "LoginScopes" + } + }, + validation: { + serializedName: "validation", + xmlName: "validation", + type: { + name: "Composite", + className: "AllowedAudiencesValidation" + } + } + } + } +}; + +export const Twitter: coreClient.CompositeMapper = { + serializedName: "Twitter", + type: { + name: "Composite", + className: "Twitter", + modelProperties: { + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean" + } + }, + registration: { + serializedName: "registration", + xmlName: "registration", + type: { + name: "Composite", + className: "TwitterRegistration" + } + } + } + } +}; + +export const TwitterRegistration: coreClient.CompositeMapper = { + serializedName: "TwitterRegistration", + type: { + name: "Composite", + className: "TwitterRegistration", + modelProperties: { + consumerKey: { + serializedName: "consumerKey", + xmlName: "consumerKey", + type: { + name: "String" + } + }, + consumerSecretSettingName: { + serializedName: "consumerSecretSettingName", xmlName: "consumerSecretSettingName", type: { name: "String" @@ -9068,6 +9319,138 @@ export const TwitterRegistration: coreClient.CompositeMapper = { } }; +export const Apple: coreClient.CompositeMapper = { + serializedName: "Apple", + type: { + name: "Composite", + className: "Apple", + modelProperties: { + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean" + } + }, + registration: { + serializedName: "registration", + xmlName: "registration", + type: { + name: "Composite", + className: "AppleRegistration" + } + }, + login: { + serializedName: "login", + xmlName: "login", + type: { + name: "Composite", + className: "LoginScopes" + } + } + } + } +}; + +export const AppleRegistration: coreClient.CompositeMapper = { + serializedName: "AppleRegistration", + type: { + name: "Composite", + className: "AppleRegistration", + modelProperties: { + clientId: { + serializedName: "clientId", + xmlName: "clientId", + type: { + name: "String" + } + }, + clientSecretSettingName: { + serializedName: "clientSecretSettingName", + xmlName: "clientSecretSettingName", + type: { + name: "String" + } + } + } + } +}; + +export const AzureStaticWebApps: coreClient.CompositeMapper = { + serializedName: "AzureStaticWebApps", + type: { + name: "Composite", + className: "AzureStaticWebApps", + modelProperties: { + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean" + } + }, + registration: { + serializedName: "registration", + xmlName: "registration", + type: { + name: "Composite", + className: "AzureStaticWebAppsRegistration" + } + } + } + } +}; + +export const AzureStaticWebAppsRegistration: coreClient.CompositeMapper = { + serializedName: "AzureStaticWebAppsRegistration", + type: { + name: "Composite", + className: "AzureStaticWebAppsRegistration", + modelProperties: { + clientId: { + serializedName: "clientId", + xmlName: "clientId", + type: { + name: "String" + } + } + } + } +}; + +export const CustomOpenIdConnectProvider: coreClient.CompositeMapper = { + serializedName: "CustomOpenIdConnectProvider", + type: { + name: "Composite", + className: "CustomOpenIdConnectProvider", + modelProperties: { + enabled: { + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean" + } + }, + registration: { + serializedName: "registration", + xmlName: "registration", + type: { + name: "Composite", + className: "OpenIdConnectRegistration" + } + }, + login: { + serializedName: "login", + xmlName: "login", + type: { + name: "Composite", + className: "OpenIdConnectLogin" + } + } + } + } +}; + export const OpenIdConnectRegistration: coreClient.CompositeMapper = { serializedName: "OpenIdConnectRegistration", type: { @@ -9201,47 +9584,6 @@ export const OpenIdConnectLogin: coreClient.CompositeMapper = { } }; -export const AppleRegistration: coreClient.CompositeMapper = { - serializedName: "AppleRegistration", - type: { - name: "Composite", - className: "AppleRegistration", - modelProperties: { - clientId: { - serializedName: "clientId", - xmlName: "clientId", - type: { - name: "String" - } - }, - clientSecretSettingName: { - serializedName: "clientSecretSettingName", - xmlName: "clientSecretSettingName", - type: { - name: "String" - } - } - } - } -}; - -export const AzureStaticWebAppsRegistration: coreClient.CompositeMapper = { - serializedName: "AzureStaticWebAppsRegistration", - type: { - name: "Composite", - className: "AzureStaticWebAppsRegistration", - modelProperties: { - clientId: { - serializedName: "clientId", - xmlName: "clientId", - type: { - name: "String" - } - } - } - } -}; - export const Login: coreClient.CompositeMapper = { serializedName: "Login", type: { @@ -9378,6 +9720,23 @@ export const FileSystemTokenStore: coreClient.CompositeMapper = { } }; +export const BlobStorageTokenStore: coreClient.CompositeMapper = { + serializedName: "BlobStorageTokenStore", + type: { + name: "Composite", + className: "BlobStorageTokenStore", + modelProperties: { + sasUrlSettingName: { + serializedName: "sasUrlSettingName", + xmlName: "sasUrlSettingName", + type: { + name: "String" + } + } + } + } +}; + export const CookieExpiration: coreClient.CompositeMapper = { serializedName: "CookieExpiration", type: { @@ -11296,6 +11655,77 @@ export const WebJobCollection: coreClient.CompositeMapper = { } }; +export const AppserviceGithubToken: coreClient.CompositeMapper = { + serializedName: "AppserviceGithubToken", + type: { + name: "Composite", + className: "AppserviceGithubToken", + modelProperties: { + accessToken: { + serializedName: "accessToken", + xmlName: "accessToken", + type: { + name: "String" + } + }, + scope: { + serializedName: "scope", + xmlName: "scope", + type: { + name: "String" + } + }, + tokenType: { + serializedName: "tokenType", + xmlName: "tokenType", + type: { + name: "String" + } + }, + gotToken: { + serializedName: "gotToken", + xmlName: "gotToken", + type: { + name: "Boolean" + } + }, + errorMessage: { + serializedName: "errorMessage", + xmlName: "errorMessage", + type: { + name: "String" + } + } + } + } +}; + +export const AppserviceGithubTokenRequest: coreClient.CompositeMapper = { + serializedName: "AppserviceGithubTokenRequest", + type: { + name: "Composite", + className: "AppserviceGithubTokenRequest", + modelProperties: { + code: { + serializedName: "code", + required: true, + xmlName: "code", + type: { + name: "String" + } + }, + state: { + serializedName: "state", + required: true, + xmlName: "state", + type: { + name: "String" + } + } + } + } +}; + export const AppServiceCertificateOrder: coreClient.CompositeMapper = { serializedName: "AppServiceCertificateOrder", type: { @@ -12024,6 +12454,7 @@ export const Site: coreClient.CompositeMapper = { } }, reserved: { + defaultValue: false, serializedName: "properties.reserved", xmlName: "properties.reserved", type: { @@ -12031,6 +12462,7 @@ export const Site: coreClient.CompositeMapper = { } }, isXenon: { + defaultValue: false, serializedName: "properties.isXenon", xmlName: "properties.isXenon", type: { @@ -12038,6 +12470,7 @@ export const Site: coreClient.CompositeMapper = { } }, hyperV: { + defaultValue: false, serializedName: "properties.hyperV", xmlName: "properties.hyperV", type: { @@ -12075,6 +12508,7 @@ export const Site: coreClient.CompositeMapper = { } }, scmSiteAlsoStopped: { + defaultValue: false, serializedName: "properties.scmSiteAlsoStopped", xmlName: "properties.scmSiteAlsoStopped", type: { @@ -12352,6 +12786,7 @@ export const AppServicePlan: coreClient.CompositeMapper = { } }, perSiteScaling: { + defaultValue: false, serializedName: "properties.perSiteScaling", xmlName: "properties.perSiteScaling", type: { @@ -12410,6 +12845,7 @@ export const AppServicePlan: coreClient.CompositeMapper = { } }, reserved: { + defaultValue: false, serializedName: "properties.reserved", xmlName: "properties.reserved", type: { @@ -12417,6 +12853,7 @@ export const AppServicePlan: coreClient.CompositeMapper = { } }, isXenon: { + defaultValue: false, serializedName: "properties.isXenon", xmlName: "properties.isXenon", type: { @@ -12424,6 +12861,7 @@ export const AppServicePlan: coreClient.CompositeMapper = { } }, hyperV: { + defaultValue: false, serializedName: "properties.hyperV", xmlName: "properties.hyperV", type: { @@ -12468,6 +12906,7 @@ export const AppServicePlan: coreClient.CompositeMapper = { } }, zoneRedundant: { + defaultValue: false, serializedName: "properties.zoneRedundant", xmlName: "properties.zoneRedundant", type: { @@ -14306,6 +14745,7 @@ export const AppServicePlanPatchResource: coreClient.CompositeMapper = { } }, perSiteScaling: { + defaultValue: false, serializedName: "properties.perSiteScaling", xmlName: "properties.perSiteScaling", type: { @@ -14364,6 +14804,7 @@ export const AppServicePlanPatchResource: coreClient.CompositeMapper = { } }, reserved: { + defaultValue: false, serializedName: "properties.reserved", xmlName: "properties.reserved", type: { @@ -14371,6 +14812,7 @@ export const AppServicePlanPatchResource: coreClient.CompositeMapper = { } }, isXenon: { + defaultValue: false, serializedName: "properties.isXenon", xmlName: "properties.isXenon", type: { @@ -14378,6 +14820,7 @@ export const AppServicePlanPatchResource: coreClient.CompositeMapper = { } }, hyperV: { + defaultValue: false, serializedName: "properties.hyperV", xmlName: "properties.hyperV", type: { @@ -14422,6 +14865,7 @@ export const AppServicePlanPatchResource: coreClient.CompositeMapper = { } }, zoneRedundant: { + defaultValue: false, serializedName: "properties.zoneRedundant", xmlName: "properties.zoneRedundant", type: { @@ -17050,6 +17494,7 @@ export const SitePatchResource: coreClient.CompositeMapper = { } }, reserved: { + defaultValue: false, serializedName: "properties.reserved", xmlName: "properties.reserved", type: { @@ -17057,6 +17502,7 @@ export const SitePatchResource: coreClient.CompositeMapper = { } }, isXenon: { + defaultValue: false, serializedName: "properties.isXenon", xmlName: "properties.isXenon", type: { @@ -17064,6 +17510,7 @@ export const SitePatchResource: coreClient.CompositeMapper = { } }, hyperV: { + defaultValue: false, serializedName: "properties.hyperV", xmlName: "properties.hyperV", type: { @@ -17102,6 +17549,7 @@ export const SitePatchResource: coreClient.CompositeMapper = { } }, scmSiteAlsoStopped: { + defaultValue: false, serializedName: "properties.scmSiteAlsoStopped", xmlName: "properties.scmSiteAlsoStopped", type: { @@ -17681,6 +18129,7 @@ export const RestoreRequest: coreClient.CompositeMapper = { } }, ignoreConflictingHostNames: { + defaultValue: false, serializedName: "properties.ignoreConflictingHostNames", xmlName: "properties.ignoreConflictingHostNames", type: { @@ -17688,6 +18137,7 @@ export const RestoreRequest: coreClient.CompositeMapper = { } }, ignoreDatabases: { + defaultValue: false, serializedName: "properties.ignoreDatabases", xmlName: "properties.ignoreDatabases", type: { @@ -18148,6 +18598,7 @@ export const SiteConfigResource: coreClient.CompositeMapper = { } }, localMySqlEnabled: { + defaultValue: false, serializedName: "properties.localMySqlEnabled", xmlName: "properties.localMySqlEnabled", type: { @@ -18643,451 +19094,6 @@ export const SiteAuthSettings: coreClient.CompositeMapper = { } }; -export const AzureActiveDirectoryRegistration: coreClient.CompositeMapper = { - serializedName: "AzureActiveDirectoryRegistration", - type: { - name: "Composite", - className: "AzureActiveDirectoryRegistration", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - openIdIssuer: { - serializedName: "properties.openIdIssuer", - xmlName: "properties.openIdIssuer", - type: { - name: "String" - } - }, - clientId: { - serializedName: "properties.clientId", - xmlName: "properties.clientId", - type: { - name: "String" - } - }, - clientSecretSettingName: { - serializedName: "properties.clientSecretSettingName", - xmlName: "properties.clientSecretSettingName", - type: { - name: "String" - } - }, - clientSecretCertificateThumbprint: { - serializedName: "properties.clientSecretCertificateThumbprint", - xmlName: "properties.clientSecretCertificateThumbprint", - type: { - name: "String" - } - }, - clientSecretCertificateSubjectAlternativeName: { - serializedName: - "properties.clientSecretCertificateSubjectAlternativeName", - xmlName: "properties.clientSecretCertificateSubjectAlternativeName", - type: { - name: "String" - } - }, - clientSecretCertificateIssuer: { - serializedName: "properties.clientSecretCertificateIssuer", - xmlName: "properties.clientSecretCertificateIssuer", - type: { - name: "String" - } - } - } - } -}; - -export const AzureActiveDirectoryLogin: coreClient.CompositeMapper = { - serializedName: "AzureActiveDirectoryLogin", - type: { - name: "Composite", - className: "AzureActiveDirectoryLogin", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - loginParameters: { - serializedName: "properties.loginParameters", - xmlName: "properties.loginParameters", - xmlElementName: - "AzureActiveDirectoryLoginPropertiesLoginParametersItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - disableWWWAuthenticate: { - serializedName: "properties.disableWWWAuthenticate", - xmlName: "properties.disableWWWAuthenticate", - type: { - name: "Boolean" - } - } - } - } -}; - -export const AllowedPrincipals: coreClient.CompositeMapper = { - serializedName: "AllowedPrincipals", - type: { - name: "Composite", - className: "AllowedPrincipals", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - groups: { - serializedName: "properties.groups", - xmlName: "properties.groups", - xmlElementName: "AllowedPrincipalsPropertiesGroupsItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - identities: { - serializedName: "properties.identities", - xmlName: "properties.identities", - xmlElementName: "AllowedPrincipalsPropertiesIdentitiesItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const AzureActiveDirectoryValidation: coreClient.CompositeMapper = { - serializedName: "AzureActiveDirectoryValidation", - type: { - name: "Composite", - className: "AzureActiveDirectoryValidation", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - jwtClaimChecks: { - serializedName: "properties.jwtClaimChecks", - xmlName: "properties.jwtClaimChecks", - type: { - name: "Composite", - className: "JwtClaimChecks" - } - }, - allowedAudiences: { - serializedName: "properties.allowedAudiences", - xmlName: "properties.allowedAudiences", - xmlElementName: - "AzureActiveDirectoryValidationPropertiesAllowedAudiencesItem", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - defaultAuthorizationPolicy: { - serializedName: "properties.defaultAuthorizationPolicy", - xmlName: "properties.defaultAuthorizationPolicy", - type: { - name: "Composite", - className: "DefaultAuthorizationPolicy" - } - } - } - } -}; - -export const AppRegistration: coreClient.CompositeMapper = { - serializedName: "AppRegistration", - type: { - name: "Composite", - className: "AppRegistration", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - appId: { - serializedName: "properties.appId", - xmlName: "properties.appId", - type: { - name: "String" - } - }, - appSecretSettingName: { - serializedName: "properties.appSecretSettingName", - xmlName: "properties.appSecretSettingName", - type: { - name: "String" - } - } - } - } -}; - -export const GitHub: coreClient.CompositeMapper = { - serializedName: "GitHub", - type: { - name: "Composite", - className: "GitHub", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", - type: { - name: "Boolean" - } - }, - registration: { - serializedName: "properties.registration", - xmlName: "properties.registration", - type: { - name: "Composite", - className: "ClientRegistration" - } - }, - login: { - serializedName: "properties.login", - xmlName: "properties.login", - type: { - name: "Composite", - className: "LoginScopes" - } - } - } - } -}; - -export const Google: coreClient.CompositeMapper = { - serializedName: "Google", - type: { - name: "Composite", - className: "Google", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", - type: { - name: "Boolean" - } - }, - registration: { - serializedName: "properties.registration", - xmlName: "properties.registration", - type: { - name: "Composite", - className: "ClientRegistration" - } - }, - login: { - serializedName: "properties.login", - xmlName: "properties.login", - type: { - name: "Composite", - className: "LoginScopes" - } - }, - validation: { - serializedName: "properties.validation", - xmlName: "properties.validation", - type: { - name: "Composite", - className: "AllowedAudiencesValidation" - } - } - } - } -}; - -export const Twitter: coreClient.CompositeMapper = { - serializedName: "Twitter", - type: { - name: "Composite", - className: "Twitter", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", - type: { - name: "Boolean" - } - }, - registration: { - serializedName: "properties.registration", - xmlName: "properties.registration", - type: { - name: "Composite", - className: "TwitterRegistration" - } - } - } - } -}; - -export const CustomOpenIdConnectProvider: coreClient.CompositeMapper = { - serializedName: "CustomOpenIdConnectProvider", - type: { - name: "Composite", - className: "CustomOpenIdConnectProvider", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", - type: { - name: "Boolean" - } - }, - registration: { - serializedName: "properties.registration", - xmlName: "properties.registration", - type: { - name: "Composite", - className: "OpenIdConnectRegistration" - } - }, - login: { - serializedName: "properties.login", - xmlName: "properties.login", - type: { - name: "Composite", - className: "OpenIdConnectLogin" - } - } - } - } -}; - -export const LegacyMicrosoftAccount: coreClient.CompositeMapper = { - serializedName: "LegacyMicrosoftAccount", - type: { - name: "Composite", - className: "LegacyMicrosoftAccount", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", - type: { - name: "Boolean" - } - }, - registration: { - serializedName: "properties.registration", - xmlName: "properties.registration", - type: { - name: "Composite", - className: "ClientRegistration" - } - }, - login: { - serializedName: "properties.login", - xmlName: "properties.login", - type: { - name: "Composite", - className: "LoginScopes" - } - }, - validation: { - serializedName: "properties.validation", - xmlName: "properties.validation", - type: { - name: "Composite", - className: "AllowedAudiencesValidation" - } - } - } - } -}; - -export const Apple: coreClient.CompositeMapper = { - serializedName: "Apple", - type: { - name: "Composite", - className: "Apple", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", - type: { - name: "Boolean" - } - }, - registration: { - serializedName: "properties.registration", - xmlName: "properties.registration", - type: { - name: "Composite", - className: "AppleRegistration" - } - }, - login: { - serializedName: "properties.login", - xmlName: "properties.login", - type: { - name: "Composite", - className: "LoginScopes" - } - } - } - } -}; - -export const AzureStaticWebApps: coreClient.CompositeMapper = { - serializedName: "AzureStaticWebApps", - type: { - name: "Composite", - className: "AzureStaticWebApps", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", - xmlName: "properties.enabled", - type: { - name: "Boolean" - } - }, - registration: { - serializedName: "properties.registration", - xmlName: "properties.registration", - type: { - name: "Composite", - className: "AzureStaticWebAppsRegistration" - } - } - } - } -}; - -export const BlobStorageTokenStore: coreClient.CompositeMapper = { - serializedName: "BlobStorageTokenStore", - type: { - name: "Composite", - className: "BlobStorageTokenStore", - modelProperties: { - ...ProxyOnlyResource.type.modelProperties, - sasUrlSettingName: { - serializedName: "properties.sasUrlSettingName", - xmlName: "properties.sasUrlSettingName", - type: { - name: "String" - } - } - } - } -}; - export const SiteAuthSettingsV2: coreClient.CompositeMapper = { serializedName: "SiteAuthSettingsV2", type: { @@ -20496,6 +20502,7 @@ export const StorageMigrationOptions: coreClient.CompositeMapper = { } }, switchSiteAfterMigration: { + defaultValue: false, serializedName: "properties.switchSiteAfterMigration", xmlName: "properties.switchSiteAfterMigration", type: { @@ -20503,6 +20510,7 @@ export const StorageMigrationOptions: coreClient.CompositeMapper = { } }, blockWriteAccessToSite: { + defaultValue: false, serializedName: "properties.blockWriteAccessToSite", xmlName: "properties.blockWriteAccessToSite", type: { diff --git a/sdk/appservice/arm-appservice/src/models/parameters.ts b/sdk/appservice/arm-appservice/src/models/parameters.ts index a0c5b28b6263..08b736d1dfe5 100644 --- a/sdk/appservice/arm-appservice/src/models/parameters.ts +++ b/sdk/appservice/arm-appservice/src/models/parameters.ts @@ -39,7 +39,6 @@ import { CertificatePatchResource as CertificatePatchResourceMapper, KubeEnvironment as KubeEnvironmentMapper, KubeEnvironmentPatchResource as KubeEnvironmentPatchResourceMapper, - AppserviceGithubTokenRequest as AppserviceGithubTokenRequestMapper, User as UserMapper, SourceControl as SourceControlMapper, ResourceNameAvailabilityRequest as ResourceNameAvailabilityRequestMapper, @@ -859,16 +858,6 @@ export const recommendationId: OperationQueryParameter = { } }; -export const code: OperationParameter = { - parameterPath: "code", - mapper: AppserviceGithubTokenRequestMapper -}; - -export const state: OperationParameter = { - parameterPath: "state", - mapper: AppserviceGithubTokenRequestMapper -}; - export const userDetails: OperationParameter = { parameterPath: "userDetails", mapper: UserMapper @@ -1155,7 +1144,7 @@ export const slotSwapEntity: OperationParameter = { mapper: CsmSlotEntityMapper }; -export const request2: OperationParameter = { +export const request1: OperationParameter = { parameterPath: "request", mapper: BackupRequestMapper }; @@ -1172,7 +1161,7 @@ export const backupId: OperationURLParameter = { } }; -export const request3: OperationParameter = { +export const request2: OperationParameter = { parameterPath: "request", mapper: RestoreRequestMapper }; diff --git a/sdk/appservice/arm-appservice/src/operations/appServiceCertificateOrders.ts b/sdk/appservice/arm-appservice/src/operations/appServiceCertificateOrders.ts index f27cb21273df..699f65b69145 100644 --- a/sdk/appservice/arm-appservice/src/operations/appServiceCertificateOrders.ts +++ b/sdk/appservice/arm-appservice/src/operations/appServiceCertificateOrders.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AppServiceCertificateOrders } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { @@ -65,16 +64,16 @@ import { } from "../models"; /// -/** Class representing a AppServiceCertificateOrders. */ +/** Class containing AppServiceCertificateOrders operations. */ export class AppServiceCertificateOrdersImpl implements AppServiceCertificateOrders { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class AppServiceCertificateOrders class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/appServiceEnvironments.ts b/sdk/appservice/arm-appservice/src/operations/appServiceEnvironments.ts index 7ffc42d6aa13..e36d6a5bc2d9 100644 --- a/sdk/appservice/arm-appservice/src/operations/appServiceEnvironments.ts +++ b/sdk/appservice/arm-appservice/src/operations/appServiceEnvironments.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AppServiceEnvironments } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { @@ -163,15 +162,15 @@ import { } from "../models"; /// -/** Class representing a AppServiceEnvironments. */ +/** Class containing AppServiceEnvironments operations. */ export class AppServiceEnvironmentsImpl implements AppServiceEnvironments { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class AppServiceEnvironments class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/appServicePlans.ts b/sdk/appservice/arm-appservice/src/operations/appServicePlans.ts index e68d424e829c..fa5fb164569f 100644 --- a/sdk/appservice/arm-appservice/src/operations/appServicePlans.ts +++ b/sdk/appservice/arm-appservice/src/operations/appServicePlans.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AppServicePlans } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { @@ -87,15 +86,15 @@ import { } from "../models"; /// -/** Class representing a AppServicePlans. */ +/** Class containing AppServicePlans operations. */ export class AppServicePlansImpl implements AppServicePlans { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class AppServicePlans class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/certificateOrdersDiagnostics.ts b/sdk/appservice/arm-appservice/src/operations/certificateOrdersDiagnostics.ts index 65df09a8353e..5eda1e2ff541 100644 --- a/sdk/appservice/arm-appservice/src/operations/certificateOrdersDiagnostics.ts +++ b/sdk/appservice/arm-appservice/src/operations/certificateOrdersDiagnostics.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { CertificateOrdersDiagnostics } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { DetectorResponse, CertificateOrdersDiagnosticsListAppServiceCertificateOrderDetectorResponseNextOptionalParams, @@ -24,16 +23,16 @@ import { } from "../models"; /// -/** Class representing a CertificateOrdersDiagnostics. */ +/** Class containing CertificateOrdersDiagnostics operations. */ export class CertificateOrdersDiagnosticsImpl implements CertificateOrdersDiagnostics { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class CertificateOrdersDiagnostics class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/certificateRegistrationProvider.ts b/sdk/appservice/arm-appservice/src/operations/certificateRegistrationProvider.ts index 21219e61e5e0..237e2296ae83 100644 --- a/sdk/appservice/arm-appservice/src/operations/certificateRegistrationProvider.ts +++ b/sdk/appservice/arm-appservice/src/operations/certificateRegistrationProvider.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { CertificateRegistrationProvider } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { CsmOperationDescription, CertificateRegistrationProviderListOperationsNextOptionalParams, @@ -22,16 +21,16 @@ import { } from "../models"; /// -/** Class representing a CertificateRegistrationProvider. */ +/** Class containing CertificateRegistrationProvider operations. */ export class CertificateRegistrationProviderImpl implements CertificateRegistrationProvider { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class CertificateRegistrationProvider class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/certificates.ts b/sdk/appservice/arm-appservice/src/operations/certificates.ts index c393fb04ac48..2432358fba81 100644 --- a/sdk/appservice/arm-appservice/src/operations/certificates.ts +++ b/sdk/appservice/arm-appservice/src/operations/certificates.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Certificates } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { Certificate, CertificatesListNextOptionalParams, @@ -34,15 +33,15 @@ import { } from "../models"; /// -/** Class representing a Certificates. */ +/** Class containing Certificates operations. */ export class CertificatesImpl implements Certificates { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class Certificates class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/deletedWebApps.ts b/sdk/appservice/arm-appservice/src/operations/deletedWebApps.ts index 18bf428b7385..774f53025b31 100644 --- a/sdk/appservice/arm-appservice/src/operations/deletedWebApps.ts +++ b/sdk/appservice/arm-appservice/src/operations/deletedWebApps.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { DeletedWebApps } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { DeletedSite, DeletedWebAppsListNextOptionalParams, @@ -28,15 +27,15 @@ import { } from "../models"; /// -/** Class representing a DeletedWebApps. */ +/** Class containing DeletedWebApps operations. */ export class DeletedWebAppsImpl implements DeletedWebApps { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class DeletedWebApps class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/diagnostics.ts b/sdk/appservice/arm-appservice/src/operations/diagnostics.ts index fc61d306671f..4ab7313fb3c8 100644 --- a/sdk/appservice/arm-appservice/src/operations/diagnostics.ts +++ b/sdk/appservice/arm-appservice/src/operations/diagnostics.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Diagnostics } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { DetectorResponse, DiagnosticsListHostingEnvironmentDetectorResponsesNextOptionalParams, @@ -83,15 +82,15 @@ import { } from "../models"; /// -/** Class representing a Diagnostics. */ +/** Class containing Diagnostics operations. */ export class DiagnosticsImpl implements Diagnostics { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class Diagnostics class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/domainRegistrationProvider.ts b/sdk/appservice/arm-appservice/src/operations/domainRegistrationProvider.ts index e2f4ae074a96..08da09c25842 100644 --- a/sdk/appservice/arm-appservice/src/operations/domainRegistrationProvider.ts +++ b/sdk/appservice/arm-appservice/src/operations/domainRegistrationProvider.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { DomainRegistrationProvider } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { CsmOperationDescription, DomainRegistrationProviderListOperationsNextOptionalParams, @@ -22,16 +21,16 @@ import { } from "../models"; /// -/** Class representing a DomainRegistrationProvider. */ +/** Class containing DomainRegistrationProvider operations. */ export class DomainRegistrationProviderImpl implements DomainRegistrationProvider { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class DomainRegistrationProvider class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/domains.ts b/sdk/appservice/arm-appservice/src/operations/domains.ts index 5550cc83ab33..2d508976620a 100644 --- a/sdk/appservice/arm-appservice/src/operations/domains.ts +++ b/sdk/appservice/arm-appservice/src/operations/domains.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Domains } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { @@ -59,15 +58,15 @@ import { } from "../models"; /// -/** Class representing a Domains. */ +/** Class containing Domains operations. */ export class DomainsImpl implements Domains { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class Domains class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/global.ts b/sdk/appservice/arm-appservice/src/operations/global.ts index 21f7bd22218e..89f8b532cfaa 100644 --- a/sdk/appservice/arm-appservice/src/operations/global.ts +++ b/sdk/appservice/arm-appservice/src/operations/global.ts @@ -10,7 +10,7 @@ import { Global } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { GlobalGetDeletedWebAppOptionalParams, GlobalGetDeletedWebAppResponse, @@ -19,15 +19,15 @@ import { GlobalGetSubscriptionOperationWithAsyncResponseOptionalParams } from "../models"; -/** Class representing a Global. */ +/** Class containing Global operations. */ export class GlobalImpl implements Global { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class Global class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/kubeEnvironments.ts b/sdk/appservice/arm-appservice/src/operations/kubeEnvironments.ts index 6505dddef474..4412d01f8fa4 100644 --- a/sdk/appservice/arm-appservice/src/operations/kubeEnvironments.ts +++ b/sdk/appservice/arm-appservice/src/operations/kubeEnvironments.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { KubeEnvironments } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { @@ -36,15 +35,15 @@ import { } from "../models"; /// -/** Class representing a KubeEnvironments. */ +/** Class containing KubeEnvironments operations. */ export class KubeEnvironmentsImpl implements KubeEnvironments { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class KubeEnvironments class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/provider.ts b/sdk/appservice/arm-appservice/src/operations/provider.ts index 8c9484e1d969..c4be40b013df 100644 --- a/sdk/appservice/arm-appservice/src/operations/provider.ts +++ b/sdk/appservice/arm-appservice/src/operations/provider.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Provider } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { ApplicationStackResource, ProviderGetAvailableStacksNextOptionalParams, @@ -49,15 +48,15 @@ import { } from "../models"; /// -/** Class representing a Provider. */ +/** Class containing Provider operations. */ export class ProviderImpl implements Provider { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class Provider class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/recommendations.ts b/sdk/appservice/arm-appservice/src/operations/recommendations.ts index 97237f4021b8..632f7657aa1c 100644 --- a/sdk/appservice/arm-appservice/src/operations/recommendations.ts +++ b/sdk/appservice/arm-appservice/src/operations/recommendations.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Recommendations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { Recommendation, RecommendationsListNextOptionalParams, @@ -50,15 +49,15 @@ import { } from "../models"; /// -/** Class representing a Recommendations. */ +/** Class containing Recommendations operations. */ export class RecommendationsImpl implements Recommendations { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class Recommendations class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/resourceHealthMetadataOperations.ts b/sdk/appservice/arm-appservice/src/operations/resourceHealthMetadataOperations.ts index 7434c645dae1..2c7d225185f8 100644 --- a/sdk/appservice/arm-appservice/src/operations/resourceHealthMetadataOperations.ts +++ b/sdk/appservice/arm-appservice/src/operations/resourceHealthMetadataOperations.ts @@ -6,48 +6,47 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ResourceHealthMetadataOperations } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { ResourceHealthMetadata, - ResourceHealthMetadataOperationsListNextOptionalParams, - ResourceHealthMetadataOperationsListOptionalParams, - ResourceHealthMetadataOperationsListByResourceGroupNextOptionalParams, - ResourceHealthMetadataOperationsListByResourceGroupOptionalParams, - ResourceHealthMetadataOperationsListBySiteNextOptionalParams, - ResourceHealthMetadataOperationsListBySiteOptionalParams, - ResourceHealthMetadataOperationsListBySiteSlotNextOptionalParams, - ResourceHealthMetadataOperationsListBySiteSlotOptionalParams, - ResourceHealthMetadataOperationsListResponse, - ResourceHealthMetadataOperationsListByResourceGroupResponse, - ResourceHealthMetadataOperationsListBySiteResponse, - ResourceHealthMetadataOperationsGetBySiteOptionalParams, - ResourceHealthMetadataOperationsGetBySiteResponse, - ResourceHealthMetadataOperationsListBySiteSlotResponse, - ResourceHealthMetadataOperationsGetBySiteSlotOptionalParams, - ResourceHealthMetadataOperationsGetBySiteSlotResponse, - ResourceHealthMetadataOperationsListNextResponse, - ResourceHealthMetadataOperationsListByResourceGroupNextResponse, - ResourceHealthMetadataOperationsListBySiteNextResponse, - ResourceHealthMetadataOperationsListBySiteSlotNextResponse + ResourceHealthMetadataListNextOptionalParams, + ResourceHealthMetadataListOptionalParams, + ResourceHealthMetadataListByResourceGroupNextOptionalParams, + ResourceHealthMetadataListByResourceGroupOptionalParams, + ResourceHealthMetadataListBySiteNextOptionalParams, + ResourceHealthMetadataListBySiteOptionalParams, + ResourceHealthMetadataListBySiteSlotNextOptionalParams, + ResourceHealthMetadataListBySiteSlotOptionalParams, + ResourceHealthMetadataListResponse, + ResourceHealthMetadataListByResourceGroupResponse, + ResourceHealthMetadataListBySiteResponse, + ResourceHealthMetadataGetBySiteOptionalParams, + ResourceHealthMetadataGetBySiteResponse, + ResourceHealthMetadataListBySiteSlotResponse, + ResourceHealthMetadataGetBySiteSlotOptionalParams, + ResourceHealthMetadataGetBySiteSlotResponse, + ResourceHealthMetadataListNextResponse, + ResourceHealthMetadataListByResourceGroupNextResponse, + ResourceHealthMetadataListBySiteNextResponse, + ResourceHealthMetadataListBySiteSlotNextResponse } from "../models"; /// -/** Class representing a ResourceHealthMetadataOperations. */ +/** Class containing ResourceHealthMetadataOperations operations. */ export class ResourceHealthMetadataOperationsImpl implements ResourceHealthMetadataOperations { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class ResourceHealthMetadataOperations class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } @@ -56,7 +55,7 @@ export class ResourceHealthMetadataOperationsImpl * @param options The options parameters. */ public list( - options?: ResourceHealthMetadataOperationsListOptionalParams + options?: ResourceHealthMetadataListOptionalParams ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -73,7 +72,7 @@ export class ResourceHealthMetadataOperationsImpl } private async *listPagingPage( - options?: ResourceHealthMetadataOperationsListOptionalParams + options?: ResourceHealthMetadataListOptionalParams ): AsyncIterableIterator { let result = await this._list(options); yield result.value || []; @@ -86,7 +85,7 @@ export class ResourceHealthMetadataOperationsImpl } private async *listPagingAll( - options?: ResourceHealthMetadataOperationsListOptionalParams + options?: ResourceHealthMetadataListOptionalParams ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -101,7 +100,7 @@ export class ResourceHealthMetadataOperationsImpl */ public listByResourceGroup( resourceGroupName: string, - options?: ResourceHealthMetadataOperationsListByResourceGroupOptionalParams + options?: ResourceHealthMetadataListByResourceGroupOptionalParams ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -119,7 +118,7 @@ export class ResourceHealthMetadataOperationsImpl private async *listByResourceGroupPagingPage( resourceGroupName: string, - options?: ResourceHealthMetadataOperationsListByResourceGroupOptionalParams + options?: ResourceHealthMetadataListByResourceGroupOptionalParams ): AsyncIterableIterator { let result = await this._listByResourceGroup(resourceGroupName, options); yield result.value || []; @@ -137,7 +136,7 @@ export class ResourceHealthMetadataOperationsImpl private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ResourceHealthMetadataOperationsListByResourceGroupOptionalParams + options?: ResourceHealthMetadataListByResourceGroupOptionalParams ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, @@ -157,7 +156,7 @@ export class ResourceHealthMetadataOperationsImpl public listBySite( resourceGroupName: string, name: string, - options?: ResourceHealthMetadataOperationsListBySiteOptionalParams + options?: ResourceHealthMetadataListBySiteOptionalParams ): PagedAsyncIterableIterator { const iter = this.listBySitePagingAll(resourceGroupName, name, options); return { @@ -176,7 +175,7 @@ export class ResourceHealthMetadataOperationsImpl private async *listBySitePagingPage( resourceGroupName: string, name: string, - options?: ResourceHealthMetadataOperationsListBySiteOptionalParams + options?: ResourceHealthMetadataListBySiteOptionalParams ): AsyncIterableIterator { let result = await this._listBySite(resourceGroupName, name, options); yield result.value || []; @@ -196,7 +195,7 @@ export class ResourceHealthMetadataOperationsImpl private async *listBySitePagingAll( resourceGroupName: string, name: string, - options?: ResourceHealthMetadataOperationsListBySiteOptionalParams + options?: ResourceHealthMetadataListBySiteOptionalParams ): AsyncIterableIterator { for await (const page of this.listBySitePagingPage( resourceGroupName, @@ -219,7 +218,7 @@ export class ResourceHealthMetadataOperationsImpl resourceGroupName: string, name: string, slot: string, - options?: ResourceHealthMetadataOperationsListBySiteSlotOptionalParams + options?: ResourceHealthMetadataListBySiteSlotOptionalParams ): PagedAsyncIterableIterator { const iter = this.listBySiteSlotPagingAll( resourceGroupName, @@ -249,7 +248,7 @@ export class ResourceHealthMetadataOperationsImpl resourceGroupName: string, name: string, slot: string, - options?: ResourceHealthMetadataOperationsListBySiteSlotOptionalParams + options?: ResourceHealthMetadataListBySiteSlotOptionalParams ): AsyncIterableIterator { let result = await this._listBySiteSlot( resourceGroupName, @@ -276,7 +275,7 @@ export class ResourceHealthMetadataOperationsImpl resourceGroupName: string, name: string, slot: string, - options?: ResourceHealthMetadataOperationsListBySiteSlotOptionalParams + options?: ResourceHealthMetadataListBySiteSlotOptionalParams ): AsyncIterableIterator { for await (const page of this.listBySiteSlotPagingPage( resourceGroupName, @@ -293,8 +292,8 @@ export class ResourceHealthMetadataOperationsImpl * @param options The options parameters. */ private _list( - options?: ResourceHealthMetadataOperationsListOptionalParams - ): Promise { + options?: ResourceHealthMetadataListOptionalParams + ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -306,8 +305,8 @@ export class ResourceHealthMetadataOperationsImpl */ private _listByResourceGroup( resourceGroupName: string, - options?: ResourceHealthMetadataOperationsListByResourceGroupOptionalParams - ): Promise { + options?: ResourceHealthMetadataListByResourceGroupOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, listByResourceGroupOperationSpec @@ -324,8 +323,8 @@ export class ResourceHealthMetadataOperationsImpl private _listBySite( resourceGroupName: string, name: string, - options?: ResourceHealthMetadataOperationsListBySiteOptionalParams - ): Promise { + options?: ResourceHealthMetadataListBySiteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, options }, listBySiteOperationSpec @@ -341,8 +340,8 @@ export class ResourceHealthMetadataOperationsImpl getBySite( resourceGroupName: string, name: string, - options?: ResourceHealthMetadataOperationsGetBySiteOptionalParams - ): Promise { + options?: ResourceHealthMetadataGetBySiteOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, options }, getBySiteOperationSpec @@ -361,8 +360,8 @@ export class ResourceHealthMetadataOperationsImpl resourceGroupName: string, name: string, slot: string, - options?: ResourceHealthMetadataOperationsListBySiteSlotOptionalParams - ): Promise { + options?: ResourceHealthMetadataListBySiteSlotOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, slot, options }, listBySiteSlotOperationSpec @@ -380,8 +379,8 @@ export class ResourceHealthMetadataOperationsImpl resourceGroupName: string, name: string, slot: string, - options?: ResourceHealthMetadataOperationsGetBySiteSlotOptionalParams - ): Promise { + options?: ResourceHealthMetadataGetBySiteSlotOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, slot, options }, getBySiteSlotOperationSpec @@ -395,8 +394,8 @@ export class ResourceHealthMetadataOperationsImpl */ private _listNext( nextLink: string, - options?: ResourceHealthMetadataOperationsListNextOptionalParams - ): Promise { + options?: ResourceHealthMetadataListNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { nextLink, options }, listNextOperationSpec @@ -412,8 +411,8 @@ export class ResourceHealthMetadataOperationsImpl private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ResourceHealthMetadataOperationsListByResourceGroupNextOptionalParams - ): Promise { + options?: ResourceHealthMetadataListByResourceGroupNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec @@ -431,8 +430,8 @@ export class ResourceHealthMetadataOperationsImpl resourceGroupName: string, name: string, nextLink: string, - options?: ResourceHealthMetadataOperationsListBySiteNextOptionalParams - ): Promise { + options?: ResourceHealthMetadataListBySiteNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, nextLink, options }, listBySiteNextOperationSpec @@ -452,8 +451,8 @@ export class ResourceHealthMetadataOperationsImpl name: string, slot: string, nextLink: string, - options?: ResourceHealthMetadataOperationsListBySiteSlotNextOptionalParams - ): Promise { + options?: ResourceHealthMetadataListBySiteSlotNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, name, slot, nextLink, options }, listBySiteSlotNextOperationSpec diff --git a/sdk/appservice/arm-appservice/src/operations/staticSites.ts b/sdk/appservice/arm-appservice/src/operations/staticSites.ts index 00f54c8ce5d4..ad7e0b7aa6f1 100644 --- a/sdk/appservice/arm-appservice/src/operations/staticSites.ts +++ b/sdk/appservice/arm-appservice/src/operations/staticSites.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { StaticSites } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { @@ -139,15 +138,15 @@ import { } from "../models"; /// -/** Class representing a StaticSites. */ +/** Class containing StaticSites operations. */ export class StaticSitesImpl implements StaticSites { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class StaticSites class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/topLevelDomains.ts b/sdk/appservice/arm-appservice/src/operations/topLevelDomains.ts index f3f4a7a47682..ee8969213e42 100644 --- a/sdk/appservice/arm-appservice/src/operations/topLevelDomains.ts +++ b/sdk/appservice/arm-appservice/src/operations/topLevelDomains.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { TopLevelDomains } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { TopLevelDomain, TopLevelDomainsListNextOptionalParams, @@ -30,15 +29,15 @@ import { } from "../models"; /// -/** Class representing a TopLevelDomains. */ +/** Class containing TopLevelDomains operations. */ export class TopLevelDomainsImpl implements TopLevelDomains { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class TopLevelDomains class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } diff --git a/sdk/appservice/arm-appservice/src/operations/webApps.ts b/sdk/appservice/arm-appservice/src/operations/webApps.ts index 8db55f7f17fe..d5b91f1d2d73 100644 --- a/sdk/appservice/arm-appservice/src/operations/webApps.ts +++ b/sdk/appservice/arm-appservice/src/operations/webApps.ts @@ -6,13 +6,12 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { WebApps } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; -import { WebSiteManagementClientContext } from "../webSiteManagementClientContext"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; import { LroImpl } from "../lroImpl"; import { @@ -897,15 +896,15 @@ import { } from "../models"; /// -/** Class representing a WebApps. */ +/** Class containing WebApps operations. */ export class WebAppsImpl implements WebApps { - private readonly client: WebSiteManagementClientContext; + private readonly client: WebSiteManagementClient; /** * Initialize a new instance of the class WebApps class. * @param client Reference to the service client */ - constructor(client: WebSiteManagementClientContext) { + constructor(client: WebSiteManagementClient) { this.client = client; } @@ -17797,7 +17796,7 @@ const backupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse } }, - requestBody: Parameters.request2, + requestBody: Parameters.request1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -17890,7 +17889,7 @@ const listBackupStatusSecretsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse } }, - requestBody: Parameters.request2, + requestBody: Parameters.request1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -17916,7 +17915,7 @@ const restoreOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse } }, - requestBody: Parameters.request3, + requestBody: Parameters.request2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -18261,7 +18260,7 @@ const updateBackupConfigurationOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse } }, - requestBody: Parameters.request2, + requestBody: Parameters.request1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -19089,7 +19088,7 @@ const discoverBackupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse } }, - requestBody: Parameters.request3, + requestBody: Parameters.request2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -21526,7 +21525,7 @@ const restoreFromBackupBlobOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse } }, - requestBody: Parameters.request3, + requestBody: Parameters.request2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -21895,7 +21894,7 @@ const backupSlotOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse } }, - requestBody: Parameters.request2, + requestBody: Parameters.request1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -21992,7 +21991,7 @@ const listBackupStatusSecretsSlotOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse } }, - requestBody: Parameters.request2, + requestBody: Parameters.request1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -22019,7 +22018,7 @@ const restoreSlotOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse } }, - requestBody: Parameters.request3, + requestBody: Parameters.request2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -22379,7 +22378,7 @@ const updateBackupConfigurationSlotOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse } }, - requestBody: Parameters.request2, + requestBody: Parameters.request1, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -23195,7 +23194,7 @@ const discoverBackupSlotOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse } }, - requestBody: Parameters.request3, + requestBody: Parameters.request2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -25660,7 +25659,7 @@ const restoreFromBackupBlobSlotOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse } }, - requestBody: Parameters.request3, + requestBody: Parameters.request2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/appServiceCertificateOrders.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/appServiceCertificateOrders.ts index 63cba838e660..4c7da7194c98 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/appServiceCertificateOrders.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/appServiceCertificateOrders.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/appServiceEnvironments.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/appServiceEnvironments.ts index 753a5be77717..efe7878919ca 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/appServiceEnvironments.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/appServiceEnvironments.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/appServicePlans.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/appServicePlans.ts index bcf0b39e08e2..4a511c2670a0 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/appServicePlans.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/appServicePlans.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/certificateOrdersDiagnostics.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/certificateOrdersDiagnostics.ts index 80e05240db10..84470f4079a1 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/certificateOrdersDiagnostics.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/certificateOrdersDiagnostics.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { DetectorResponse, diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/certificateRegistrationProvider.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/certificateRegistrationProvider.ts index 4a42e4d8b5fe..f8b71e17eb2c 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/certificateRegistrationProvider.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/certificateRegistrationProvider.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { CsmOperationDescription, diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/certificates.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/certificates.ts index 8ad2008f8fef..cba021fc1595 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/certificates.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/certificates.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Certificate, diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/deletedWebApps.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/deletedWebApps.ts index d32688400675..8711323a9126 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/deletedWebApps.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/deletedWebApps.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { DeletedSite, diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/diagnostics.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/diagnostics.ts index 87168913182b..c87dcd072006 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/diagnostics.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/diagnostics.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { DetectorResponse, diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/domainRegistrationProvider.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/domainRegistrationProvider.ts index 68bcfa04d66e..89754f193343 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/domainRegistrationProvider.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/domainRegistrationProvider.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { CsmOperationDescription, diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/domains.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/domains.ts index 6e1b8688476a..fcbd17a6f30e 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/domains.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/domains.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/kubeEnvironments.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/kubeEnvironments.ts index 01783d13247c..680675744ad8 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/kubeEnvironments.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/kubeEnvironments.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/provider.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/provider.ts index 6b93c4350472..03d93dde84bd 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/provider.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/provider.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ApplicationStackResource, diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/recommendations.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/recommendations.ts index f0c3536d5467..a8bc96aed43e 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/recommendations.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/recommendations.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Recommendation, diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/resourceHealthMetadataOperations.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/resourceHealthMetadataOperations.ts index 062c04cb0a50..ab006a59cb99 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/resourceHealthMetadataOperations.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/resourceHealthMetadataOperations.ts @@ -6,18 +6,17 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ResourceHealthMetadata, - ResourceHealthMetadataOperationsListOptionalParams, - ResourceHealthMetadataOperationsListByResourceGroupOptionalParams, - ResourceHealthMetadataOperationsListBySiteOptionalParams, - ResourceHealthMetadataOperationsListBySiteSlotOptionalParams, - ResourceHealthMetadataOperationsGetBySiteOptionalParams, - ResourceHealthMetadataOperationsGetBySiteResponse, - ResourceHealthMetadataOperationsGetBySiteSlotOptionalParams, - ResourceHealthMetadataOperationsGetBySiteSlotResponse + ResourceHealthMetadataListOptionalParams, + ResourceHealthMetadataListByResourceGroupOptionalParams, + ResourceHealthMetadataListBySiteOptionalParams, + ResourceHealthMetadataListBySiteSlotOptionalParams, + ResourceHealthMetadataGetBySiteOptionalParams, + ResourceHealthMetadataGetBySiteResponse, + ResourceHealthMetadataGetBySiteSlotOptionalParams, + ResourceHealthMetadataGetBySiteSlotResponse } from "../models"; /// @@ -28,7 +27,7 @@ export interface ResourceHealthMetadataOperations { * @param options The options parameters. */ list( - options?: ResourceHealthMetadataOperationsListOptionalParams + options?: ResourceHealthMetadataListOptionalParams ): PagedAsyncIterableIterator; /** * Description for List all ResourceHealthMetadata for all sites in the resource group in the @@ -38,7 +37,7 @@ export interface ResourceHealthMetadataOperations { */ listByResourceGroup( resourceGroupName: string, - options?: ResourceHealthMetadataOperationsListByResourceGroupOptionalParams + options?: ResourceHealthMetadataListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; /** * Description for Gets the category of ResourceHealthMetadata to use for the given site as a @@ -50,7 +49,7 @@ export interface ResourceHealthMetadataOperations { listBySite( resourceGroupName: string, name: string, - options?: ResourceHealthMetadataOperationsListBySiteOptionalParams + options?: ResourceHealthMetadataListBySiteOptionalParams ): PagedAsyncIterableIterator; /** * Description for Gets the category of ResourceHealthMetadata to use for the given site as a @@ -64,7 +63,7 @@ export interface ResourceHealthMetadataOperations { resourceGroupName: string, name: string, slot: string, - options?: ResourceHealthMetadataOperationsListBySiteSlotOptionalParams + options?: ResourceHealthMetadataListBySiteSlotOptionalParams ): PagedAsyncIterableIterator; /** * Description for Gets the category of ResourceHealthMetadata to use for the given site @@ -75,8 +74,8 @@ export interface ResourceHealthMetadataOperations { getBySite( resourceGroupName: string, name: string, - options?: ResourceHealthMetadataOperationsGetBySiteOptionalParams - ): Promise; + options?: ResourceHealthMetadataGetBySiteOptionalParams + ): Promise; /** * Description for Gets the category of ResourceHealthMetadata to use for the given site * @param resourceGroupName Name of the resource group to which the resource belongs. @@ -88,6 +87,6 @@ export interface ResourceHealthMetadataOperations { resourceGroupName: string, name: string, slot: string, - options?: ResourceHealthMetadataOperationsGetBySiteSlotOptionalParams - ): Promise; + options?: ResourceHealthMetadataGetBySiteSlotOptionalParams + ): Promise; } diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/staticSites.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/staticSites.ts index d405d9d64f55..f699f706b60b 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/staticSites.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/staticSites.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/topLevelDomains.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/topLevelDomains.ts index b195f6dee2ab..a810954e010e 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/topLevelDomains.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/topLevelDomains.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { TopLevelDomain, diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts index 82452a10f5a2..2a5fb28bf690 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/webApps.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { diff --git a/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts b/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts index c08d402a3ddb..73a92e543ab4 100644 --- a/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts +++ b/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts @@ -8,7 +8,6 @@ import * as coreClient from "@azure/core-client"; import * as coreAuth from "@azure/core-auth"; -import "@azure/core-paging"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AppServiceCertificateOrdersImpl, @@ -52,66 +51,67 @@ import { } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; -import { WebSiteManagementClientContext } from "./webSiteManagementClientContext"; import { WebSiteManagementClientOptionalParams, SourceControl, - WebSiteManagementClientListSourceControlsNextOptionalParams, - WebSiteManagementClientListSourceControlsOptionalParams, + ListSourceControlsNextOptionalParams, + ListSourceControlsOptionalParams, BillingMeter, - WebSiteManagementClientListBillingMetersNextOptionalParams, - WebSiteManagementClientListBillingMetersOptionalParams, + ListBillingMetersNextOptionalParams, + ListBillingMetersOptionalParams, GeoRegion, - WebSiteManagementClientListGeoRegionsNextOptionalParams, - WebSiteManagementClientListGeoRegionsOptionalParams, + ListGeoRegionsNextOptionalParams, + ListGeoRegionsOptionalParams, Identifier, NameIdentifier, - WebSiteManagementClientListSiteIdentifiersAssignedToHostNameNextOptionalParams, - WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptionalParams, + ListSiteIdentifiersAssignedToHostNameNextOptionalParams, + ListSiteIdentifiersAssignedToHostNameOptionalParams, PremierAddOnOffer, - WebSiteManagementClientListPremierAddOnOffersNextOptionalParams, - WebSiteManagementClientListPremierAddOnOffersOptionalParams, - WebSiteManagementClientGenerateGithubAccessTokenForAppserviceCLIAsyncOptionalParams, - WebSiteManagementClientGenerateGithubAccessTokenForAppserviceCLIAsyncResponse, - WebSiteManagementClientGetPublishingUserOptionalParams, - WebSiteManagementClientGetPublishingUserResponse, + ListPremierAddOnOffersNextOptionalParams, + ListPremierAddOnOffersOptionalParams, + GetPublishingUserOptionalParams, + GetPublishingUserResponse, User, - WebSiteManagementClientUpdatePublishingUserOptionalParams, - WebSiteManagementClientUpdatePublishingUserResponse, - WebSiteManagementClientListSourceControlsResponse, - WebSiteManagementClientGetSourceControlOptionalParams, - WebSiteManagementClientGetSourceControlResponse, - WebSiteManagementClientUpdateSourceControlOptionalParams, - WebSiteManagementClientUpdateSourceControlResponse, - WebSiteManagementClientListBillingMetersResponse, + UpdatePublishingUserOptionalParams, + UpdatePublishingUserResponse, + ListSourceControlsResponse, + GetSourceControlOptionalParams, + GetSourceControlResponse, + UpdateSourceControlOptionalParams, + UpdateSourceControlResponse, + ListBillingMetersResponse, CheckNameResourceTypes, - WebSiteManagementClientCheckNameAvailabilityOptionalParams, - WebSiteManagementClientCheckNameAvailabilityResponse, - WebSiteManagementClientGetSubscriptionDeploymentLocationsOptionalParams, - WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse, - WebSiteManagementClientListGeoRegionsResponse, - WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse, - WebSiteManagementClientListPremierAddOnOffersResponse, - WebSiteManagementClientListSkusOptionalParams, - WebSiteManagementClientListSkusResponse, + CheckNameAvailabilityOptionalParams, + CheckNameAvailabilityResponse, + GetSubscriptionDeploymentLocationsOptionalParams, + GetSubscriptionDeploymentLocationsResponse, + ListGeoRegionsResponse, + ListSiteIdentifiersAssignedToHostNameResponse, + ListPremierAddOnOffersResponse, + ListSkusOptionalParams, + ListSkusResponse, VnetParameters, - WebSiteManagementClientVerifyHostingEnvironmentVnetOptionalParams, - WebSiteManagementClientVerifyHostingEnvironmentVnetResponse, + VerifyHostingEnvironmentVnetOptionalParams, + VerifyHostingEnvironmentVnetResponse, CsmMoveResourceEnvelope, - WebSiteManagementClientMoveOptionalParams, + MoveOptionalParams, ValidateRequest, - WebSiteManagementClientValidateOptionalParams, - WebSiteManagementClientValidateResponse, - WebSiteManagementClientValidateMoveOptionalParams, - WebSiteManagementClientListSourceControlsNextResponse, - WebSiteManagementClientListBillingMetersNextResponse, - WebSiteManagementClientListGeoRegionsNextResponse, - WebSiteManagementClientListSiteIdentifiersAssignedToHostNameNextResponse, - WebSiteManagementClientListPremierAddOnOffersNextResponse + ValidateOptionalParams, + ValidateOperationResponse, + ValidateMoveOptionalParams, + ListSourceControlsNextResponse, + ListBillingMetersNextResponse, + ListGeoRegionsNextResponse, + ListSiteIdentifiersAssignedToHostNameNextResponse, + ListPremierAddOnOffersNextResponse } from "./models"; /// -export class WebSiteManagementClient extends WebSiteManagementClientContext { +export class WebSiteManagementClient extends coreClient.ServiceClient { + $host: string; + subscriptionId: string; + apiVersion: string; + /** * Initializes a new instance of the WebSiteManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. @@ -124,7 +124,46 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { subscriptionId: string, options?: WebSiteManagementClientOptionalParams ) { - super(credentials, subscriptionId, options); + if (credentials === undefined) { + throw new Error("'credentials' cannot be null"); + } + if (subscriptionId === undefined) { + throw new Error("'subscriptionId' cannot be null"); + } + + // Initializing default values for options + if (!options) { + options = {}; + } + const defaults: WebSiteManagementClientOptionalParams = { + requestContentType: "application/json; charset=utf-8", + credential: credentials + }; + + const packageDetails = `azsdk-js-arm-appservice/10.0.0`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; + + if (!options.credentialScopes) { + options.credentialScopes = ["https://management.azure.com/.default"]; + } + const optionsWithDefaults = { + ...defaults, + ...options, + userAgentOptions: { + userAgentPrefix + }, + baseUri: options.endpoint || "https://management.azure.com" + }; + super(optionsWithDefaults); + // Parameter assignments + this.subscriptionId = subscriptionId; + + // Assigning values to Constant parameters + this.$host = options.$host || "https://management.azure.com"; + this.apiVersion = options.apiVersion || "2021-02-01"; this.appServiceCertificateOrders = new AppServiceCertificateOrdersImpl( this ); @@ -158,7 +197,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { * @param options The options parameters. */ public listSourceControls( - options?: WebSiteManagementClientListSourceControlsOptionalParams + options?: ListSourceControlsOptionalParams ): PagedAsyncIterableIterator { const iter = this.listSourceControlsPagingAll(options); return { @@ -175,7 +214,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { } private async *listSourceControlsPagingPage( - options?: WebSiteManagementClientListSourceControlsOptionalParams + options?: ListSourceControlsOptionalParams ): AsyncIterableIterator { let result = await this._listSourceControls(options); yield result.value || []; @@ -188,7 +227,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { } private async *listSourceControlsPagingAll( - options?: WebSiteManagementClientListSourceControlsOptionalParams + options?: ListSourceControlsOptionalParams ): AsyncIterableIterator { for await (const page of this.listSourceControlsPagingPage(options)) { yield* page; @@ -200,7 +239,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { * @param options The options parameters. */ public listBillingMeters( - options?: WebSiteManagementClientListBillingMetersOptionalParams + options?: ListBillingMetersOptionalParams ): PagedAsyncIterableIterator { const iter = this.listBillingMetersPagingAll(options); return { @@ -217,7 +256,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { } private async *listBillingMetersPagingPage( - options?: WebSiteManagementClientListBillingMetersOptionalParams + options?: ListBillingMetersOptionalParams ): AsyncIterableIterator { let result = await this._listBillingMeters(options); yield result.value || []; @@ -230,7 +269,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { } private async *listBillingMetersPagingAll( - options?: WebSiteManagementClientListBillingMetersOptionalParams + options?: ListBillingMetersOptionalParams ): AsyncIterableIterator { for await (const page of this.listBillingMetersPagingPage(options)) { yield* page; @@ -242,7 +281,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { * @param options The options parameters. */ public listGeoRegions( - options?: WebSiteManagementClientListGeoRegionsOptionalParams + options?: ListGeoRegionsOptionalParams ): PagedAsyncIterableIterator { const iter = this.listGeoRegionsPagingAll(options); return { @@ -259,7 +298,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { } private async *listGeoRegionsPagingPage( - options?: WebSiteManagementClientListGeoRegionsOptionalParams + options?: ListGeoRegionsOptionalParams ): AsyncIterableIterator { let result = await this._listGeoRegions(options); yield result.value || []; @@ -272,7 +311,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { } private async *listGeoRegionsPagingAll( - options?: WebSiteManagementClientListGeoRegionsOptionalParams + options?: ListGeoRegionsOptionalParams ): AsyncIterableIterator { for await (const page of this.listGeoRegionsPagingPage(options)) { yield* page; @@ -286,7 +325,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { */ public listSiteIdentifiersAssignedToHostName( nameIdentifier: NameIdentifier, - options?: WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptionalParams + options?: ListSiteIdentifiersAssignedToHostNameOptionalParams ): PagedAsyncIterableIterator { const iter = this.listSiteIdentifiersAssignedToHostNamePagingAll( nameIdentifier, @@ -310,7 +349,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { private async *listSiteIdentifiersAssignedToHostNamePagingPage( nameIdentifier: NameIdentifier, - options?: WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptionalParams + options?: ListSiteIdentifiersAssignedToHostNameOptionalParams ): AsyncIterableIterator { let result = await this._listSiteIdentifiersAssignedToHostName( nameIdentifier, @@ -331,7 +370,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { private async *listSiteIdentifiersAssignedToHostNamePagingAll( nameIdentifier: NameIdentifier, - options?: WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptionalParams + options?: ListSiteIdentifiersAssignedToHostNameOptionalParams ): AsyncIterableIterator { for await (const page of this.listSiteIdentifiersAssignedToHostNamePagingPage( nameIdentifier, @@ -346,7 +385,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { * @param options The options parameters. */ public listPremierAddOnOffers( - options?: WebSiteManagementClientListPremierAddOnOffersOptionalParams + options?: ListPremierAddOnOffersOptionalParams ): PagedAsyncIterableIterator { const iter = this.listPremierAddOnOffersPagingAll(options); return { @@ -363,7 +402,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { } private async *listPremierAddOnOffersPagingPage( - options?: WebSiteManagementClientListPremierAddOnOffersOptionalParams + options?: ListPremierAddOnOffersOptionalParams ): AsyncIterableIterator { let result = await this._listPremierAddOnOffers(options); yield result.value || []; @@ -379,39 +418,20 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { } private async *listPremierAddOnOffersPagingAll( - options?: WebSiteManagementClientListPremierAddOnOffersOptionalParams + options?: ListPremierAddOnOffersOptionalParams ): AsyncIterableIterator { for await (const page of this.listPremierAddOnOffersPagingPage(options)) { yield* page; } } - /** - * Description for Exchange code for GitHub access token for AppService CLI - * @param code Code string to exchange for Github Access token - * @param state State string used for verification. - * @param options The options parameters. - */ - generateGithubAccessTokenForAppserviceCLIAsync( - code: string, - state: string, - options?: WebSiteManagementClientGenerateGithubAccessTokenForAppserviceCLIAsyncOptionalParams - ): Promise< - WebSiteManagementClientGenerateGithubAccessTokenForAppserviceCLIAsyncResponse - > { - return this.sendOperationRequest( - { code, state, options }, - generateGithubAccessTokenForAppserviceCLIAsyncOperationSpec - ); - } - /** * Description for Gets publishing user * @param options The options parameters. */ getPublishingUser( - options?: WebSiteManagementClientGetPublishingUserOptionalParams - ): Promise { + options?: GetPublishingUserOptionalParams + ): Promise { return this.sendOperationRequest( { options }, getPublishingUserOperationSpec @@ -425,8 +445,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { */ updatePublishingUser( userDetails: User, - options?: WebSiteManagementClientUpdatePublishingUserOptionalParams - ): Promise { + options?: UpdatePublishingUserOptionalParams + ): Promise { return this.sendOperationRequest( { userDetails, options }, updatePublishingUserOperationSpec @@ -438,8 +458,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { * @param options The options parameters. */ private _listSourceControls( - options?: WebSiteManagementClientListSourceControlsOptionalParams - ): Promise { + options?: ListSourceControlsOptionalParams + ): Promise { return this.sendOperationRequest( { options }, listSourceControlsOperationSpec @@ -453,8 +473,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { */ getSourceControl( sourceControlType: string, - options?: WebSiteManagementClientGetSourceControlOptionalParams - ): Promise { + options?: GetSourceControlOptionalParams + ): Promise { return this.sendOperationRequest( { sourceControlType, options }, getSourceControlOperationSpec @@ -470,8 +490,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { updateSourceControl( sourceControlType: string, requestMessage: SourceControl, - options?: WebSiteManagementClientUpdateSourceControlOptionalParams - ): Promise { + options?: UpdateSourceControlOptionalParams + ): Promise { return this.sendOperationRequest( { sourceControlType, requestMessage, options }, updateSourceControlOperationSpec @@ -483,8 +503,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { * @param options The options parameters. */ private _listBillingMeters( - options?: WebSiteManagementClientListBillingMetersOptionalParams - ): Promise { + options?: ListBillingMetersOptionalParams + ): Promise { return this.sendOperationRequest( { options }, listBillingMetersOperationSpec @@ -500,8 +520,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { checkNameAvailability( name: string, typeParam: CheckNameResourceTypes, - options?: WebSiteManagementClientCheckNameAvailabilityOptionalParams - ): Promise { + options?: CheckNameAvailabilityOptionalParams + ): Promise { return this.sendOperationRequest( { name, typeParam, options }, checkNameAvailabilityOperationSpec @@ -513,10 +533,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { * @param options The options parameters. */ getSubscriptionDeploymentLocations( - options?: WebSiteManagementClientGetSubscriptionDeploymentLocationsOptionalParams - ): Promise< - WebSiteManagementClientGetSubscriptionDeploymentLocationsResponse - > { + options?: GetSubscriptionDeploymentLocationsOptionalParams + ): Promise { return this.sendOperationRequest( { options }, getSubscriptionDeploymentLocationsOperationSpec @@ -528,8 +546,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { * @param options The options parameters. */ private _listGeoRegions( - options?: WebSiteManagementClientListGeoRegionsOptionalParams - ): Promise { + options?: ListGeoRegionsOptionalParams + ): Promise { return this.sendOperationRequest({ options }, listGeoRegionsOperationSpec); } @@ -540,10 +558,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { */ private _listSiteIdentifiersAssignedToHostName( nameIdentifier: NameIdentifier, - options?: WebSiteManagementClientListSiteIdentifiersAssignedToHostNameOptionalParams - ): Promise< - WebSiteManagementClientListSiteIdentifiersAssignedToHostNameResponse - > { + options?: ListSiteIdentifiersAssignedToHostNameOptionalParams + ): Promise { return this.sendOperationRequest( { nameIdentifier, options }, listSiteIdentifiersAssignedToHostNameOperationSpec @@ -555,8 +571,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { * @param options The options parameters. */ private _listPremierAddOnOffers( - options?: WebSiteManagementClientListPremierAddOnOffersOptionalParams - ): Promise { + options?: ListPremierAddOnOffersOptionalParams + ): Promise { return this.sendOperationRequest( { options }, listPremierAddOnOffersOperationSpec @@ -567,9 +583,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { * Description for List all SKUs. * @param options The options parameters. */ - listSkus( - options?: WebSiteManagementClientListSkusOptionalParams - ): Promise { + listSkus(options?: ListSkusOptionalParams): Promise { return this.sendOperationRequest({ options }, listSkusOperationSpec); } @@ -581,8 +595,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { */ verifyHostingEnvironmentVnet( parameters: VnetParameters, - options?: WebSiteManagementClientVerifyHostingEnvironmentVnetOptionalParams - ): Promise { + options?: VerifyHostingEnvironmentVnetOptionalParams + ): Promise { return this.sendOperationRequest( { parameters, options }, verifyHostingEnvironmentVnetOperationSpec @@ -598,7 +612,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { move( resourceGroupName: string, moveResourceEnvelope: CsmMoveResourceEnvelope, - options?: WebSiteManagementClientMoveOptionalParams + options?: MoveOptionalParams ): Promise { return this.sendOperationRequest( { resourceGroupName, moveResourceEnvelope, options }, @@ -615,8 +629,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { validate( resourceGroupName: string, validateRequest: ValidateRequest, - options?: WebSiteManagementClientValidateOptionalParams - ): Promise { + options?: ValidateOptionalParams + ): Promise { return this.sendOperationRequest( { resourceGroupName, validateRequest, options }, validateOperationSpec @@ -632,7 +646,7 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { validateMove( resourceGroupName: string, moveResourceEnvelope: CsmMoveResourceEnvelope, - options?: WebSiteManagementClientValidateMoveOptionalParams + options?: ValidateMoveOptionalParams ): Promise { return this.sendOperationRequest( { resourceGroupName, moveResourceEnvelope, options }, @@ -647,8 +661,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { */ private _listSourceControlsNext( nextLink: string, - options?: WebSiteManagementClientListSourceControlsNextOptionalParams - ): Promise { + options?: ListSourceControlsNextOptionalParams + ): Promise { return this.sendOperationRequest( { nextLink, options }, listSourceControlsNextOperationSpec @@ -662,8 +676,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { */ private _listBillingMetersNext( nextLink: string, - options?: WebSiteManagementClientListBillingMetersNextOptionalParams - ): Promise { + options?: ListBillingMetersNextOptionalParams + ): Promise { return this.sendOperationRequest( { nextLink, options }, listBillingMetersNextOperationSpec @@ -677,8 +691,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { */ private _listGeoRegionsNext( nextLink: string, - options?: WebSiteManagementClientListGeoRegionsNextOptionalParams - ): Promise { + options?: ListGeoRegionsNextOptionalParams + ): Promise { return this.sendOperationRequest( { nextLink, options }, listGeoRegionsNextOperationSpec @@ -695,10 +709,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { private _listSiteIdentifiersAssignedToHostNameNext( nameIdentifier: NameIdentifier, nextLink: string, - options?: WebSiteManagementClientListSiteIdentifiersAssignedToHostNameNextOptionalParams - ): Promise< - WebSiteManagementClientListSiteIdentifiersAssignedToHostNameNextResponse - > { + options?: ListSiteIdentifiersAssignedToHostNameNextOptionalParams + ): Promise { return this.sendOperationRequest( { nameIdentifier, nextLink, options }, listSiteIdentifiersAssignedToHostNameNextOperationSpec @@ -712,8 +724,8 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { */ private _listPremierAddOnOffersNext( nextLink: string, - options?: WebSiteManagementClientListPremierAddOnOffersNextOptionalParams - ): Promise { + options?: ListPremierAddOnOffersNextOptionalParams + ): Promise { return this.sendOperationRequest( { nextLink, options }, listPremierAddOnOffersNextOperationSpec @@ -742,27 +754,6 @@ export class WebSiteManagementClient extends WebSiteManagementClientContext { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const generateGithubAccessTokenForAppserviceCLIAsyncOperationSpec: coreClient.OperationSpec = { - path: "/providers/Microsoft.Web/generateGithubAccessTokenForAppserviceCLI", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.AppserviceGithubToken - }, - default: { - bodyMapper: Mappers.DefaultErrorResponse - } - }, - requestBody: { - parameterPath: { code: ["code"], state: ["state"] }, - mapper: { ...Mappers.AppserviceGithubTokenRequest, required: true } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; const getPublishingUserOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Web/publishingUsers/web", httpMethod: "GET", diff --git a/sdk/appservice/arm-appservice/src/webSiteManagementClientContext.ts b/sdk/appservice/arm-appservice/src/webSiteManagementClientContext.ts deleted file mode 100644 index 228068cc2eeb..000000000000 --- a/sdk/appservice/arm-appservice/src/webSiteManagementClientContext.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import * as coreClient from "@azure/core-client"; -import * as coreAuth from "@azure/core-auth"; -import { WebSiteManagementClientOptionalParams } from "./models"; - -export class WebSiteManagementClientContext extends coreClient.ServiceClient { - $host: string; - subscriptionId: string; - apiVersion: string; - - /** - * Initializes a new instance of the WebSiteManagementClientContext class. - * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId Your Azure subscription ID. This is a GUID-formatted string (e.g. - * 00000000-0000-0000-0000-000000000000). - * @param options The parameter options - */ - constructor( - credentials: coreAuth.TokenCredential, - subscriptionId: string, - options?: WebSiteManagementClientOptionalParams - ) { - if (credentials === undefined) { - throw new Error("'credentials' cannot be null"); - } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); - } - - // Initializing default values for options - if (!options) { - options = {}; - } - const defaults: WebSiteManagementClientOptionalParams = { - requestContentType: "application/json; charset=utf-8", - credential: credentials - }; - - const packageDetails = `azsdk-js-arm-appservice/10.0.0-beta.1`; - const userAgentPrefix = - options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` - : `${packageDetails}`; - - if (!options.credentialScopes) { - options.credentialScopes = ["https://management.azure.com/.default"]; - } - const optionsWithDefaults = { - ...defaults, - ...options, - userAgentOptions: { - userAgentPrefix - }, - baseUri: options.endpoint || "https://management.azure.com" - }; - super(optionsWithDefaults); - // Parameter assignments - this.subscriptionId = subscriptionId; - - // Assigning values to Constant parameters - this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-02-01"; - } -} diff --git a/sdk/appservice/arm-appservice/test/web_examples.ts b/sdk/appservice/arm-appservice/test/web_examples.ts new file mode 100644 index 000000000000..238ce77f1a7f --- /dev/null +++ b/sdk/appservice/arm-appservice/test/web_examples.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder, + delay, + isPlaybackMode +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; +import { ClientSecretCredential } from "@azure/identity"; +import { WebSiteManagementClient } from "../src/webSiteManagementClient"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +export const testPollingOptions = { + updateIntervalInMs: isPlaybackMode() ? 0 : undefined, +}; + +describe("Web test", () => { + let recorder: Recorder; + let subscriptionId: string; + let client: WebSiteManagementClient; + let location: string; + let resourceGroup: string; + let appservicePlanName: string; + let name: string; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + subscriptionId = env.SUBSCRIPTION_ID; + // This is an example of how the environment variables are used + const credential = new ClientSecretCredential( + env.AZURE_TENANT_ID, + env.AZURE_CLIENT_ID, + env.AZURE_CLIENT_SECRET + ); + client = new WebSiteManagementClient(credential, subscriptionId); + location = "eastus"; + resourceGroup = "myjstest"; + appservicePlanName = "myappserviceplanxxx"; + name = "mysitexxxx"; + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("appServicePlans create test", async function() { + const res = await client.appServicePlans.beginCreateOrUpdateAndWait(resourceGroup,appservicePlanName,{ + location: "eastus", + sku: { + name: "S1", + tier: "STANDARD", + capacity: 1, + }, + perSiteScaling: false, + isXenon: false + },testPollingOptions) + assert.equal(res.name,appservicePlanName); + }); + + it("webApps create test", async function() { + const res = await client.webApps.beginCreateOrUpdateAndWait(resourceGroup,name,{ + location: "eastus", + serverFarmId: + "/subscriptions/" + + subscriptionId + + "/resourceGroups/myjstest/providers/Microsoft.Web/serverfarms/myappserviceplanxxx", + reserved: false, + isXenon: false, + hyperV: false, + siteConfig: { + netFrameworkVersion: "v4.6", + appSettings: [ + { + name: "WEBSITE_NODE_DEFAULT_VERSION", + value: "10.14", + }, + ], + localMySqlEnabled: false, + http20Enabled: true, + }, + scmSiteAlsoStopped: false, + httpsOnly: false + },testPollingOptions) + assert.equal(res.name,name); + }); + + it("appServicePlans get test", async function() { + const res = await client.appServicePlans.get(resourceGroup,appservicePlanName); + assert.equal(res.name,appservicePlanName); + }); + + it("webApps get test", async function() { + const res = await client.webApps.get(resourceGroup,name); + assert.equal(res.name,name); + }); + + it("appServicePlans list test", async function() { + const resArray = new Array(); + for await (let item of client.appServicePlans.listByResourceGroup(resourceGroup)){ + resArray.push(item); + } + assert.equal(resArray.length,1); + }); + + it("webApps list test", async function() { + const resArray = new Array(); + for await (let item of client.webApps.list()){ + resArray.push(item); + } + assert.equal(resArray.length,1); + }); + + it("webApps update test", async function() { + const res = await client.webApps.update(resourceGroup,name,{ + serverFarmId: "/subscriptions/" +subscriptionId + "/resourceGroups/myjstest/providers/Microsoft.Web/serverfarms/myappserviceplanxxx", + reserved: false, + isXenon: false, + hyperV: false, + siteConfig: { + netFrameworkVersion: "v4.6", + localMySqlEnabled: false, + http20Enabled: true, + }, + scmSiteAlsoStopped: false + }) + assert.equal(res.name,name); + }); + + it("webApps delete test", async function() { + const res = await client.webApps.delete(resourceGroup,name); + const resArray = new Array(); + for await (let item of client.webApps.list()){ + resArray.push(item); + } + assert.equal(resArray.length,0); + }); + + it("appServicePlans delete test", async function() { + const res = await client.appServicePlans.delete(resourceGroup,appservicePlanName); + const resArray = new Array(); + for await (let item of client.appServicePlans.listByResourceGroup(resourceGroup)){ + resArray.push(item); + } + assert.equal(resArray.length,0); + }); +}); diff --git a/sdk/appservice/arm-appservice/tsconfig.json b/sdk/appservice/arm-appservice/tsconfig.json index 603440b3a359..6e3251194117 100644 --- a/sdk/appservice/arm-appservice/tsconfig.json +++ b/sdk/appservice/arm-appservice/tsconfig.json @@ -14,6 +14,6 @@ "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts"], + "include": ["./src/**/*.ts", "./test/**/*.ts"], "exclude": ["node_modules"] }