diff --git a/sdk/appplatform/arm-appplatform/CHANGELOG.md b/sdk/appplatform/arm-appplatform/CHANGELOG.md index 5387575e44b2..a729c596d11d 100644 --- a/sdk/appplatform/arm-appplatform/CHANGELOG.md +++ b/sdk/appplatform/arm-appplatform/CHANGELOG.md @@ -1,18 +1,8 @@ # Release History + +## 2.0.0 (2022-05-19) -## 2.0.0-beta.6 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 2.0.0-beta.5 (2022-04-07) - -The package of @azure/arm-appplatform is using our next generation design principles since version 2.0.0-beta.5, which contains breaking changes. +The package of @azure/arm-appplatform is using our next generation design principles since version 2.0.0, which contains breaking changes. To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). diff --git a/sdk/appplatform/arm-appplatform/README.md b/sdk/appplatform/arm-appplatform/README.md index 1822e3bdf93a..fb45ed5db8df 100644 --- a/sdk/appplatform/arm-appplatform/README.md +++ b/sdk/appplatform/arm-appplatform/README.md @@ -2,11 +2,11 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure AppPlatformManagement client. -REST API for Azure Spring Cloud +REST API for Azure Spring Apps [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-appplatform) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-appplatform) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/appplatform/arm-appplatform/_meta.json b/sdk/appplatform/arm-appplatform/_meta.json index ae4aced6aba3..9f09205cc823 100644 --- a/sdk/appplatform/arm-appplatform/_meta.json +++ b/sdk/appplatform/arm-appplatform/_meta.json @@ -1,8 +1,8 @@ { - "commit": "54ee1a9eb50c13e0790627749f986c886ad4f4db", - "readme": "specification\\appplatform\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\attestation\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.18.20220329.1 --generate-sample=true", + "commit": "5b1dddff54392a2b6ffa41d4b5ef0e5f0e8b31ae", + "readme": "specification/appplatform/resource-manager/readme.md", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\appplatform\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.2.1", - "use": "@autorest/typescript@6.0.0-alpha.18.20220329.1" -} + "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", + "use": "@autorest/typescript@6.0.0-alpha.19.20220408.1" +} \ No newline at end of file diff --git a/sdk/appplatform/arm-appplatform/package.json b/sdk/appplatform/arm-appplatform/package.json index a3b6f5256296..255c78ebbdae 100644 --- a/sdk/appplatform/arm-appplatform/package.json +++ b/sdk/appplatform/arm-appplatform/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AppPlatformManagementClient.", - "version": "2.0.0-beta.6", + "version": "2.0.0", "engines": { "node": ">=12.0.0" }, @@ -11,9 +11,9 @@ "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.0.0", + "@azure/core-client": "^1.5.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.1.0", + "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" }, "keywords": [ diff --git a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_create_test.js b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_create_test.js index 976e7470820c..9bb8e6013402 100644 --- a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_create_test.js +++ b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_create_test.js @@ -23,19 +23,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '17f397b0-cc05-413e-95af-cd76e63b1f00', + 'afcd620a-19fe-45a7-86b2-5b8b19632200', 'x-ms-ests-server', - '2.1.12529.16 - KRSLR1 ProdSlices', + '2.1.12744.11 - SEASLR1 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=Angxti2IBgBBkMJvOaQbjWU; expires=Thu, 31-Mar-2022 06:23:32 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArWS7r91rQJEm-va8eAS-m4; expires=Sun, 19-Jun-2022 02:08:46 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrzb_7qZpJTOjIanDMMxvzS7pM7yvAsmraMTO4g60Z16GpXGe-kgn_kPSu1uUuDVPK4SbRHpfoZ2sHUt9P3mlWjx5jhOpT-NgphUkL6CvvdOHfBHfBdMLwvLkygAkDX06oDYx0omqUCcceExYxpfx4a2YPAXo0wVKGKfrAZxGGQAwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrnLTsh6tgkqQgKyeQMFJQbLII4Qnqu6GzOYxbMM_eqku15Q5omwiOHdlZr6hkICnzvE_ZBMPs612yX8kKD9vyXzSIeN5eOyzpjJ0bPd6xJ1hgPcMh0oIqEOReGrgidgcs7Ed_FjDX7UeHn9z2jxcVAEGtT8dFh8ssMyjrnDN1Ct8gAA; 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', - 'Tue, 01 Mar 2022 06:23:31 GMT', + 'Fri, 20 May 2022 02:08:46 GMT', 'Content-Length', '980' ]); @@ -58,25 +60,27 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '877e778d-0bdf-411f-9da9-658bc6b31f00', + 'd581385c-22eb-4ab0-aa0a-16419c9b5400', 'x-ms-ests-server', - '2.1.12529.16 - SEASLR2 ProdSlices', + '2.1.12794.4 - KRSLR2 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AgsKKHMtj4ZOib8_NchFSaU; expires=Thu, 31-Mar-2022 06:23:32 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AgnyFww0l51GjUfTHS-fzK8; expires=Sun, 19-Jun-2022 02:08:47 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr3cOETtjJWERhhKqjeSves_vqO3AWD9KiljC7pdoy2D-Y4q4H6EehVOd3caW3YGsTN7K1O1CspukbDkGh25z9DtbjZfPSHFpQdNQ67Jjov_bYlyO9fuyoInMzwhcQDPS4hYJHqhHzFnBAvzone7bSGNn2gZX9hJZkloixcsjUiocgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0Y6nemQBGBLu1qM430Fy9P93fssIk0V3ByeUQ6NmVjm5OCKvU8yIc0Bujk1Z9QHMdGECoTrFWJ3ckCoTsSIeeA-JoLTNdA31wN-aGflKper3C6OfEHR0mI7yqt21NAtetrkrRgzmxohnuX5lWWaXYniFY8PGxvdipSus12FC7_sgAA; 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', - 'Tue, 01 Mar 2022 06:23:31 GMT', + 'Fri, 20 May 2022 02:08:46 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.5.0&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=727f5223-8dd3-4f94-9c34-2e0ad19ef7fa&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") + .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.9.0&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=d7ca4121-5b89-45ce-9ec5-0a9280488bd9&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', @@ -93,19 +97,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'd4b93b1a-11d2-4e10-9d20-9c5d3b581d00', + '8a792fe0-a397-4743-a52e-79eb9e975200', 'x-ms-ests-server', - '2.1.12529.16 - KRSLR2 ProdSlices', + '2.1.12794.4 - KRSLR2 ProdSlices', 'x-ms-clitelem', '1,0,0,,', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=Ak8cLNgGD25LizTBd6l2pQPLj78gAQAAAOOyr9kOAAAA; expires=Thu, 31-Mar-2022 06:23:32 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag8OvnXUhwFNhtgR6ATtGCrLj78gAQAAAC7vGNoOAAAA; expires=Sun, 19-Jun-2022 02:08:47 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', - 'Tue, 01 Mar 2022 06:23:31 GMT', + 'Fri, 20 May 2022 02:08:46 GMT', 'Content-Length', '1393' ]); @@ -113,7 +119,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://management.azure.com:443', {"encodedQueryParams":true}) .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/Spring/myservicexxx/apps/myappxxx', {"properties":{"public":true,"fqdn":"myapp.mydomain.com","httpsOnly":false,"temporaryDisk":{"sizeInGB":2,"mountPath":"/mytemporarydisk"},"persistentDisk":{"sizeInGB":2,"mountPath":"/mypersistentdisk"}}}) .query(true) - .reply(201, {"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":true,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":2,"mountPath":"/mytemporarydisk"},"persistentDisk":{"sizeInGB":2,"mountPath":"/mypersistentdisk"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/Spring/myservicexxx/apps/myappxxx","name":"myappxxx","systemData":{"createdBy":"azure_client_id","createdByType":"Application","createdAt":"2022-03-01T06:23:33.5945637Z","lastModifiedBy":"azure_client_id","lastModifiedByType":"Application","lastModifiedAt":"2022-03-01T06:23:33.5945637Z"}}, [ + .reply(201, {"properties":{"addonConfigs":{"applicationConfigurationService":{},"serviceRegistry":{}},"public":true,"provisioningState":"Creating","httpsOnly":false,"temporaryDisk":{"sizeInGB":2,"mountPath":"/mytemporarydisk"},"persistentDisk":{"sizeInGB":2,"mountPath":"/mypersistentdisk"},"enableEndToEndTLS":false},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/Spring/myservicexxx/apps/myappxxx","name":"myappxxx","systemData":{"createdBy":"azure_client_id","createdByType":"Application","createdAt":"2022-05-20T02:08:48.3571207Z","lastModifiedBy":"azure_client_id","lastModifiedByType":"Application","lastModifiedAt":"2022-05-20T02:08:48.3571207Z"}}, [ 'Cache-Control', 'no-cache', 'Pragma', @@ -125,7 +131,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Expires', '-1', 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationResults/131e5b10-60a6-4dd2-b1f7-f7153b853c45/Spring/myappxxx?api-version=2022-01-01-preview', + 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationResults/dc20649e-6730-418a-9880-4c006bd01608/Spring/myappxxx?api-version=2022-04-01', 'x-ms-ratelimit-remaining-subscription-resource-requests', '1199', 'Request-Context', @@ -135,27 +141,27 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '15d0bba7-ce42-49a0-abd4-45a6d6ff0727', + '0718209e-2933-4170-a75d-65c2b008a3af', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Azure-AsyncOperation', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myappxxx/operationId/131e5b10-60a6-4dd2-b1f7-f7153b853c45?api-version=2022-01-01-preview', + 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myappxxx/operationId/dc20649e-6730-418a-9880-4c006bd01608?api-version=2022-04-01', 'Server', 'nginx/1.17.7', 'x-ms-request-id', - '45dcab6f-719e-418f-aefe-a9d8ea21be40', + 'faccf3b2-2c54-4540-963c-074889805d8a', 'x-ms-correlation-request-id', - '45dcab6f-719e-418f-aefe-a9d8ea21be40', + 'faccf3b2-2c54-4540-963c-074889805d8a', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062334Z:45dcab6f-719e-418f-aefe-a9d8ea21be40', + 'KOREASOUTH:20220520T020849Z:faccf3b2-2c54-4540-963c-074889805d8a', 'Date', - 'Tue, 01 Mar 2022 06:23:34 GMT' + 'Fri, 20 May 2022 02:08:48 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myappxxx/operationId/131e5b10-60a6-4dd2-b1f7-f7153b853c45') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myappxxx/operationId/dc20649e-6730-418a-9880-4c006bd01608') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c67abd5bb77efdc1767b3bbbbf776f3fb93dd9ded4f77b24fb7f767b3bdedc9eef983edf307bbf7ef4d0eeedf9beedfff68f4d1325be4349c5bb66eb8436aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1feddd7b746f7fbcb3b77b8ffeff531ffd","92ff07517126793a010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c67abd5bb77efdc1767b3bbb3e9decea7fb0ff3ed4f1fdcdb21940eb2ed870707f4db7467e7d3c96c67f7d39d838f461f2db3454ec3b965eb863ba4f6afd6cb65b1bc908feaf64dc150f676f6f6b677ee6fefedbcd9d97bb473f068ffe17867f7c1eefe83fd9ffae8","97fc3f4bda04b03a010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -173,9 +179,9 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '0f2c28c2-dff6-47d4-88d1-17cabeb9d835', + 'a8bc139b-9a4e-4e93-8735-65e33db04417', 'x-ms-ratelimit-remaining-subscription-reads', - '11976', + '11978', 'Request-Context', 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', 'Strict-Transport-Security', @@ -183,23 +189,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '8cc9f151-6de1-48c2-bcc9-c45342dbca60', + 'd6eb2be5-dce5-440c-a99c-812ebc821ee7', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '0f2c28c2-dff6-47d4-88d1-17cabeb9d835', + 'a8bc139b-9a4e-4e93-8735-65e33db04417', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062334Z:0f2c28c2-dff6-47d4-88d1-17cabeb9d835', + 'KOREASOUTH:20220520T020849Z:a8bc139b-9a4e-4e93-8735-65e33db04417', 'Date', - 'Tue, 01 Mar 2022 06:23:34 GMT' + 'Fri, 20 May 2022 02:08:49 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myappxxx/operationId/131e5b10-60a6-4dd2-b1f7-f7153b853c45') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myappxxx/operationId/dc20649e-6730-418a-9880-4c006bd01608') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c67abd5bb77efdc1767b3bbbbf776f3fb93dd9ded4f77b24fb7f767b3bdedc9eef983edf307bbf7ef4d0eeedf9beedfff68f4d1325be4349c5bb66eb8436aff7a3d9de6f92c9fc98775fba660387b3b7b7bdb3bf7b67776dfec7cfa68efdea37bfbe39dbddd7bf4ff9fa2a6f97236d4707f67bcbff7e0fefedede4f7df44b","fe1fe1ab457365010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c67abd5bb77efdc1767b3bbb3e9decea7fb0ff3ed4f1fdcdb21940eb2ed870707f4db7467e7d3c96c67f7d39d838f461f2db3454ec3b965eb863ba4f6afd6cb65b1bc908feaf64dc150f676f6f6b677ee6fefedbcd9d97bb473f068ffe17867f7c1eefe83fd9ffae8","97fc3f4bda04b03a010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -212,12 +218,98 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'gzip', 'Expires', '-1', + 'Retry-After', + '0', 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '3a9dab2e-7a65-4dcf-9e43-1a2eb7f16e89', + '732a35ce-82a9-4800-8025-5b90a5edd3d8', 'x-ms-ratelimit-remaining-subscription-reads', - '11975', + '11977', + 'Request-Context', + 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'x-ms-client-request-id', + 'e2be2a7e-215d-4ddd-b35a-39b8d751a28b', + 'x-rp-server-mvid', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', + 'Server', + 'nginx/1.17.7', + 'x-ms-correlation-request-id', + '732a35ce-82a9-4800-8025-5b90a5edd3d8', + 'x-ms-routing-request-id', + 'KOREASOUTH:20220520T020850Z:732a35ce-82a9-4800-8025-5b90a5edd3d8', + 'Date', + 'Fri, 20 May 2022 02:08:50 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myappxxx/operationId/dc20649e-6730-418a-9880-4c006bd01608') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c67abd5bb77efdc1767b3bbb3e9decea7fb0ff3ed4f1fdcdb21940eb2ed870707f4db7467e7d3c96c67f7d39d838f461f2db3454ec3b965eb863ba4f6afd7d3699ecff2997c58b76f0a86b3b7b3b7b7bd737f7b6fe7cdcedea39d8347fb0fc73bbb0f76f71fecff1435cd97b3a186f71f8cf7f6ee7ffae9dec39ffae8","97fc3f0c39766565010000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding,Accept-Encoding', + 'x-ms-request-id', + 'fc37245f-6b37-4a1b-bb68-705bb8485f8f', + 'x-ms-ratelimit-remaining-subscription-reads', + '11976', + 'Request-Context', + 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'x-ms-client-request-id', + 'd678ed01-e901-49c7-9357-8eeb98054325', + 'x-rp-server-mvid', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', + 'Server', + 'nginx/1.17.7', + 'x-ms-correlation-request-id', + 'fc37245f-6b37-4a1b-bb68-705bb8485f8f', + 'x-ms-routing-request-id', + 'KOREASOUTH:20220520T020901Z:fc37245f-6b37-4a1b-bb68-705bb8485f8f', + 'Date', + 'Fri, 20 May 2022 02:09:00 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/Spring/myservicexxx/apps/myappxxx') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147abba5ae5755be4cd478f7ef147d96c562d4faae57971217faf566531cddac27cbaaef98fd7797d594c736af24b461f35f2c7abfca268dafa1a1fd2a7abf5845efde8d179563639fd5957974543af16cb8bd76dd6d2bb1fbd5e4fa7793ecb671f8d3e3aff45b3257db4b85668efdebd1b673f58d7f9a298d6957ed88c8b8adacedb76d57cb92ca92b85dee68b555567f5f5d3a2794b087cd4143fc8cf969f3ff9e8d1fdd1478b6abd6c5f66ed9c3ab8db2e561f01bdbc6e08dd7cd9f65fd9e9bce2dae2cd7c994dcafc74397b53e19fe7af150bfaaabd5e615c5f30cad5793b3e5ead5e96597b5ed58bbbaf57358dfd2e91b4a13114330257b43484e5ba2c471f959590995ecfb3a65d4b1bfaeb6eb39e34d3ba58e1dbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f13f64d7b97276146a3b9bb11457f12185ffa847ed05f84d4325b608cde27cd35415f3ccdda0c649cd639cdeeec098deca37c27238cee118a9fee4eb7f767bb7bdb07e79f4eb709f507f7777676a7f7a71901b0afbc11fa114ac43a420efbed714bdfecedeced6defdcdfdedb79b3b3f768e7e0d1fec1f8defd07bb7b3b0f7e8a9a9644b92faa59715e001ab5bf2502e17b512cfc2637a3f24b","7ec9ff03b60f704a5a030000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding,Accept-Encoding', + 'x-ms-request-id', + '2d4e8c48-fbd8-4d1f-abc6-505142ce07bf', + 'x-ms-ratelimit-remaining-subscription-resource-requests', + '11999', 'Request-Context', 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', 'Strict-Transport-Security', @@ -225,15 +317,15 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '2ff7bbdb-131b-4638-8106-74102fb89b2e', + '31794eb7-283e-41dd-8028-3358b6195bba', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '3a9dab2e-7a65-4dcf-9e43-1a2eb7f16e89', + '2d4e8c48-fbd8-4d1f-abc6-505142ce07bf', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062345Z:3a9dab2e-7a65-4dcf-9e43-1a2eb7f16e89', + 'KOREASOUTH:20220520T020912Z:2d4e8c48-fbd8-4d1f-abc6-505142ce07bf', 'Date', - 'Tue, 01 Mar 2022 06:23:44 GMT' + 'Fri, 20 May 2022 02:09:12 GMT' ]); diff --git a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_delete_test.js b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_delete_test.js index f8d1f37afc59..e2168038f66d 100644 --- a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_delete_test.js +++ b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_delete_test.js @@ -23,19 +23,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'af542ae0-3f02-4cb9-b538-49e378ae1d00', + '08bf8f0b-4550-445e-84eb-19e84daf1600', 'x-ms-ests-server', - '2.1.12529.16 - SEASLR1 ProdSlices', + '2.1.12744.11 - SEASLR2 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=Aj1OlZiXA1RNg-1zeMho_5A; expires=Thu, 31-Mar-2022 06:24:00 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AminM19Av4JFthtCDshoWnU; expires=Sun, 19-Jun-2022 02:09:18 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr66JRF5omfjRDtawYIutS16b7dYpueAmV-EM1Y1JNwmhjXto8knaQpFOrbJzkOKfWQduRQm3s6oGZUuQM8T_4aOqPOaToMX1uKiNyp0rTUHCvuwSG9mWFEzMXFmhUTZCGJq_AtX2ZcTNET_I_LbvBvfIBMGqDDO4htaG3kDY6FOkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr6LMQH1DOsbaHyBzBPpHzXvT524gjGzDy8mbaj1Sw5xQ7Aq_3ArHHuBIwF1s46-RaTmJ_DTFms1fMIBLbKIADGfkQqHY2bj1L_PdbbtSAwa1F7iw6ciWhH9AyuPzwkEaUIUOdWb9_MvyKfxLBonyuulF80r4GdU1y1rZuoiWHLmggAA; 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', - 'Tue, 01 Mar 2022 06:23:59 GMT', + 'Fri, 20 May 2022 02:09:17 GMT', 'Content-Length', '980' ]); @@ -58,25 +60,27 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '68c52ac1-0210-4f9e-bb6f-e999d45b1c00', + '8a792fe0-a397-4743-a52e-79eb4fa25200', 'x-ms-ests-server', - '2.1.12529.16 - SEASLR2 ProdSlices', + '2.1.12794.4 - KRSLR2 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=Ah7zvsbV8iBAnfTfdpK0Zvo; expires=Thu, 31-Mar-2022 06:24:00 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AixphD8LTD1Aomu0pMiIdeg; expires=Sun, 19-Jun-2022 02:09:18 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9t-GfKAMM2YI8w4nt9RDD0FH85nVVGLmOjRzjoT3oohcWdcx2l29-m4SewT-IY-QC19p9YO4L620j0kNlNCdIqlCAF-ZZXJWAzLkZ8b2VIjq1d-NMhavKWrDMORGEmaNC0aCFX5TzcWuuco6hu4iuhygr97LQFoe4vzXmPgUrGAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrGDyX9gRQePs3nK4o18qPG8lm36jzBazimwRQE9R6TKX4BiINGzYb4tqmrK-3qKXFPvqG0301nct_rx5BoNSVjgeUCHcZOoZVNNGRysMRoMoz6MFN2u7urbcyyoYoA98_5mhcwe6J0w2uEHQ0lOZEiIz0TK3kBwJGcmJtx8v1Vp0gAA; 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', - 'Tue, 01 Mar 2022 06:24:00 GMT', + 'Fri, 20 May 2022 02:09:17 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.5.0&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=636ba353-2f18-4129-8e20-c1f448f61349&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") + .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.9.0&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=a9e412c4-6383-4e7c-a8a2-efeb8117ea86&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', @@ -93,19 +97,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '88b0213c-f179-47c7-bdb9-21874c7f1c00', + '8a792fe0-a397-4743-a52e-79eb54a25200', 'x-ms-ests-server', - '2.1.12529.16 - KRSLR2 ProdSlices', + '2.1.12794.4 - KRSLR2 ProdSlices', 'x-ms-clitelem', '1,0,0,,', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AguGDi5_YcpIv9arX1-jBFXLj78gAQAAAACzr9kOAAAA; expires=Thu, 31-Mar-2022 06:24:00 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Aob624K3sWZFgqKwyuAKt-LLj78gAQAAAE7vGNoOAAAA; expires=Sun, 19-Jun-2022 02:09:18 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', - 'Tue, 01 Mar 2022 06:24:00 GMT', + 'Fri, 20 May 2022 02:09:17 GMT', 'Content-Length', '1393' ]); @@ -121,7 +127,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Expires', '-1', 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationResults/29f84731-875d-44ed-8a76-848cacea9fd7/Spring/myappxxx?api-version=2022-01-01-preview', + 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationResults/2acac14d-642e-4702-8c80-c11c0cd55a58/Spring/myappxxx?api-version=2022-04-01', 'x-ms-ratelimit-remaining-subscription-deletes', '14999', 'Request-Context', @@ -131,29 +137,73 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '473643a7-8084-4bce-a7fb-68deadeaeddf', + 'a8155b57-576a-41a4-8068-8221bf4eaec6', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Azure-AsyncOperation', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myappxxx/operationId/29f84731-875d-44ed-8a76-848cacea9fd7?api-version=2022-01-01-preview', + 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myappxxx/operationId/2acac14d-642e-4702-8c80-c11c0cd55a58?api-version=2022-04-01', 'Server', 'nginx/1.17.7', 'x-ms-request-id', - '07a5dc16-2ae0-4672-a8ab-4c22254f99d4', + 'dced4e45-75b1-4e9f-a561-386cb5175a25', 'x-ms-correlation-request-id', - '07a5dc16-2ae0-4672-a8ab-4c22254f99d4', + 'dced4e45-75b1-4e9f-a561-386cb5175a25', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062402Z:07a5dc16-2ae0-4672-a8ab-4c22254f99d4', + 'KOREASOUTH:20220520T020919Z:dced4e45-75b1-4e9f-a561-386cb5175a25', 'Date', - 'Tue, 01 Mar 2022 06:24:01 GMT', + 'Fri, 20 May 2022 02:09:19 GMT', 'Content-Length', '0' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myappxxx/operationId/29f84731-875d-44ed-8a76-848cacea9fd7') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myappxxx/operationId/2acac14d-642e-4702-8c80-c11c0cd55a58') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c67abd5bb77efdc1767b3bb7bd9349beeeecfb63fdddfcbb7f71fecec1136073bdbd3dddde9ce7476ff7e76ffe0a3d147cb6c91d3706ed9bae10ea9fdabf572592c2fe4a3ba7d5308949dbdbded9dfbdb7b3b6f76f61eed3c7cb4fb707cffd3077b0fee3ff8a98f7e","c9ff03f8b88a773a010000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Retry-After', + '0', + 'Vary', + 'Accept-Encoding,Accept-Encoding', + 'x-ms-request-id', + '51cf1c63-34b6-4925-a476-1c4a408d741f', + 'x-ms-ratelimit-remaining-subscription-reads', + '11975', + 'Request-Context', + 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'x-ms-client-request-id', + 'aec11471-90c6-4366-81f8-5d5632a67e33', + 'x-rp-server-mvid', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', + 'Server', + 'nginx/1.17.7', + 'x-ms-correlation-request-id', + '51cf1c63-34b6-4925-a476-1c4a408d741f', + 'x-ms-routing-request-id', + 'KOREASOUTH:20220520T020920Z:51cf1c63-34b6-4925-a476-1c4a408d741f', + 'Date', + 'Fri, 20 May 2022 02:09:19 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myappxxx/operationId/2acac14d-642e-4702-8c80-c11c0cd55a58') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c67abd5bb77efdc1767b3bb7b0fcf0ff61fdcdbdd3e78707fb6bdbf9fcfb60fb2079f6e1fec1f4cb3699e3d3c9f3df868f4d1325be4349c5bb66eb8436aff6abd5c16cb0bf9a86edf140265676f6f7be7def6ceee9b9d4f1feded3fdad91befec7efaf0c1de4f7df4","4bfe1f47d456f439010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c67abd5bb77efdc1767b3bb7bd9349beeeecfb63fdddfcbb7f71fecec1136073bdbd3dddde9ce7476ff7e76ffe0a3d147cb6c91d3706ed9bae10ea9fdabf572592c2fe4a3ba7d5308949dbdbded9dfbdb7b3b6f76f61eed3c7cb4fb707cffd3077b0fee3ff8a98f7e","c9ff03f8b88a773a010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -171,7 +221,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '6017b01a-3949-4dd6-86a1-dbe836dc687d', + 'c8708cb9-4589-4b5d-9653-655609fd155f', 'x-ms-ratelimit-remaining-subscription-reads', '11974', 'Request-Context', @@ -181,23 +231,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'c341e2e6-12d9-403f-a444-dad7a133f632', + 'd6ce7456-3f4c-44c8-aeed-76ca6cc366a0', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '6017b01a-3949-4dd6-86a1-dbe836dc687d', + 'c8708cb9-4589-4b5d-9653-655609fd155f', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062402Z:6017b01a-3949-4dd6-86a1-dbe836dc687d', + 'KOREASOUTH:20220520T020921Z:c8708cb9-4589-4b5d-9653-655609fd155f', 'Date', - 'Tue, 01 Mar 2022 06:24:02 GMT' + 'Fri, 20 May 2022 02:09:20 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myappxxx/operationId/29f84731-875d-44ed-8a76-848cacea9fd7') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myappxxx/operationId/2acac14d-642e-4702-8c80-c11c0cd55a58') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c67abd5bb77efdc1767b3bb7b0fcf0ff61fdcdbdd3e78707fb6bdbf9fcfb60fb2079f6e1fec1f4cb3699e3d3c9f3df868f4d1325be4349c5bb66eb8436aff7a3d9de6f92c9fc98775fba610383b7b7bdb3bf7b67776dfec7cfa686fffd1cede7867f7d3870ff67e8a5ae6cbd960bb87e3837b9f3eb8f7e0fe4f7df44b","fe1f6eb5e06e64010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c67abd5bb77efdc1767b3bb7bd9349beeeecfb63fdddfcbb7f71fecec1136073bdbd3dddde9ce7476ff7e76ffe0a3d147cb6c91d3706ed9bae10ea9fdebf5749ae7b37c261fd6ed9b42e0ececed6defdcdfdedb79b3b3f768e7e1a3dd87e3fb9f3ed87b70ffc14f51d37c391b6ab8f770bc77b0bfbffbe0de4f7df44b","fe1fea578a9165010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -213,7 +263,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '05ef3f97-2e6d-449c-ba9d-2a38ae990062', + '3ed36a72-79ce-47b8-9007-39f95b705dd0', 'x-ms-ratelimit-remaining-subscription-reads', '11973', 'Request-Context', @@ -223,17 +273,17 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '024ac740-e171-4c1a-9db7-9417eda0046d', + 'f09fbd45-0a34-41da-b3fc-1b057a33e77e', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '05ef3f97-2e6d-449c-ba9d-2a38ae990062', + '3ed36a72-79ce-47b8-9007-39f95b705dd0', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062413Z:05ef3f97-2e6d-449c-ba9d-2a38ae990062', + 'KOREASOUTH:20220520T020931Z:3ed36a72-79ce-47b8-9007-39f95b705dd0', 'Date', - 'Tue, 01 Mar 2022 06:24:12 GMT' + 'Fri, 20 May 2022 02:09:31 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) @@ -255,7 +305,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'x-ms-ratelimit-remaining-subscription-resource-requests', - '11997', + '11996', 'Request-Context', 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', 'Strict-Transport-Security', @@ -263,17 +313,17 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '415a32f1-bc45-4c48-a8db-bc572f1f8bc5', + '07b3cc17-f3b6-472e-8a53-bb6b0ee63b39', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-request-id', - '88e7b02d-45ce-4bdc-a945-776e6e27c304', + '107593d4-4a2c-48d6-82f2-c3a39925e94d', 'x-ms-correlation-request-id', - '88e7b02d-45ce-4bdc-a945-776e6e27c304', + '107593d4-4a2c-48d6-82f2-c3a39925e94d', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062413Z:88e7b02d-45ce-4bdc-a945-776e6e27c304', + 'KOREASOUTH:20220520T020932Z:107593d4-4a2c-48d6-82f2-c3a39925e94d', 'Date', - 'Tue, 01 Mar 2022 06:24:13 GMT' + 'Fri, 20 May 2022 02:09:32 GMT' ]); diff --git a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_get_test.js b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_get_test.js index cf3cdcd22478..7dc650941425 100644 --- a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_get_test.js +++ b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_get_test.js @@ -23,19 +23,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'd4b93b1a-11d2-4e10-9d20-9c5d01591d00', + 'b738e70d-7c9e-4999-912d-10d35a378d00', 'x-ms-ests-server', - '2.1.12529.16 - KRSLR2 ProdSlices', + '2.1.12794.4 - SEASLR1 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AjiAL35jQ7VNpmdlMS2I8cI; expires=Thu, 31-Mar-2022 06:23:55 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AnxaC_Q2axJKhP5TCg3bgrI; expires=Sun, 19-Jun-2022 02:09:13 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrxZ2SDuhqUanGmoJbbFC6ziidP11KpJz60nApzXEYghOIDVf7Rw94ZlqUhVwYc5foKIPHaSgOEjFkL1CSJTgSMGmsQaaMA6rfOZbSC8r9j5NsrHuCXjK6oJPZ0aVkn6xF-GbYp6mNaYqp_ghvEq7ha68BT9J8cPXa4aNDPfBApzwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrWunYHkeBa9_cmhK_4A2_pbeHxG6Xs2s1aLufLXin3guI1YlATwbihMhUCmAX0wbDmRSjeylQNK63-AQ0-iqhWWd0HMdNElG6SajtmBAArybtgW8nGUmBbJEvBFbpBDNH0wOwEwNQVzddKk5TtFzOvwoqFebA0xVsoFdDk-6AKckgAA; 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', - 'Tue, 01 Mar 2022 06:23:55 GMT', + 'Fri, 20 May 2022 02:09:12 GMT', 'Content-Length', '980' ]); @@ -58,25 +60,27 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '0204ff98-cfb5-4141-a3a3-b5e1b7381e00', + '70833697-662e-4bc5-9ad0-75641a174400', 'x-ms-ests-server', - '2.1.12529.16 - SEASLR1 ProdSlices', + '2.1.12794.4 - SEASLR1 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=Av-ziweQlzpIh2zyoH_ADiA; expires=Thu, 31-Mar-2022 06:23:56 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ao3YRtha0mVDt2JienRM1W4; expires=Sun, 19-Jun-2022 02:09:13 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrjGy3M1Xoh3GbmmHNIv4wl1GcV0b92Qo_Djx3FM_TGeeXBxUoqaSmh_bthpJmvwnLI7hfXJPnhADBvU9n-QJvZssj5V6JkGVQQ9JuopVCHbZOWHZJkYZayoy-zNjX7VjNX6hY8Jh-Q69WOeS6rYACZiYq4S6Gs2ULz7UzO8TevakgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0bRONXxjWUJD6K5leICNYLBBjUDcNuavjWjUJESa6I4SrozzzLtF_qtHwo09SriK3CoYtzZp0ED5d40OqclvoWRvjILtr_Mt7wwZPQRKK5GYfxQGowjBrr0X3nk6NHEr-3Zabt12s06PrSVBEWTc_nEfpfzckTq5K8x7BbjgmusgAA; 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', - 'Tue, 01 Mar 2022 06:23:55 GMT', + 'Fri, 20 May 2022 02:09:13 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.5.0&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=2f1d7373-c351-4ae6-b7b2-b2df6bddcf80&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") + .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.9.0&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=78deeb4d-e8b9-4828-aaa6-d6e212c50c3d&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', @@ -93,19 +97,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '0204ff98-cfb5-4141-a3a3-b5e1b9381e00', + '8e47a8d2-d890-407e-a7cf-188b2aa34700', 'x-ms-ests-server', - '2.1.12529.16 - SEASLR1 ProdSlices', + '2.1.12794.4 - KRSLR1 ProdSlices', 'x-ms-clitelem', '1,0,0,,', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AgSnUaOWyplFvrFaUlwQZzrLj78gAQAAAPuyr9kOAAAA; expires=Thu, 31-Mar-2022 06:23:56 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AtnHeZ23DW9Jqsfd6aooFiLLj78gAQAAAEnvGNoOAAAA; expires=Sun, 19-Jun-2022 02:09:14 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', - 'Tue, 01 Mar 2022 06:23:55 GMT', + 'Fri, 20 May 2022 02:09:13 GMT', 'Content-Length', '1393' ]); @@ -113,7 +119,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://management.azure.com:443', {"encodedQueryParams":true}) .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/Spring/myservicexxx/apps/myappxxx') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147abba5ae5755be4cd478f7ef147d96c562d4faae57971217faf566531cddac27cbaaef98fd7797d594c736af24b461f35f2c7abfca268dafa1a1fd2a7abf5845efde8d179563639fd5957974543af16cb8bd76dd6d2bb1fbd5e4fa7793ecb671f8d3e3aff45b3257db4b85668efdebd1b673f58d7f9a298d6957ed88c8b8adacedb76d57cb92ca92b85dee68b555567f5f5d3a2794b087cd4143fc8cf969f3ff9e8d1fdd1478b6abd6c5f66ed9c3ab8db2e561f01bdbc6e08dd7cd9f65fd9e9bce2dae2cd7c994dcafc74397b53e19fe7af150bfaaabd5e615c5f30cad5793b3e5ead5e96597b5ed58bbbaf57358dfd2e91b4a13114330257b43484e5ba2c471f959590995ecfb3a65d4b1bfaeb6eb39e34d3ba58e1dbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f13f64d7b97276146a3b9bb11457f12185ffa847ed05f84d4325b608cde27cd35415f3ccdda0c649cd639cdeeec098deca37c27238cee118a9fee4eb7f767bb7bdb07e79f4eb709f507f7777676a7f7a71901b0afbc11fa114ac43a420efbed714bdfecedeced6defdcdbded97db3f3e9a3bd7b8feedd1bdf7fb87fffd37b0f7e8a9a9644b92faa59715e001ab5bf2502e17b512cfc2637a3f24b7e","c9ff03568967545a030000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147abba5ae5755be4cd478f7ef147d96c562d4faae57971217faf566531cddac27cbaaef98fd7797d594c736af24b461f35f2c7abfca268dafa1a1fd2a7abf5845efde8d179563639fd5957974543af16cb8bd76dd6d2bb1fbd5e4fa7793ecb671f8d3e3aff45b3257db4b85668efdebd1b673f58d7f9a298d6957ed88c8b8adacedb76d57cb92ca92b85dee68b555567f5f5d3a2794b087cd4143fc8cf969f3ff9e8d1fdd1478b6abd6c5f66ed9c3ab8db2e561f01bdbc6e08dd7cd9f65fd9e9bce2dae2cd7c994dcafc74397b53e19fe7af150bfaaabd5e615c5f30cad5793b3e5ead5e96597b5ed58bbbaf57358dfd2e91b4a13114330257b43484e5ba2c471f959590995ecfb3a65d4b1bfaeb6eb39e34d3ba58e1dbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f13f64d7b97276146a3b9bb11457f12185ffa847ed05f84d4325b608cde27cd35415f3ccdda0c649cd639cdeeec098deca37c27238cee118a9fee4eb7f767bb7bdb07e79f4eb709f507f7777676a7f7a71901b0afbc11fa114ac43a420efbed714bdfecedeced6defdcdfdedb79b3b3f768e7e0d1fec1f8defd07bb7b3b0f7e8a9a9644b92faa59715e001ab5bf2502e17b512cfc2637a3f24b","7ec9ff03b60f704a5a030000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -129,9 +135,9 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - 'ea4b6d6d-c1f3-404e-b044-25592c96b3da', + 'acfb398f-7b1c-471d-a057-f5612d4c4eb4', 'x-ms-ratelimit-remaining-subscription-resource-requests', - '11999', + '11998', 'Request-Context', 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', 'Strict-Transport-Security', @@ -139,15 +145,15 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '445edd20-c98f-458b-acad-d87b0359d060', + 'fafba577-d747-459c-9fe7-e45d54991475', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - 'ea4b6d6d-c1f3-404e-b044-25592c96b3da', + 'acfb398f-7b1c-471d-a057-f5612d4c4eb4', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062356Z:ea4b6d6d-c1f3-404e-b044-25592c96b3da', + 'KOREASOUTH:20220520T020914Z:acfb398f-7b1c-471d-a057-f5612d4c4eb4', 'Date', - 'Tue, 01 Mar 2022 06:23:56 GMT' + 'Fri, 20 May 2022 02:09:14 GMT' ]); diff --git a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_list_test.js b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_list_test.js index c84b214ce78c..9bd7ff55e1ec 100644 --- a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_list_test.js +++ b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_apps_list_test.js @@ -23,19 +23,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '17f397b0-cc05-413e-95af-cd76d33c1f00', + '88203ea8-a370-493b-afec-8f2ccd593c00', 'x-ms-ests-server', - '2.1.12529.16 - KRSLR1 ProdSlices', + '2.1.12744.11 - SEASLR1 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=Ai5xoQoJXARHg17TCF9up_4; expires=Thu, 31-Mar-2022 06:23:56 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Arjk-8nXLkNJiky1WRwpKow; expires=Sun, 19-Jun-2022 02:09:15 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrn7QzjsQf11-pW3gYo6mFOzX0zsit0Kuf90CkpnkaFcI94A-ndbfSRYBq7BSnre1L24MGpP8FOoz4Ye5-jyvl1DG6xbZKxRWtdLMtnoqaYDJ9yTLUkklTi7h1X4wPD7aWetNuAGt0jtT0fItr_dYy4By_J4K1qD8PahvkjXzedPMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr_6ZiWTEpnE1UAYUJj7PRzghYM2iYvjbg0aGNVZ38yH38-N285eS1Q4ExV09OOwfIc9VJ5g9LA3LdjksFYaROHOrUhntaPLsoo-UWdusfS900gHl3DH2IXHsU6nn90v65UmW9uTYcd2l466cLfvyC2NyXClOAin_e5t27p1uuS6kgAA; 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', - 'Tue, 01 Mar 2022 06:23:56 GMT', + 'Fri, 20 May 2022 02:09:14 GMT', 'Content-Length', '980' ]); @@ -58,25 +60,27 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '17f397b0-cc05-413e-95af-cd76d53c1f00', + 'd581385c-22eb-4ab0-aa0a-1641ad9f5400', 'x-ms-ests-server', - '2.1.12529.16 - KRSLR1 ProdSlices', + '2.1.12794.4 - KRSLR2 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AiP1wEdvBC1AnIoOWEd76m8; expires=Thu, 31-Mar-2022 06:23:57 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AoxNYWbuuBxJgNylYHua89k; expires=Sun, 19-Jun-2022 02:09:15 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrI1IH2K2DhID6w6l9yonUunxUVtifKoOPh_mXSn58j4YbsAySTJLLvycFExyBDM9SdAhioxD1Rv8VpsVAecCsmtiE3tVBgslFwaIT-nzYeFxt_HB-nDh8esXbmp_Gmej7VUXmp8OMW6D57cs13AOf5_Zu-2U_A0rG0Vox9-Nh6f8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrle3fxyykDiJYgAV4cPR5vi3z3dBqIMovTDD56XMkexMg6wNPf5dl8prUDiTIKdvsF1NOn1l7BQmZZABfKGdE0XTeaCloZn07AkukdQOwbaUwRfa6NxlRRzRNTVOSD1sVOgiYkI8YthuNSwp1-XY51ZvnRA-Z1RTvUQq8rPqUF6wgAA; 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', - 'Tue, 01 Mar 2022 06:23:56 GMT', + 'Fri, 20 May 2022 02:09:14 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.5.0&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=3e7f9950-2279-4692-9c8d-b63af1de83a5&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") + .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.9.0&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=57470dec-0421-44eb-ad34-8bbab1f33845&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', @@ -93,19 +97,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '68c52ac1-0210-4f9e-bb6f-e999ac5b1c00', + 'b737c047-3af9-4294-a503-dc27b8e81f00', 'x-ms-ests-server', - '2.1.12529.16 - SEASLR2 ProdSlices', + '2.1.12794.4 - SEASLR1 ProdSlices', 'x-ms-clitelem', '1,0,0,,', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AkeTPkMEWsVDvISjxNePmXDLj78gAQAAAPyyr9kOAAAA; expires=Thu, 31-Mar-2022 06:23:57 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AjElh1McTcJCtz3pzYnpY-jLj78gAQAAAEvvGNoOAAAA; expires=Sun, 19-Jun-2022 02:09:16 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', - 'Tue, 01 Mar 2022 06:23:56 GMT', + 'Fri, 20 May 2022 02:09:15 GMT', 'Content-Length', '1393' ]); @@ -113,7 +119,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://management.azure.com:443', {"encodedQueryParams":true}) .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/Spring/myservicexxx/apps') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1aaae5679dd1679f3d1a35ffc51369b55cb936a795e5cc8dfab55594cb3b6309fae6bfee3755e5f165382f08b7fc9e8a346fe78955f144d5b5fe343fa74b59ed0ab1f3d3acfca26a73febeab268e8d56279f1bacd5a7af7a3d7ebe934cf67f9eca3d147e7bf68b6a48f16d70aedddbb77e3ec07eb3a5f14d3bad20f9b715151db79dbae9a2f972575a5d0db7cb1aaeaacbe7e5a346f09818f9ae207f9d9f2f3271f3dba3ffa6851ad97edcbac9d530777dbc5ea23a097d70da19b2fdbfe2b3b9d575c5bbc992fb349999f2e676f2afcf3fcb562415fb5d72b8ceb0b46b93a6fc7c7abd5cb326bcfab7a71f7f5aaa6b1df25923634866246e08a9686b05c97e5e8a3b21232d3eb79d6b46b69437fdd6dd693665a172b7cdbdc7db877fef0feece07cfbdef4d307dbfbbb7bfbdb0f77a70fb60fa6e73b0fa6b3c9f9defeeedd3a6faa753dcd3fafabf5aab9bbb8fe69c2be69eff224cc68347737a2e84f02e34b9fd00ffa8b905a660b8cd1fba4b926e88ba7599b818cd33aa7d99d3da1917d94ef6484d13d42f1d3dde9f6fe6c776ffbe0fcd3e936a1fee0fececeeef4fe342300f69537423f42895847c861bf3d6ee99bbd9dbdbded9d7bdb3bbb6f763e7db477efd1bd7be3fb0ff7ef7f7aefc14f51d39228f745352bce0b40a3f6b744207c2f8a85dfe466547ec92ff9fe","2ff97f005fb6a0a666030000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1aaae5679dd1679f3d1a35ffc51369b55cb936a795e5cc8dfab55594cb3b6309fae6bfee3755e5f165382f08b7fc9e8a346fe78955f144d5b5fe343fa74b59ed0ab1f3d3acfca26a73febeab268e8d56279f1bacd5a7af7a3d7ebe934cf67f9eca3d147e7bf68b6a48f16d70aedddbb77e3ec07eb3a5f14d3bad20f9b715151db79dbae9a2f972575a5d0db7cb1aaeaacbe7e5a346f09818f9ae207f9d9f2f3271f3dba3ffa6851ad97edcbac9d530777dbc5ea23a097d70da19b2fdbfe2b3b9d575c5bbc992fb349999f2e676f2afcf3fcb562415fb5d72b8ceb0b46b93a6fc7c7abd5cb326bcfab7a71f7f5aaa6b1df25923634866246e08a9686b05c97e5e8a3b21232d3eb79d6b46b69437fdd6dd693665a172b7cdbdc7db877fef0feece07cfbdef4d307dbfbbb7bfbdb0f77a70fb60fa6e73b0fa6b3c9f9defeeedd3a6faa753dcd3fafabf5aab9bbb8fe69c2be69eff224cc68347737a2e84f02e34b9fd00ffa8b905a660b8cd1fba4b926e88ba7599b818cd33aa7d99d3da1917d94ef6484d13d42f1d3dde9f6fe6c776ffbe0fcd3e936a1fee0fececeeef4fe342300f69537423f42895847c861bf3d6ee99bbd9dbdbded9dfbdb7b3b6f76f61eed1c3cda3f18dfbbff60776fe7c14f51d39228f745352bce0b40a3f6b744207c2f8a85dfe466547ec92ff9fe2f","f97f00b17d05fc66030000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -129,9 +135,9 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - 'fd95b062-f799-41e6-9045-99d79a7fbc6a', + 'ae544109-4d1c-4ce6-a906-0fa78bc76f6a', 'x-ms-ratelimit-remaining-subscription-resource-requests', - '11998', + '11997', 'Request-Context', 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', 'Strict-Transport-Security', @@ -139,15 +145,15 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '9d00189f-d1c6-4f64-a2ee-5f2d96cc1361', + 'ba34aed4-09cf-4b69-bc50-229f01dd1b18', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - 'fd95b062-f799-41e6-9045-99d79a7fbc6a', + 'ae544109-4d1c-4ce6-a906-0fa78bc76f6a', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062357Z:fd95b062-f799-41e6-9045-99d79a7fbc6a', + 'KOREASOUTH:20220520T020916Z:ae544109-4d1c-4ce6-a906-0fa78bc76f6a', 'Date', - 'Tue, 01 Mar 2022 06:23:57 GMT' + 'Fri, 20 May 2022 02:09:16 GMT' ]); diff --git a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_create_test.js b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_create_test.js index 1f3a3fdc2036..457bbf4f4105 100644 --- a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_create_test.js +++ b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_create_test.js @@ -23,19 +23,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'f22f8efa-dd97-4755-adcd-a105ace71f00', + '982570e9-f746-4bbf-9899-f21f1d445700', 'x-ms-ests-server', - '2.1.12529.16 - KRSLR2 ProdSlices', + '2.1.12744.11 - SEASLR2 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AmvVMh0sxFFJuVJH4MC0PRw; expires=Thu, 31-Mar-2022 06:19:17 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Aqe4hlgjZ6VMj8CPjUOB6gU; expires=Sun, 19-Jun-2022 02:04:58 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrv6XwCchnoWThR_CQBHzt9zXaIoT3FWsYAI9s7zqE0SKHs9xKEUHzx8R4ciSO1UfO3VSRVbzwM6NZ3kbul126sz2nLDdRXWzltzPkOPazsR5Ycy7NmgOv2_tQM0rUsoZFJxjMGCd8s28F-PmBtjvfDlXDsaHcEPcyCfzyWoIrfAUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr3pbd2K0rcejKkaySa1eLbxKe8WwlqMakCPil8RbpSVsNuhShqa_tox2aer4AYdJU_cTdOqbt6tqdHOpYwbdLPsfFSYPG95UGBMJ61JnWbUZ1m7Fd5KRLlCo9G3sn0zGpK26vyNsVj_1gpWRuD2FDjCuLo4_0MO5yLeBDvoJIvE0gAA; 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', - 'Tue, 01 Mar 2022 06:19:16 GMT', + 'Fri, 20 May 2022 02:04:57 GMT', 'Content-Length', '980' ]); @@ -58,25 +60,27 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'ea1350ec-065b-473b-a5e0-31444edf1d00', + '14feca36-8924-4244-9176-928d2ee81000', 'x-ms-ests-server', - '2.1.12529.16 - KRSLR2 ProdSlices', + '2.1.12794.4 - SEASLR1 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=ApNryUTQyItBoNG1giQCKE0; expires=Thu, 31-Mar-2022 06:19:17 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AkR8xM5C-SFOn5s5nwb4ypw; expires=Sun, 19-Jun-2022 02:04:58 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1svgsckXE6p7b4VZs3LaYA8Oo__zfsW0HYP_-yrCgCDIVsEu70L6nYhJuuH4ufB3K5GetQIARcSlprkNicSlC_I8AQZ2nOx9UHtKhBQoL4L6C8BbjBcG43bJeTMdaJ9QomNKlWpmBQ-fjDAO-OiH9u-9m1aIabhl7RoCLEfpaPIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrwL1DhtBibSF_EFBO3vKC7frGZSmwzquAeZi0yjJyz7wMlM4a63DHq6ceIOumAsMdIchIkuGqegYx4NVNvOA3Vqbq8CEGx-_vxeH3RNmlGs-HErWYh92cpsfes3eElAGndItAQBXgc1Rd13E1PkUjNc9ZtcMppYH2GIr2LDM9jO8gAA; 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', - 'Tue, 01 Mar 2022 06:19:16 GMT', + 'Fri, 20 May 2022 02:04:57 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.5.0&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=03c85206-a425-4dc5-8cd2-187cc249fb5f&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") + .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.9.0&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=4c3f211b-2266-4890-82db-51ae7832447c&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', @@ -93,19 +97,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '548eb271-eb2a-4e0f-9967-fd67d2b21c00', + '14feca36-8924-4244-9176-928d3ce81000', 'x-ms-ests-server', - '2.1.12529.16 - SEASLR2 ProdSlices', + '2.1.12794.4 - SEASLR1 ProdSlices', 'x-ms-clitelem', '1,0,0,,', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AjPxvSNNLBJGv6_FOPne5MjLj78gAQAAAOWxr9kOAAAA; expires=Thu, 31-Mar-2022 06:19:17 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=At7W0ndiB6lEnJXgaJjIGOnLj78gAQAAAEruGNoOAAAA; expires=Sun, 19-Jun-2022 02:04:58 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', - 'Tue, 01 Mar 2022 06:19:16 GMT', + 'Fri, 20 May 2022 02:04:57 GMT', 'Content-Length', '1393' ]); @@ -113,19 +119,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://management.azure.com:443', {"encodedQueryParams":true}) .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/Spring/myservicexxx', {"location":"eastus","tags":{"key1":"value1"},"sku":{"name":"S0","tier":"Standard"}}) .query(true) - .reply(201, {"properties":{"provisioningState":"Creating","zoneRedundant":false,"version":3,"serviceId":"ada807321975479fb1fa2dd70349eac9","powerState":"Running","fqdn":"myservicexxx.azuremicroservices.io"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus","tags":{"key1":"value1"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/Spring/myservicexxx","name":"myservicexxx","systemData":{"createdBy":"azure_client_id","createdByType":"Application","createdAt":"2022-03-01T06:19:24.885235Z","lastModifiedBy":"azure_client_id","lastModifiedByType":"Application","lastModifiedAt":"2022-03-01T06:19:24.885235Z"}}, [ + .reply(201, {"properties":{"provisioningState":"Creating","zoneRedundant":false,"version":3,"serviceId":"9c5dbe77743e46628e790e477f1ca99f"},"type":"Microsoft.AppPlatform/Spring","sku":{"name":"S0","tier":"Standard"},"location":"eastus","tags":{"key1":"value1"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/Spring/myservicexxx","name":"myservicexxx","systemData":{"createdBy":"azure_client_id","createdByType":"Application","createdAt":"2022-05-20T02:05:07.8054008Z","lastModifiedBy":"azure_client_id","lastModifiedByType":"Application","lastModifiedAt":"2022-05-20T02:05:07.8054008Z"}}, [ 'Cache-Control', 'no-cache', 'Pragma', 'no-cache', 'Content-Length', - '749', + '684', 'Content-Type', 'application/json; charset=utf-8', 'Expires', '-1', 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationResults/015120df-8bd1-465d-b57d-f65069959052/Spring/myservicexxx?api-version=2022-01-01-preview', + 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationResults/58b966b5-0b45-4fdd-82af-ea38d06c4f5a/Spring/myservicexxx?api-version=2022-04-01', 'x-ms-ratelimit-remaining-subscription-resource-requests', '1199', 'Request-Context', @@ -135,27 +141,27 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '3352f89f-781c-49e6-baff-aae1a984fe48', + '3d101192-3357-43fa-81e9-af98729dd825', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Azure-AsyncOperation', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052?api-version=2022-01-01-preview', + 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a?api-version=2022-04-01', 'Server', 'nginx/1.17.7', 'x-ms-request-id', - 'f77ae050-0b30-47bc-b667-951f82cfe748', + 'd6030e23-ba3a-49eb-b87e-67ef9c376651', 'x-ms-correlation-request-id', - 'f77ae050-0b30-47bc-b667-951f82cfe748', + 'd6030e23-ba3a-49eb-b87e-67ef9c376651', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T061930Z:f77ae050-0b30-47bc-b667-951f82cfe748', + 'KOREASOUTH:20220520T020512Z:d6030e23-ba3a-49eb-b87e-67ef9c376651', 'Date', - 'Tue, 01 Mar 2022 06:19:30 GMT' + 'Fri, 20 May 2022 02:05:11 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -173,7 +179,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '47b93834-671d-4882-a5c4-927937300eb0', + '19921273-d070-4c82-9500-122f5e4e64ee', 'x-ms-ratelimit-remaining-subscription-reads', '11999', 'Request-Context', @@ -183,23 +189,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '4bb01a39-1a3d-43da-b29d-d09ebeab7841', + '72dfdc96-399e-4e6d-a5fb-1b27358c4f9b', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '47b93834-671d-4882-a5c4-927937300eb0', + '19921273-d070-4c82-9500-122f5e4e64ee', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T061930Z:47b93834-671d-4882-a5c4-927937300eb0', + 'KOREASOUTH:20220520T020512Z:19921273-d070-4c82-9500-122f5e4e64ee', 'Date', - 'Tue, 01 Mar 2022 06:19:30 GMT' + 'Fri, 20 May 2022 02:05:11 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -217,7 +223,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - 'dfe79b74-eb7b-48c6-a986-0063833367e3', + '3f5342b4-e9d4-46be-b897-9d3663796f4b', 'x-ms-ratelimit-remaining-subscription-reads', '11998', 'Request-Context', @@ -227,23 +233,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '0a88a082-5202-4ef2-b065-e01da026c150', + '23fd873e-a3be-4736-96af-cf4baf9a7a4a', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - 'dfe79b74-eb7b-48c6-a986-0063833367e3', + '3f5342b4-e9d4-46be-b897-9d3663796f4b', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T061941Z:dfe79b74-eb7b-48c6-a986-0063833367e3', + 'KOREASOUTH:20220520T020513Z:3f5342b4-e9d4-46be-b897-9d3663796f4b', 'Date', - 'Tue, 01 Mar 2022 06:19:40 GMT' + 'Fri, 20 May 2022 02:05:12 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -261,7 +267,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '179c7e42-047b-4060-b810-594ad5589e1a', + '9258a2ef-6ddb-4687-adba-819b2268cb8c', 'x-ms-ratelimit-remaining-subscription-reads', '11997', 'Request-Context', @@ -271,23 +277,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'd1395597-9906-4cc3-952b-c72fa29ec67b', + '729768e0-00a8-493f-b9b1-59cae0a5dd71', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '179c7e42-047b-4060-b810-594ad5589e1a', + '9258a2ef-6ddb-4687-adba-819b2268cb8c', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T061951Z:179c7e42-047b-4060-b810-594ad5589e1a', + 'KOREASOUTH:20220520T020523Z:9258a2ef-6ddb-4687-adba-819b2268cb8c', 'Date', - 'Tue, 01 Mar 2022 06:19:51 GMT' + 'Fri, 20 May 2022 02:05:23 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -305,7 +311,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - 'f8d69719-1809-4ef4-a699-39c1167b1730', + '1ebd674e-b366-4bf4-8c2d-2169ad95534c', 'x-ms-ratelimit-remaining-subscription-reads', '11996', 'Request-Context', @@ -315,23 +321,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'b6672dcb-2c63-4c84-b0b0-9914f7fa8c15', + '45e137fb-aef2-4f70-8e3d-ce609a4212cf', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - 'f8d69719-1809-4ef4-a699-39c1167b1730', + '1ebd674e-b366-4bf4-8c2d-2169ad95534c', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062002Z:f8d69719-1809-4ef4-a699-39c1167b1730', + 'KOREASOUTH:20220520T020534Z:1ebd674e-b366-4bf4-8c2d-2169ad95534c', 'Date', - 'Tue, 01 Mar 2022 06:20:01 GMT' + 'Fri, 20 May 2022 02:05:33 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -349,7 +355,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '4dd7003b-3ec4-4132-a7e9-b37760719aad', + '93086bf5-5d76-43ac-89fd-dd88e17bf6e4', 'x-ms-ratelimit-remaining-subscription-reads', '11995', 'Request-Context', @@ -359,23 +365,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'a7b144ee-eed3-41f2-9fe5-46c891cd11f6', + '17e9ee43-a90c-43c1-90c2-95ddf6b1eb9b', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '4dd7003b-3ec4-4132-a7e9-b37760719aad', + '93086bf5-5d76-43ac-89fd-dd88e17bf6e4', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062012Z:4dd7003b-3ec4-4132-a7e9-b37760719aad', + 'KOREASOUTH:20220520T020544Z:93086bf5-5d76-43ac-89fd-dd88e17bf6e4', 'Date', - 'Tue, 01 Mar 2022 06:20:11 GMT' + 'Fri, 20 May 2022 02:05:44 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -393,7 +399,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '4ea8fcb4-2b42-4427-b478-8cb6fd16bbe6', + '5b715c72-9cf1-43f9-812f-21066fb7ecb5', 'x-ms-ratelimit-remaining-subscription-reads', '11994', 'Request-Context', @@ -403,23 +409,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'c9b348da-14d4-49c3-94bd-ceeb91e9da35', + '2c95b333-9828-4f27-85cd-66ba4699d0cf', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '4ea8fcb4-2b42-4427-b478-8cb6fd16bbe6', + '5b715c72-9cf1-43f9-812f-21066fb7ecb5', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062022Z:4ea8fcb4-2b42-4427-b478-8cb6fd16bbe6', + 'KOREASOUTH:20220520T020555Z:5b715c72-9cf1-43f9-812f-21066fb7ecb5', 'Date', - 'Tue, 01 Mar 2022 06:20:22 GMT' + 'Fri, 20 May 2022 02:05:54 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -437,7 +443,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - 'fd1c9b8c-82b6-482e-b682-4c29cbab0886', + 'bf5d481a-4c3c-41e6-8fad-2f924b8af345', 'x-ms-ratelimit-remaining-subscription-reads', '11993', 'Request-Context', @@ -447,23 +453,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '6f527ed5-cf30-4e21-aa72-2dd75a785178', + '808a7f6a-283e-4cdf-a5c7-9124cc0ea768', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - 'fd1c9b8c-82b6-482e-b682-4c29cbab0886', + 'bf5d481a-4c3c-41e6-8fad-2f924b8af345', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062033Z:fd1c9b8c-82b6-482e-b682-4c29cbab0886', + 'KOREASOUTH:20220520T020605Z:bf5d481a-4c3c-41e6-8fad-2f924b8af345', 'Date', - 'Tue, 01 Mar 2022 06:20:32 GMT' + 'Fri, 20 May 2022 02:06:05 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -481,7 +487,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '48ec955d-5150-44af-a0c3-ef741e22a5a4', + '496758e2-3a6b-4555-9ff0-b39b49b692d7', 'x-ms-ratelimit-remaining-subscription-reads', '11992', 'Request-Context', @@ -491,23 +497,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '21bcef42-6810-4648-aea4-6c38ba3e6518', + '5facb50d-cf9f-4894-9a49-b5f96d6c882d', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '48ec955d-5150-44af-a0c3-ef741e22a5a4', + '496758e2-3a6b-4555-9ff0-b39b49b692d7', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062043Z:48ec955d-5150-44af-a0c3-ef741e22a5a4', + 'KOREASOUTH:20220520T020615Z:496758e2-3a6b-4555-9ff0-b39b49b692d7', 'Date', - 'Tue, 01 Mar 2022 06:20:43 GMT' + 'Fri, 20 May 2022 02:06:15 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -525,7 +531,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '1e363cd5-feae-4851-ab1b-657eb0cae414', + 'b36fb305-2a13-42b3-91ff-c453b0acd229', 'x-ms-ratelimit-remaining-subscription-reads', '11991', 'Request-Context', @@ -535,23 +541,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'b19e5a80-b9d8-4fdf-a562-1cfc22d49b44', + '7922275c-d2f9-4ac9-8508-e562d02de3ff', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '1e363cd5-feae-4851-ab1b-657eb0cae414', + 'b36fb305-2a13-42b3-91ff-c453b0acd229', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062054Z:1e363cd5-feae-4851-ab1b-657eb0cae414', + 'KOREASOUTH:20220520T020626Z:b36fb305-2a13-42b3-91ff-c453b0acd229', 'Date', - 'Tue, 01 Mar 2022 06:20:53 GMT' + 'Fri, 20 May 2022 02:06:25 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -569,7 +575,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '68e31d0a-7e44-48dd-b31c-ae8d09e62ab4', + 'f452976e-99d7-4235-a416-e472b643222d', 'x-ms-ratelimit-remaining-subscription-reads', '11990', 'Request-Context', @@ -579,23 +585,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'e40064e9-51c4-4f3d-bbdf-1807da57266b', + '3bc92bdf-65eb-4617-8171-7872b3ba84de', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '68e31d0a-7e44-48dd-b31c-ae8d09e62ab4', + 'f452976e-99d7-4235-a416-e472b643222d', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062104Z:68e31d0a-7e44-48dd-b31c-ae8d09e62ab4', + 'KOREASOUTH:20220520T020636Z:f452976e-99d7-4235-a416-e472b643222d', 'Date', - 'Tue, 01 Mar 2022 06:21:04 GMT' + 'Fri, 20 May 2022 02:06:36 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -613,7 +619,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '18fd4af7-2958-451b-b1bb-0b38d4595cf6', + '15bb5166-a359-4522-8194-09677cca0bcc', 'x-ms-ratelimit-remaining-subscription-reads', '11989', 'Request-Context', @@ -623,23 +629,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'f4664661-98fe-4ae3-9da9-62c1de77d30f', + '5a754704-31a1-4104-a6a9-242c8ce426ed', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '18fd4af7-2958-451b-b1bb-0b38d4595cf6', + '15bb5166-a359-4522-8194-09677cca0bcc', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062115Z:18fd4af7-2958-451b-b1bb-0b38d4595cf6', + 'KOREASOUTH:20220520T020647Z:15bb5166-a359-4522-8194-09677cca0bcc', 'Date', - 'Tue, 01 Mar 2022 06:21:14 GMT' + 'Fri, 20 May 2022 02:06:46 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -657,7 +663,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '0696a935-c8ec-4fa6-88a5-ed1a9f8ff525', + '8a419a2e-fe07-43a4-a9d5-93706cc22caf', 'x-ms-ratelimit-remaining-subscription-reads', '11988', 'Request-Context', @@ -667,23 +673,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'd2216a5a-14a8-45c7-ae52-02819ad0b5de', + '118e0ae6-3ca3-4bc8-aa57-433a08a408f2', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '0696a935-c8ec-4fa6-88a5-ed1a9f8ff525', + '8a419a2e-fe07-43a4-a9d5-93706cc22caf', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062125Z:0696a935-c8ec-4fa6-88a5-ed1a9f8ff525', + 'KOREASOUTH:20220520T020658Z:8a419a2e-fe07-43a4-a9d5-93706cc22caf', 'Date', - 'Tue, 01 Mar 2022 06:21:24 GMT' + 'Fri, 20 May 2022 02:06:57 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -701,7 +707,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - 'bfdce30a-c5e0-43e2-88f5-b2d0ba4b0240', + '3f3d3ccd-9e5c-45e3-b900-3689a71603fd', 'x-ms-ratelimit-remaining-subscription-reads', '11987', 'Request-Context', @@ -711,23 +717,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'e4a65a9b-f01a-473b-8762-f0e1d52ef26e', + '4beeff23-7e0e-4c35-90e8-3cdafddb1103', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - 'bfdce30a-c5e0-43e2-88f5-b2d0ba4b0240', + '3f3d3ccd-9e5c-45e3-b900-3689a71603fd', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062136Z:bfdce30a-c5e0-43e2-88f5-b2d0ba4b0240', + 'KOREASOUTH:20220520T020708Z:3f3d3ccd-9e5c-45e3-b900-3689a71603fd', 'Date', - 'Tue, 01 Mar 2022 06:21:36 GMT' + 'Fri, 20 May 2022 02:07:08 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -745,7 +751,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - 'f8764317-6d58-4e85-8353-52f0fcea3d92', + 'ed3176ef-1626-4015-bf41-049e2de47f7d', 'x-ms-ratelimit-remaining-subscription-reads', '11986', 'Request-Context', @@ -755,23 +761,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '36f3d0de-e9e3-46a6-8672-b35e962d043b', + '26b6a0b7-2d26-4765-b22d-1db40ed1fc25', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - 'f8764317-6d58-4e85-8353-52f0fcea3d92', + 'ed3176ef-1626-4015-bf41-049e2de47f7d', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062146Z:f8764317-6d58-4e85-8353-52f0fcea3d92', + 'KOREASOUTH:20220520T020719Z:ed3176ef-1626-4015-bf41-049e2de47f7d', 'Date', - 'Tue, 01 Mar 2022 06:21:46 GMT' + 'Fri, 20 May 2022 02:07:18 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -789,7 +795,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '113a5a4c-6272-4d63-8e2f-ce066fd4c2a8', + '458d5745-1bec-42b4-983a-184f7969d4ed', 'x-ms-ratelimit-remaining-subscription-reads', '11985', 'Request-Context', @@ -799,23 +805,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '6f66264e-1877-4d63-84e9-9da14f5d538b', + 'f5a34d63-ae37-4dc0-b119-18457df9b9df', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '113a5a4c-6272-4d63-8e2f-ce066fd4c2a8', + '458d5745-1bec-42b4-983a-184f7969d4ed', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062157Z:113a5a4c-6272-4d63-8e2f-ce066fd4c2a8', + 'KOREASOUTH:20220520T020730Z:458d5745-1bec-42b4-983a-184f7969d4ed', 'Date', - 'Tue, 01 Mar 2022 06:21:57 GMT' + 'Fri, 20 May 2022 02:07:29 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -833,7 +839,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '99adcae4-a766-4b70-b03e-e21ed36d69d4', + '14b81ea0-a56f-4236-aad6-8de31321aa5f', 'x-ms-ratelimit-remaining-subscription-reads', '11984', 'Request-Context', @@ -843,23 +849,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'f1658bf6-62f1-4f6b-b6c9-203ae5d6ee6a', + '5b9a42b4-115d-4109-9737-f8b6f8b363b4', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '99adcae4-a766-4b70-b03e-e21ed36d69d4', + '14b81ea0-a56f-4236-aad6-8de31321aa5f', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062207Z:99adcae4-a766-4b70-b03e-e21ed36d69d4', + 'KOREASOUTH:20220520T020741Z:14b81ea0-a56f-4236-aad6-8de31321aa5f', 'Date', - 'Tue, 01 Mar 2022 06:22:07 GMT' + 'Fri, 20 May 2022 02:07:40 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -877,7 +883,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - 'aa41fb91-79c8-42a8-a444-e760c140efeb', + '63823521-77c0-47b8-978d-5cd6510fb0f7', 'x-ms-ratelimit-remaining-subscription-reads', '11983', 'Request-Context', @@ -887,23 +893,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'dd6552d9-46c1-44b3-b930-c68c7d044d82', + 'cfa5644f-d718-4b35-9459-4cebdb89e139', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - 'aa41fb91-79c8-42a8-a444-e760c140efeb', + '63823521-77c0-47b8-978d-5cd6510fb0f7', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062218Z:aa41fb91-79c8-42a8-a444-e760c140efeb', + 'KOREASOUTH:20220520T020752Z:63823521-77c0-47b8-978d-5cd6510fb0f7', 'Date', - 'Tue, 01 Mar 2022 06:22:17 GMT' + 'Fri, 20 May 2022 02:07:51 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -921,7 +927,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '5b87d680-28ef-4de0-af51-3118c17325a0', + '9c74d21f-cedd-4c19-be28-3721b8ccaa38', 'x-ms-ratelimit-remaining-subscription-reads', '11982', 'Request-Context', @@ -931,23 +937,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'b97c5f64-e2a2-47ed-bb51-3f88672acfdf', + '6074e481-7e7f-48e9-a7a2-27a9da94be70', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '5b87d680-28ef-4de0-af51-3118c17325a0', + '9c74d21f-cedd-4c19-be28-3721b8ccaa38', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062228Z:5b87d680-28ef-4de0-af51-3118c17325a0', + 'KOREASOUTH:20220520T020803Z:9c74d21f-cedd-4c19-be28-3721b8ccaa38', 'Date', - 'Tue, 01 Mar 2022 06:22:28 GMT' + 'Fri, 20 May 2022 02:08:02 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -965,7 +971,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '39f82044-1386-4d62-9b9a-8a9ee323a346', + 'cf34848d-f914-4399-ae83-8157a8bdd9b7', 'x-ms-ratelimit-remaining-subscription-reads', '11981', 'Request-Context', @@ -975,23 +981,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'b41f3244-c4d8-4a9b-a891-95245848f056', + '6196559e-f03f-4bc9-b52c-ce0985c01b28', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '39f82044-1386-4d62-9b9a-8a9ee323a346', + 'cf34848d-f914-4399-ae83-8157a8bdd9b7', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062239Z:39f82044-1386-4d62-9b9a-8a9ee323a346', + 'KOREASOUTH:20220520T020813Z:cf34848d-f914-4399-ae83-8157a8bdd9b7', 'Date', - 'Tue, 01 Mar 2022 06:22:38 GMT' + 'Fri, 20 May 2022 02:08:13 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fb57ebe5b2585ec84775fba660287b3b7b7bdb3bf7b7f776deecec3ddab9ff6877677cefd3fd03fadf4f7df4","4bfe1ff527f2de3e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -1009,7 +1015,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '9339924d-f3ce-485d-add6-ed6af6b4c197', + 'b25d30b9-2de5-4244-95d8-cf6bf442ba6d', 'x-ms-ratelimit-remaining-subscription-reads', '11980', 'Request-Context', @@ -1019,23 +1025,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'b58731d6-598c-41fd-b742-94fe7717d1ae', + 'cb8abfc8-18d5-44d2-91c7-3b7b7c663871', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '9339924d-f3ce-485d-add6-ed6af6b4c197', + 'b25d30b9-2de5-4244-95d8-cf6bf442ba6d', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062250Z:9339924d-f3ce-485d-add6-ed6af6b4c197', + 'KOREASOUTH:20220520T020824Z:b25d30b9-2de5-4244-95d8-cf6bf442ba6d', 'Date', - 'Tue, 01 Mar 2022 06:22:49 GMT' + 'Fri, 20 May 2022 02:08:24 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/58b966b5-0b45-4fdd-82af-ea38d06c4f5a') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1f4c1e7efae9e4fef6ce64fffef6fef96cb67db0979d6fe7d9bd83d9cea7d3fdf3fbd947a38f96d922a721ddb275c39d52fbd7ebe934cf67f94c3eacdb3705c3d9dbd9dbdbdeb9bfbdb7f36667efd1cefd47bb3be37b9fee1fd0ff7e8a9ae6cb59bce1c1a37bbbe3834f1fdcbff7e0fe4f7df4","4bfe1f602396c969010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -1048,12 +1054,10 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'gzip', 'Expires', '-1', - 'Retry-After', - '0', 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '48bc59c5-1c05-4492-8a11-5ab789784540', + 'be7526bf-f9de-40f2-bcd4-e2a3962bc8ca', 'x-ms-ratelimit-remaining-subscription-reads', '11979', 'Request-Context', @@ -1063,23 +1067,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '17d667ff-2e85-4ff8-89ea-bb503fa69a61', + 'b395b3e3-7a0d-4d3c-9ede-421f4b28986d', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '48bc59c5-1c05-4492-8a11-5ab789784540', + 'be7526bf-f9de-40f2-bcd4-e2a3962bc8ca', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062301Z:48bc59c5-1c05-4492-8a11-5ab789784540', + 'KOREASOUTH:20220520T020835Z:be7526bf-f9de-40f2-bcd4-e2a3962bc8ca', 'Date', - 'Tue, 01 Mar 2022 06:23:00 GMT' + 'Fri, 20 May 2022 02:08:35 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/Spring/myservicexxx') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff6abd5c16cb0bf9a86edf140c656f676f6f7be7def6ceee9b9d4f1fed3e7cb4f7607c7f7f77ffde4f7df44b","fe1fe98047e93c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147abba5ae5755be4cd478ff8afcba229aa65b1bc78dd666dfed1a38f5eafa7d33c9fe5b38f461ffda05ae6aff2d97a39cb96ed478fceb3b2c9471f5de635def9e8d1bdd1474d5e5f16d3fc6c466f3e9cde9f4df2070f1eecdfcbf73ffd74ef207ff07027df7ff0e07c779a3d7c784e0097797b55d56f5fd6d57951526fbff8a36add4e2aeae0eca560b49e94c594fff8de477b3be383fdf1fdf1fea7f4eafdbdf1dedea7e3bdfd9df1eefefe47dfff25bfe4978c3e6aaf5704e5a32f8a695d35d5793b3e5ead5e96597b5ed58bbbaf57358d8b5e6ddeae017b992dd0f8f50e7d4414a8f17b9bd1d8ead94704abaca659cbe3fa28cf9a76dda059764198fce28fdee6d7bbf4f96556aef35d342e30e0bbcd7ad24ceb6285d79abb0ff7ce1fde9f1d9c6fdf9b7efa607b7f776f7ffbe1eef4c1f6c1f47ce7c1743639dfdbdfbd5be74db5aea7f9e775b55e357717d73fddb479d3dee5a9981165ef6e1a0cb5578abf7bf78ef0d321753e6dae09e6e269d666c07d5ae734b3b327d7d430dfc9088f7b84d8a7bbd3edfdd9eedef6c1f9a7d36d42f8c1fd9d9ddde9fd694600ec2b6f84be8408cd8a50c77e7b4c1c4153b4b7b7bd737f7b6fe7cdcedea39dfb8f761e8c0f76eeefefec1cfc14352d89905f54b3e2bc00346a7f4b04c2f7a258f84d6e46e597","fc92ff07482473a4fc020000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -1092,56 +1096,12 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'gzip', 'Expires', '-1', - 'Retry-After', - '0', 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - 'e87346bb-3298-4469-9d31-2d8a2c0046d1', - 'x-ms-ratelimit-remaining-subscription-reads', - '11978', - 'Request-Context', - 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'x-ms-client-request-id', - 'fac48d81-18b4-402f-a822-f769a693452e', - 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', - 'Server', - 'nginx/1.17.7', - 'x-ms-correlation-request-id', - 'e87346bb-3298-4469-9d31-2d8a2c0046d1', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062311Z:e87346bb-3298-4469-9d31-2d8a2c0046d1', - 'Date', - 'Tue, 01 Mar 2022 06:23:10 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/015120df-8bd1-465d-b57d-f65069959052') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf66777776efefeeedccceb70f26b3ddedfd4fefcfb627f71fccb6cf3fbdbff3e9c387f71feedcdffb68f4d1325be434a45bb66eb8536aff7a3d9de6f92c9fc98775fba660387b3b7b7bdb3bf7b67776dfec7cfa68f7e1a3bd07e3fbfbbbfbf77e8a1ae6cb59b4d9debd477bbbe37b0f3e7db0ffe0e14f7df4","4bfe1fee76e0cb67010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding,Accept-Encoding', - 'x-ms-request-id', - '3f4a4b51-fb5f-447a-8cc2-c9fd0cc8b1f1', - 'x-ms-ratelimit-remaining-subscription-reads', - '11977', + '74556ba3-559f-43f1-8d78-5cc3eb0557f9', + 'x-ms-ratelimit-remaining-subscription-resource-requests', + '11999', 'Request-Context', 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', 'Strict-Transport-Security', @@ -1149,15 +1109,15 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '1025613b-de77-4b47-96ed-723e80339bfe', + 'faafabce-e7a0-408b-9cd8-328f72aba447', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '3f4a4b51-fb5f-447a-8cc2-c9fd0cc8b1f1', + '74556ba3-559f-43f1-8d78-5cc3eb0557f9', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062321Z:3f4a4b51-fb5f-447a-8cc2-c9fd0cc8b1f1', + 'KOREASOUTH:20220520T020846Z:74556ba3-559f-43f1-8d78-5cc3eb0557f9', 'Date', - 'Tue, 01 Mar 2022 06:23:20 GMT' + 'Fri, 20 May 2022 02:08:46 GMT' ]); diff --git a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_delete_test.js b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_delete_test.js index 3a52cf5a1e33..a22ed680c1e0 100644 --- a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_delete_test.js +++ b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_delete_test.js @@ -23,19 +23,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '17f397b0-cc05-413e-95af-cd76b53d1f00', + 'e7626a4c-250a-4ef9-9099-90adf3d46200', 'x-ms-ests-server', - '2.1.12529.16 - KRSLR1 ProdSlices', + '2.1.12744.11 - KRSLR1 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AgjB9KMDZIdCoW4QLf_yObQ; expires=Thu, 31-Mar-2022 06:24:13 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AuHWL7NYI-ZFnHc7MFiSsy4; expires=Sun, 19-Jun-2022 02:09:32 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrTGx_7fh1j9Scj-BYV5IgIz83GjVV_gvEDYoEb71dG2nEsumBbWvj0MapoHSNJkFtcpFq93NlyCXStMtqRPAoB4LQjqatL3PTTeKyPYXZSSLAQ6RTYuR_FQ4rJElUKxDreylJDfGEvntHivCFFNZMn32JjVURlxzjvLvF3iQU_b4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrkjejVPZRyrl_SpBxwia_nLt-_eNLiGXQCmeTo-DmrT-8SYWKjLWOr7WQ82xiWja_GW8UB2wQ5ew2nOv88Jq7Exna4osXfApgZ6v7cyZs5Ioo9v0VIUMe_e1ofIrbQucQ3_6pg4gH9nr2GSqlUs-Z5d_vi_UhxdrfFdv8dRDUhUwgAA; 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', - 'Tue, 01 Mar 2022 06:24:12 GMT', + 'Fri, 20 May 2022 02:09:31 GMT', 'Content-Length', '980' ]); @@ -58,25 +60,27 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '68c52ac1-0210-4f9e-bb6f-e999625c1c00', + '14feca36-8924-4244-9176-928df13b1100', 'x-ms-ests-server', - '2.1.12529.16 - SEASLR2 ProdSlices', + '2.1.12794.4 - SEASLR1 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AkgFYgOFtqBGsKtJnk6W2kY; expires=Thu, 31-Mar-2022 06:24:13 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AtXLbjnNuoBNg4U6005s1og; expires=Sun, 19-Jun-2022 02:09:32 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4IsSqp4X3InMe9u0h2RpWkyJ6XUsFZskRMelhWNzEnSRt3jtpBTMAImM1na99NWst_ZL63w2TBV_vTrswycGDkhDGNsKiVyKDptpeDXWRDOBOMT8R5Fj3oa7WC9B0gkFgalc7edyLdX1mThKcX4u47_gi59A0UhorcVF5f-0zaQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrr2NzSlCj_FTnNZEJiAhg-x05uvQgJf2POOXURabgNT_4g9SEQ1EA1wMNzZXjtIneRf76jhwCj8mk9yMlp2PWRDK4Fw-bwBKv-DFQOVa9waXN8b9miyR58sO0o6uvGf7_Y_1vnhmlXdwZHtaJAz39sPydwT6eFm3UAaCBWi40WDAgAA; 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', - 'Tue, 01 Mar 2022 06:24:13 GMT', + 'Fri, 20 May 2022 02:09:32 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.5.0&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=eddf0da1-6e56-4a9d-b54b-bfeb709a29ac&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") + .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.9.0&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=b926c909-8505-4e93-bb8f-b8506250163c&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', @@ -93,19 +97,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'd4b93b1a-11d2-4e10-9d20-9c5da7591d00', + 'a3ab75de-a70a-47d8-8625-0436e71f0b00', 'x-ms-ests-server', - '2.1.12529.16 - KRSLR2 ProdSlices', + '2.1.12794.4 - KRSLR1 ProdSlices', 'x-ms-clitelem', '1,0,0,,', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=ArPQt4aZjtZLiuE1ypoRFRvLj78gAQAAAA2zr9kOAAAA; expires=Thu, 31-Mar-2022 06:24:14 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=An5pxDZSJMtHqA5XzAJJ9YPLj78gAQAAAFzvGNoOAAAA; expires=Sun, 19-Jun-2022 02:09:33 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', - 'Tue, 01 Mar 2022 06:24:13 GMT', + 'Fri, 20 May 2022 02:09:32 GMT', 'Content-Length', '1393' ]); @@ -121,7 +127,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Expires', '-1', 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationResults/02d27a20-b9c4-4809-9aa3-056ed56ec893/Spring/myservicexxx?api-version=2022-01-01-preview', + 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationResults/386435f9-0a57-4d20-bc17-26b13a688fb7/Spring/myservicexxx?api-version=2022-04-01', 'x-ms-ratelimit-remaining-subscription-deletes', '14998', 'Request-Context', @@ -131,29 +137,29 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'fa031ada-e016-4121-a29e-c3653bf7e2ed', + 'ccc924e2-3bf9-45ed-a7a6-82b152f3768b', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Azure-AsyncOperation', - 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/02d27a20-b9c4-4809-9aa3-056ed56ec893?api-version=2022-01-01-preview', + 'https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/386435f9-0a57-4d20-bc17-26b13a688fb7?api-version=2022-04-01', 'Server', 'nginx/1.17.7', 'x-ms-request-id', - 'efcb0b31-4aa9-4700-bbc1-c506bb5146c6', + 'bd959d69-83ca-4db3-9c70-303211b3af75', 'x-ms-correlation-request-id', - 'efcb0b31-4aa9-4700-bbc1-c506bb5146c6', + 'bd959d69-83ca-4db3-9c70-303211b3af75', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062415Z:efcb0b31-4aa9-4700-bbc1-c506bb5146c6', + 'KOREASOUTH:20220520T020935Z:bd959d69-83ca-4db3-9c70-303211b3af75', 'Date', - 'Tue, 01 Mar 2022 06:24:15 GMT', + 'Fri, 20 May 2022 02:09:34 GMT', 'Content-Length', '0' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/02d27a20-b9c4-4809-9aa3-056ed56ec893') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/386435f9-0a57-4d20-bc17-26b13a688fb7') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf667777f6667b0fb2bd9dedc9c3e9fef6fec1cec3ed8759766f7be7fea7f98cfe3f3d7878efa3d147cb6c91d3906ed9bae14ea9fdabf572592c2fe4a3ba7d533094bd9dbdbded1d7a6bf7cdcea78ff6f61fedde1f7fbaff60efc183fd9ffae897","fc3f882c0b2b3e010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1d7cba7feffef9c3ed9dec3ea135dbdbd99e4c771f6cef7d3ad9bd977d7a70703e79f0d1e8a365b6c86948b76cdd70a7d4fed57ab92c9617f251ddbe2918cadecededef6cefdedbd9d373b7b8f761e3ebab73f7ef86067676ff7e0a73efa25","ff0fe510f9a23e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -171,7 +177,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '30562d8b-4bd6-4bec-b66f-7554dae1ba0e', + '1b7c2081-9024-48e4-a003-3cfede61c0fc', 'x-ms-ratelimit-remaining-subscription-reads', '11972', 'Request-Context', @@ -181,23 +187,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'e46e5145-08f5-4b6c-a156-b9717c8ebad9', + 'ba0b4887-8ae2-4311-bdea-3607b2a49c32', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '30562d8b-4bd6-4bec-b66f-7554dae1ba0e', + '1b7c2081-9024-48e4-a003-3cfede61c0fc', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062416Z:30562d8b-4bd6-4bec-b66f-7554dae1ba0e', + 'KOREASOUTH:20220520T020935Z:1b7c2081-9024-48e4-a003-3cfede61c0fc', 'Date', - 'Tue, 01 Mar 2022 06:24:15 GMT' + 'Fri, 20 May 2022 02:09:35 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/02d27a20-b9c4-4809-9aa3-056ed56ec893') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/386435f9-0a57-4d20-bc17-26b13a688fb7') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf667777f6667b0fb2bd9dedc9c3e9fef6fec1cec3ed8759766f7be7fea7f98cfe3f3d7878efa3d147cb6c91d3906ed9bae14ea9fdabf572592c2fe4a3ba7d533094bd9dbdbded1d7a6bf7cdcea78ff6f61fedde1f7fbaff60efc183fd9ffae897","fc3f882c0b2b3e010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1d7cba7feffef9c3ed9dec3ea135dbdbd99e4c771f6cef7d3ad9bd977d7a70703e79f0d1e8a365b6c86948b76cdd70a7d4fed57ab92c9617f251ddbe2918cadecededef6cefdedbd9d373b7b8f761e3ebab73f7ef86067676ff7e0a73efa25","ff0fe510f9a23e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -215,7 +221,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - 'de026e9c-0b4e-40dd-8a57-a3345aff4e06', + '5bb84dc3-8af2-4a14-824d-0023fe7e95b4', 'x-ms-ratelimit-remaining-subscription-reads', '11971', 'Request-Context', @@ -225,23 +231,23 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '10ed1379-387a-4872-a0b8-419bc95d14a7', + 'a01d3938-5d4f-4fbf-9459-7e886f7b2ae4', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - 'de026e9c-0b4e-40dd-8a57-a3345aff4e06', + '5bb84dc3-8af2-4a14-824d-0023fe7e95b4', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062427Z:de026e9c-0b4e-40dd-8a57-a3345aff4e06', + 'KOREASOUTH:20220520T020936Z:5bb84dc3-8af2-4a14-824d-0023fe7e95b4', 'Date', - 'Tue, 01 Mar 2022 06:24:27 GMT' + 'Fri, 20 May 2022 02:09:35 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/02d27a20-b9c4-4809-9aa3-056ed56ec893') + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/386435f9-0a57-4d20-bc17-26b13a688fb7') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf667777f6667b0fb2bd9dedc9c3e9fef6fec1cec3ed8759766f7be7fea7f98cfe3f3d7878efa3d147cb6c91d3906ed9bae14ea9fdebf5749ae7b37c261fd6ed9b82e1ecedeced6defd07bbb6f763e7db4b7ff68f7fef8d3fd077b0f1eecff1435cd97b3a186f73e1d1fdcbfffe9fecebd9ffae897","fc3f04f1350769010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1d7cba7feffef9c3ed9dec3ea135dbdbd99e4c771f6cef7d3ad9bd977d7a70703e79f0d1e8a365b6c86948b76cdd70a7d4fed57ab92c9617f251ddbe2918cadecededef6cefdedbd9d373b7b8f761e3ebab73f7ef86067676ff7e0a73efa25","ff0fe510f9a23e010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -254,10 +260,12 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'gzip', 'Expires', '-1', + 'Retry-After', + '0', 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '98a5bcbb-0820-4891-8741-87d0b7951db3', + 'e4f332c8-4c48-4ed5-8178-f6cdcd844006', 'x-ms-ratelimit-remaining-subscription-reads', '11970', 'Request-Context', @@ -267,17 +275,103 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'd1dd5daf-a387-458d-a6dc-39fd10e348fd', + 'fe6d2bd1-7a8d-4865-87b7-41a816d25e5d', + 'x-rp-server-mvid', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', + 'Server', + 'nginx/1.17.7', + 'x-ms-correlation-request-id', + 'e4f332c8-4c48-4ed5-8178-f6cdcd844006', + 'x-ms-routing-request-id', + 'KOREASOUTH:20220520T020946Z:e4f332c8-4c48-4ed5-8178-f6cdcd844006', + 'Date', + 'Fri, 20 May 2022 02:09:45 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/386435f9-0a57-4d20-bc17-26b13a688fb7') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1d7cba7feffef9c3ed9dec3ea135dbdbd99e4c771f6cef7d3ad9bd977d7a70703e79f0d1e8a365b6c86948b76cdd70a7d4fed57ab92c9617f251ddbe2918cadecededef6cefdedbd9d373b7b8f761e3ebab73f7ef86067676ff7e0a73efa25","ff0fe510f9a23e010000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Retry-After', + '0', + 'Vary', + 'Accept-Encoding,Accept-Encoding', + 'x-ms-request-id', + '710318e3-b5a6-4988-975f-8d542589fbaa', + 'x-ms-ratelimit-remaining-subscription-reads', + '11969', + 'Request-Context', + 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'x-ms-client-request-id', + '112ad36a-56f5-4367-8375-78d886ece088', + 'x-rp-server-mvid', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', + 'Server', + 'nginx/1.17.7', + 'x-ms-correlation-request-id', + '710318e3-b5a6-4988-975f-8d542589fbaa', + 'x-ms-routing-request-id', + 'KOREASOUTH:20220520T020956Z:710318e3-b5a6-4988-975f-8d542589fbaa', + 'Date', + 'Fri, 20 May 2022 02:09:56 GMT' +]); + +nock('https://management.azure.com:443', {"encodedQueryParams":true}) + .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservicexxx/operationId/386435f9-0a57-4d20-bc17-26b13a688fb7') + .query(true) + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471f35eb4933ad8b555b54cbe6eec3bdf387f76707e7dbf7a69f3ed8dedfdddbdf7eb83b7db07d303ddf79309d4dcef7f677efd67953adeb69fe795dad57cdddc5f54f376ddeb47757757559ccf2bab9fb4531adaba63a6fc7c7abd5cb326bcfab7a71b7aca6997493674dbb6eee56abbce64f5eb719fe5e5c37797d594cf377efdeb92fcf6677ef1d7cba7feffef9c3ed9dec3ea135dbdbd99e4c771f6cef7d3ad9bd977d7a70703e79f0d1e8a365b6c86948b76cdd70a7d4fef57a3acdf3593e930febf64dc170f676f6f6b677ee6fefedbcd9d97bb4f3f0d1bdfdf1c3073b3b7bbb073f454df3e52cda7077e7d1cecef860e7d3fbf71fdefba98f7e","c9ff03e5e8157169010000"], [ + 'Cache-Control', + 'no-cache', + 'Pragma', + 'no-cache', + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json; charset=utf-8', + 'Content-Encoding', + 'gzip', + 'Expires', + '-1', + 'Vary', + 'Accept-Encoding,Accept-Encoding', + 'x-ms-request-id', + '8292ad26-cbdf-4640-ac6a-f59474fd659f', + 'x-ms-ratelimit-remaining-subscription-reads', + '11968', + 'Request-Context', + 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'x-ms-client-request-id', + 'a36f77f2-6cc2-4cdc-9e28-5bd7593fbf4d', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '98a5bcbb-0820-4891-8741-87d0b7951db3', + '8292ad26-cbdf-4640-ac6a-f59474fd659f', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062438Z:98a5bcbb-0820-4891-8741-87d0b7951db3', + 'KOREASOUTH:20220520T021007Z:8292ad26-cbdf-4640-ac6a-f59474fd659f', 'Date', - 'Tue, 01 Mar 2022 06:24:37 GMT' + 'Fri, 20 May 2022 02:10:06 GMT' ]); nock('https://management.azure.com:443', {"encodedQueryParams":true}) @@ -299,7 +393,7 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'x-ms-ratelimit-remaining-subscription-resource-requests', - '11997', + '11996', 'Request-Context', 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', 'Strict-Transport-Security', @@ -307,17 +401,17 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - 'c044c433-cb4f-4da7-b916-1ec8b5129175', + '5edeae4a-fe75-410e-ba6e-6cf500e911ea', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-request-id', - 'cd08000a-1741-4a4d-b4bf-e4fb69014712', + 'b9642b80-2966-4473-914f-6b47035a9392', 'x-ms-correlation-request-id', - 'cd08000a-1741-4a4d-b4bf-e4fb69014712', + 'b9642b80-2966-4473-914f-6b47035a9392', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062439Z:cd08000a-1741-4a4d-b4bf-e4fb69014712', + 'KOREASOUTH:20220520T021009Z:b9642b80-2966-4473-914f-6b47035a9392', 'Date', - 'Tue, 01 Mar 2022 06:24:38 GMT' + 'Fri, 20 May 2022 02:10:08 GMT' ]); diff --git a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_get_test.js b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_get_test.js index a5c282861be1..9fd9735f4f77 100644 --- a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_get_test.js +++ b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_get_test.js @@ -23,19 +23,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '0204ff98-cfb5-4141-a3a3-b5e1ab381e00', + '91eef335-3038-43d2-b2cb-1fb95a6e2800', 'x-ms-ests-server', - '2.1.12529.16 - SEASLR1 ProdSlices', + '2.1.12744.11 - SEASLR2 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AjFFLzWYNddDonsBH308Kfo; expires=Thu, 31-Mar-2022 06:23:55 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Auaif39So4pMuwUOuw5gEdY; expires=Sun, 19-Jun-2022 02:09:12 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8zzqNfU2PhQaWwkQao0tH2F_fcPmDsKziO7EwkDCuMYZ-lnFSu3y34ijW7Z4qUEpuLg0v_QFSUO8Lk8aSBltnalNs5UbrfckXbarSmxmiQYs9svZPwZa48eqNcSWw-9JaE_PwUyKOieGF7GOWMu8dInK_ty13wCFZtf6J9cVdm0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrGE-dEX03AdCW5QjIpI7Hzm9zk0VcfmhkevovhXdqvz-DNOPP5IqwnVHfnyxxMw15cvixtIwpJ-U4oyQ9B3bzYobhUs4dDJVjU4rz2wePlbMPPhA0LF29295pRTwxhXNanM_Jy_q6h3Dxc7vfdsUZbLUIT3NPl_ShCI8XZ0CUZS8gAA; 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', - 'Tue, 01 Mar 2022 06:23:54 GMT', + 'Fri, 20 May 2022 02:09:11 GMT', 'Content-Length', '980' ]); @@ -58,25 +60,27 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '68c52ac1-0210-4f9e-bb6f-e999965b1c00', + 'a3ab75de-a70a-47d8-8625-0436781b0b00', 'x-ms-ests-server', - '2.1.12529.16 - SEASLR2 ProdSlices', + '2.1.12794.4 - KRSLR1 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AtcUQUNupntChV867XEhEpE; expires=Thu, 31-Mar-2022 06:23:55 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AvI1GgrMQChLriZMkLHbNcQ; expires=Sun, 19-Jun-2022 02:09:12 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrcT43KQ-NBF_acCRgQxa-NqQzTbUqqGg6SYkuOVoM9b3QoF8ujyF5p7VLdWqo6RgOgQMIcLCrsM54Vy6iRlcKqSlurNDGX_TZ1gt_FJuh2ucDT3rPfQnxCRWDZ3lAxfXOz2-OwZ-j0UcnhY-gNX6XITi3GLKyfFI3pUfbfri7xjUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-9uixRybmaXaXZoqoY2e2nRlpMCQpsAirOPazdKnGPu5Bq9ZNSslq4SngZDl2ouhZ5VTx20MWipdmzB9yxYEDEA27SK2pBWtxZC7EizOs6w47Mfw3UzjmnmL5BzgLcY3tR-nwFri83988vxZCx3Fe6yNRoCpBCI0NvyfGAIO7LQgAA; 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', - 'Tue, 01 Mar 2022 06:23:54 GMT', + 'Fri, 20 May 2022 02:09:11 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.5.0&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=d07262fb-9bd1-4bd3-983e-3ddb6840aeff&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") + .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.9.0&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=15b5c3ff-d527-4204-9542-07fb225d6a9d&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', @@ -93,19 +97,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '68c52ac1-0210-4f9e-bb6f-e999995b1c00', + '14feca36-8924-4244-9176-928d51351100', 'x-ms-ests-server', - '2.1.12529.16 - SEASLR2 ProdSlices', + '2.1.12794.4 - SEASLR1 ProdSlices', 'x-ms-clitelem', '1,0,0,,', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AovYd5CDMLtCoQpm_adSKW3Lj78gAQAAAPuyr9kOAAAA; expires=Thu, 31-Mar-2022 06:23:55 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Aufl1F5CU5xAoONlZweRWFLLj78gAQAAAEfvGNoOAAAA; expires=Sun, 19-Jun-2022 02:09:12 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', - 'Tue, 01 Mar 2022 06:23:54 GMT', + 'Fri, 20 May 2022 02:09:11 GMT', 'Content-Length', '1393' ]); @@ -113,7 +119,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://management.azure.com:443', {"encodedQueryParams":true}) .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/Spring/myservicexxx') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147abba5ae5755be4cd478ff8afcba229aa65b1bc78dd666dfed1a38f5eafa7d33c9fe5b38f461ffda05ae6aff2d97a39cb96ed478fceb3b2c9471f5de635def9e8d1bdd1474d5e5f16d3fc6c466f66b3ec60e7c1bdbddd870feeef3f78783ed93dcff666b3073bf7f61fe6d9f421015ce6ed5555bf7d5957e74549bdfde28faa753ba9a883b39782d17a521653fee37b1feded8c3fdd1befddfb74bc7bb0476f9bbf1f8c1fec7cf4fd5ff24b461fadaaabbc3698bf5a2f31106a78fe8b6684de478b6b45efddbb77e3ec07eb3a5f14d3bad20f9b71517d4430daeb15defe82bfaacedbf1f16af5b2ccdaf3aa5edc7dbdaa0564f3760dfc96d9028d5fefd04744c51abfb719d1a79e0156594db39669f3519e35edba41b3ec8246f38b3f7a9b5fefd2e79759b9ce77d1b800d1ee36eb4933ad8b155e6bee3edc3b7f787f7670be7d6ffae983edfdddbdfded87bbd307db07d3f39d07d3d9e47c6f7ff76e9d37d5ba9ee69fd7d57ad5dc5d5cff74d3e64d7b97a77346b37377d360a8bd5280c842f8e9903a9f36d70473f1346b33e03ead73a2f1ecc93535cc7732c2e31e21f6e9ee747b7fb6bbb77d70fee9749b107e707f6767777a7f9a1100fbca1ba12f2142332bd4b1df1e1357d1b4eeed6defdcdbded97db3f3e9a3dd878ff6f6c70707f7f7eeddff296a59121dbfa866c5790160d4fc96fd87ef4591f09bdc88c92ff9","25ff0fdab240223e030000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147abba5ae5755be4cd478ff8afcba229aa65b1bc78dd666dfed1a38f5eafa7d33c9fe5b38f461ffda05ae6aff2d97a39cb96ed478fceb3b2c9471f5de635def9e8d1bdd1474d5e5f16d3fc6c466f3e9cde9f4df2070f1eecdfcbf73ffd74ef207ff07027df7ff0e07c779a3d7c784e0097797b55d56f5fd6d57951526fbff8a36add4e2aeae0eca560b49e94c594fff8de477b3be383fdf1fdf1fea7f4eafdbdf1dedea7e3bdfd9df1eefefe47dfff25bfe4978c3e6aaf5704e5a32f8a695d35d5793b3e5ead5e96597b5ed58bbbaf57358d8b5e6ddeae017b992dd0f8f50e7d4414a8f17b9bd1d8ead94704abaca659cbe3fa28cf9a76dda059764198fce28fdee6d7bbf4f96556aef35d342e30e0bbcd7ad24ceb6285d79abb0ff7ce1fde9f1d9c6fdf9b7efa607b7f776f7ffbe1eef4c1f6c1f47ce7c1743639dfdbdfbd5be74db5aea7f9e775b55e357717d73fddb479d3dee5a9981165ef6e1a0cb5578abf7bf78ef0d321753e6dae09e6e269d666c07d5ae734b3b327d7d430dfc9088f7b84d8a7bbd3edfdd9eedef6c1f9a7d36d42f8c1fd9d9ddde9fd694600ec2b6f84be8408cd8a50c77e7b4c1c4153b4b7b7bd737f7b6fe7cdcedea39dfb8f761e8c0f76eeefefec1cfc14352d89905f54b3e2bc00346a7f4b04c2f7a258f84d6e46e597","fc92ff07482473a4fc020000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -129,9 +135,9 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '85c2d718-91e0-445b-b507-45e9c537b92e', + '22f3bd06-241a-498e-93c1-f9ccdd9d64af', 'x-ms-ratelimit-remaining-subscription-resource-requests', - '11999', + '11998', 'Request-Context', 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', 'Strict-Transport-Security', @@ -139,15 +145,15 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '0590ca48-f458-4abf-b4b1-520f42c9e4c8', + 'c18a14f0-15e0-4f26-b0b4-23a9e505379d', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '85c2d718-91e0-445b-b507-45e9c537b92e', + '22f3bd06-241a-498e-93c1-f9ccdd9d64af', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062355Z:85c2d718-91e0-445b-b507-45e9c537b92e', + 'KOREASOUTH:20220520T020913Z:22f3bd06-241a-498e-93c1-f9ccdd9d64af', 'Date', - 'Tue, 01 Mar 2022 06:23:55 GMT' + 'Fri, 20 May 2022 02:09:13 GMT' ]); diff --git a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_list_test.js b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_list_test.js index 769ce2475f40..fbbeb77826d9 100644 --- a/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_list_test.js +++ b/sdk/appplatform/arm-appplatform/recordings/node/appplatform_test/recording_services_list_test.js @@ -23,19 +23,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'a444db9c-be57-4307-a10e-33a27dcf1e00', + 'f6246673-1764-4367-8959-7bb7fcc58500', 'x-ms-ests-server', - '2.1.12529.16 - KRSLR1 ProdSlices', + '2.1.12744.11 - SEASLR2 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AmZAX1mxa9lJjFDLv65LYTo; expires=Thu, 31-Mar-2022 06:23:59 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AuEdCUUdjtlHtH-DJIdi2w4; expires=Sun, 19-Jun-2022 02:09:17 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrRmW9emlWZCVT7ZzsuGdId-5mpmVeQW5IKy3jMV8UjSk3TaQSiRSBNOpABNMUGNlzO34ZyYrabDepJSI-4Y8atn7SL5z4CHkDSnbQqCR-qtvMWoOOEpCverro2BlnMB6LhbDW5kZUxPIGkgvRifg3_XMF631K9WqFq8xXDZsse20gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrAJAaklBKa83L9pq8W_ntS3OxLwdbKVrD1M8H0xUGxtzOsSBsQoI0fPqoVPolKqAEbrbInlCPVAoexfpiJUnYhaG7zkl4GOyJpkJJc6LsGSqNCTelnvwcp06i9ZOEZu0PAJ6L5gSSTL-WlTZzHr5SWVp8HQTRhu-4ljgDHP7qJ5sgAA; 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', - 'Tue, 01 Mar 2022 06:23:59 GMT', + 'Fri, 20 May 2022 02:09:16 GMT', 'Content-Length', '980' ]); @@ -58,25 +60,27 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '88b0213c-f179-47c7-bdb9-21873e7f1c00', + '70833697-662e-4bc5-9ad0-75640a184400', 'x-ms-ests-server', - '2.1.12529.16 - KRSLR2 ProdSlices', + '2.1.12794.4 - SEASLR1 ProdSlices', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AjHA2pwigXtGoGqxUMASGHc; expires=Thu, 31-Mar-2022 06:23:59 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=As00sEsRgh5Eh9g_XZSDexc; expires=Sun, 19-Jun-2022 02:09:17 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQssE1GTYEQA2jEqnHro_avb2Mv0jAXaJAVLaYd19A8qvXTX8FrFyQjHsG2ysILiqDFSPxJnBgSMFsF8cUUC0e2lk81V_Usz2kMYxlTnLLuvjiCVuD3uxvv4IGnuTs4RTqTLUmIjvgQW5aKjT1GQef6IiFJb42-br8ln-tEpYu2UgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrijy3hUOsGTP0Hp5bjGJKSsMZZSbvA8H3qRfx4Pr8hr0iuIGafZcG38idqn01IP5kw0JWuIpmtgDlzjmx-aGsrzcixKvVaKTZ9qqOV0LOroDvWI28phNpvc6zTa9qmUxFYX7FLWybjIPx_1NvfLbGhA5FHK-R2VRxWXceAGKkqDcgAA; 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', - 'Tue, 01 Mar 2022 06:23:59 GMT', + 'Fri, 20 May 2022 02:09:16 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.5.0&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=d9d8cf54-9cd3-411f-b4e5-cc24502c9869&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") + .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.9.0&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=d522c7f6-0468-4943-a96a-557bf14e7ec8&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', @@ -93,19 +97,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '17f397b0-cc05-413e-95af-cd76fb3c1f00', + '14feca36-8924-4244-9176-928de7361100', 'x-ms-ests-server', - '2.1.12529.16 - KRSLR1 ProdSlices', + '2.1.12794.4 - SEASLR1 ProdSlices', 'x-ms-clitelem', '1,0,0,,', + 'X-XSS-Protection', + '0', 'Set-Cookie', - 'fpc=AiZHDlmgQdNIjARkY-3sWOjLj78gAQAAAP-yr9kOAAAA; expires=Thu, 31-Mar-2022 06:24:00 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ar3kwXmUujFJqu5_qI9LjhHLj78gAQAAAEzvGNoOAAAA; expires=Sun, 19-Jun-2022 02:09:17 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', - 'Tue, 01 Mar 2022 06:23:59 GMT', + 'Fri, 20 May 2022 02:09:16 GMT', 'Content-Length', '1393' ]); @@ -113,7 +119,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://management.azure.com:443', {"encodedQueryParams":true}) .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.AppPlatform/Spring') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1aaae5679dd1679f3d123feebb2688a6a592c2f5eb7594b6d3e7abd9e4ef37c96cf3e1a7df4836a99bfca67ebe52c5bb61f3d3acfca261f7d7499d778e7a347f7461f35797d594cf3b319bd99cdb2839d07f7f6761f3eb8bfffe0e1f964f73cdb9bcd1eecdcdb7f9867d387047099b75755fdf6655d9d1725f5f68b3faad6eda4a20ece5e0a46eb49594cf98fef7db4b733fe746fbc77efd3f1eec11ebd6dfe7e307eb0f3d1f77fc92f197db4aaaef2da60fe6abdc440a8e1f92f9a117a1f2dae15bd77efde8db31faceb7c514ceb4a3f6cc645f511c168af5778fb0bfeaa3a6fc7c7abd5cb326bcfab7a71f7f5aa1690cddb35f05b660b347ebd431f11156bfcde66449f7a06586535cd5aa6cd4779d6b4eb06cdb20b1acd2ffee86d7ebd4b9ff35ceca27101a2dd6dd693665a172bbcd6dc7db877fef0feece07cfbdef4d307dbfbbb7bfbdb0f77a70fb60fa6e73b0fa6b3c9f9defeeedd3a6faa753dcd3fafabf5aab9bbb8fee9a6cd9bf62e4fe78c66e7eea6c1507ba5009185f0d321753e6dae09e6e269d666c07d5ae744e3d9936b6a98ef6484c73d42ecd3dde9f6fe6c776ffbe0fcd3e93621fce0fececeeef4fe342300f69537425f42846656a863bf3d26aea269dddbdbdeb9b7bdb3fb66e7d347bb0f1feded8f0f0eeeefddbbff53d4b2243a7e51cd8af302c0a8f92dfb0fdf8b22e137b911935ff24bbeff","4bfe1f71d907374a030000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1aaae5679dd1679f3d123feebb2688a6a592c2f5eb7594b6d3e7abd9e4ef37c96cf3e1a7df4836a99bfca67ebe52c5bb61f3d3acfca261f7d7499d778e7a347f7461f35797d594cf3b319bdf9707a7f36c91f3c78b07f2fdffff4d3bd83fcc1c39d7cffc183f3dd69f6f0e139015ce6ed5555bf7d5957e74549bdfde28faa753ba9a883b39782d17a521653fee37b1feded8c0ff6c7f7c7fb9fd2abf7f7c67b7b9f8ef7f677c6bbfbfb1f7dff97fc925f32faa8bd5e11948fbe28a675d554e7edf878b57a5966ed79552feebe5ed5342e7ab579bb06ec65b640e3d73bf41151a0c6ef6d4663ab671f11acb29a662d8feba33c6bda758366d90561f28b3f7a9b5fefd2e74cc75d342e30e0bbcd7ad24ceb6285d79abb0ff7ce1fde9f1d9c6fdf9b7efa607b7f776f7ffbe1eef4c1f6c1f47ce7c1743639dfdbdfbd5be74db5aea7f9e775b55e357717d73fddb479d3dee5a9981165ef6e1a0cb5578abf7bf78ef0d321753e6dae09e6e269d666c07d5ae734b3b327d7d430dfc9088f7b84d8a7bbd3edfdd9eedef6c1f9a7d36d42f8c1fd9d9ddde9fd694600ec2b6f84be8408cd8a50c77e7b4c1c4153b4b7b7bd737f7b6fe7cdcedea39dfb8f761e8c0f76eeefefec1cfc14352d89905f54b3e2bc00346a7f4b04c2f7a258f84d6e46e597fc92ef","ff92ff07839bcb3008030000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -129,9 +135,9 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding,Accept-Encoding', 'x-ms-request-id', - '21c667fa-9530-4ed4-96af-997fd7736e74', + 'cae0b9df-d776-44f5-8ea3-ff68eba49564', 'x-ms-ratelimit-remaining-subscription-resource-requests', - '11998', + '11997', 'Request-Context', 'appId=cid-v1:797d7e4e-8180-497e-a254-780fbd39ba4d', 'Strict-Transport-Security', @@ -139,15 +145,15 @@ nock('https://management.azure.com:443', {"encodedQueryParams":true}) 'X-Content-Type-Options', 'nosniff', 'x-ms-client-request-id', - '99626357-554f-4a9c-acac-8e865bc6e637', + '219e6758-79f8-43ce-ac08-dffdeb9e7834', 'x-rp-server-mvid', - 'ebc692a4-c2cd-44f5-bba2-1b5e5f04cb14', + '5e115b18-fadf-4457-94d9-ae330a47aa6b', 'Server', 'nginx/1.17.7', 'x-ms-correlation-request-id', - '21c667fa-9530-4ed4-96af-997fd7736e74', + 'cae0b9df-d776-44f5-8ea3-ff68eba49564', 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20220301T062400Z:21c667fa-9530-4ed4-96af-997fd7736e74', + 'KOREASOUTH:20220520T020918Z:cae0b9df-d776-44f5-8ea3-ff68eba49564', 'Date', - 'Tue, 01 Mar 2022 06:24:00 GMT' + 'Fri, 20 May 2022 02:09:17 GMT' ]); diff --git a/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md b/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md index 5fb9cc6cf2a3..6940710a10ad 100644 --- a/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md +++ b/sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md @@ -18,162 +18,6 @@ export interface ActiveDeploymentCollection { activeDeploymentNames?: string[]; } -// @public -export interface ApiPortalCustomDomainProperties { - thumbprint?: string; -} - -// @public -export type ApiPortalCustomDomainResource = ProxyResource & { - properties?: ApiPortalCustomDomainProperties; -}; - -// @public -export interface ApiPortalCustomDomainResourceCollection { - nextLink?: string; - value?: ApiPortalCustomDomainResource[]; -} - -// @public -export interface ApiPortalCustomDomains { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiPortalName: string, domainName: string, apiPortalCustomDomainResource: ApiPortalCustomDomainResource, options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams): Promise, ApiPortalCustomDomainsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, apiPortalName: string, domainName: string, apiPortalCustomDomainResource: ApiPortalCustomDomainResource, options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, apiPortalName: string, domainName: string, options?: ApiPortalCustomDomainsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, serviceName: string, apiPortalName: string, domainName: string, options?: ApiPortalCustomDomainsDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, apiPortalName: string, domainName: string, options?: ApiPortalCustomDomainsGetOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, apiPortalName: string, options?: ApiPortalCustomDomainsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ApiPortalCustomDomainsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ApiPortalCustomDomainsCreateOrUpdateResponse = ApiPortalCustomDomainResource; - -// @public -export interface ApiPortalCustomDomainsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface ApiPortalCustomDomainsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApiPortalCustomDomainsGetResponse = ApiPortalCustomDomainResource; - -// @public -export interface ApiPortalCustomDomainsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApiPortalCustomDomainsListNextResponse = ApiPortalCustomDomainResourceCollection; - -// @public -export interface ApiPortalCustomDomainsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApiPortalCustomDomainsListResponse = ApiPortalCustomDomainResourceCollection; - -// @public -export interface ApiPortalInstance { - readonly name?: string; - readonly status?: string; -} - -// @public -export interface ApiPortalProperties { - gatewayIds?: string[]; - httpsOnly?: boolean; - readonly instances?: ApiPortalInstance[]; - readonly provisioningState?: ApiPortalProvisioningState; - public?: boolean; - readonly resourceRequests?: ApiPortalResourceRequests; - sourceUrls?: string[]; - ssoProperties?: SsoProperties; - readonly url?: string; -} - -// @public -export type ApiPortalProvisioningState = string; - -// @public -export type ApiPortalResource = ProxyResource & { - properties?: ApiPortalProperties; - sku?: Sku; -}; - -// @public -export interface ApiPortalResourceCollection { - nextLink?: string; - value?: ApiPortalResource[]; -} - -// @public -export interface ApiPortalResourceRequests { - readonly cpu?: string; - readonly memory?: string; -} - -// @public -export interface ApiPortals { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiPortalName: string, apiPortalResource: ApiPortalResource, options?: ApiPortalsCreateOrUpdateOptionalParams): Promise, ApiPortalsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, apiPortalName: string, apiPortalResource: ApiPortalResource, options?: ApiPortalsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, apiPortalName: string, options?: ApiPortalsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, serviceName: string, apiPortalName: string, options?: ApiPortalsDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, apiPortalName: string, options?: ApiPortalsGetOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, options?: ApiPortalsListOptionalParams): PagedAsyncIterableIterator; - validateDomain(resourceGroupName: string, serviceName: string, apiPortalName: string, validatePayload: CustomDomainValidatePayload, options?: ApiPortalsValidateDomainOptionalParams): Promise; -} - -// @public -export interface ApiPortalsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ApiPortalsCreateOrUpdateResponse = ApiPortalResource; - -// @public -export interface ApiPortalsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface ApiPortalsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApiPortalsGetResponse = ApiPortalResource; - -// @public -export interface ApiPortalsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApiPortalsListNextResponse = ApiPortalResourceCollection; - -// @public -export interface ApiPortalsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApiPortalsListResponse = ApiPortalResourceCollection; - -// @public -export interface ApiPortalsValidateDomainOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApiPortalsValidateDomainResponse = CustomDomainValidateResult; - // @public export interface ApplicationInsightsAgentVersions { readonly java?: string; @@ -185,10 +29,6 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AppPlatformManagementClientOptionalParams); // (undocumented) - apiPortalCustomDomains: ApiPortalCustomDomains; - // (undocumented) - apiPortals: ApiPortals; - // (undocumented) apiVersion: string; // (undocumented) apps: Apps; @@ -213,12 +53,6 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // (undocumented) deployments: Deployments; // (undocumented) - gatewayCustomDomains: GatewayCustomDomains; - // (undocumented) - gatewayRouteConfigs: GatewayRouteConfigs; - // (undocumented) - gateways: Gateways; - // (undocumented) monitoringSettings: MonitoringSettings; // (undocumented) operations: Operations; @@ -231,8 +65,6 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { // (undocumented) skus: Skus; // (undocumented) - storages: Storages; - // (undocumented) subscriptionId: string; } @@ -263,7 +95,6 @@ export interface AppResourceProperties { [propertyName: string]: Record; }; }; - customPersistentDisks?: CustomPersistentDiskResource[]; enableEndToEndTLS?: boolean; fqdn?: string; httpsOnly?: boolean; @@ -374,12 +205,6 @@ export interface AvailableRuntimeVersions { readonly value?: SupportedRuntimeVersion[]; } -// @public -export type AzureFileVolume = CustomPersistentDiskProperties & { - type: "AzureFileVolume"; - shareName: string; -}; - // @public export type BindingResource = ProxyResource & { properties?: BindingResourceProperties; @@ -992,7 +817,6 @@ export interface CloudErrorBody { export interface ClusterResourceProperties { readonly fqdn?: string; networkProfile?: NetworkProfile; - readonly powerState?: PowerState; readonly provisioningState?: ProvisioningState; readonly serviceId?: string; readonly version?: number; @@ -1220,11 +1044,6 @@ export interface ConfigurationServicesValidateOptionalParams extends coreClient. // @public export type ConfigurationServicesValidateResponse = ConfigurationServiceSettingsValidateResult; -// @public -export interface ContainerProbeSettings { - disableProbe?: boolean; -} - // @public export type ContentCertificateProperties = CertificateProperties & { type: "ContentCertificate"; @@ -1234,22 +1053,6 @@ export type ContentCertificateProperties = CertificateProperties & { // @public export type CreatedByType = string; -// @public -export interface CustomContainer { - args?: string[]; - command?: string[]; - containerImage?: string; - imageRegistryCredential?: ImageRegistryCredential; - languageFramework?: string; - server?: string; -} - -// @public -export type CustomContainerUserSourceInfo = UserSourceInfo & { - type: "Container"; - customContainer?: CustomContainer; -}; - // @public export interface CustomDomainProperties { readonly appName?: string; @@ -1336,23 +1139,6 @@ export interface CustomDomainValidateResult { message?: string; } -// @public -export interface CustomPersistentDiskProperties { - mountOptions?: string[]; - mountPath: string; - readOnly?: boolean; - type: "AzureFileVolume"; -} - -// @public (undocumented) -export type CustomPersistentDiskPropertiesUnion = CustomPersistentDiskProperties | AzureFileVolume; - -// @public -export interface CustomPersistentDiskResource { - customPersistentDiskProperties?: CustomPersistentDiskPropertiesUnion; - storageId: string; -} - // @public export interface DeploymentInstance { readonly discoveryStatus?: string; @@ -1439,7 +1225,6 @@ export interface DeploymentSettings { [propertyName: string]: Record; }; }; - containerProbeSettings?: ContainerProbeSettings; environmentVariables?: { [propertyName: string]: string; }; @@ -1550,272 +1335,6 @@ export interface ErrorModel { message?: string; } -// @public -export interface GatewayApiMetadataProperties { - description?: string; - documentation?: string; - serverUrl?: string; - title?: string; - version?: string; -} - -// @public -export interface GatewayApiRoute { - description?: string; - filters?: string[]; - order?: number; - predicates?: string[]; - ssoEnabled?: boolean; - tags?: string[]; - title?: string; - tokenRelay?: boolean; - uri?: string; -} - -// @public -export interface GatewayCorsProperties { - allowCredentials?: boolean; - allowedHeaders?: string[]; - allowedMethods?: string[]; - allowedOrigins?: string[]; - exposedHeaders?: string[]; - maxAge?: number; -} - -// @public -export interface GatewayCustomDomainProperties { - thumbprint?: string; -} - -// @public -export type GatewayCustomDomainResource = ProxyResource & { - properties?: GatewayCustomDomainProperties; -}; - -// @public -export interface GatewayCustomDomainResourceCollection { - nextLink?: string; - value?: GatewayCustomDomainResource[]; -} - -// @public -export interface GatewayCustomDomains { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, gatewayName: string, domainName: string, gatewayCustomDomainResource: GatewayCustomDomainResource, options?: GatewayCustomDomainsCreateOrUpdateOptionalParams): Promise, GatewayCustomDomainsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, domainName: string, gatewayCustomDomainResource: GatewayCustomDomainResource, options?: GatewayCustomDomainsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, gatewayName: string, domainName: string, options?: GatewayCustomDomainsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, domainName: string, options?: GatewayCustomDomainsDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, gatewayName: string, domainName: string, options?: GatewayCustomDomainsGetOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewayCustomDomainsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface GatewayCustomDomainsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type GatewayCustomDomainsCreateOrUpdateResponse = GatewayCustomDomainResource; - -// @public -export interface GatewayCustomDomainsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface GatewayCustomDomainsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GatewayCustomDomainsGetResponse = GatewayCustomDomainResource; - -// @public -export interface GatewayCustomDomainsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GatewayCustomDomainsListNextResponse = GatewayCustomDomainResourceCollection; - -// @public -export interface GatewayCustomDomainsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GatewayCustomDomainsListResponse = GatewayCustomDomainResourceCollection; - -// @public -export interface GatewayInstance { - readonly name?: string; - readonly status?: string; -} - -// @public -export interface GatewayOperatorProperties { - readonly instances?: GatewayInstance[]; - readonly resourceRequests?: GatewayOperatorResourceRequests; -} - -// @public -export interface GatewayOperatorResourceRequests { - readonly cpu?: string; - readonly instanceCount?: number; - readonly memory?: string; -} - -// @public -export interface GatewayProperties { - apiMetadataProperties?: GatewayApiMetadataProperties; - corsProperties?: GatewayCorsProperties; - httpsOnly?: boolean; - readonly instances?: GatewayInstance[]; - readonly operatorProperties?: GatewayOperatorProperties; - readonly provisioningState?: GatewayProvisioningState; - public?: boolean; - resourceRequests?: GatewayResourceRequests; - ssoProperties?: SsoProperties; - readonly url?: string; -} - -// @public -export type GatewayProvisioningState = string; - -// @public -export type GatewayResource = ProxyResource & { - properties?: GatewayProperties; - sku?: Sku; -}; - -// @public -export interface GatewayResourceCollection { - nextLink?: string; - value?: GatewayResource[]; -} - -// @public -export interface GatewayResourceRequests { - cpu?: string; - memory?: string; -} - -// @public -export interface GatewayRouteConfigProperties { - appResourceId?: string; - readonly provisioningState?: GatewayProvisioningState; - routes?: GatewayApiRoute[]; -} - -// @public -export type GatewayRouteConfigResource = ProxyResource & { - properties?: GatewayRouteConfigProperties; -}; - -// @public -export interface GatewayRouteConfigResourceCollection { - nextLink?: string; - value?: GatewayRouteConfigResource[]; -} - -// @public -export interface GatewayRouteConfigs { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, gatewayName: string, routeConfigName: string, gatewayRouteConfigResource: GatewayRouteConfigResource, options?: GatewayRouteConfigsCreateOrUpdateOptionalParams): Promise, GatewayRouteConfigsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, routeConfigName: string, gatewayRouteConfigResource: GatewayRouteConfigResource, options?: GatewayRouteConfigsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, gatewayName: string, routeConfigName: string, options?: GatewayRouteConfigsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, routeConfigName: string, options?: GatewayRouteConfigsDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, gatewayName: string, routeConfigName: string, options?: GatewayRouteConfigsGetOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewayRouteConfigsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface GatewayRouteConfigsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type GatewayRouteConfigsCreateOrUpdateResponse = GatewayRouteConfigResource; - -// @public -export interface GatewayRouteConfigsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface GatewayRouteConfigsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GatewayRouteConfigsGetResponse = GatewayRouteConfigResource; - -// @public -export interface GatewayRouteConfigsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GatewayRouteConfigsListNextResponse = GatewayRouteConfigResourceCollection; - -// @public -export interface GatewayRouteConfigsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GatewayRouteConfigsListResponse = GatewayRouteConfigResourceCollection; - -// @public -export interface Gateways { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, gatewayName: string, gatewayResource: GatewayResource, options?: GatewaysCreateOrUpdateOptionalParams): Promise, GatewaysCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, gatewayResource: GatewayResource, options?: GatewaysCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewaysDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewaysDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, gatewayName: string, options?: GatewaysGetOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, options?: GatewaysListOptionalParams): PagedAsyncIterableIterator; - validateDomain(resourceGroupName: string, serviceName: string, gatewayName: string, validatePayload: CustomDomainValidatePayload, options?: GatewaysValidateDomainOptionalParams): Promise; -} - -// @public -export interface GatewaysCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type GatewaysCreateOrUpdateResponse = GatewayResource; - -// @public -export interface GatewaysDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface GatewaysGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GatewaysGetResponse = GatewayResource; - -// @public -export interface GatewaysListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GatewaysListNextResponse = GatewayResourceCollection; - -// @public -export interface GatewaysListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GatewaysListResponse = GatewayResourceCollection; - -// @public -export interface GatewaysValidateDomainOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GatewaysValidateDomainResponse = CustomDomainValidateResult; - // @public export interface GitPatternRepository { hostKey?: string; @@ -1831,12 +1350,6 @@ export interface GitPatternRepository { username?: string; } -// @public -export interface ImageRegistryCredential { - password?: string; - username?: string; -} - // @public export type JarUploadedUserSourceInfo = UploadedUserSourceInfo & { type: "Jar"; @@ -1859,20 +1372,6 @@ export enum KnownActionType { Internal = "Internal" } -// @public -export enum KnownApiPortalProvisioningState { - // (undocumented) - Creating = "Creating", - // (undocumented) - Deleting = "Deleting", - // (undocumented) - Failed = "Failed", - // (undocumented) - Succeeded = "Succeeded", - // (undocumented) - Updating = "Updating" -} - // @public export enum KnownAppResourceProvisioningState { // (undocumented) @@ -2033,20 +1532,6 @@ export enum KnownDeploymentResourceStatus { Stopped = "Stopped" } -// @public -export enum KnownGatewayProvisioningState { - // (undocumented) - Creating = "Creating", - // (undocumented) - Deleting = "Deleting", - // (undocumented) - Failed = "Failed", - // (undocumented) - Succeeded = "Succeeded", - // (undocumented) - Updating = "Updating" -} - // @public export enum KnownKPackBuildStageProvisioningState { // (undocumented) @@ -2095,14 +1580,6 @@ export enum KnownMonitoringSettingState { Updating = "Updating" } -// @public -export enum KnownPowerState { - // (undocumented) - Running = "Running", - // (undocumented) - Stopped = "Stopped" -} - // @public export enum KnownProvisioningState { // (undocumented) @@ -2234,9 +1711,6 @@ export interface ManagedIdentityProperties { principalId?: string; tenantId?: string; type?: ManagedIdentityType; - userAssignedIdentities?: { - [propertyName: string]: UserAssignedManagedIdentity; - }; } // @public @@ -2401,9 +1875,6 @@ export interface PersistentDisk { readonly usedInGB?: number; } -// @public -export type PowerState = string; - // @public export type ProvisioningState = string; @@ -2610,10 +2081,6 @@ export interface Services { beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, resource: ServiceResource, options?: ServicesCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise; - beginStart(resourceGroupName: string, serviceName: string, options?: ServicesStartOptionalParams): Promise, void>>; - beginStartAndWait(resourceGroupName: string, serviceName: string, options?: ServicesStartOptionalParams): Promise; - beginStop(resourceGroupName: string, serviceName: string, options?: ServicesStopOptionalParams): Promise, void>>; - beginStopAndWait(resourceGroupName: string, serviceName: string, options?: ServicesStopOptionalParams): Promise; beginUpdate(resourceGroupName: string, serviceName: string, resource: ServiceResource, options?: ServicesUpdateOptionalParams): Promise, ServicesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, serviceName: string, resource: ServiceResource, options?: ServicesUpdateOptionalParams): Promise; checkNameAvailability(location: string, availabilityParameters: NameAvailabilityParameters, options?: ServicesCheckNameAvailabilityOptionalParams): Promise; @@ -2714,18 +2181,6 @@ export interface ServicesRegenerateTestKeyOptionalParams extends coreClient.Oper // @public export type ServicesRegenerateTestKeyResponse = TestKeys; -// @public -export interface ServicesStartOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface ServicesStopOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - // @public export interface ServicesUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2779,92 +2234,12 @@ export type SourceUploadedUserSourceInfo = UploadedUserSourceInfo & { runtimeVersion?: string; }; -// @public -export interface SsoProperties { - clientId?: string; - clientSecret?: string; - issuerUri?: string; - scope?: string[]; -} - // @public export interface StackProperties { id?: string; version?: string; } -// @public -export type StorageAccount = StorageProperties & { - storageType: "StorageAccount"; - accountName: string; - accountKey: string; -}; - -// @public -export interface StorageProperties { - storageType: "StorageAccount"; -} - -// @public (undocumented) -export type StoragePropertiesUnion = StorageProperties | StorageAccount; - -// @public -export type StorageResource = ProxyResource & { - properties?: StoragePropertiesUnion; -}; - -// @public -export interface StorageResourceCollection { - nextLink?: string; - value?: StorageResource[]; -} - -// @public -export interface Storages { - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, storageName: string, storageResource: StorageResource, options?: StoragesCreateOrUpdateOptionalParams): Promise, StoragesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, storageName: string, storageResource: StorageResource, options?: StoragesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, serviceName: string, storageName: string, options?: StoragesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, serviceName: string, storageName: string, options?: StoragesDeleteOptionalParams): Promise; - get(resourceGroupName: string, serviceName: string, storageName: string, options?: StoragesGetOptionalParams): Promise; - list(resourceGroupName: string, serviceName: string, options?: StoragesListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface StoragesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type StoragesCreateOrUpdateResponse = StorageResource; - -// @public -export interface StoragesDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface StoragesGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type StoragesGetResponse = StorageResource; - -// @public -export interface StoragesListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type StoragesListNextResponse = StorageResourceCollection; - -// @public -export interface StoragesListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type StoragesListResponse = StorageResourceCollection; - // @public export type SupportedBuildpackResource = ProxyResource & { properties?: SupportedBuildpackResourceProperties; @@ -2964,20 +2339,14 @@ export type UploadedUserSourceInfo = UserSourceInfo & { // @public (undocumented) export type UploadedUserSourceInfoUnion = UploadedUserSourceInfo | JarUploadedUserSourceInfo | SourceUploadedUserSourceInfo | NetCoreZipUploadedUserSourceInfo; -// @public -export interface UserAssignedManagedIdentity { - readonly clientId?: string; - readonly principalId?: string; -} - // @public export interface UserSourceInfo { - type: "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult" | "Container"; + type: "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult"; version?: string; } // @public (undocumented) -export type UserSourceInfoUnion = UserSourceInfo | UploadedUserSourceInfoUnion | BuildResultUserSourceInfo | CustomContainerUserSourceInfo; +export type UserSourceInfoUnion = UserSourceInfo | UploadedUserSourceInfoUnion | BuildResultUserSourceInfo; // @public export interface ValidationMessages { diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsCreateOrUpdateSample.ts deleted file mode 100644 index 79f2f5ccc8a9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsCreateOrUpdateSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ApiPortalCustomDomainResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update the API portal custom domain. - * - * @summary Create or update the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_CreateOrUpdate.json - */ -async function apiPortalCustomDomainsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const apiPortalCustomDomainResource: ApiPortalCustomDomainResource = { - properties: { thumbprint: "*" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - apiPortalName, - domainName, - apiPortalCustomDomainResource - ); - console.log(result); -} - -apiPortalCustomDomainsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsDeleteSample.ts deleted file mode 100644 index 53356fd2c799..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsDeleteSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the API portal custom domain. - * - * @summary Delete the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Delete.json - */ -async function apiPortalCustomDomainsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.beginDeleteAndWait( - resourceGroupName, - serviceName, - apiPortalName, - domainName - ); - console.log(result); -} - -apiPortalCustomDomainsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsGetSample.ts deleted file mode 100644 index f3850cef0fa7..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsGetSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the API portal custom domain. - * - * @summary Get the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Get.json - */ -async function apiPortalCustomDomainsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.get( - resourceGroupName, - serviceName, - apiPortalName, - domainName - ); - console.log(result); -} - -apiPortalCustomDomainsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsListSample.ts deleted file mode 100644 index eabad4c24d0c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsListSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handle requests to list all API portal custom domains. - * - * @summary Handle requests to list all API portal custom domains. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_List.json - */ -async function apiPortalCustomDomainsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.apiPortalCustomDomains.list( - resourceGroupName, - serviceName, - apiPortalName - )) { - resArray.push(item); - } - console.log(resArray); -} - -apiPortalCustomDomainsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsCreateOrUpdateSample.ts deleted file mode 100644 index b5fe4364aa3f..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsCreateOrUpdateSample.ts +++ /dev/null @@ -1,48 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ApiPortalResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create the default API portal or update the existing API portal. - * - * @summary Create the default API portal or update the existing API portal. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_CreateOrUpdate.json - */ -async function apiPortalsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const apiPortalResource: ApiPortalResource = { - properties: { - gatewayIds: [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default" - ], - public: true - }, - sku: { name: "E0", capacity: 2, tier: "Enterprise" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - apiPortalName, - apiPortalResource - ); - console.log(result); -} - -apiPortalsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsDeleteSample.ts deleted file mode 100644 index 80ae88d8a03c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsDeleteSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the default API portal. - * - * @summary Delete the default API portal. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Delete.json - */ -async function apiPortalsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.beginDeleteAndWait( - resourceGroupName, - serviceName, - apiPortalName - ); - console.log(result); -} - -apiPortalsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsGetSample.ts deleted file mode 100644 index f7ab08f1c983..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsGetSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the API portal and its properties. - * - * @summary Get the API portal and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Get.json - */ -async function apiPortalsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.get( - resourceGroupName, - serviceName, - apiPortalName - ); - console.log(result); -} - -apiPortalsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsListSample.ts deleted file mode 100644 index 11e4525e3bac..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsListSample.ts +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_List.json - */ -async function apiPortalsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.apiPortals.list( - resourceGroupName, - serviceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -apiPortalsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsValidateDomainSample.ts deleted file mode 100644 index 1bfec026b167..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsValidateDomainSample.ts +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CustomDomainValidatePayload, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Check the domains are valid as well as not in use. - * - * @summary Check the domains are valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_ValidateDomain.json - */ -async function apiPortalsValidateDomain() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const validatePayload: CustomDomainValidatePayload = { name: "mydomain.io" }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.validateDomain( - resourceGroupName, - serviceName, - apiPortalName, - validatePayload - ); - console.log(result); -} - -apiPortalsValidateDomain().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsCreateOrUpdateSample.ts index 2ee09f941ce5..291b4a26bfba 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/appsCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/appsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create a new App or update an exiting App. * * @summary Create a new App or update an exiting App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_CreateOrUpdate.json */ async function appsCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; @@ -27,39 +27,13 @@ async function appsCreateOrUpdate() { const appName = "myapp"; const appResource: AppResource = { identity: { - type: "SystemAssigned,UserAssigned", + type: "SystemAssigned", principalId: undefined, - tenantId: undefined, - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": { - clientId: undefined, - principalId: undefined - }, - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": { - clientId: undefined, - principalId: undefined - } - } + tenantId: undefined }, location: "eastus", properties: { - addonConfigs: { - applicationConfigurationService: { - }, - serviceRegistry: { - } - }, - customPersistentDisks: [ - { - customPersistentDiskProperties: { - type: "AzureFileVolume", - mountOptions: ["uid=0", "gid=0", "dir_mode=0777", "file_mode=0777"], - mountPath: "/mypath1/mypath2", - shareName: "myFileShare" - }, - storageId: "myASCStorageID" - } - ], + addonConfigs: {}, enableEndToEndTLS: false, fqdn: "myapp.mydomain.com", httpsOnly: false, diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsDeleteSample.ts index 920b3db7a2e7..dfaa51860b49 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/appsDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/appsDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to delete an App. * * @summary Operation to delete an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Delete.json */ async function appsDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsGetResourceUploadUrlSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsGetResourceUploadUrlSample.ts index 5e66e3e4298b..b78f80930453 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/appsGetResourceUploadUrlSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/appsGetResourceUploadUrlSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get an resource upload URL for an App, which may be artifacts or source archive. * * @summary Get an resource upload URL for an App, which may be artifacts or source archive. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_GetResourceUploadUrl.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_GetResourceUploadUrl.json */ async function appsGetResourceUploadUrl() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsGetSample.ts index c3bd2d0a9b2d..9315caca5558 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/appsGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/appsGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get an App and its properties. * * @summary Get an App and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Get.json */ async function appsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsListSample.ts index 8008f13c1edf..c8911dd53f2a 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/appsListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/appsListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all resources in a Service. * * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_List.json */ async function appsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsSetActiveDeploymentsSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsSetActiveDeploymentsSample.ts index 5d8d3632f5ef..e8a35c63e85a 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/appsSetActiveDeploymentsSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/appsSetActiveDeploymentsSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Set existing Deployment under the app as active * * @summary Set existing Deployment under the app as active - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_SetActiveDeployments.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_SetActiveDeployments.json */ async function appsSetActiveDeployments() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsUpdateSample.ts index b7832ad3e93f..754e10525115 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/appsUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/appsUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to update an exiting App. * * @summary Operation to update an exiting App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Update.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Update.json */ async function appsUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; @@ -27,33 +27,12 @@ async function appsUpdate() { const appName = "myapp"; const appResource: AppResource = { identity: { - type: "SystemAssigned,UserAssigned", + type: "SystemAssigned", principalId: undefined, - tenantId: undefined, - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": { - clientId: undefined, - principalId: undefined - }, - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": { - clientId: undefined, - principalId: undefined - } - } + tenantId: undefined }, location: "eastus", properties: { - customPersistentDisks: [ - { - customPersistentDiskProperties: { - type: "AzureFileVolume", - mountOptions: [], - mountPath: "/mypath1/mypath2", - shareName: "myFileShare" - }, - storageId: "myASCStorageID" - } - ], enableEndToEndTLS: false, fqdn: "myapp.mydomain.com", httpsOnly: false, diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsValidateDomainSample.ts index 57ccfc6fe72d..8ed39e2cc420 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/appsValidateDomainSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/appsValidateDomainSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Check the resource name is valid as well as not in use. * * @summary Check the resource name is valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_ValidateDomain.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_ValidateDomain.json */ async function appsValidateDomain() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/bindingsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/bindingsCreateOrUpdateSample.ts index a440679dec20..9e182124bfa6 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/bindingsCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/bindingsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create a new Binding or update an exiting Binding. * * @summary Create a new Binding or update an exiting Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_CreateOrUpdate.json */ async function bindingsCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/bindingsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/bindingsDeleteSample.ts index 291d496c6aa5..fc6c7c249c2e 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/bindingsDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/bindingsDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to delete a Binding. * * @summary Operation to delete a Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Delete.json */ async function bindingsDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/bindingsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/bindingsGetSample.ts index 486acacdd6da..0f5a4356b262 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/bindingsGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/bindingsGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a Binding and its properties. * * @summary Get a Binding and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Get.json */ async function bindingsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/bindingsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/bindingsListSample.ts index 54021ded717d..b3924856f6a8 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/bindingsListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/bindingsListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all resources in an App. * * @summary Handles requests to list all resources in an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_List.json */ async function bindingsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/bindingsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/bindingsUpdateSample.ts index d6895721902f..4ab889756cab 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/bindingsUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/bindingsUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to update an exiting Binding. * * @summary Operation to update an exiting Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Update.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Update.json */ async function bindingsUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolGetSample.ts index 844751ab423e..7069b594c637 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get build service agent pool. * * @summary Get build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_Get.json */ async function buildServiceAgentPoolGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolListSample.ts index f3942f2d2ca2..0e214ac0d297 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List build service agent pool. * * @summary List build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_List.json */ async function buildServiceAgentPoolList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolUpdatePutSample.ts index 60740254be14..c7f71b6ffd08 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolUpdatePutSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolUpdatePutSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create or update build service agent pool. * * @summary Create or update build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_UpdatePut.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_UpdatePut.json */ async function buildServiceAgentPoolUpdatePut() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderCreateOrUpdateSample.ts index 9fd9f2e922e1..f1d47db3e5a8 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create or update a KPack builder. * * @summary Create or update a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_CreateOrUpdate.json */ async function buildServiceBuilderCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderDeleteSample.ts index a5c149c6519b..4da5c890c61f 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Delete a KPack builder. * * @summary Delete a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_Delete.json */ async function buildServiceBuilderDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderGetSample.ts index b0853f0483d9..8abb7051b809 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a KPack builder. * * @summary Get a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_Get.json */ async function buildServiceBuilderGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderListSample.ts index 5ffeaee55c0a..1e14570e387f 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List KPack builders result. * * @summary List KPack builders result. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_List.json */ async function buildServiceBuilderList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceCreateOrUpdateBuildSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceCreateOrUpdateBuildSample.ts index d291119ad979..5e147630af1a 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceCreateOrUpdateBuildSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceCreateOrUpdateBuildSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create or update a KPack build. * * @summary Create or update a KPack build. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_CreateOrUpdateBuild.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_CreateOrUpdateBuild.json */ async function buildServiceCreateOrUpdateBuild() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultLogSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultLogSample.ts index 0c35bdefbee4..c3f3260c4fcb 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultLogSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultLogSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a KPack build result log download URL. * * @summary Get a KPack build result log download URL. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResultLog.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildResultLog.json */ async function buildServiceGetBuildResultLog() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultSample.ts index 2c366f21cff6..0f4edbc26c93 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a KPack build result. * * @summary Get a KPack build result. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResult.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildResult.json */ async function buildServiceGetBuildResult() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildSample.ts index b29ac5e0cecf..ca98fd3f4ac0 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a KPack build. * * @summary Get a KPack build. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuild.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuild.json */ async function buildServiceGetBuild() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildServiceSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildServiceSample.ts index f1db49f92e6e..acbeb2bb05cc 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildServiceSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildServiceSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a build service resource. * * @summary Get a build service resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildService.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildService.json */ async function buildServiceGetBuildService() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetResourceUploadUrlSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetResourceUploadUrlSample.ts index 89243d370192..dbdbf37ac296 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetResourceUploadUrlSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetResourceUploadUrlSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get an resource upload URL for build service, which may be artifacts or source archive. * * @summary Get an resource upload URL for build service, which may be artifacts or source archive. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetResourceUploadUrl.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetResourceUploadUrl.json */ async function buildServiceGetResourceUploadUrl() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedBuildpackSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedBuildpackSample.ts index 1a8f66c2b0c7..64bc1e923132 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedBuildpackSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedBuildpackSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the supported buildpack resource. * * @summary Get the supported buildpack resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedBuildpack.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetSupportedBuildpack.json */ async function buildServiceGetSupportedBuildpack() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedStackSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedStackSample.ts index c897a5e0467d..41a3ff05ee90 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedStackSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedStackSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the supported stack resource. * * @summary Get the supported stack resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedStack.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetSupportedStack.json */ async function buildServiceGetSupportedStack() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildResultsSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildResultsSample.ts index 999666a73cd4..ead4d17d724c 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildResultsSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildResultsSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List KPack build results. * * @summary List KPack build results. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildResults.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuildResults.json */ async function buildServiceListBuildResults() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildServicesSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildServicesSample.ts index 30543425b720..b0998ed80a59 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildServicesSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildServicesSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List build services resource. * * @summary List build services resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildServices.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuildServices.json */ async function buildServiceListBuildServices() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildsSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildsSample.ts index 6c9ca0f68887..4ad547da6923 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildsSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildsSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List KPack builds. * * @summary List KPack builds. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuilds.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuilds.json */ async function buildServiceListBuilds() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedBuildpacksSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedBuildpacksSample.ts index 1327dde3c966..4e90ccedf342 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedBuildpacksSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedBuildpacksSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get all supported buildpacks. * * @summary Get all supported buildpacks. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedBuildpacks.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListSupportedBuildpacks.json */ async function buildServiceListSupportedBuildpacks() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedStacksSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedStacksSample.ts index 40f88fa94e80..6ec27c6b21a1 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedStacksSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedStacksSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get all supported stacks. * * @summary Get all supported stacks. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedStacks.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListSupportedStacks.json */ async function buildServiceListSupportedStacks() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingCreateOrUpdateSample.ts index 12ef67660337..884e0d9c299e 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create or update a buildpack binding. * * @summary Create or update a buildpack binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_CreateOrUpdate.json */ async function buildpackBindingCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingDeleteSample.ts index 3dcb2b246e74..68c0b1f81610 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to delete a Buildpack Binding * * @summary Operation to delete a Buildpack Binding - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_Delete.json */ async function buildpackBindingDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingGetSample.ts index a31bae78936c..4147f847478c 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a buildpack binding by name. * * @summary Get a buildpack binding by name. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_Get.json */ async function buildpackBindingGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingListSample.ts index e951e71bb253..cc9221033694 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all buildpack bindings in a builder. * * @summary Handles requests to list all buildpack bindings in a builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_List.json */ async function buildpackBindingGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/certificatesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/certificatesCreateOrUpdateSample.ts index f25bf7117c35..7f29bf8c4a34 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/certificatesCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/certificatesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create or update certificate resource. * * @summary Create or update certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_CreateOrUpdate.json */ async function certificatesCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/certificatesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/certificatesDeleteSample.ts index 7db1c9877424..46e0230cc3b7 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/certificatesDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/certificatesDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Delete the certificate resource. * * @summary Delete the certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_Delete.json */ async function certificatesDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/certificatesGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/certificatesGetSample.ts index 8ab5b74ef97d..dc268bba1032 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/certificatesGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/certificatesGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the certificate resource. * * @summary Get the certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_Get.json */ async function certificatesGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/certificatesListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/certificatesListSample.ts index da1d6022277e..f7bec4954ed0 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/certificatesListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/certificatesListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List all the certificates of one user. * * @summary List all the certificates of one user. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_List.json */ async function certificatesList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configServersGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configServersGetSample.ts index 71621a915cb9..f4188a032990 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/configServersGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/configServersGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the config server and its properties. * * @summary Get the config server and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_Get.json */ async function configServersGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePatchSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePatchSample.ts index fc87b6343931..ddf4b2d4bd2a 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePatchSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePatchSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Update the config server. * * @summary Update the config server. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePatch.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_UpdatePatch.json */ async function configServersUpdatePatch() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePutSample.ts index 4bfd37686cfa..341b386aac24 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePutSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePutSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Update the config server. * * @summary Update the config server. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePut.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_UpdatePut.json */ async function configServersUpdatePut() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configServersValidateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configServersValidateSample.ts index 6262cea8e5a0..4cfcaed281d7 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/configServersValidateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/configServersValidateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Check if the config server settings are valid. * * @summary Check if the config server settings are valid. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Validate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_Validate.json */ async function configServersValidate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesCreateOrUpdateSample.ts index f116ea415312..bca8a374a3db 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create the default Application Configuration Service or update the existing Application Configuration Service. * * @summary Create the default Application Configuration Service or update the existing Application Configuration Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_CreateOrUpdate.json */ async function configurationServicesCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesDeleteSample.ts index 8d65fa2afdb8..a36338316ed7 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Disable the default Application Configuration Service. * * @summary Disable the default Application Configuration Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Delete.json */ async function configurationServicesDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesGetSample.ts index e66b0136e79f..ab01d941984a 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the Application Configuration Service and its properties. * * @summary Get the Application Configuration Service and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Get.json */ async function configurationServicesGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesListSample.ts index 7f2ddb25d9c2..6659336b7bfb 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all resources in a Service. * * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_List.json */ async function configurationServicesList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesValidateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesValidateSample.ts index 5b2328e2ed29..944afb59108e 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesValidateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesValidateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Check if the Application Configuration Service settings are valid. * * @summary Check if the Application Configuration Service settings are valid. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Validate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Validate.json */ async function configurationServicesValidate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsCreateOrUpdateSample.ts index 7eed0cd3c7fe..413efcc50d26 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create or update custom domain of one lifecycle application. * * @summary Create or update custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_CreateOrUpdate.json */ async function customDomainsCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsDeleteSample.ts index cba07e81cbcd..a98c5c684d8d 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Delete the custom domain of one lifecycle application. * * @summary Delete the custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Delete.json */ async function customDomainsDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsGetSample.ts index d244db1582bc..88558ee6c458 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the custom domain of one lifecycle application. * * @summary Get the custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Get.json */ async function customDomainsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsListSample.ts index c950368ef7c8..9f5dedf9b0f3 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List the custom domains of one lifecycle application. * * @summary List the custom domains of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_List.json */ async function customDomainsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsUpdateSample.ts index f4fbc2f6dbfe..9f7ad8cc03dd 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Update custom domain of one lifecycle application. * * @summary Update custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Update.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Update.json */ async function customDomainsUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsCreateOrUpdateSample.ts index c1820fc4a774..5d4138096cad 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create a new Deployment or update an exiting Deployment. * * @summary Create a new Deployment or update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_CreateOrUpdate.json */ async function deploymentsCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; @@ -29,7 +29,9 @@ async function deploymentsCreateOrUpdate() { const deploymentResource: DeploymentResource = { properties: { deploymentSettings: { - addonConfigs: {}, + addonConfigs: { + applicationConfigurationService: {} + }, environmentVariables: { env: "test" }, resourceRequests: { cpu: "1000m", memory: "3Gi" } }, @@ -57,52 +59,3 @@ async function deploymentsCreateOrUpdate() { } deploymentsCreateOrUpdate().catch(console.error); - -/** - * This sample demonstrates how to Create a new Deployment or update an exiting Deployment. - * - * @summary Create a new Deployment or update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_CreateOrUpdate_CustomContainer.json - */ -async function deploymentsCreateOrUpdateCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource: DeploymentResource = { - properties: { - deploymentSettings: { - environmentVariables: { env: "test" }, - resourceRequests: { cpu: "1000m", memory: "3Gi" } - }, - instances: [], - source: { - type: "Container", - customContainer: { - args: ["-c", "while true; do echo hello; sleep 10;done"], - command: ["/bin/sh"], - containerImage: "myContainerImage:v1", - imageRegistryCredential: { - password: "myPassword", - username: "myUsername" - }, - languageFramework: "springboot", - server: "myacr.azurecr.io" - } - } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsCreateOrUpdateCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsDeleteSample.ts index f39c17972300..829fb90b7223 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to delete a Deployment. * * @summary Operation to delete a Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Delete.json */ async function deploymentsDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateHeapDumpSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateHeapDumpSample.ts index c759bbbe0cc9..8d6b0dc654ba 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateHeapDumpSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateHeapDumpSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Generate Heap Dump * * @summary Generate Heap Dump - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateHeapDump.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GenerateHeapDump.json */ async function deploymentsGenerateHeapDump() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateThreadDumpSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateThreadDumpSample.ts index 57fc3c7ae66b..d07a7b8a283b 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateThreadDumpSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateThreadDumpSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Generate Thread Dump * * @summary Generate Thread Dump - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateThreadDump.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GenerateThreadDump.json */ async function deploymentsGenerateHeapDump() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetLogFileUrlSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetLogFileUrlSample.ts index bfce5700d2dd..742fa3dc17fe 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetLogFileUrlSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetLogFileUrlSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get deployment log file URL * * @summary Get deployment log file URL - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GetLogFileUrl.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GetLogFileUrl.json */ async function deploymentsGetLogFileUrl() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetSample.ts index bd658b648e98..31ddc190ec62 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a Deployment and its properties. * * @summary Get a Deployment and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Get.json */ async function deploymentsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; @@ -35,28 +35,3 @@ async function deploymentsGet() { } deploymentsGet().catch(console.error); - -/** - * This sample demonstrates how to Get a Deployment and its properties. - * - * @summary Get a Deployment and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Get_CustomContainer.json - */ -async function deploymentsGetCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.get( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsGetCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListForClusterSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListForClusterSample.ts index bb04c2847be5..40c53c5d5006 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListForClusterSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListForClusterSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List deployments for a certain service * * @summary List deployments for a certain service - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_ListForCluster.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_ListForCluster.json */ async function deploymentsListForCluster() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListSample.ts index aa950eed396f..6941af9ff227 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all resources in an App. * * @summary Handles requests to list all resources in an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_List.json */ async function deploymentsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsRestartSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsRestartSample.ts index 07493d014386..2e2b1d2af54c 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsRestartSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsRestartSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Restart the deployment. * * @summary Restart the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Restart.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Restart.json */ async function deploymentsRestart() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartJfrSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartJfrSample.ts index 35e6b3e2f8ab..ee44be2ec805 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartJfrSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartJfrSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Start JFR * * @summary Start JFR - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_StartJFR.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_StartJFR.json */ async function deploymentsStartJfr() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartSample.ts index ec8f56ffe3ff..1335e9865b29 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Start the deployment. * * @summary Start the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Start.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Start.json */ async function deploymentsStart() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStopSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStopSample.ts index 24a9fd9a03c1..25da9a1ce07a 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStopSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStopSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Stop the deployment. * * @summary Stop the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Stop.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Stop.json */ async function deploymentsStop() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsUpdateSample.ts index ad32420f9caf..19dd26952b2f 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to update an exiting Deployment. * * @summary Operation to update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Update.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Update.json */ async function deploymentsUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; @@ -51,47 +51,3 @@ async function deploymentsUpdate() { } deploymentsUpdate().catch(console.error); - -/** - * This sample demonstrates how to Operation to update an exiting Deployment. - * - * @summary Operation to update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Update_CustomContainer.json - */ -async function deploymentsUpdateCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource: DeploymentResource = { - properties: { - instances: [], - source: { - type: "Container", - customContainer: { - args: ["-c", "while true; do echo hello; sleep 10;done"], - command: ["/bin/sh"], - containerImage: "myNewContainerImage:v1", - imageRegistryCredential: { - password: "", - username: "myNewUsername" - }, - server: "mynewacr.azurecr.io" - } - } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsUpdateCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsCreateOrUpdateSample.ts deleted file mode 100644 index 9fdc049cfe21..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsCreateOrUpdateSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - GatewayCustomDomainResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update the Spring Cloud Gateway custom domain. - * - * @summary Create or update the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_CreateOrUpdate.json - */ -async function gatewayCustomDomainsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const gatewayCustomDomainResource: GatewayCustomDomainResource = { - properties: { thumbprint: "*" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - domainName, - gatewayCustomDomainResource - ); - console.log(result); -} - -gatewayCustomDomainsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsDeleteSample.ts deleted file mode 100644 index 857cdac7ecec..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsDeleteSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the Spring Cloud Gateway custom domain. - * - * @summary Delete the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Delete.json - */ -async function gatewayCustomDomainsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName, - domainName - ); - console.log(result); -} - -gatewayCustomDomainsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsGetSample.ts deleted file mode 100644 index b2d1e9a59889..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsGetSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway custom domain. - * - * @summary Get the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Get.json - */ -async function gatewayCustomDomainsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.get( - resourceGroupName, - serviceName, - gatewayName, - domainName - ); - console.log(result); -} - -gatewayCustomDomainsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsListSample.ts deleted file mode 100644 index 00fd3ad2f5e2..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsListSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handle requests to list all Spring Cloud Gateway custom domains. - * - * @summary Handle requests to list all Spring Cloud Gateway custom domains. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_List.json - */ -async function gatewayCustomDomainsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gatewayCustomDomains.list( - resourceGroupName, - serviceName, - gatewayName - )) { - resArray.push(item); - } - console.log(resArray); -} - -gatewayCustomDomainsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsCreateOrUpdateSample.ts deleted file mode 100644 index 88ac2615cf9b..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsCreateOrUpdateSample.ts +++ /dev/null @@ -1,55 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - GatewayRouteConfigResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. - * - * @summary Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_CreateOrUpdate.json - */ -async function gatewayRouteConfigsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const gatewayRouteConfigResource: GatewayRouteConfigResource = { - properties: { - appResourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myApp", - routes: [ - { - filters: ["StripPrefix=2", "RateLimit=1,1s"], - predicates: ["Path=/api5/customer/**"], - ssoEnabled: true, - title: "myApp route config" - } - ] - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName, - gatewayRouteConfigResource - ); - console.log(result); -} - -gatewayRouteConfigsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsDeleteSample.ts deleted file mode 100644 index 5f973acfb703..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsDeleteSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the Spring Cloud Gateway route config. - * - * @summary Delete the Spring Cloud Gateway route config. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Delete.json - */ -async function gatewayRouteConfigsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName - ); - console.log(result); -} - -gatewayRouteConfigsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsGetSample.ts deleted file mode 100644 index 022ec6d0935f..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsGetSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway route configs. - * - * @summary Get the Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Get.json - */ -async function gatewayRouteConfigsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.get( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName - ); - console.log(result); -} - -gatewayRouteConfigsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsListSample.ts deleted file mode 100644 index 9dd386692c90..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsListSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handle requests to list all Spring Cloud Gateway route configs. - * - * @summary Handle requests to list all Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_List.json - */ -async function gatewayRouteConfigsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gatewayRouteConfigs.list( - resourceGroupName, - serviceName, - gatewayName - )) { - resArray.push(item); - } - console.log(resArray); -} - -gatewayRouteConfigsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysCreateOrUpdateSample.ts deleted file mode 100644 index 8e710655cd82..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysCreateOrUpdateSample.ts +++ /dev/null @@ -1,43 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - GatewayResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - * - * @summary Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_CreateOrUpdate.json - */ -async function gatewaysCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const gatewayResource: GatewayResource = { - properties: { public: true, resourceRequests: { cpu: "1", memory: "1G" } }, - sku: { name: "E0", capacity: 2, tier: "Enterprise" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - gatewayResource - ); - console.log(result); -} - -gatewaysCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysDeleteSample.ts deleted file mode 100644 index 47b1e99706c2..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysDeleteSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Disable the default Spring Cloud Gateway. - * - * @summary Disable the default Spring Cloud Gateway. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Delete.json - */ -async function gatewaysDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName - ); - console.log(result); -} - -gatewaysDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysGetSample.ts deleted file mode 100644 index b9c4aaa5bd35..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysGetSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway and its properties. - * - * @summary Get the Spring Cloud Gateway and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Get.json - */ -async function gatewaysGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.get( - resourceGroupName, - serviceName, - gatewayName - ); - console.log(result); -} - -gatewaysGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysListSample.ts deleted file mode 100644 index 037edc040095..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysListSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_List.json - */ -async function gatewaysList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gateways.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -gatewaysList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysValidateDomainSample.ts deleted file mode 100644 index 2b3c3fb51905..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysValidateDomainSample.ts +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CustomDomainValidatePayload, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Check the domains are valid as well as not in use. - * - * @summary Check the domains are valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_ValidateDomain.json - */ -async function gatewaysValidateDomain() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const validatePayload: CustomDomainValidatePayload = { name: "mydomain.io" }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.validateDomain( - resourceGroupName, - serviceName, - gatewayName, - validatePayload - ); - console.log(result); -} - -gatewaysValidateDomain().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsGetSample.ts index 6e1e97242b05..f0c25f4628e8 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the Monitoring Setting and its properties. * * @summary Get the Monitoring Setting and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_Get.json */ async function monitoringSettingsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePatchSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePatchSample.ts index a0e8ec0e5c37..740ba963d5d2 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePatchSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePatchSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Update the Monitoring Setting. * * @summary Update the Monitoring Setting. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePatch.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_UpdatePatch.json */ async function monitoringSettingsUpdatePatch() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePutSample.ts index da94a4ed4bef..df2cf8ca9c37 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePutSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePutSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Update the Monitoring Setting. * * @summary Update the Monitoring Setting. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePut.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_UpdatePut.json */ async function monitoringSettingsUpdatePut() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/operationsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/operationsListSample.ts index cb8183f68b16..736586c55c61 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/operationsListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/operationsListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.AppPlatform provider. * * @summary Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Operations_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Operations_List.json */ async function operationsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/runtimeVersionsListRuntimeVersionsSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/runtimeVersionsListRuntimeVersionsSample.ts index 232decc28d89..0d0997c2d317 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/runtimeVersionsListRuntimeVersionsSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/runtimeVersionsListRuntimeVersionsSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. * * @summary Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/RuntimeVersions_ListRuntimeVersions.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/RuntimeVersions_ListRuntimeVersions.json */ async function runtimeVersionsListRuntimeVersions() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesCreateOrUpdateSample.ts index 89cfc1eb1289..fdf1d5a0f525 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesCreateOrUpdateSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create the default Service Registry or update the existing Service Registry. * * @summary Create the default Service Registry or update the existing Service Registry. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_CreateOrUpdate.json */ async function serviceRegistriesCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesDeleteSample.ts index 7777e2649892..13e1a8683afa 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Disable the default Service Registry. * * @summary Disable the default Service Registry. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_Delete.json */ async function serviceRegistriesDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesGetSample.ts index 8e2c5b28bdc9..b027f7bfac5e 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the Service Registry and its properties. * * @summary Get the Service Registry and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_Get.json */ async function serviceRegistriesGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesListSample.ts index 3194e4603279..c220d718c6e4 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all resources in a Service. * * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_List.json */ async function serviceRegistriesList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesCheckNameAvailabilitySample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesCheckNameAvailabilitySample.ts index e5a0b6d4d875..016bb7607f1c 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/servicesCheckNameAvailabilitySample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesCheckNameAvailabilitySample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Checks that the resource name is valid and is not already in use. * * @summary Checks that the resource name is valid and is not already in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CheckNameAvailability.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_CheckNameAvailability.json */ async function servicesCheckNameAvailability() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesCreateOrUpdateSample.ts index ba959e2e0685..55e414ac678d 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/servicesCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create a new Service or update an exiting Service. * * @summary Create a new Service or update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_CreateOrUpdate.json */ async function servicesCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; @@ -46,7 +46,7 @@ servicesCreateOrUpdate().catch(console.error); * This sample demonstrates how to Create a new Service or update an exiting Service. * * @summary Create a new Service or update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CreateOrUpdate_VNetInjection.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_CreateOrUpdate_VNetInjection.json */ async function servicesCreateOrUpdateVNetInjection() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesDeleteSample.ts index cec8f52a524e..f1a06f50bde6 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/servicesDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to delete a Service. * * @summary Operation to delete a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Delete.json */ async function servicesDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesDisableTestEndpointSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesDisableTestEndpointSample.ts index 85ac01c403fc..c4c62b508e97 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/servicesDisableTestEndpointSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesDisableTestEndpointSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Disable test endpoint functionality for a Service. * * @summary Disable test endpoint functionality for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_DisableTestEndpoint.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_DisableTestEndpoint.json */ async function servicesDisableTestEndpoint() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesEnableTestEndpointSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesEnableTestEndpointSample.ts index f00ea74e8464..b867b9ecdaa1 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/servicesEnableTestEndpointSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesEnableTestEndpointSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Enable test endpoint functionality for a Service. * * @summary Enable test endpoint functionality for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_EnableTestEndpoint.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_EnableTestEndpoint.json */ async function servicesEnableTestEndpoint() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesGetSample.ts index 5dbe592a0ecd..07d61fc1f5d5 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/servicesGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a Service and its properties. * * @summary Get a Service and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Get.json */ async function servicesGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesListBySubscriptionSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesListBySubscriptionSample.ts index 994fda4e5fa4..a5e5ad3f18c9 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/servicesListBySubscriptionSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesListBySubscriptionSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all resources in a subscription. * * @summary Handles requests to list all resources in a subscription. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListBySubscription.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_ListBySubscription.json */ async function servicesListBySubscription() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesListSample.ts index b1dfae56602c..624fedb74143 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/servicesListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all resources in a resource group. * * @summary Handles requests to list all resources in a resource group. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_List.json */ async function servicesList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesListTestKeysSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesListTestKeysSample.ts index 9ab4ed1af0f2..86a57f1c8b09 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/servicesListTestKeysSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesListTestKeysSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List test keys for a Service. * * @summary List test keys for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListTestKeys.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_ListTestKeys.json */ async function servicesListTestKeys() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesRegenerateTestKeySample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesRegenerateTestKeySample.ts index 7cefb695c7bc..ca7f78ad12f9 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/servicesRegenerateTestKeySample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesRegenerateTestKeySample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Regenerate a test key for a Service. * * @summary Regenerate a test key for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_RegenerateTestKey.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_RegenerateTestKey.json */ async function servicesRegenerateTestKey() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesStartSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesStartSample.ts deleted file mode 100644 index 05a7cacc4767..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/servicesStartSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Start a Service. - * - * @summary Start a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Start.json - */ -async function servicesStart() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginStartAndWait( - resourceGroupName, - serviceName - ); - console.log(result); -} - -servicesStart().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesStopSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesStopSample.ts deleted file mode 100644 index 3bd4b6495977..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/servicesStopSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Stop a Service. - * - * @summary Stop a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Stop.json - */ -async function servicesStop() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginStopAndWait( - resourceGroupName, - serviceName - ); - console.log(result); -} - -servicesStop().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesUpdateSample.ts index d989c2a742ef..edfe7b46933d 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/servicesUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to update an exiting Service. * * @summary Operation to update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Update.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Update.json */ async function servicesUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/skusListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/skusListSample.ts index 8eb9edda85db..f60542cf7951 100644 --- a/sdk/appplatform/arm-appplatform/samples-dev/skusListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples-dev/skusListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Lists all of the available skus of the Microsoft.AppPlatform provider. * * @summary Lists all of the available skus of the Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Skus_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Skus_List.json */ async function skusList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples-dev/storagesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/storagesCreateOrUpdateSample.ts deleted file mode 100644 index 485e96fb0705..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/storagesCreateOrUpdateSample.ts +++ /dev/null @@ -1,46 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - StorageResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update storage resource. - * - * @summary Create or update storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_CreateOrUpdate.json - */ -async function storagesCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const storageResource: StorageResource = { - properties: { - accountKey: "account-key-of-storage-account", - accountName: "storage-account-name", - storageType: "StorageAccount" - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - storageName, - storageResource - ); - console.log(result); -} - -storagesCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/storagesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/storagesDeleteSample.ts deleted file mode 100644 index 7c98f959e31d..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/storagesDeleteSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the storage resource. - * - * @summary Delete the storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Delete.json - */ -async function storagesDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.beginDeleteAndWait( - resourceGroupName, - serviceName, - storageName - ); - console.log(result); -} - -storagesDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/storagesGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/storagesGetSample.ts deleted file mode 100644 index ea9e5d32550c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/storagesGetSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the storage resource. - * - * @summary Get the storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Get.json - */ -async function storagesGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.get( - resourceGroupName, - serviceName, - storageName - ); - console.log(result); -} - -storagesGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples-dev/storagesListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/storagesListSample.ts deleted file mode 100644 index 6c6a99170421..000000000000 --- a/sdk/appplatform/arm-appplatform/samples-dev/storagesListSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to List all the storages of one Azure Spring Cloud instance. - * - * @summary List all the storages of one Azure Spring Cloud instance. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_List.json - */ -async function storagesList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myService"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.storages.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -storagesList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/README.md b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/README.md deleted file mode 100644 index e675d9e387d7..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/README.md +++ /dev/null @@ -1,282 +0,0 @@ -# client library samples for JavaScript (Beta) - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [apiPortalCustomDomainsCreateOrUpdateSample.js][apiportalcustomdomainscreateorupdatesample] | Create or update the API portal custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_CreateOrUpdate.json | -| [apiPortalCustomDomainsDeleteSample.js][apiportalcustomdomainsdeletesample] | Delete the API portal custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Delete.json | -| [apiPortalCustomDomainsGetSample.js][apiportalcustomdomainsgetsample] | Get the API portal custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Get.json | -| [apiPortalCustomDomainsListSample.js][apiportalcustomdomainslistsample] | Handle requests to list all API portal custom domains. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_List.json | -| [apiPortalsCreateOrUpdateSample.js][apiportalscreateorupdatesample] | Create the default API portal or update the existing API portal. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_CreateOrUpdate.json | -| [apiPortalsDeleteSample.js][apiportalsdeletesample] | Delete the default API portal. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Delete.json | -| [apiPortalsGetSample.js][apiportalsgetsample] | Get the API portal and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Get.json | -| [apiPortalsListSample.js][apiportalslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_List.json | -| [apiPortalsValidateDomainSample.js][apiportalsvalidatedomainsample] | Check the domains are valid as well as not in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_ValidateDomain.json | -| [appsCreateOrUpdateSample.js][appscreateorupdatesample] | Create a new App or update an exiting App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_CreateOrUpdate.json | -| [appsDeleteSample.js][appsdeletesample] | Operation to delete an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Delete.json | -| [appsGetResourceUploadUrlSample.js][appsgetresourceuploadurlsample] | Get an resource upload URL for an App, which may be artifacts or source archive. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_GetResourceUploadUrl.json | -| [appsGetSample.js][appsgetsample] | Get an App and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Get.json | -| [appsListSample.js][appslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_List.json | -| [appsSetActiveDeploymentsSample.js][appssetactivedeploymentssample] | Set existing Deployment under the app as active x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_SetActiveDeployments.json | -| [appsUpdateSample.js][appsupdatesample] | Operation to update an exiting App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Update.json | -| [appsValidateDomainSample.js][appsvalidatedomainsample] | Check the resource name is valid as well as not in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_ValidateDomain.json | -| [bindingsCreateOrUpdateSample.js][bindingscreateorupdatesample] | Create a new Binding or update an exiting Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_CreateOrUpdate.json | -| [bindingsDeleteSample.js][bindingsdeletesample] | Operation to delete a Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Delete.json | -| [bindingsGetSample.js][bindingsgetsample] | Get a Binding and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Get.json | -| [bindingsListSample.js][bindingslistsample] | Handles requests to list all resources in an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_List.json | -| [bindingsUpdateSample.js][bindingsupdatesample] | Operation to update an exiting Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Update.json | -| [buildServiceAgentPoolGetSample.js][buildserviceagentpoolgetsample] | Get build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_Get.json | -| [buildServiceAgentPoolListSample.js][buildserviceagentpoollistsample] | List build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_List.json | -| [buildServiceAgentPoolUpdatePutSample.js][buildserviceagentpoolupdateputsample] | Create or update build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_UpdatePut.json | -| [buildServiceBuilderCreateOrUpdateSample.js][buildservicebuildercreateorupdatesample] | Create or update a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_CreateOrUpdate.json | -| [buildServiceBuilderDeleteSample.js][buildservicebuilderdeletesample] | Delete a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Delete.json | -| [buildServiceBuilderGetSample.js][buildservicebuildergetsample] | Get a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Get.json | -| [buildServiceBuilderListSample.js][buildservicebuilderlistsample] | List KPack builders result. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_List.json | -| [buildServiceCreateOrUpdateBuildSample.js][buildservicecreateorupdatebuildsample] | Create or update a KPack build. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_CreateOrUpdateBuild.json | -| [buildServiceGetBuildResultLogSample.js][buildservicegetbuildresultlogsample] | Get a KPack build result log download URL. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResultLog.json | -| [buildServiceGetBuildResultSample.js][buildservicegetbuildresultsample] | Get a KPack build result. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResult.json | -| [buildServiceGetBuildSample.js][buildservicegetbuildsample] | Get a KPack build. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuild.json | -| [buildServiceGetBuildServiceSample.js][buildservicegetbuildservicesample] | Get a build service resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildService.json | -| [buildServiceGetResourceUploadUrlSample.js][buildservicegetresourceuploadurlsample] | Get an resource upload URL for build service, which may be artifacts or source archive. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetResourceUploadUrl.json | -| [buildServiceGetSupportedBuildpackSample.js][buildservicegetsupportedbuildpacksample] | Get the supported buildpack resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedBuildpack.json | -| [buildServiceGetSupportedStackSample.js][buildservicegetsupportedstacksample] | Get the supported stack resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedStack.json | -| [buildServiceListBuildResultsSample.js][buildservicelistbuildresultssample] | List KPack build results. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildResults.json | -| [buildServiceListBuildServicesSample.js][buildservicelistbuildservicessample] | List build services resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildServices.json | -| [buildServiceListBuildsSample.js][buildservicelistbuildssample] | List KPack builds. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuilds.json | -| [buildServiceListSupportedBuildpacksSample.js][buildservicelistsupportedbuildpackssample] | Get all supported buildpacks. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedBuildpacks.json | -| [buildServiceListSupportedStacksSample.js][buildservicelistsupportedstackssample] | Get all supported stacks. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedStacks.json | -| [buildpackBindingCreateOrUpdateSample.js][buildpackbindingcreateorupdatesample] | Create or update a buildpack binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_CreateOrUpdate.json | -| [buildpackBindingDeleteSample.js][buildpackbindingdeletesample] | Operation to delete a Buildpack Binding x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Delete.json | -| [buildpackBindingGetSample.js][buildpackbindinggetsample] | Get a buildpack binding by name. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Get.json | -| [buildpackBindingListSample.js][buildpackbindinglistsample] | Handles requests to list all buildpack bindings in a builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_List.json | -| [certificatesCreateOrUpdateSample.js][certificatescreateorupdatesample] | Create or update certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_CreateOrUpdate.json | -| [certificatesDeleteSample.js][certificatesdeletesample] | Delete the certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Delete.json | -| [certificatesGetSample.js][certificatesgetsample] | Get the certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Get.json | -| [certificatesListSample.js][certificateslistsample] | List all the certificates of one user. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_List.json | -| [configServersGetSample.js][configserversgetsample] | Get the config server and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Get.json | -| [configServersUpdatePatchSample.js][configserversupdatepatchsample] | Update the config server. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePatch.json | -| [configServersUpdatePutSample.js][configserversupdateputsample] | Update the config server. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePut.json | -| [configServersValidateSample.js][configserversvalidatesample] | Check if the config server settings are valid. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Validate.json | -| [configurationServicesCreateOrUpdateSample.js][configurationservicescreateorupdatesample] | Create the default Application Configuration Service or update the existing Application Configuration Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_CreateOrUpdate.json | -| [configurationServicesDeleteSample.js][configurationservicesdeletesample] | Disable the default Application Configuration Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Delete.json | -| [configurationServicesGetSample.js][configurationservicesgetsample] | Get the Application Configuration Service and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Get.json | -| [configurationServicesListSample.js][configurationserviceslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_List.json | -| [configurationServicesValidateSample.js][configurationservicesvalidatesample] | Check if the Application Configuration Service settings are valid. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Validate.json | -| [customDomainsCreateOrUpdateSample.js][customdomainscreateorupdatesample] | Create or update custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_CreateOrUpdate.json | -| [customDomainsDeleteSample.js][customdomainsdeletesample] | Delete the custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Delete.json | -| [customDomainsGetSample.js][customdomainsgetsample] | Get the custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Get.json | -| [customDomainsListSample.js][customdomainslistsample] | List the custom domains of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_List.json | -| [customDomainsUpdateSample.js][customdomainsupdatesample] | Update custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Update.json | -| [deploymentsCreateOrUpdateSample.js][deploymentscreateorupdatesample] | Create a new Deployment or update an exiting Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_CreateOrUpdate.json | -| [deploymentsDeleteSample.js][deploymentsdeletesample] | Operation to delete a Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Delete.json | -| [deploymentsGenerateHeapDumpSample.js][deploymentsgenerateheapdumpsample] | Generate Heap Dump x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateHeapDump.json | -| [deploymentsGenerateThreadDumpSample.js][deploymentsgeneratethreaddumpsample] | Generate Thread Dump x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateThreadDump.json | -| [deploymentsGetLogFileUrlSample.js][deploymentsgetlogfileurlsample] | Get deployment log file URL x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GetLogFileUrl.json | -| [deploymentsGetSample.js][deploymentsgetsample] | Get a Deployment and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Get.json | -| [deploymentsListForClusterSample.js][deploymentslistforclustersample] | List deployments for a certain service x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_ListForCluster.json | -| [deploymentsListSample.js][deploymentslistsample] | Handles requests to list all resources in an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_List.json | -| [deploymentsRestartSample.js][deploymentsrestartsample] | Restart the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Restart.json | -| [deploymentsStartJfrSample.js][deploymentsstartjfrsample] | Start JFR x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_StartJFR.json | -| [deploymentsStartSample.js][deploymentsstartsample] | Start the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Start.json | -| [deploymentsStopSample.js][deploymentsstopsample] | Stop the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Stop.json | -| [deploymentsUpdateSample.js][deploymentsupdatesample] | Operation to update an exiting Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Update.json | -| [gatewayCustomDomainsCreateOrUpdateSample.js][gatewaycustomdomainscreateorupdatesample] | Create or update the Spring Cloud Gateway custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_CreateOrUpdate.json | -| [gatewayCustomDomainsDeleteSample.js][gatewaycustomdomainsdeletesample] | Delete the Spring Cloud Gateway custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Delete.json | -| [gatewayCustomDomainsGetSample.js][gatewaycustomdomainsgetsample] | Get the Spring Cloud Gateway custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Get.json | -| [gatewayCustomDomainsListSample.js][gatewaycustomdomainslistsample] | Handle requests to list all Spring Cloud Gateway custom domains. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_List.json | -| [gatewayRouteConfigsCreateOrUpdateSample.js][gatewayrouteconfigscreateorupdatesample] | Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_CreateOrUpdate.json | -| [gatewayRouteConfigsDeleteSample.js][gatewayrouteconfigsdeletesample] | Delete the Spring Cloud Gateway route config. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Delete.json | -| [gatewayRouteConfigsGetSample.js][gatewayrouteconfigsgetsample] | Get the Spring Cloud Gateway route configs. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Get.json | -| [gatewayRouteConfigsListSample.js][gatewayrouteconfigslistsample] | Handle requests to list all Spring Cloud Gateway route configs. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_List.json | -| [gatewaysCreateOrUpdateSample.js][gatewayscreateorupdatesample] | Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_CreateOrUpdate.json | -| [gatewaysDeleteSample.js][gatewaysdeletesample] | Disable the default Spring Cloud Gateway. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Delete.json | -| [gatewaysGetSample.js][gatewaysgetsample] | Get the Spring Cloud Gateway and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Get.json | -| [gatewaysListSample.js][gatewayslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_List.json | -| [gatewaysValidateDomainSample.js][gatewaysvalidatedomainsample] | Check the domains are valid as well as not in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_ValidateDomain.json | -| [monitoringSettingsGetSample.js][monitoringsettingsgetsample] | Get the Monitoring Setting and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_Get.json | -| [monitoringSettingsUpdatePatchSample.js][monitoringsettingsupdatepatchsample] | Update the Monitoring Setting. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePatch.json | -| [monitoringSettingsUpdatePutSample.js][monitoringsettingsupdateputsample] | Update the Monitoring Setting. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePut.json | -| [operationsListSample.js][operationslistsample] | Lists all of the available REST API operations of the Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Operations_List.json | -| [runtimeVersionsListRuntimeVersionsSample.js][runtimeversionslistruntimeversionssample] | Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/RuntimeVersions_ListRuntimeVersions.json | -| [serviceRegistriesCreateOrUpdateSample.js][serviceregistriescreateorupdatesample] | Create the default Service Registry or update the existing Service Registry. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_CreateOrUpdate.json | -| [serviceRegistriesDeleteSample.js][serviceregistriesdeletesample] | Disable the default Service Registry. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Delete.json | -| [serviceRegistriesGetSample.js][serviceregistriesgetsample] | Get the Service Registry and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Get.json | -| [serviceRegistriesListSample.js][serviceregistrieslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_List.json | -| [servicesCheckNameAvailabilitySample.js][serviceschecknameavailabilitysample] | Checks that the resource name is valid and is not already in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CheckNameAvailability.json | -| [servicesCreateOrUpdateSample.js][servicescreateorupdatesample] | Create a new Service or update an exiting Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CreateOrUpdate.json | -| [servicesDeleteSample.js][servicesdeletesample] | Operation to delete a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Delete.json | -| [servicesDisableTestEndpointSample.js][servicesdisabletestendpointsample] | Disable test endpoint functionality for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_DisableTestEndpoint.json | -| [servicesEnableTestEndpointSample.js][servicesenabletestendpointsample] | Enable test endpoint functionality for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_EnableTestEndpoint.json | -| [servicesGetSample.js][servicesgetsample] | Get a Service and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Get.json | -| [servicesListBySubscriptionSample.js][serviceslistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListBySubscription.json | -| [servicesListSample.js][serviceslistsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_List.json | -| [servicesListTestKeysSample.js][serviceslisttestkeyssample] | List test keys for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListTestKeys.json | -| [servicesRegenerateTestKeySample.js][servicesregeneratetestkeysample] | Regenerate a test key for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_RegenerateTestKey.json | -| [servicesStartSample.js][servicesstartsample] | Start a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Start.json | -| [servicesStopSample.js][servicesstopsample] | Stop a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Stop.json | -| [servicesUpdateSample.js][servicesupdatesample] | Operation to update an exiting Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Update.json | -| [skusListSample.js][skuslistsample] | Lists all of the available skus of the Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Skus_List.json | -| [storagesCreateOrUpdateSample.js][storagescreateorupdatesample] | Create or update storage resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_CreateOrUpdate.json | -| [storagesDeleteSample.js][storagesdeletesample] | Delete the storage resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Delete.json | -| [storagesGetSample.js][storagesgetsample] | Get the storage resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Get.json | -| [storagesListSample.js][storageslistsample] | List all the storages of one Azure Spring Cloud instance. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_List.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node apiPortalCustomDomainsCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env node apiPortalCustomDomainsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[apiportalcustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsCreateOrUpdateSample.js -[apiportalcustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsDeleteSample.js -[apiportalcustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsGetSample.js -[apiportalcustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsListSample.js -[apiportalscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsCreateOrUpdateSample.js -[apiportalsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsDeleteSample.js -[apiportalsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsGetSample.js -[apiportalslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsListSample.js -[apiportalsvalidatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsValidateDomainSample.js -[appscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsCreateOrUpdateSample.js -[appsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsDeleteSample.js -[appsgetresourceuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsGetResourceUploadUrlSample.js -[appsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsGetSample.js -[appslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsListSample.js -[appssetactivedeploymentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsSetActiveDeploymentsSample.js -[appsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsUpdateSample.js -[appsvalidatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsValidateDomainSample.js -[bindingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsCreateOrUpdateSample.js -[bindingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsDeleteSample.js -[bindingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsGetSample.js -[bindingslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsListSample.js -[bindingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsUpdateSample.js -[buildserviceagentpoolgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceAgentPoolGetSample.js -[buildserviceagentpoollistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceAgentPoolListSample.js -[buildserviceagentpoolupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceAgentPoolUpdatePutSample.js -[buildservicebuildercreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderCreateOrUpdateSample.js -[buildservicebuilderdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderDeleteSample.js -[buildservicebuildergetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderGetSample.js -[buildservicebuilderlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderListSample.js -[buildservicecreateorupdatebuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceCreateOrUpdateBuildSample.js -[buildservicegetbuildresultlogsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildResultLogSample.js -[buildservicegetbuildresultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildResultSample.js -[buildservicegetbuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildSample.js -[buildservicegetbuildservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildServiceSample.js -[buildservicegetresourceuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetResourceUploadUrlSample.js -[buildservicegetsupportedbuildpacksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetSupportedBuildpackSample.js -[buildservicegetsupportedstacksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetSupportedStackSample.js -[buildservicelistbuildresultssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListBuildResultsSample.js -[buildservicelistbuildservicessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListBuildServicesSample.js -[buildservicelistbuildssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListBuildsSample.js -[buildservicelistsupportedbuildpackssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListSupportedBuildpacksSample.js -[buildservicelistsupportedstackssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListSupportedStacksSample.js -[buildpackbindingcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingCreateOrUpdateSample.js -[buildpackbindingdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingDeleteSample.js -[buildpackbindinggetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingGetSample.js -[buildpackbindinglistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingListSample.js -[certificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesCreateOrUpdateSample.js -[certificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesDeleteSample.js -[certificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesGetSample.js -[certificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesListSample.js -[configserversgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersGetSample.js -[configserversupdatepatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersUpdatePatchSample.js -[configserversupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersUpdatePutSample.js -[configserversvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersValidateSample.js -[configurationservicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesCreateOrUpdateSample.js -[configurationservicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesDeleteSample.js -[configurationservicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesGetSample.js -[configurationserviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesListSample.js -[configurationservicesvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesValidateSample.js -[customdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsCreateOrUpdateSample.js -[customdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsDeleteSample.js -[customdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsGetSample.js -[customdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsListSample.js -[customdomainsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsUpdateSample.js -[deploymentscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsCreateOrUpdateSample.js -[deploymentsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsDeleteSample.js -[deploymentsgenerateheapdumpsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGenerateHeapDumpSample.js -[deploymentsgeneratethreaddumpsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGenerateThreadDumpSample.js -[deploymentsgetlogfileurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGetLogFileUrlSample.js -[deploymentsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGetSample.js -[deploymentslistforclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsListForClusterSample.js -[deploymentslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsListSample.js -[deploymentsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsRestartSample.js -[deploymentsstartjfrsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsStartJfrSample.js -[deploymentsstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsStartSample.js -[deploymentsstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsStopSample.js -[deploymentsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsUpdateSample.js -[gatewaycustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsCreateOrUpdateSample.js -[gatewaycustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsDeleteSample.js -[gatewaycustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsGetSample.js -[gatewaycustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsListSample.js -[gatewayrouteconfigscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsCreateOrUpdateSample.js -[gatewayrouteconfigsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsDeleteSample.js -[gatewayrouteconfigsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsGetSample.js -[gatewayrouteconfigslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsListSample.js -[gatewayscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysCreateOrUpdateSample.js -[gatewaysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysDeleteSample.js -[gatewaysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysGetSample.js -[gatewayslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysListSample.js -[gatewaysvalidatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysValidateDomainSample.js -[monitoringsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/monitoringSettingsGetSample.js -[monitoringsettingsupdatepatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/monitoringSettingsUpdatePatchSample.js -[monitoringsettingsupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/monitoringSettingsUpdatePutSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/operationsListSample.js -[runtimeversionslistruntimeversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/runtimeVersionsListRuntimeVersionsSample.js -[serviceregistriescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesCreateOrUpdateSample.js -[serviceregistriesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesDeleteSample.js -[serviceregistriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesGetSample.js -[serviceregistrieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesListSample.js -[serviceschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesCheckNameAvailabilitySample.js -[servicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesCreateOrUpdateSample.js -[servicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesDeleteSample.js -[servicesdisabletestendpointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesDisableTestEndpointSample.js -[servicesenabletestendpointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesEnableTestEndpointSample.js -[servicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesGetSample.js -[serviceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesListBySubscriptionSample.js -[serviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesListSample.js -[serviceslisttestkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesListTestKeysSample.js -[servicesregeneratetestkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesRegenerateTestKeySample.js -[servicesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesStartSample.js -[servicesstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesStopSample.js -[servicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesUpdateSample.js -[skuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/skusListSample.js -[storagescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesCreateOrUpdateSample.js -[storagesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesDeleteSample.js -[storagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesGetSample.js -[storageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesListSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform/README.md diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsCreateOrUpdateSample.js deleted file mode 100644 index 2969c01e9364..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsCreateOrUpdateSample.js +++ /dev/null @@ -1,41 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create or update the API portal custom domain. - * - * @summary Create or update the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_CreateOrUpdate.json - */ -async function apiPortalCustomDomainsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const apiPortalCustomDomainResource = { - properties: { thumbprint: "*" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - apiPortalName, - domainName, - apiPortalCustomDomainResource - ); - console.log(result); -} - -apiPortalCustomDomainsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsDeleteSample.js deleted file mode 100644 index f67bb2362dfe..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsDeleteSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Delete the API portal custom domain. - * - * @summary Delete the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Delete.json - */ -async function apiPortalCustomDomainsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.beginDeleteAndWait( - resourceGroupName, - serviceName, - apiPortalName, - domainName - ); - console.log(result); -} - -apiPortalCustomDomainsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsGetSample.js deleted file mode 100644 index f287cde8ecbc..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsGetSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the API portal custom domain. - * - * @summary Get the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Get.json - */ -async function apiPortalCustomDomainsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.get( - resourceGroupName, - serviceName, - apiPortalName, - domainName - ); - console.log(result); -} - -apiPortalCustomDomainsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsListSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsListSample.js deleted file mode 100644 index ab5d855f427b..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalCustomDomainsListSample.js +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handle requests to list all API portal custom domains. - * - * @summary Handle requests to list all API portal custom domains. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_List.json - */ -async function apiPortalCustomDomainsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.apiPortalCustomDomains.list( - resourceGroupName, - serviceName, - apiPortalName - )) { - resArray.push(item); - } - console.log(resArray); -} - -apiPortalCustomDomainsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsCreateOrUpdateSample.js deleted file mode 100644 index 25b84b146b66..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsCreateOrUpdateSample.js +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create the default API portal or update the existing API portal. - * - * @summary Create the default API portal or update the existing API portal. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_CreateOrUpdate.json - */ -async function apiPortalsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const apiPortalResource = { - properties: { - gatewayIds: [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default", - ], - public: true, - }, - sku: { name: "E0", capacity: 2, tier: "Enterprise" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - apiPortalName, - apiPortalResource - ); - console.log(result); -} - -apiPortalsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsDeleteSample.js deleted file mode 100644 index ff79c5a0eedf..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsDeleteSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Delete the default API portal. - * - * @summary Delete the default API portal. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Delete.json - */ -async function apiPortalsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.beginDeleteAndWait( - resourceGroupName, - serviceName, - apiPortalName - ); - console.log(result); -} - -apiPortalsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsGetSample.js deleted file mode 100644 index d3478026dca9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsGetSample.js +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the API portal and its properties. - * - * @summary Get the API portal and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Get.json - */ -async function apiPortalsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.get(resourceGroupName, serviceName, apiPortalName); - console.log(result); -} - -apiPortalsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsListSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsListSample.js deleted file mode 100644 index 07023c1e9b3d..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsListSample.js +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_List.json - */ -async function apiPortalsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.apiPortals.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -apiPortalsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsValidateDomainSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsValidateDomainSample.js deleted file mode 100644 index 47109a9e94e6..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/apiPortalsValidateDomainSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Check the domains are valid as well as not in use. - * - * @summary Check the domains are valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_ValidateDomain.json - */ -async function apiPortalsValidateDomain() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const validatePayload = { name: "mydomain.io" }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.validateDomain( - resourceGroupName, - serviceName, - apiPortalName, - validatePayload - ); - console.log(result); -} - -apiPortalsValidateDomain().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsDeleteSample.js deleted file mode 100644 index 04b07c67c3bd..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsDeleteSample.js +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Operation to delete an App. - * - * @summary Operation to delete an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Delete.json - */ -async function appsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apps.beginDeleteAndWait(resourceGroupName, serviceName, appName); - console.log(result); -} - -appsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsGetResourceUploadUrlSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsGetResourceUploadUrlSample.js deleted file mode 100644 index e97b2c87f738..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsGetResourceUploadUrlSample.js +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get an resource upload URL for an App, which may be artifacts or source archive. - * - * @summary Get an resource upload URL for an App, which may be artifacts or source archive. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_GetResourceUploadUrl.json - */ -async function appsGetResourceUploadUrl() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apps.getResourceUploadUrl(resourceGroupName, serviceName, appName); - console.log(result); -} - -appsGetResourceUploadUrl().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsListSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsListSample.js deleted file mode 100644 index f120b183cd96..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsListSample.js +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_List.json - */ -async function appsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.apps.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -appsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsUpdateSample.js deleted file mode 100644 index e30b91c0beae..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsUpdateSample.js +++ /dev/null @@ -1,75 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Operation to update an exiting App. - * - * @summary Operation to update an exiting App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Update.json - */ -async function appsUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const appResource = { - identity: { - type: "SystemAssigned,UserAssigned", - principalId: undefined, - tenantId: undefined, - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": - { - clientId: undefined, - principalId: undefined, - }, - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": - { - clientId: undefined, - principalId: undefined, - }, - }, - }, - location: "eastus", - properties: { - customPersistentDisks: [ - { - customPersistentDiskProperties: { - type: "AzureFileVolume", - mountOptions: [], - mountPath: "/mypath1/mypath2", - shareName: "myFileShare", - }, - storageId: "myASCStorageID", - }, - ], - enableEndToEndTLS: false, - fqdn: "myapp.mydomain.com", - httpsOnly: false, - persistentDisk: { mountPath: "/mypersistentdisk", sizeInGB: 2 }, - public: true, - temporaryDisk: { mountPath: "/mytemporarydisk", sizeInGB: 2 }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apps.beginUpdateAndWait( - resourceGroupName, - serviceName, - appName, - appResource - ); - console.log(result); -} - -appsUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsDeleteSample.js deleted file mode 100644 index b66d00e403d9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsDeleteSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Operation to delete a Binding. - * - * @summary Operation to delete a Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Delete.json - */ -async function bindingsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const bindingName = "mybinding"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.bindings.beginDeleteAndWait( - resourceGroupName, - serviceName, - appName, - bindingName - ); - console.log(result); -} - -bindingsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsGetSample.js deleted file mode 100644 index 45c816f6d173..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsGetSample.js +++ /dev/null @@ -1,32 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get a Binding and its properties. - * - * @summary Get a Binding and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Get.json - */ -async function bindingsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const bindingName = "mybinding"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.bindings.get(resourceGroupName, serviceName, appName, bindingName); - console.log(result); -} - -bindingsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceAgentPoolGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceAgentPoolGetSample.js deleted file mode 100644 index c0aa001e00fe..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceAgentPoolGetSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get build service agent pool. - * - * @summary Get build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_Get.json - */ -async function buildServiceAgentPoolGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const agentPoolName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceAgentPool.get( - resourceGroupName, - serviceName, - buildServiceName, - agentPoolName - ); - console.log(result); -} - -buildServiceAgentPoolGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceAgentPoolUpdatePutSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceAgentPoolUpdatePutSample.js deleted file mode 100644 index 954c84fc5728..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceAgentPoolUpdatePutSample.js +++ /dev/null @@ -1,41 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create or update build service agent pool. - * - * @summary Create or update build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_UpdatePut.json - */ -async function buildServiceAgentPoolUpdatePut() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const agentPoolName = "default"; - const agentPoolResource = { - properties: { poolSize: { name: "S3" } }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceAgentPool.beginUpdatePutAndWait( - resourceGroupName, - serviceName, - buildServiceName, - agentPoolName, - agentPoolResource - ); - console.log(result); -} - -buildServiceAgentPoolUpdatePut().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderDeleteSample.js deleted file mode 100644 index 14027f84c1e6..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderDeleteSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Delete a KPack builder. - * - * @summary Delete a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Delete.json - */ -async function buildServiceBuilderDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const builderName = "mybuilder"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceBuilder.beginDeleteAndWait( - resourceGroupName, - serviceName, - buildServiceName, - builderName - ); - console.log(result); -} - -buildServiceBuilderDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderListSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderListSample.js deleted file mode 100644 index 16c8f0184f8a..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderListSample.js +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to List KPack builders result. - * - * @summary List KPack builders result. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_List.json - */ -async function buildServiceBuilderList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.buildServiceBuilder.list( - resourceGroupName, - serviceName, - buildServiceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -buildServiceBuilderList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceCreateOrUpdateBuildSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceCreateOrUpdateBuildSample.js deleted file mode 100644 index ae9e24d66a50..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceCreateOrUpdateBuildSample.js +++ /dev/null @@ -1,49 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create or update a KPack build. - * - * @summary Create or update a KPack build. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_CreateOrUpdateBuild.json - */ -async function buildServiceCreateOrUpdateBuild() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const buildName = "mybuild"; - const build = { - properties: { - agentPool: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/agentPools/default", - builder: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builders/default", - env: { environmentVariable: "test" }, - relativePath: - "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-20210601-3ed9f4a2-986b-4bbd-b833-a42dccb2f777", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.createOrUpdateBuild( - resourceGroupName, - serviceName, - buildServiceName, - buildName, - build - ); - console.log(result); -} - -buildServiceCreateOrUpdateBuild().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildResultLogSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildResultLogSample.js deleted file mode 100644 index bb98f3feaae5..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildResultLogSample.js +++ /dev/null @@ -1,39 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get a KPack build result log download URL. - * - * @summary Get a KPack build result log download URL. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResultLog.json - */ -async function buildServiceGetBuildResultLog() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const buildName = "mybuild"; - const buildResultName = "123"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.getBuildResultLog( - resourceGroupName, - serviceName, - buildServiceName, - buildName, - buildResultName - ); - console.log(result); -} - -buildServiceGetBuildResultLog().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildSample.js deleted file mode 100644 index b3efa0d0fe36..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get a KPack build. - * - * @summary Get a KPack build. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuild.json - */ -async function buildServiceGetBuild() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const buildName = "mybuild"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.getBuild( - resourceGroupName, - serviceName, - buildServiceName, - buildName - ); - console.log(result); -} - -buildServiceGetBuild().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetSupportedStackSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetSupportedStackSample.js deleted file mode 100644 index 26e9c784528c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetSupportedStackSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the supported stack resource. - * - * @summary Get the supported stack resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedStack.json - */ -async function buildServiceGetSupportedStack() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const stackName = "io.buildpacks.stacks.bionic-base"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.getSupportedStack( - resourceGroupName, - serviceName, - buildServiceName, - stackName - ); - console.log(result); -} - -buildServiceGetSupportedStack().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListBuildServicesSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListBuildServicesSample.js deleted file mode 100644 index 2218a92b73ff..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListBuildServicesSample.js +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to List build services resource. - * - * @summary List build services resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildServices.json - */ -async function buildServiceListBuildServices() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.buildServiceOperations.listBuildServices( - resourceGroupName, - serviceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -buildServiceListBuildServices().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListBuildsSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListBuildsSample.js deleted file mode 100644 index 4e1121befcc6..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListBuildsSample.js +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to List KPack builds. - * - * @summary List KPack builds. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuilds.json - */ -async function buildServiceListBuilds() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.buildServiceOperations.listBuilds( - resourceGroupName, - serviceName, - buildServiceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -buildServiceListBuilds().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListSupportedBuildpacksSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListSupportedBuildpacksSample.js deleted file mode 100644 index fd58fa83fd70..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListSupportedBuildpacksSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get all supported buildpacks. - * - * @summary Get all supported buildpacks. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedBuildpacks.json - */ -async function buildServiceListSupportedBuildpacks() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.listSupportedBuildpacks( - resourceGroupName, - serviceName, - buildServiceName - ); - console.log(result); -} - -buildServiceListSupportedBuildpacks().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingCreateOrUpdateSample.js deleted file mode 100644 index 83805d1f8bc2..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingCreateOrUpdateSample.js +++ /dev/null @@ -1,56 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create or update a buildpack binding. - * - * @summary Create or update a buildpack binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_CreateOrUpdate.json - */ -async function buildpackBindingCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const builderName = "default"; - const buildpackBindingName = "myBuildpackBinding"; - const buildpackBinding = { - properties: { - bindingType: "ApplicationInsights", - launchProperties: { - properties: { - abc: "def", - anyString: "any-string", - samplingRate: "12.0", - }, - secrets: { - connectionString: - "XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX", - }, - }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildpackBinding.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - buildServiceName, - builderName, - buildpackBindingName, - buildpackBinding - ); - console.log(result); -} - -buildpackBindingCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingGetSample.js deleted file mode 100644 index 6404503db150..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingGetSample.js +++ /dev/null @@ -1,39 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get a buildpack binding by name. - * - * @summary Get a buildpack binding by name. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Get.json - */ -async function buildpackBindingGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const builderName = "default"; - const buildpackBindingName = "myBuildpackBinding"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildpackBinding.get( - resourceGroupName, - serviceName, - buildServiceName, - builderName, - buildpackBindingName - ); - console.log(result); -} - -buildpackBindingGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingListSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingListSample.js deleted file mode 100644 index d2c1598dc6c8..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingListSample.js +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handles requests to list all buildpack bindings in a builder. - * - * @summary Handles requests to list all buildpack bindings in a builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_List.json - */ -async function buildpackBindingGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const builderName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.buildpackBinding.list( - resourceGroupName, - serviceName, - buildServiceName, - builderName - )) { - resArray.push(item); - } - console.log(resArray); -} - -buildpackBindingGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesDeleteSample.js deleted file mode 100644 index 6df1ca1cdcb4..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesDeleteSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Delete the certificate resource. - * - * @summary Delete the certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Delete.json - */ -async function certificatesDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const certificateName = "mycertificate"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.certificates.beginDeleteAndWait( - resourceGroupName, - serviceName, - certificateName - ); - console.log(result); -} - -certificatesDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesGetSample.js deleted file mode 100644 index f1dd6d157899..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesGetSample.js +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the certificate resource. - * - * @summary Get the certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Get.json - */ -async function certificatesGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const certificateName = "mycertificate"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.certificates.get(resourceGroupName, serviceName, certificateName); - console.log(result); -} - -certificatesGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesListSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesListSample.js deleted file mode 100644 index e0194b6994e9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesListSample.js +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to List all the certificates of one user. - * - * @summary List all the certificates of one user. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_List.json - */ -async function certificatesList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myService"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.certificates.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -certificatesList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersUpdatePatchSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersUpdatePatchSample.js deleted file mode 100644 index 88ef9101154f..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersUpdatePatchSample.js +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Update the config server. - * - * @summary Update the config server. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePatch.json - */ -async function configServersUpdatePatch() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const configServerResource = { - properties: { - configServer: { - gitProperty: { - label: "master", - searchPaths: ["/"], - uri: "https://github.com/fake-user/fake-repository.git", - }, - }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configServers.beginUpdatePatchAndWait( - resourceGroupName, - serviceName, - configServerResource - ); - console.log(result); -} - -configServersUpdatePatch().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersUpdatePutSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersUpdatePutSample.js deleted file mode 100644 index b6f317df5a1f..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersUpdatePutSample.js +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Update the config server. - * - * @summary Update the config server. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePut.json - */ -async function configServersUpdatePut() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const configServerResource = { - properties: { - configServer: { - gitProperty: { - label: "master", - searchPaths: ["/"], - uri: "https://github.com/fake-user/fake-repository.git", - }, - }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configServers.beginUpdatePutAndWait( - resourceGroupName, - serviceName, - configServerResource - ); - console.log(result); -} - -configServersUpdatePut().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesCreateOrUpdateSample.js deleted file mode 100644 index fd5dba0174ac..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesCreateOrUpdateSample.js +++ /dev/null @@ -1,52 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create the default Application Configuration Service or update the existing Application Configuration Service. - * - * @summary Create the default Application Configuration Service or update the existing Application Configuration Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_CreateOrUpdate.json - */ -async function configurationServicesCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const configurationServiceName = "default"; - const configurationServiceResource = { - properties: { - settings: { - gitProperty: { - repositories: [ - { - name: "fake", - label: "master", - patterns: ["app/dev"], - uri: "https://github.com/fake-user/fake-repository", - }, - ], - }, - }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configurationServices.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - configurationServiceName, - configurationServiceResource - ); - console.log(result); -} - -configurationServicesCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesGetSample.js deleted file mode 100644 index b5ab685bfd27..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesGetSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the Application Configuration Service and its properties. - * - * @summary Get the Application Configuration Service and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Get.json - */ -async function configurationServicesGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const configurationServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configurationServices.get( - resourceGroupName, - serviceName, - configurationServiceName - ); - console.log(result); -} - -configurationServicesGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesListSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesListSample.js deleted file mode 100644 index 48111fecaec9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesListSample.js +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_List.json - */ -async function configurationServicesList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.configurationServices.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -configurationServicesList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesValidateSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesValidateSample.js deleted file mode 100644 index a1554543a226..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesValidateSample.js +++ /dev/null @@ -1,48 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Check if the Application Configuration Service settings are valid. - * - * @summary Check if the Application Configuration Service settings are valid. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Validate.json - */ -async function configurationServicesValidate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const configurationServiceName = "default"; - const settings = { - gitProperty: { - repositories: [ - { - name: "fake", - label: "master", - patterns: ["app/dev"], - uri: "https://github.com/fake-user/fake-repository", - }, - ], - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configurationServices.beginValidateAndWait( - resourceGroupName, - serviceName, - configurationServiceName, - settings - ); - console.log(result); -} - -configurationServicesValidate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsGetSample.js deleted file mode 100644 index e5e634a26d27..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsGetSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the custom domain of one lifecycle application. - * - * @summary Get the custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Get.json - */ -async function customDomainsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const domainName = "mydomain.com"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.customDomains.get( - resourceGroupName, - serviceName, - appName, - domainName - ); - console.log(result); -} - -customDomainsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsDeleteSample.js deleted file mode 100644 index ca244ad67372..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsDeleteSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Operation to delete a Deployment. - * - * @summary Operation to delete a Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Delete.json - */ -async function deploymentsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginDeleteAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGenerateHeapDumpSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGenerateHeapDumpSample.js deleted file mode 100644 index 41bfd9209305..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGenerateHeapDumpSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Generate Heap Dump - * - * @summary Generate Heap Dump - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateHeapDump.json - */ -async function deploymentsGenerateHeapDump() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const diagnosticParameters = { - appInstance: "myappinstance", - filePath: "/byos/diagnose", - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginGenerateHeapDumpAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - diagnosticParameters - ); - console.log(result); -} - -deploymentsGenerateHeapDump().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGenerateThreadDumpSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGenerateThreadDumpSample.js deleted file mode 100644 index d826086cc076..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGenerateThreadDumpSample.js +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Generate Thread Dump - * - * @summary Generate Thread Dump - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateThreadDump.json - */ -async function deploymentsGenerateHeapDump() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const diagnosticParameters = { - appInstance: "myappinstance", - filePath: "/byos/diagnose", - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginGenerateThreadDumpAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - diagnosticParameters - ); - console.log(result); -} - -deploymentsGenerateHeapDump().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGetSample.js deleted file mode 100644 index a14265908cd7..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGetSample.js +++ /dev/null @@ -1,62 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get a Deployment and its properties. - * - * @summary Get a Deployment and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Get.json - */ -async function deploymentsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.get( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsGet().catch(console.error); - -/** - * This sample demonstrates how to Get a Deployment and its properties. - * - * @summary Get a Deployment and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Get_CustomContainer.json - */ -async function deploymentsGetCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.get( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsGetCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsListForClusterSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsListForClusterSample.js deleted file mode 100644 index 949eaf0b97ea..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsListForClusterSample.js +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to List deployments for a certain service - * - * @summary List deployments for a certain service - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_ListForCluster.json - */ -async function deploymentsListForCluster() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.deployments.listForCluster(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -deploymentsListForCluster().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsListSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsListSample.js deleted file mode 100644 index ed5a189a45a5..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsListSample.js +++ /dev/null @@ -1,34 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handles requests to list all resources in an App. - * - * @summary Handles requests to list all resources in an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_List.json - */ -async function deploymentsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.deployments.list(resourceGroupName, serviceName, appName)) { - resArray.push(item); - } - console.log(resArray); -} - -deploymentsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsRestartSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsRestartSample.js deleted file mode 100644 index 0a86c26a7200..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsRestartSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Restart the deployment. - * - * @summary Restart the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Restart.json - */ -async function deploymentsRestart() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginRestartAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsRestart().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsStopSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsStopSample.js deleted file mode 100644 index 80c6da632547..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsStopSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Stop the deployment. - * - * @summary Stop the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Stop.json - */ -async function deploymentsStop() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginStopAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsStop().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsUpdateSample.js deleted file mode 100644 index 375c5adfbd53..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsUpdateSample.js +++ /dev/null @@ -1,94 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Operation to update an exiting Deployment. - * - * @summary Operation to update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Update.json - */ -async function deploymentsUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource = { - properties: { - instances: [], - source: { - type: "Source", - artifactSelector: "sub-module-1", - relativePath: - "resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc", - version: "1.0", - }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsUpdate().catch(console.error); - -/** - * This sample demonstrates how to Operation to update an exiting Deployment. - * - * @summary Operation to update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Update_CustomContainer.json - */ -async function deploymentsUpdateCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource = { - properties: { - instances: [], - source: { - type: "Container", - customContainer: { - args: ["-c", "while true; do echo hello; sleep 10;done"], - command: ["/bin/sh"], - containerImage: "myNewContainerImage:v1", - imageRegistryCredential: { - password: "", - username: "myNewUsername", - }, - server: "mynewacr.azurecr.io", - }, - }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsUpdateCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsCreateOrUpdateSample.js deleted file mode 100644 index c6bdeceb6594..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsCreateOrUpdateSample.js +++ /dev/null @@ -1,41 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create or update the Spring Cloud Gateway custom domain. - * - * @summary Create or update the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_CreateOrUpdate.json - */ -async function gatewayCustomDomainsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const gatewayCustomDomainResource = { - properties: { thumbprint: "*" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - domainName, - gatewayCustomDomainResource - ); - console.log(result); -} - -gatewayCustomDomainsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsDeleteSample.js deleted file mode 100644 index 288e4f6e0f4e..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsDeleteSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Delete the Spring Cloud Gateway custom domain. - * - * @summary Delete the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Delete.json - */ -async function gatewayCustomDomainsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName, - domainName - ); - console.log(result); -} - -gatewayCustomDomainsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsGetSample.js deleted file mode 100644 index 6e1aeb109911..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsGetSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway custom domain. - * - * @summary Get the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Get.json - */ -async function gatewayCustomDomainsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.get( - resourceGroupName, - serviceName, - gatewayName, - domainName - ); - console.log(result); -} - -gatewayCustomDomainsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsListSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsListSample.js deleted file mode 100644 index 6696a529efd4..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayCustomDomainsListSample.js +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handle requests to list all Spring Cloud Gateway custom domains. - * - * @summary Handle requests to list all Spring Cloud Gateway custom domains. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_List.json - */ -async function gatewayCustomDomainsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gatewayCustomDomains.list( - resourceGroupName, - serviceName, - gatewayName - )) { - resArray.push(item); - } - console.log(resArray); -} - -gatewayCustomDomainsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsCreateOrUpdateSample.js deleted file mode 100644 index 80abb71459cd..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsCreateOrUpdateSample.js +++ /dev/null @@ -1,52 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. - * - * @summary Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_CreateOrUpdate.json - */ -async function gatewayRouteConfigsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const gatewayRouteConfigResource = { - properties: { - appResourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myApp", - routes: [ - { - filters: ["StripPrefix=2", "RateLimit=1,1s"], - predicates: ["Path=/api5/customer/**"], - ssoEnabled: true, - title: "myApp route config", - }, - ], - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName, - gatewayRouteConfigResource - ); - console.log(result); -} - -gatewayRouteConfigsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsDeleteSample.js deleted file mode 100644 index 9105444d3f9a..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsDeleteSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Delete the Spring Cloud Gateway route config. - * - * @summary Delete the Spring Cloud Gateway route config. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Delete.json - */ -async function gatewayRouteConfigsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName - ); - console.log(result); -} - -gatewayRouteConfigsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsGetSample.js deleted file mode 100644 index c72b26c3ffd7..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsGetSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway route configs. - * - * @summary Get the Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Get.json - */ -async function gatewayRouteConfigsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.get( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName - ); - console.log(result); -} - -gatewayRouteConfigsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsListSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsListSample.js deleted file mode 100644 index d69c77ef85a8..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewayRouteConfigsListSample.js +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handle requests to list all Spring Cloud Gateway route configs. - * - * @summary Handle requests to list all Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_List.json - */ -async function gatewayRouteConfigsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gatewayRouteConfigs.list( - resourceGroupName, - serviceName, - gatewayName - )) { - resArray.push(item); - } - console.log(resArray); -} - -gatewayRouteConfigsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysCreateOrUpdateSample.js deleted file mode 100644 index 5d00be3520d8..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysCreateOrUpdateSample.js +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - * - * @summary Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_CreateOrUpdate.json - */ -async function gatewaysCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const gatewayResource = { - properties: { public: true, resourceRequests: { cpu: "1", memory: "1G" } }, - sku: { name: "E0", capacity: 2, tier: "Enterprise" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - gatewayResource - ); - console.log(result); -} - -gatewaysCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysDeleteSample.js deleted file mode 100644 index 9a9e7ca45aa3..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysDeleteSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Disable the default Spring Cloud Gateway. - * - * @summary Disable the default Spring Cloud Gateway. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Delete.json - */ -async function gatewaysDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName - ); - console.log(result); -} - -gatewaysDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysGetSample.js deleted file mode 100644 index ce9eeb3f99ec..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysGetSample.js +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway and its properties. - * - * @summary Get the Spring Cloud Gateway and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Get.json - */ -async function gatewaysGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.get(resourceGroupName, serviceName, gatewayName); - console.log(result); -} - -gatewaysGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysListSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysListSample.js deleted file mode 100644 index 7f07691f6173..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysListSample.js +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_List.json - */ -async function gatewaysList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gateways.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -gatewaysList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysValidateDomainSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysValidateDomainSample.js deleted file mode 100644 index bc794ceae68e..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/gatewaysValidateDomainSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Check the domains are valid as well as not in use. - * - * @summary Check the domains are valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_ValidateDomain.json - */ -async function gatewaysValidateDomain() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const validatePayload = { name: "mydomain.io" }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.validateDomain( - resourceGroupName, - serviceName, - gatewayName, - validatePayload - ); - console.log(result); -} - -gatewaysValidateDomain().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/monitoringSettingsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/monitoringSettingsGetSample.js deleted file mode 100644 index 8a8fb495471a..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/monitoringSettingsGetSample.js +++ /dev/null @@ -1,30 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the Monitoring Setting and its properties. - * - * @summary Get the Monitoring Setting and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_Get.json - */ -async function monitoringSettingsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.monitoringSettings.get(resourceGroupName, serviceName); - console.log(result); -} - -monitoringSettingsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/operationsListSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/operationsListSample.js deleted file mode 100644 index bb7749e70011..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/operationsListSample.js +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - * - * @summary Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Operations_List.json - */ -async function operationsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -operationsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesGetSample.js deleted file mode 100644 index 74f4aeff281b..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesGetSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the Service Registry and its properties. - * - * @summary Get the Service Registry and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Get.json - */ -async function serviceRegistriesGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const serviceRegistryName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.serviceRegistries.get( - resourceGroupName, - serviceName, - serviceRegistryName - ); - console.log(result); -} - -serviceRegistriesGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesListSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesListSample.js deleted file mode 100644 index 90e9704605a6..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesListSample.js +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_List.json - */ -async function serviceRegistriesList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.serviceRegistries.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -serviceRegistriesList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesCreateOrUpdateSample.js deleted file mode 100644 index b3fbcc82fa73..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesCreateOrUpdateSample.js +++ /dev/null @@ -1,78 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create a new Service or update an exiting Service. - * - * @summary Create a new Service or update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CreateOrUpdate.json - */ -async function servicesCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const resource = { - location: "eastus", - properties: {}, - sku: { name: "S0", tier: "Standard" }, - tags: { key1: "value1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - resource - ); - console.log(result); -} - -servicesCreateOrUpdate().catch(console.error); - -/** - * This sample demonstrates how to Create a new Service or update an exiting Service. - * - * @summary Create a new Service or update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CreateOrUpdate_VNetInjection.json - */ -async function servicesCreateOrUpdateVNetInjection() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const resource = { - location: "eastus", - properties: { - networkProfile: { - appNetworkResourceGroup: "my-app-network-rg", - appSubnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/apps", - serviceCidr: "10.8.0.0/16,10.244.0.0/16,10.245.0.1/16", - serviceRuntimeNetworkResourceGroup: "my-service-runtime-network-rg", - serviceRuntimeSubnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/serviceRuntime", - }, - }, - sku: { name: "S0", tier: "Standard" }, - tags: { key1: "value1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - resource - ); - console.log(result); -} - -servicesCreateOrUpdateVNetInjection().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesDeleteSample.js deleted file mode 100644 index 4645eae82380..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesDeleteSample.js +++ /dev/null @@ -1,30 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Operation to delete a Service. - * - * @summary Operation to delete a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Delete.json - */ -async function servicesDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginDeleteAndWait(resourceGroupName, serviceName); - console.log(result); -} - -servicesDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesEnableTestEndpointSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesEnableTestEndpointSample.js deleted file mode 100644 index b1671b944114..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesEnableTestEndpointSample.js +++ /dev/null @@ -1,30 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Enable test endpoint functionality for a Service. - * - * @summary Enable test endpoint functionality for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_EnableTestEndpoint.json - */ -async function servicesEnableTestEndpoint() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.enableTestEndpoint(resourceGroupName, serviceName); - console.log(result); -} - -servicesEnableTestEndpoint().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesListTestKeysSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesListTestKeysSample.js deleted file mode 100644 index 8c2e15020624..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesListTestKeysSample.js +++ /dev/null @@ -1,30 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to List test keys for a Service. - * - * @summary List test keys for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListTestKeys.json - */ -async function servicesListTestKeys() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.listTestKeys(resourceGroupName, serviceName); - console.log(result); -} - -servicesListTestKeys().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesStartSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesStartSample.js deleted file mode 100644 index 4113986192de..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesStartSample.js +++ /dev/null @@ -1,30 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Start a Service. - * - * @summary Start a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Start.json - */ -async function servicesStart() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginStartAndWait(resourceGroupName, serviceName); - console.log(result); -} - -servicesStart().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesStopSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesStopSample.js deleted file mode 100644 index 0480a87a3621..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesStopSample.js +++ /dev/null @@ -1,30 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Stop a Service. - * - * @summary Stop a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Stop.json - */ -async function servicesStop() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginStopAndWait(resourceGroupName, serviceName); - console.log(result); -} - -servicesStop().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesUpdateSample.js deleted file mode 100644 index 76ce8f9ef4cf..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesUpdateSample.js +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Operation to update an exiting Service. - * - * @summary Operation to update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Update.json - */ -async function servicesUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const resource = { - location: "eastus", - properties: {}, - sku: { name: "S0", tier: "Standard" }, - tags: { key1: "value1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginUpdateAndWait(resourceGroupName, serviceName, resource); - console.log(result); -} - -servicesUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesCreateOrUpdateSample.js deleted file mode 100644 index 9519bd43d185..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesCreateOrUpdateSample.js +++ /dev/null @@ -1,43 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create or update storage resource. - * - * @summary Create or update storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_CreateOrUpdate.json - */ -async function storagesCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const storageResource = { - properties: { - accountKey: "account-key-of-storage-account", - accountName: "storage-account-name", - storageType: "StorageAccount", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - storageName, - storageResource - ); - console.log(result); -} - -storagesCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesDeleteSample.js deleted file mode 100644 index 3b81e678eaac..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesDeleteSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Delete the storage resource. - * - * @summary Delete the storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Delete.json - */ -async function storagesDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.beginDeleteAndWait( - resourceGroupName, - serviceName, - storageName - ); - console.log(result); -} - -storagesDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesGetSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesGetSample.js deleted file mode 100644 index e55c1430cfbd..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesGetSample.js +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the storage resource. - * - * @summary Get the storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Get.json - */ -async function storagesGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.get(resourceGroupName, serviceName, storageName); - console.log(result); -} - -storagesGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesListSample.js b/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesListSample.js deleted file mode 100644 index 17115e5a9ae7..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/storagesListSample.js +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to List all the storages of one Azure Spring Cloud instance. - * - * @summary List all the storages of one Azure Spring Cloud instance. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_List.json - */ -async function storagesList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myService"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.storages.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -storagesList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/README.md b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/README.md deleted file mode 100644 index 003d30a94691..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/README.md +++ /dev/null @@ -1,295 +0,0 @@ -# client library samples for TypeScript (Beta) - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [apiPortalCustomDomainsCreateOrUpdateSample.ts][apiportalcustomdomainscreateorupdatesample] | Create or update the API portal custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_CreateOrUpdate.json | -| [apiPortalCustomDomainsDeleteSample.ts][apiportalcustomdomainsdeletesample] | Delete the API portal custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Delete.json | -| [apiPortalCustomDomainsGetSample.ts][apiportalcustomdomainsgetsample] | Get the API portal custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Get.json | -| [apiPortalCustomDomainsListSample.ts][apiportalcustomdomainslistsample] | Handle requests to list all API portal custom domains. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_List.json | -| [apiPortalsCreateOrUpdateSample.ts][apiportalscreateorupdatesample] | Create the default API portal or update the existing API portal. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_CreateOrUpdate.json | -| [apiPortalsDeleteSample.ts][apiportalsdeletesample] | Delete the default API portal. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Delete.json | -| [apiPortalsGetSample.ts][apiportalsgetsample] | Get the API portal and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Get.json | -| [apiPortalsListSample.ts][apiportalslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_List.json | -| [apiPortalsValidateDomainSample.ts][apiportalsvalidatedomainsample] | Check the domains are valid as well as not in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_ValidateDomain.json | -| [appsCreateOrUpdateSample.ts][appscreateorupdatesample] | Create a new App or update an exiting App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_CreateOrUpdate.json | -| [appsDeleteSample.ts][appsdeletesample] | Operation to delete an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Delete.json | -| [appsGetResourceUploadUrlSample.ts][appsgetresourceuploadurlsample] | Get an resource upload URL for an App, which may be artifacts or source archive. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_GetResourceUploadUrl.json | -| [appsGetSample.ts][appsgetsample] | Get an App and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Get.json | -| [appsListSample.ts][appslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_List.json | -| [appsSetActiveDeploymentsSample.ts][appssetactivedeploymentssample] | Set existing Deployment under the app as active x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_SetActiveDeployments.json | -| [appsUpdateSample.ts][appsupdatesample] | Operation to update an exiting App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Update.json | -| [appsValidateDomainSample.ts][appsvalidatedomainsample] | Check the resource name is valid as well as not in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_ValidateDomain.json | -| [bindingsCreateOrUpdateSample.ts][bindingscreateorupdatesample] | Create a new Binding or update an exiting Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_CreateOrUpdate.json | -| [bindingsDeleteSample.ts][bindingsdeletesample] | Operation to delete a Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Delete.json | -| [bindingsGetSample.ts][bindingsgetsample] | Get a Binding and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Get.json | -| [bindingsListSample.ts][bindingslistsample] | Handles requests to list all resources in an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_List.json | -| [bindingsUpdateSample.ts][bindingsupdatesample] | Operation to update an exiting Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Update.json | -| [buildServiceAgentPoolGetSample.ts][buildserviceagentpoolgetsample] | Get build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_Get.json | -| [buildServiceAgentPoolListSample.ts][buildserviceagentpoollistsample] | List build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_List.json | -| [buildServiceAgentPoolUpdatePutSample.ts][buildserviceagentpoolupdateputsample] | Create or update build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_UpdatePut.json | -| [buildServiceBuilderCreateOrUpdateSample.ts][buildservicebuildercreateorupdatesample] | Create or update a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_CreateOrUpdate.json | -| [buildServiceBuilderDeleteSample.ts][buildservicebuilderdeletesample] | Delete a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Delete.json | -| [buildServiceBuilderGetSample.ts][buildservicebuildergetsample] | Get a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Get.json | -| [buildServiceBuilderListSample.ts][buildservicebuilderlistsample] | List KPack builders result. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_List.json | -| [buildServiceCreateOrUpdateBuildSample.ts][buildservicecreateorupdatebuildsample] | Create or update a KPack build. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_CreateOrUpdateBuild.json | -| [buildServiceGetBuildResultLogSample.ts][buildservicegetbuildresultlogsample] | Get a KPack build result log download URL. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResultLog.json | -| [buildServiceGetBuildResultSample.ts][buildservicegetbuildresultsample] | Get a KPack build result. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResult.json | -| [buildServiceGetBuildSample.ts][buildservicegetbuildsample] | Get a KPack build. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuild.json | -| [buildServiceGetBuildServiceSample.ts][buildservicegetbuildservicesample] | Get a build service resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildService.json | -| [buildServiceGetResourceUploadUrlSample.ts][buildservicegetresourceuploadurlsample] | Get an resource upload URL for build service, which may be artifacts or source archive. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetResourceUploadUrl.json | -| [buildServiceGetSupportedBuildpackSample.ts][buildservicegetsupportedbuildpacksample] | Get the supported buildpack resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedBuildpack.json | -| [buildServiceGetSupportedStackSample.ts][buildservicegetsupportedstacksample] | Get the supported stack resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedStack.json | -| [buildServiceListBuildResultsSample.ts][buildservicelistbuildresultssample] | List KPack build results. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildResults.json | -| [buildServiceListBuildServicesSample.ts][buildservicelistbuildservicessample] | List build services resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildServices.json | -| [buildServiceListBuildsSample.ts][buildservicelistbuildssample] | List KPack builds. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuilds.json | -| [buildServiceListSupportedBuildpacksSample.ts][buildservicelistsupportedbuildpackssample] | Get all supported buildpacks. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedBuildpacks.json | -| [buildServiceListSupportedStacksSample.ts][buildservicelistsupportedstackssample] | Get all supported stacks. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedStacks.json | -| [buildpackBindingCreateOrUpdateSample.ts][buildpackbindingcreateorupdatesample] | Create or update a buildpack binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_CreateOrUpdate.json | -| [buildpackBindingDeleteSample.ts][buildpackbindingdeletesample] | Operation to delete a Buildpack Binding x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Delete.json | -| [buildpackBindingGetSample.ts][buildpackbindinggetsample] | Get a buildpack binding by name. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Get.json | -| [buildpackBindingListSample.ts][buildpackbindinglistsample] | Handles requests to list all buildpack bindings in a builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_List.json | -| [certificatesCreateOrUpdateSample.ts][certificatescreateorupdatesample] | Create or update certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_CreateOrUpdate.json | -| [certificatesDeleteSample.ts][certificatesdeletesample] | Delete the certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Delete.json | -| [certificatesGetSample.ts][certificatesgetsample] | Get the certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Get.json | -| [certificatesListSample.ts][certificateslistsample] | List all the certificates of one user. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_List.json | -| [configServersGetSample.ts][configserversgetsample] | Get the config server and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Get.json | -| [configServersUpdatePatchSample.ts][configserversupdatepatchsample] | Update the config server. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePatch.json | -| [configServersUpdatePutSample.ts][configserversupdateputsample] | Update the config server. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePut.json | -| [configServersValidateSample.ts][configserversvalidatesample] | Check if the config server settings are valid. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Validate.json | -| [configurationServicesCreateOrUpdateSample.ts][configurationservicescreateorupdatesample] | Create the default Application Configuration Service or update the existing Application Configuration Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_CreateOrUpdate.json | -| [configurationServicesDeleteSample.ts][configurationservicesdeletesample] | Disable the default Application Configuration Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Delete.json | -| [configurationServicesGetSample.ts][configurationservicesgetsample] | Get the Application Configuration Service and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Get.json | -| [configurationServicesListSample.ts][configurationserviceslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_List.json | -| [configurationServicesValidateSample.ts][configurationservicesvalidatesample] | Check if the Application Configuration Service settings are valid. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Validate.json | -| [customDomainsCreateOrUpdateSample.ts][customdomainscreateorupdatesample] | Create or update custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_CreateOrUpdate.json | -| [customDomainsDeleteSample.ts][customdomainsdeletesample] | Delete the custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Delete.json | -| [customDomainsGetSample.ts][customdomainsgetsample] | Get the custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Get.json | -| [customDomainsListSample.ts][customdomainslistsample] | List the custom domains of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_List.json | -| [customDomainsUpdateSample.ts][customdomainsupdatesample] | Update custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Update.json | -| [deploymentsCreateOrUpdateSample.ts][deploymentscreateorupdatesample] | Create a new Deployment or update an exiting Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_CreateOrUpdate.json | -| [deploymentsDeleteSample.ts][deploymentsdeletesample] | Operation to delete a Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Delete.json | -| [deploymentsGenerateHeapDumpSample.ts][deploymentsgenerateheapdumpsample] | Generate Heap Dump x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateHeapDump.json | -| [deploymentsGenerateThreadDumpSample.ts][deploymentsgeneratethreaddumpsample] | Generate Thread Dump x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateThreadDump.json | -| [deploymentsGetLogFileUrlSample.ts][deploymentsgetlogfileurlsample] | Get deployment log file URL x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GetLogFileUrl.json | -| [deploymentsGetSample.ts][deploymentsgetsample] | Get a Deployment and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Get.json | -| [deploymentsListForClusterSample.ts][deploymentslistforclustersample] | List deployments for a certain service x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_ListForCluster.json | -| [deploymentsListSample.ts][deploymentslistsample] | Handles requests to list all resources in an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_List.json | -| [deploymentsRestartSample.ts][deploymentsrestartsample] | Restart the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Restart.json | -| [deploymentsStartJfrSample.ts][deploymentsstartjfrsample] | Start JFR x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_StartJFR.json | -| [deploymentsStartSample.ts][deploymentsstartsample] | Start the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Start.json | -| [deploymentsStopSample.ts][deploymentsstopsample] | Stop the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Stop.json | -| [deploymentsUpdateSample.ts][deploymentsupdatesample] | Operation to update an exiting Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Update.json | -| [gatewayCustomDomainsCreateOrUpdateSample.ts][gatewaycustomdomainscreateorupdatesample] | Create or update the Spring Cloud Gateway custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_CreateOrUpdate.json | -| [gatewayCustomDomainsDeleteSample.ts][gatewaycustomdomainsdeletesample] | Delete the Spring Cloud Gateway custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Delete.json | -| [gatewayCustomDomainsGetSample.ts][gatewaycustomdomainsgetsample] | Get the Spring Cloud Gateway custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Get.json | -| [gatewayCustomDomainsListSample.ts][gatewaycustomdomainslistsample] | Handle requests to list all Spring Cloud Gateway custom domains. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_List.json | -| [gatewayRouteConfigsCreateOrUpdateSample.ts][gatewayrouteconfigscreateorupdatesample] | Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_CreateOrUpdate.json | -| [gatewayRouteConfigsDeleteSample.ts][gatewayrouteconfigsdeletesample] | Delete the Spring Cloud Gateway route config. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Delete.json | -| [gatewayRouteConfigsGetSample.ts][gatewayrouteconfigsgetsample] | Get the Spring Cloud Gateway route configs. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Get.json | -| [gatewayRouteConfigsListSample.ts][gatewayrouteconfigslistsample] | Handle requests to list all Spring Cloud Gateway route configs. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_List.json | -| [gatewaysCreateOrUpdateSample.ts][gatewayscreateorupdatesample] | Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_CreateOrUpdate.json | -| [gatewaysDeleteSample.ts][gatewaysdeletesample] | Disable the default Spring Cloud Gateway. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Delete.json | -| [gatewaysGetSample.ts][gatewaysgetsample] | Get the Spring Cloud Gateway and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Get.json | -| [gatewaysListSample.ts][gatewayslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_List.json | -| [gatewaysValidateDomainSample.ts][gatewaysvalidatedomainsample] | Check the domains are valid as well as not in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_ValidateDomain.json | -| [monitoringSettingsGetSample.ts][monitoringsettingsgetsample] | Get the Monitoring Setting and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_Get.json | -| [monitoringSettingsUpdatePatchSample.ts][monitoringsettingsupdatepatchsample] | Update the Monitoring Setting. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePatch.json | -| [monitoringSettingsUpdatePutSample.ts][monitoringsettingsupdateputsample] | Update the Monitoring Setting. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePut.json | -| [operationsListSample.ts][operationslistsample] | Lists all of the available REST API operations of the Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Operations_List.json | -| [runtimeVersionsListRuntimeVersionsSample.ts][runtimeversionslistruntimeversionssample] | Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/RuntimeVersions_ListRuntimeVersions.json | -| [serviceRegistriesCreateOrUpdateSample.ts][serviceregistriescreateorupdatesample] | Create the default Service Registry or update the existing Service Registry. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_CreateOrUpdate.json | -| [serviceRegistriesDeleteSample.ts][serviceregistriesdeletesample] | Disable the default Service Registry. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Delete.json | -| [serviceRegistriesGetSample.ts][serviceregistriesgetsample] | Get the Service Registry and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Get.json | -| [serviceRegistriesListSample.ts][serviceregistrieslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_List.json | -| [servicesCheckNameAvailabilitySample.ts][serviceschecknameavailabilitysample] | Checks that the resource name is valid and is not already in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CheckNameAvailability.json | -| [servicesCreateOrUpdateSample.ts][servicescreateorupdatesample] | Create a new Service or update an exiting Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CreateOrUpdate.json | -| [servicesDeleteSample.ts][servicesdeletesample] | Operation to delete a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Delete.json | -| [servicesDisableTestEndpointSample.ts][servicesdisabletestendpointsample] | Disable test endpoint functionality for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_DisableTestEndpoint.json | -| [servicesEnableTestEndpointSample.ts][servicesenabletestendpointsample] | Enable test endpoint functionality for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_EnableTestEndpoint.json | -| [servicesGetSample.ts][servicesgetsample] | Get a Service and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Get.json | -| [servicesListBySubscriptionSample.ts][serviceslistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListBySubscription.json | -| [servicesListSample.ts][serviceslistsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_List.json | -| [servicesListTestKeysSample.ts][serviceslisttestkeyssample] | List test keys for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListTestKeys.json | -| [servicesRegenerateTestKeySample.ts][servicesregeneratetestkeysample] | Regenerate a test key for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_RegenerateTestKey.json | -| [servicesStartSample.ts][servicesstartsample] | Start a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Start.json | -| [servicesStopSample.ts][servicesstopsample] | Stop a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Stop.json | -| [servicesUpdateSample.ts][servicesupdatesample] | Operation to update an exiting Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Update.json | -| [skusListSample.ts][skuslistsample] | Lists all of the available skus of the Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Skus_List.json | -| [storagesCreateOrUpdateSample.ts][storagescreateorupdatesample] | Create or update storage resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_CreateOrUpdate.json | -| [storagesDeleteSample.ts][storagesdeletesample] | Delete the storage resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Delete.json | -| [storagesGetSample.ts][storagesgetsample] | Get the storage resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Get.json | -| [storagesListSample.ts][storageslistsample] | List all the storages of one Azure Spring Cloud instance. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_List.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/apiPortalCustomDomainsCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env node dist/apiPortalCustomDomainsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[apiportalcustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsCreateOrUpdateSample.ts -[apiportalcustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsDeleteSample.ts -[apiportalcustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsGetSample.ts -[apiportalcustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsListSample.ts -[apiportalscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsCreateOrUpdateSample.ts -[apiportalsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsDeleteSample.ts -[apiportalsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsGetSample.ts -[apiportalslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsListSample.ts -[apiportalsvalidatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsValidateDomainSample.ts -[appscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsCreateOrUpdateSample.ts -[appsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsDeleteSample.ts -[appsgetresourceuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsGetResourceUploadUrlSample.ts -[appsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsGetSample.ts -[appslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsListSample.ts -[appssetactivedeploymentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsSetActiveDeploymentsSample.ts -[appsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsUpdateSample.ts -[appsvalidatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsValidateDomainSample.ts -[bindingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsCreateOrUpdateSample.ts -[bindingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsDeleteSample.ts -[bindingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsGetSample.ts -[bindingslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsListSample.ts -[bindingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsUpdateSample.ts -[buildserviceagentpoolgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceAgentPoolGetSample.ts -[buildserviceagentpoollistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceAgentPoolListSample.ts -[buildserviceagentpoolupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceAgentPoolUpdatePutSample.ts -[buildservicebuildercreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts -[buildservicebuilderdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderDeleteSample.ts -[buildservicebuildergetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderGetSample.ts -[buildservicebuilderlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderListSample.ts -[buildservicecreateorupdatebuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceCreateOrUpdateBuildSample.ts -[buildservicegetbuildresultlogsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildResultLogSample.ts -[buildservicegetbuildresultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildResultSample.ts -[buildservicegetbuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildSample.ts -[buildservicegetbuildservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildServiceSample.ts -[buildservicegetresourceuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetResourceUploadUrlSample.ts -[buildservicegetsupportedbuildpacksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetSupportedBuildpackSample.ts -[buildservicegetsupportedstacksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetSupportedStackSample.ts -[buildservicelistbuildresultssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListBuildResultsSample.ts -[buildservicelistbuildservicessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListBuildServicesSample.ts -[buildservicelistbuildssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListBuildsSample.ts -[buildservicelistsupportedbuildpackssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListSupportedBuildpacksSample.ts -[buildservicelistsupportedstackssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListSupportedStacksSample.ts -[buildpackbindingcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingCreateOrUpdateSample.ts -[buildpackbindingdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingDeleteSample.ts -[buildpackbindinggetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingGetSample.ts -[buildpackbindinglistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingListSample.ts -[certificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesCreateOrUpdateSample.ts -[certificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesDeleteSample.ts -[certificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesGetSample.ts -[certificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesListSample.ts -[configserversgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersGetSample.ts -[configserversupdatepatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersUpdatePatchSample.ts -[configserversupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersUpdatePutSample.ts -[configserversvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersValidateSample.ts -[configurationservicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesCreateOrUpdateSample.ts -[configurationservicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesDeleteSample.ts -[configurationservicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesGetSample.ts -[configurationserviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesListSample.ts -[configurationservicesvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesValidateSample.ts -[customdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsCreateOrUpdateSample.ts -[customdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsDeleteSample.ts -[customdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsGetSample.ts -[customdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsListSample.ts -[customdomainsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsUpdateSample.ts -[deploymentscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsCreateOrUpdateSample.ts -[deploymentsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsDeleteSample.ts -[deploymentsgenerateheapdumpsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGenerateHeapDumpSample.ts -[deploymentsgeneratethreaddumpsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGenerateThreadDumpSample.ts -[deploymentsgetlogfileurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGetLogFileUrlSample.ts -[deploymentsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGetSample.ts -[deploymentslistforclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsListForClusterSample.ts -[deploymentslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsListSample.ts -[deploymentsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsRestartSample.ts -[deploymentsstartjfrsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsStartJfrSample.ts -[deploymentsstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsStartSample.ts -[deploymentsstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsStopSample.ts -[deploymentsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsUpdateSample.ts -[gatewaycustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsCreateOrUpdateSample.ts -[gatewaycustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsDeleteSample.ts -[gatewaycustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsGetSample.ts -[gatewaycustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsListSample.ts -[gatewayrouteconfigscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsCreateOrUpdateSample.ts -[gatewayrouteconfigsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsDeleteSample.ts -[gatewayrouteconfigsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsGetSample.ts -[gatewayrouteconfigslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsListSample.ts -[gatewayscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysCreateOrUpdateSample.ts -[gatewaysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysDeleteSample.ts -[gatewaysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysGetSample.ts -[gatewayslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysListSample.ts -[gatewaysvalidatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysValidateDomainSample.ts -[monitoringsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/monitoringSettingsGetSample.ts -[monitoringsettingsupdatepatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/monitoringSettingsUpdatePatchSample.ts -[monitoringsettingsupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/monitoringSettingsUpdatePutSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/operationsListSample.ts -[runtimeversionslistruntimeversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts -[serviceregistriescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesCreateOrUpdateSample.ts -[serviceregistriesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesDeleteSample.ts -[serviceregistriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesGetSample.ts -[serviceregistrieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesListSample.ts -[serviceschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesCheckNameAvailabilitySample.ts -[servicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesCreateOrUpdateSample.ts -[servicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesDeleteSample.ts -[servicesdisabletestendpointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesDisableTestEndpointSample.ts -[servicesenabletestendpointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesEnableTestEndpointSample.ts -[servicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesGetSample.ts -[serviceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesListBySubscriptionSample.ts -[serviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesListSample.ts -[serviceslisttestkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesListTestKeysSample.ts -[servicesregeneratetestkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesRegenerateTestKeySample.ts -[servicesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesStartSample.ts -[servicesstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesStopSample.ts -[servicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesUpdateSample.ts -[skuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/skusListSample.ts -[storagescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesCreateOrUpdateSample.ts -[storagesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesDeleteSample.ts -[storagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesGetSample.ts -[storageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesListSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsCreateOrUpdateSample.ts deleted file mode 100644 index 79f2f5ccc8a9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsCreateOrUpdateSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ApiPortalCustomDomainResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update the API portal custom domain. - * - * @summary Create or update the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_CreateOrUpdate.json - */ -async function apiPortalCustomDomainsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const apiPortalCustomDomainResource: ApiPortalCustomDomainResource = { - properties: { thumbprint: "*" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - apiPortalName, - domainName, - apiPortalCustomDomainResource - ); - console.log(result); -} - -apiPortalCustomDomainsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsDeleteSample.ts deleted file mode 100644 index 53356fd2c799..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsDeleteSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the API portal custom domain. - * - * @summary Delete the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Delete.json - */ -async function apiPortalCustomDomainsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.beginDeleteAndWait( - resourceGroupName, - serviceName, - apiPortalName, - domainName - ); - console.log(result); -} - -apiPortalCustomDomainsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsGetSample.ts deleted file mode 100644 index f3850cef0fa7..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsGetSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the API portal custom domain. - * - * @summary Get the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Get.json - */ -async function apiPortalCustomDomainsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.get( - resourceGroupName, - serviceName, - apiPortalName, - domainName - ); - console.log(result); -} - -apiPortalCustomDomainsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsListSample.ts deleted file mode 100644 index eabad4c24d0c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalCustomDomainsListSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handle requests to list all API portal custom domains. - * - * @summary Handle requests to list all API portal custom domains. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_List.json - */ -async function apiPortalCustomDomainsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.apiPortalCustomDomains.list( - resourceGroupName, - serviceName, - apiPortalName - )) { - resArray.push(item); - } - console.log(resArray); -} - -apiPortalCustomDomainsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsCreateOrUpdateSample.ts deleted file mode 100644 index b5fe4364aa3f..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsCreateOrUpdateSample.ts +++ /dev/null @@ -1,48 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ApiPortalResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create the default API portal or update the existing API portal. - * - * @summary Create the default API portal or update the existing API portal. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_CreateOrUpdate.json - */ -async function apiPortalsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const apiPortalResource: ApiPortalResource = { - properties: { - gatewayIds: [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default" - ], - public: true - }, - sku: { name: "E0", capacity: 2, tier: "Enterprise" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - apiPortalName, - apiPortalResource - ); - console.log(result); -} - -apiPortalsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsDeleteSample.ts deleted file mode 100644 index 80ae88d8a03c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsDeleteSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the default API portal. - * - * @summary Delete the default API portal. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Delete.json - */ -async function apiPortalsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.beginDeleteAndWait( - resourceGroupName, - serviceName, - apiPortalName - ); - console.log(result); -} - -apiPortalsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsGetSample.ts deleted file mode 100644 index f7ab08f1c983..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsGetSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the API portal and its properties. - * - * @summary Get the API portal and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Get.json - */ -async function apiPortalsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.get( - resourceGroupName, - serviceName, - apiPortalName - ); - console.log(result); -} - -apiPortalsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsListSample.ts deleted file mode 100644 index 11e4525e3bac..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsListSample.ts +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_List.json - */ -async function apiPortalsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.apiPortals.list( - resourceGroupName, - serviceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -apiPortalsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsValidateDomainSample.ts deleted file mode 100644 index 1bfec026b167..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/apiPortalsValidateDomainSample.ts +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CustomDomainValidatePayload, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Check the domains are valid as well as not in use. - * - * @summary Check the domains are valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_ValidateDomain.json - */ -async function apiPortalsValidateDomain() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const validatePayload: CustomDomainValidatePayload = { name: "mydomain.io" }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.validateDomain( - resourceGroupName, - serviceName, - apiPortalName, - validatePayload - ); - console.log(result); -} - -apiPortalsValidateDomain().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsGetResourceUploadUrlSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsGetResourceUploadUrlSample.ts deleted file mode 100644 index 5e66e3e4298b..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsGetResourceUploadUrlSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get an resource upload URL for an App, which may be artifacts or source archive. - * - * @summary Get an resource upload URL for an App, which may be artifacts or source archive. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_GetResourceUploadUrl.json - */ -async function appsGetResourceUploadUrl() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apps.getResourceUploadUrl( - resourceGroupName, - serviceName, - appName - ); - console.log(result); -} - -appsGetResourceUploadUrl().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsGetSample.ts deleted file mode 100644 index c3bd2d0a9b2d..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsGetSample.ts +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get an App and its properties. - * - * @summary Get an App and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Get.json - */ -async function appsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apps.get(resourceGroupName, serviceName, appName); - console.log(result); -} - -appsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsUpdateSample.ts deleted file mode 100644 index b7832ad3e93f..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsUpdateSample.ts +++ /dev/null @@ -1,76 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AppResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Operation to update an exiting App. - * - * @summary Operation to update an exiting App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Update.json - */ -async function appsUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const appResource: AppResource = { - identity: { - type: "SystemAssigned,UserAssigned", - principalId: undefined, - tenantId: undefined, - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": { - clientId: undefined, - principalId: undefined - }, - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": { - clientId: undefined, - principalId: undefined - } - } - }, - location: "eastus", - properties: { - customPersistentDisks: [ - { - customPersistentDiskProperties: { - type: "AzureFileVolume", - mountOptions: [], - mountPath: "/mypath1/mypath2", - shareName: "myFileShare" - }, - storageId: "myASCStorageID" - } - ], - enableEndToEndTLS: false, - fqdn: "myapp.mydomain.com", - httpsOnly: false, - persistentDisk: { mountPath: "/mypersistentdisk", sizeInGB: 2 }, - public: true, - temporaryDisk: { mountPath: "/mytemporarydisk", sizeInGB: 2 } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apps.beginUpdateAndWait( - resourceGroupName, - serviceName, - appName, - appResource - ); - console.log(result); -} - -appsUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsGetSample.ts deleted file mode 100644 index 486acacdd6da..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsGetSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get a Binding and its properties. - * - * @summary Get a Binding and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Get.json - */ -async function bindingsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const bindingName = "mybinding"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.bindings.get( - resourceGroupName, - serviceName, - appName, - bindingName - ); - console.log(result); -} - -bindingsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderGetSample.ts deleted file mode 100644 index b0853f0483d9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderGetSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get a KPack builder. - * - * @summary Get a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Get.json - */ -async function buildServiceBuilderGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const builderName = "mybuilder"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceBuilder.get( - resourceGroupName, - serviceName, - buildServiceName, - builderName - ); - console.log(result); -} - -buildServiceBuilderGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildResultSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildResultSample.ts deleted file mode 100644 index 2c366f21cff6..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildResultSample.ts +++ /dev/null @@ -1,39 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get a KPack build result. - * - * @summary Get a KPack build result. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResult.json - */ -async function buildServiceGetBuildResult() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const buildName = "mybuild"; - const buildResultName = "123"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.getBuildResult( - resourceGroupName, - serviceName, - buildServiceName, - buildName, - buildResultName - ); - console.log(result); -} - -buildServiceGetBuildResult().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetResourceUploadUrlSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetResourceUploadUrlSample.ts deleted file mode 100644 index 89243d370192..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetResourceUploadUrlSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get an resource upload URL for build service, which may be artifacts or source archive. - * - * @summary Get an resource upload URL for build service, which may be artifacts or source archive. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetResourceUploadUrl.json - */ -async function buildServiceGetResourceUploadUrl() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.getResourceUploadUrl( - resourceGroupName, - serviceName, - buildServiceName - ); - console.log(result); -} - -buildServiceGetResourceUploadUrl().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetSupportedStackSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetSupportedStackSample.ts deleted file mode 100644 index c897a5e0467d..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetSupportedStackSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the supported stack resource. - * - * @summary Get the supported stack resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedStack.json - */ -async function buildServiceGetSupportedStack() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const stackName = "io.buildpacks.stacks.bionic-base"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.getSupportedStack( - resourceGroupName, - serviceName, - buildServiceName, - stackName - ); - console.log(result); -} - -buildServiceGetSupportedStack().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListBuildResultsSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListBuildResultsSample.ts deleted file mode 100644 index 999666a73cd4..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListBuildResultsSample.ts +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to List KPack build results. - * - * @summary List KPack build results. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildResults.json - */ -async function buildServiceListBuildResults() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const buildName = "mybuild"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.buildServiceOperations.listBuildResults( - resourceGroupName, - serviceName, - buildServiceName, - buildName - )) { - resArray.push(item); - } - console.log(resArray); -} - -buildServiceListBuildResults().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingCreateOrUpdateSample.ts deleted file mode 100644 index 12ef67660337..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingCreateOrUpdateSample.ts +++ /dev/null @@ -1,59 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BuildpackBindingResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update a buildpack binding. - * - * @summary Create or update a buildpack binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_CreateOrUpdate.json - */ -async function buildpackBindingCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const builderName = "default"; - const buildpackBindingName = "myBuildpackBinding"; - const buildpackBinding: BuildpackBindingResource = { - properties: { - bindingType: "ApplicationInsights", - launchProperties: { - properties: { - abc: "def", - anyString: "any-string", - samplingRate: "12.0" - }, - secrets: { - connectionString: - "XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX" - } - } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildpackBinding.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - buildServiceName, - builderName, - buildpackBindingName, - buildpackBinding - ); - console.log(result); -} - -buildpackBindingCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingGetSample.ts deleted file mode 100644 index a31bae78936c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingGetSample.ts +++ /dev/null @@ -1,39 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get a buildpack binding by name. - * - * @summary Get a buildpack binding by name. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Get.json - */ -async function buildpackBindingGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const builderName = "default"; - const buildpackBindingName = "myBuildpackBinding"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildpackBinding.get( - resourceGroupName, - serviceName, - buildServiceName, - builderName, - buildpackBindingName - ); - console.log(result); -} - -buildpackBindingGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesCreateOrUpdateSample.ts deleted file mode 100644 index f25bf7117c35..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesCreateOrUpdateSample.ts +++ /dev/null @@ -1,47 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CertificateResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update certificate resource. - * - * @summary Create or update certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_CreateOrUpdate.json - */ -async function certificatesCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const certificateName = "mycertificate"; - const certificateResource: CertificateResource = { - properties: { - type: "KeyVaultCertificate", - certVersion: "08a219d06d874795a96db47e06fbb01e", - keyVaultCertName: "mycert", - vaultUri: "https://myvault.vault.azure.net" - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.certificates.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - certificateName, - certificateResource - ); - console.log(result); -} - -certificatesCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersUpdatePatchSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersUpdatePatchSample.ts deleted file mode 100644 index fc87b6343931..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersUpdatePatchSample.ts +++ /dev/null @@ -1,48 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ConfigServerResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Update the config server. - * - * @summary Update the config server. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePatch.json - */ -async function configServersUpdatePatch() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const configServerResource: ConfigServerResource = { - properties: { - configServer: { - gitProperty: { - label: "master", - searchPaths: ["/"], - uri: "https://github.com/fake-user/fake-repository.git" - } - } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configServers.beginUpdatePatchAndWait( - resourceGroupName, - serviceName, - configServerResource - ); - console.log(result); -} - -configServersUpdatePatch().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesValidateSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesValidateSample.ts deleted file mode 100644 index 5b2328e2ed29..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesValidateSample.ts +++ /dev/null @@ -1,51 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ConfigurationServiceSettings, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Check if the Application Configuration Service settings are valid. - * - * @summary Check if the Application Configuration Service settings are valid. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Validate.json - */ -async function configurationServicesValidate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const configurationServiceName = "default"; - const settings: ConfigurationServiceSettings = { - gitProperty: { - repositories: [ - { - name: "fake", - label: "master", - patterns: ["app/dev"], - uri: "https://github.com/fake-user/fake-repository" - } - ] - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configurationServices.beginValidateAndWait( - resourceGroupName, - serviceName, - configurationServiceName, - settings - ); - console.log(result); -} - -configurationServicesValidate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsGetSample.ts deleted file mode 100644 index d244db1582bc..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsGetSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the custom domain of one lifecycle application. - * - * @summary Get the custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Get.json - */ -async function customDomainsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const domainName = "mydomain.com"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.customDomains.get( - resourceGroupName, - serviceName, - appName, - domainName - ); - console.log(result); -} - -customDomainsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGenerateHeapDumpSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGenerateHeapDumpSample.ts deleted file mode 100644 index c759bbbe0cc9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGenerateHeapDumpSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DiagnosticParameters, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Generate Heap Dump - * - * @summary Generate Heap Dump - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateHeapDump.json - */ -async function deploymentsGenerateHeapDump() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const diagnosticParameters: DiagnosticParameters = { - appInstance: "myappinstance", - filePath: "/byos/diagnose" - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginGenerateHeapDumpAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - diagnosticParameters - ); - console.log(result); -} - -deploymentsGenerateHeapDump().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGenerateThreadDumpSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGenerateThreadDumpSample.ts deleted file mode 100644 index 57fc3c7ae66b..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGenerateThreadDumpSample.ts +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DiagnosticParameters, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Generate Thread Dump - * - * @summary Generate Thread Dump - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateThreadDump.json - */ -async function deploymentsGenerateHeapDump() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const diagnosticParameters: DiagnosticParameters = { - appInstance: "myappinstance", - filePath: "/byos/diagnose" - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginGenerateThreadDumpAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - diagnosticParameters - ); - console.log(result); -} - -deploymentsGenerateHeapDump().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGetSample.ts deleted file mode 100644 index bd658b648e98..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGetSample.ts +++ /dev/null @@ -1,62 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get a Deployment and its properties. - * - * @summary Get a Deployment and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Get.json - */ -async function deploymentsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.get( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsGet().catch(console.error); - -/** - * This sample demonstrates how to Get a Deployment and its properties. - * - * @summary Get a Deployment and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Get_CustomContainer.json - */ -async function deploymentsGetCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.get( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsGetCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsRestartSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsRestartSample.ts deleted file mode 100644 index 07493d014386..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsRestartSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Restart the deployment. - * - * @summary Restart the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Restart.json - */ -async function deploymentsRestart() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginRestartAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsRestart().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsStartJfrSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsStartJfrSample.ts deleted file mode 100644 index 35e6b3e2f8ab..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsStartJfrSample.ts +++ /dev/null @@ -1,46 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DiagnosticParameters, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Start JFR - * - * @summary Start JFR - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_StartJFR.json - */ -async function deploymentsStartJfr() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const diagnosticParameters: DiagnosticParameters = { - appInstance: "myappinstance", - duration: "60s", - filePath: "/byos/diagnose" - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginStartJFRAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - diagnosticParameters - ); - console.log(result); -} - -deploymentsStartJfr().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsUpdateSample.ts deleted file mode 100644 index ad32420f9caf..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsUpdateSample.ts +++ /dev/null @@ -1,97 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DeploymentResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Operation to update an exiting Deployment. - * - * @summary Operation to update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Update.json - */ -async function deploymentsUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource: DeploymentResource = { - properties: { - instances: [], - source: { - type: "Source", - artifactSelector: "sub-module-1", - relativePath: - "resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc", - version: "1.0" - } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsUpdate().catch(console.error); - -/** - * This sample demonstrates how to Operation to update an exiting Deployment. - * - * @summary Operation to update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Update_CustomContainer.json - */ -async function deploymentsUpdateCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource: DeploymentResource = { - properties: { - instances: [], - source: { - type: "Container", - customContainer: { - args: ["-c", "while true; do echo hello; sleep 10;done"], - command: ["/bin/sh"], - containerImage: "myNewContainerImage:v1", - imageRegistryCredential: { - password: "", - username: "myNewUsername" - }, - server: "mynewacr.azurecr.io" - } - } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsUpdateCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsCreateOrUpdateSample.ts deleted file mode 100644 index 9fdc049cfe21..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsCreateOrUpdateSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - GatewayCustomDomainResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update the Spring Cloud Gateway custom domain. - * - * @summary Create or update the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_CreateOrUpdate.json - */ -async function gatewayCustomDomainsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const gatewayCustomDomainResource: GatewayCustomDomainResource = { - properties: { thumbprint: "*" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - domainName, - gatewayCustomDomainResource - ); - console.log(result); -} - -gatewayCustomDomainsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsDeleteSample.ts deleted file mode 100644 index 857cdac7ecec..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsDeleteSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the Spring Cloud Gateway custom domain. - * - * @summary Delete the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Delete.json - */ -async function gatewayCustomDomainsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName, - domainName - ); - console.log(result); -} - -gatewayCustomDomainsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsGetSample.ts deleted file mode 100644 index b2d1e9a59889..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsGetSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway custom domain. - * - * @summary Get the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Get.json - */ -async function gatewayCustomDomainsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.get( - resourceGroupName, - serviceName, - gatewayName, - domainName - ); - console.log(result); -} - -gatewayCustomDomainsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsListSample.ts deleted file mode 100644 index 00fd3ad2f5e2..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayCustomDomainsListSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handle requests to list all Spring Cloud Gateway custom domains. - * - * @summary Handle requests to list all Spring Cloud Gateway custom domains. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_List.json - */ -async function gatewayCustomDomainsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gatewayCustomDomains.list( - resourceGroupName, - serviceName, - gatewayName - )) { - resArray.push(item); - } - console.log(resArray); -} - -gatewayCustomDomainsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsCreateOrUpdateSample.ts deleted file mode 100644 index 88ac2615cf9b..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsCreateOrUpdateSample.ts +++ /dev/null @@ -1,55 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - GatewayRouteConfigResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. - * - * @summary Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_CreateOrUpdate.json - */ -async function gatewayRouteConfigsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const gatewayRouteConfigResource: GatewayRouteConfigResource = { - properties: { - appResourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myApp", - routes: [ - { - filters: ["StripPrefix=2", "RateLimit=1,1s"], - predicates: ["Path=/api5/customer/**"], - ssoEnabled: true, - title: "myApp route config" - } - ] - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName, - gatewayRouteConfigResource - ); - console.log(result); -} - -gatewayRouteConfigsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsDeleteSample.ts deleted file mode 100644 index 5f973acfb703..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsDeleteSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the Spring Cloud Gateway route config. - * - * @summary Delete the Spring Cloud Gateway route config. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Delete.json - */ -async function gatewayRouteConfigsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName - ); - console.log(result); -} - -gatewayRouteConfigsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsGetSample.ts deleted file mode 100644 index 022ec6d0935f..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsGetSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway route configs. - * - * @summary Get the Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Get.json - */ -async function gatewayRouteConfigsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.get( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName - ); - console.log(result); -} - -gatewayRouteConfigsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsListSample.ts deleted file mode 100644 index 9dd386692c90..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewayRouteConfigsListSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handle requests to list all Spring Cloud Gateway route configs. - * - * @summary Handle requests to list all Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_List.json - */ -async function gatewayRouteConfigsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gatewayRouteConfigs.list( - resourceGroupName, - serviceName, - gatewayName - )) { - resArray.push(item); - } - console.log(resArray); -} - -gatewayRouteConfigsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysCreateOrUpdateSample.ts deleted file mode 100644 index 8e710655cd82..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysCreateOrUpdateSample.ts +++ /dev/null @@ -1,43 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - GatewayResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - * - * @summary Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_CreateOrUpdate.json - */ -async function gatewaysCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const gatewayResource: GatewayResource = { - properties: { public: true, resourceRequests: { cpu: "1", memory: "1G" } }, - sku: { name: "E0", capacity: 2, tier: "Enterprise" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - gatewayResource - ); - console.log(result); -} - -gatewaysCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysDeleteSample.ts deleted file mode 100644 index 47b1e99706c2..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysDeleteSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Disable the default Spring Cloud Gateway. - * - * @summary Disable the default Spring Cloud Gateway. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Delete.json - */ -async function gatewaysDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName - ); - console.log(result); -} - -gatewaysDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysGetSample.ts deleted file mode 100644 index b9c4aaa5bd35..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysGetSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway and its properties. - * - * @summary Get the Spring Cloud Gateway and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Get.json - */ -async function gatewaysGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.get( - resourceGroupName, - serviceName, - gatewayName - ); - console.log(result); -} - -gatewaysGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysListSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysListSample.ts deleted file mode 100644 index 037edc040095..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysListSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_List.json - */ -async function gatewaysList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gateways.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -gatewaysList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysValidateDomainSample.ts deleted file mode 100644 index 2b3c3fb51905..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/gatewaysValidateDomainSample.ts +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CustomDomainValidatePayload, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Check the domains are valid as well as not in use. - * - * @summary Check the domains are valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_ValidateDomain.json - */ -async function gatewaysValidateDomain() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const validatePayload: CustomDomainValidatePayload = { name: "mydomain.io" }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.validateDomain( - resourceGroupName, - serviceName, - gatewayName, - validatePayload - ); - console.log(result); -} - -gatewaysValidateDomain().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/monitoringSettingsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/monitoringSettingsGetSample.ts deleted file mode 100644 index 6e1e97242b05..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/monitoringSettingsGetSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the Monitoring Setting and its properties. - * - * @summary Get the Monitoring Setting and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_Get.json - */ -async function monitoringSettingsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.monitoringSettings.get( - resourceGroupName, - serviceName - ); - console.log(result); -} - -monitoringSettingsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesGetSample.ts deleted file mode 100644 index 8e2c5b28bdc9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesGetSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the Service Registry and its properties. - * - * @summary Get the Service Registry and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Get.json - */ -async function serviceRegistriesGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const serviceRegistryName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.serviceRegistries.get( - resourceGroupName, - serviceName, - serviceRegistryName - ); - console.log(result); -} - -serviceRegistriesGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesListSample.ts deleted file mode 100644 index 3194e4603279..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesListSample.ts +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_List.json - */ -async function serviceRegistriesList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.serviceRegistries.list( - resourceGroupName, - serviceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -serviceRegistriesList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesCreateOrUpdateSample.ts deleted file mode 100644 index ba959e2e0685..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesCreateOrUpdateSample.ts +++ /dev/null @@ -1,81 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ServiceResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create a new Service or update an exiting Service. - * - * @summary Create a new Service or update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CreateOrUpdate.json - */ -async function servicesCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const resource: ServiceResource = { - location: "eastus", - properties: {}, - sku: { name: "S0", tier: "Standard" }, - tags: { key1: "value1" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - resource - ); - console.log(result); -} - -servicesCreateOrUpdate().catch(console.error); - -/** - * This sample demonstrates how to Create a new Service or update an exiting Service. - * - * @summary Create a new Service or update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CreateOrUpdate_VNetInjection.json - */ -async function servicesCreateOrUpdateVNetInjection() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const resource: ServiceResource = { - location: "eastus", - properties: { - networkProfile: { - appNetworkResourceGroup: "my-app-network-rg", - appSubnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/apps", - serviceCidr: "10.8.0.0/16,10.244.0.0/16,10.245.0.1/16", - serviceRuntimeNetworkResourceGroup: "my-service-runtime-network-rg", - serviceRuntimeSubnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualNetwork/subnets/serviceRuntime" - } - }, - sku: { name: "S0", tier: "Standard" }, - tags: { key1: "value1" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - resource - ); - console.log(result); -} - -servicesCreateOrUpdateVNetInjection().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesDeleteSample.ts deleted file mode 100644 index cec8f52a524e..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesDeleteSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Operation to delete a Service. - * - * @summary Operation to delete a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Delete.json - */ -async function servicesDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginDeleteAndWait( - resourceGroupName, - serviceName - ); - console.log(result); -} - -servicesDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesGetSample.ts deleted file mode 100644 index 5dbe592a0ecd..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesGetSample.ts +++ /dev/null @@ -1,30 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get a Service and its properties. - * - * @summary Get a Service and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Get.json - */ -async function servicesGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.get(resourceGroupName, serviceName); - console.log(result); -} - -servicesGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesStartSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesStartSample.ts deleted file mode 100644 index 05a7cacc4767..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesStartSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Start a Service. - * - * @summary Start a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Start.json - */ -async function servicesStart() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginStartAndWait( - resourceGroupName, - serviceName - ); - console.log(result); -} - -servicesStart().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesStopSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesStopSample.ts deleted file mode 100644 index 3bd4b6495977..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesStopSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Stop a Service. - * - * @summary Stop a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Stop.json - */ -async function servicesStop() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginStopAndWait( - resourceGroupName, - serviceName - ); - console.log(result); -} - -servicesStop().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesUpdateSample.ts deleted file mode 100644 index d989c2a742ef..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesUpdateSample.ts +++ /dev/null @@ -1,43 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ServiceResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Operation to update an exiting Service. - * - * @summary Operation to update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Update.json - */ -async function servicesUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const resource: ServiceResource = { - location: "eastus", - properties: {}, - sku: { name: "S0", tier: "Standard" }, - tags: { key1: "value1" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginUpdateAndWait( - resourceGroupName, - serviceName, - resource - ); - console.log(result); -} - -servicesUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/skusListSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/skusListSample.ts deleted file mode 100644 index 8eb9edda85db..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/skusListSample.ts +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Lists all of the available skus of the Microsoft.AppPlatform provider. - * - * @summary Lists all of the available skus of the Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Skus_List.json - */ -async function skusList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.skus.list()) { - resArray.push(item); - } - console.log(resArray); -} - -skusList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesCreateOrUpdateSample.ts deleted file mode 100644 index 485e96fb0705..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesCreateOrUpdateSample.ts +++ /dev/null @@ -1,46 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - StorageResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update storage resource. - * - * @summary Create or update storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_CreateOrUpdate.json - */ -async function storagesCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const storageResource: StorageResource = { - properties: { - accountKey: "account-key-of-storage-account", - accountName: "storage-account-name", - storageType: "StorageAccount" - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - storageName, - storageResource - ); - console.log(result); -} - -storagesCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesDeleteSample.ts deleted file mode 100644 index 7c98f959e31d..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesDeleteSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the storage resource. - * - * @summary Delete the storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Delete.json - */ -async function storagesDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.beginDeleteAndWait( - resourceGroupName, - serviceName, - storageName - ); - console.log(result); -} - -storagesDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesGetSample.ts deleted file mode 100644 index ea9e5d32550c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesGetSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the storage resource. - * - * @summary Get the storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Get.json - */ -async function storagesGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.get( - resourceGroupName, - serviceName, - storageName - ); - console.log(result); -} - -storagesGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesListSample.ts deleted file mode 100644 index 6c6a99170421..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/storagesListSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to List all the storages of one Azure Spring Cloud instance. - * - * @summary List all the storages of one Azure Spring Cloud instance. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_List.json - */ -async function storagesList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myService"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.storages.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -storagesList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/README.md b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/README.md deleted file mode 100644 index 1f02629310a4..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/README.md +++ /dev/null @@ -1,282 +0,0 @@ -# client library samples for JavaScript (Beta) - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [apiPortalCustomDomainsCreateOrUpdateSample.js][apiportalcustomdomainscreateorupdatesample] | Create or update the API portal custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_CreateOrUpdate.json | -| [apiPortalCustomDomainsDeleteSample.js][apiportalcustomdomainsdeletesample] | Delete the API portal custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Delete.json | -| [apiPortalCustomDomainsGetSample.js][apiportalcustomdomainsgetsample] | Get the API portal custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Get.json | -| [apiPortalCustomDomainsListSample.js][apiportalcustomdomainslistsample] | Handle requests to list all API portal custom domains. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_List.json | -| [apiPortalsCreateOrUpdateSample.js][apiportalscreateorupdatesample] | Create the default API portal or update the existing API portal. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_CreateOrUpdate.json | -| [apiPortalsDeleteSample.js][apiportalsdeletesample] | Delete the default API portal. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Delete.json | -| [apiPortalsGetSample.js][apiportalsgetsample] | Get the API portal and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Get.json | -| [apiPortalsListSample.js][apiportalslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_List.json | -| [apiPortalsValidateDomainSample.js][apiportalsvalidatedomainsample] | Check the domains are valid as well as not in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_ValidateDomain.json | -| [appsCreateOrUpdateSample.js][appscreateorupdatesample] | Create a new App or update an exiting App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_CreateOrUpdate.json | -| [appsDeleteSample.js][appsdeletesample] | Operation to delete an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Delete.json | -| [appsGetResourceUploadUrlSample.js][appsgetresourceuploadurlsample] | Get an resource upload URL for an App, which may be artifacts or source archive. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_GetResourceUploadUrl.json | -| [appsGetSample.js][appsgetsample] | Get an App and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Get.json | -| [appsListSample.js][appslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_List.json | -| [appsSetActiveDeploymentsSample.js][appssetactivedeploymentssample] | Set existing Deployment under the app as active x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_SetActiveDeployments.json | -| [appsUpdateSample.js][appsupdatesample] | Operation to update an exiting App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Update.json | -| [appsValidateDomainSample.js][appsvalidatedomainsample] | Check the resource name is valid as well as not in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_ValidateDomain.json | -| [bindingsCreateOrUpdateSample.js][bindingscreateorupdatesample] | Create a new Binding or update an exiting Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_CreateOrUpdate.json | -| [bindingsDeleteSample.js][bindingsdeletesample] | Operation to delete a Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Delete.json | -| [bindingsGetSample.js][bindingsgetsample] | Get a Binding and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Get.json | -| [bindingsListSample.js][bindingslistsample] | Handles requests to list all resources in an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_List.json | -| [bindingsUpdateSample.js][bindingsupdatesample] | Operation to update an exiting Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Update.json | -| [buildServiceAgentPoolGetSample.js][buildserviceagentpoolgetsample] | Get build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_Get.json | -| [buildServiceAgentPoolListSample.js][buildserviceagentpoollistsample] | List build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_List.json | -| [buildServiceAgentPoolUpdatePutSample.js][buildserviceagentpoolupdateputsample] | Create or update build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_UpdatePut.json | -| [buildServiceBuilderCreateOrUpdateSample.js][buildservicebuildercreateorupdatesample] | Create or update a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_CreateOrUpdate.json | -| [buildServiceBuilderDeleteSample.js][buildservicebuilderdeletesample] | Delete a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Delete.json | -| [buildServiceBuilderGetSample.js][buildservicebuildergetsample] | Get a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Get.json | -| [buildServiceBuilderListSample.js][buildservicebuilderlistsample] | List KPack builders result. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_List.json | -| [buildServiceCreateOrUpdateBuildSample.js][buildservicecreateorupdatebuildsample] | Create or update a KPack build. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_CreateOrUpdateBuild.json | -| [buildServiceGetBuildResultLogSample.js][buildservicegetbuildresultlogsample] | Get a KPack build result log download URL. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResultLog.json | -| [buildServiceGetBuildResultSample.js][buildservicegetbuildresultsample] | Get a KPack build result. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResult.json | -| [buildServiceGetBuildSample.js][buildservicegetbuildsample] | Get a KPack build. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuild.json | -| [buildServiceGetBuildServiceSample.js][buildservicegetbuildservicesample] | Get a build service resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildService.json | -| [buildServiceGetResourceUploadUrlSample.js][buildservicegetresourceuploadurlsample] | Get an resource upload URL for build service, which may be artifacts or source archive. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetResourceUploadUrl.json | -| [buildServiceGetSupportedBuildpackSample.js][buildservicegetsupportedbuildpacksample] | Get the supported buildpack resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedBuildpack.json | -| [buildServiceGetSupportedStackSample.js][buildservicegetsupportedstacksample] | Get the supported stack resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedStack.json | -| [buildServiceListBuildResultsSample.js][buildservicelistbuildresultssample] | List KPack build results. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildResults.json | -| [buildServiceListBuildServicesSample.js][buildservicelistbuildservicessample] | List build services resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildServices.json | -| [buildServiceListBuildsSample.js][buildservicelistbuildssample] | List KPack builds. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuilds.json | -| [buildServiceListSupportedBuildpacksSample.js][buildservicelistsupportedbuildpackssample] | Get all supported buildpacks. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedBuildpacks.json | -| [buildServiceListSupportedStacksSample.js][buildservicelistsupportedstackssample] | Get all supported stacks. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedStacks.json | -| [buildpackBindingCreateOrUpdateSample.js][buildpackbindingcreateorupdatesample] | Create or update a buildpack binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_CreateOrUpdate.json | -| [buildpackBindingDeleteSample.js][buildpackbindingdeletesample] | Operation to delete a Buildpack Binding x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Delete.json | -| [buildpackBindingGetSample.js][buildpackbindinggetsample] | Get a buildpack binding by name. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Get.json | -| [buildpackBindingListSample.js][buildpackbindinglistsample] | Handles requests to list all buildpack bindings in a builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_List.json | -| [certificatesCreateOrUpdateSample.js][certificatescreateorupdatesample] | Create or update certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_CreateOrUpdate.json | -| [certificatesDeleteSample.js][certificatesdeletesample] | Delete the certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Delete.json | -| [certificatesGetSample.js][certificatesgetsample] | Get the certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Get.json | -| [certificatesListSample.js][certificateslistsample] | List all the certificates of one user. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_List.json | -| [configServersGetSample.js][configserversgetsample] | Get the config server and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Get.json | -| [configServersUpdatePatchSample.js][configserversupdatepatchsample] | Update the config server. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePatch.json | -| [configServersUpdatePutSample.js][configserversupdateputsample] | Update the config server. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePut.json | -| [configServersValidateSample.js][configserversvalidatesample] | Check if the config server settings are valid. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Validate.json | -| [configurationServicesCreateOrUpdateSample.js][configurationservicescreateorupdatesample] | Create the default Application Configuration Service or update the existing Application Configuration Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_CreateOrUpdate.json | -| [configurationServicesDeleteSample.js][configurationservicesdeletesample] | Disable the default Application Configuration Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Delete.json | -| [configurationServicesGetSample.js][configurationservicesgetsample] | Get the Application Configuration Service and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Get.json | -| [configurationServicesListSample.js][configurationserviceslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_List.json | -| [configurationServicesValidateSample.js][configurationservicesvalidatesample] | Check if the Application Configuration Service settings are valid. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Validate.json | -| [customDomainsCreateOrUpdateSample.js][customdomainscreateorupdatesample] | Create or update custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_CreateOrUpdate.json | -| [customDomainsDeleteSample.js][customdomainsdeletesample] | Delete the custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Delete.json | -| [customDomainsGetSample.js][customdomainsgetsample] | Get the custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Get.json | -| [customDomainsListSample.js][customdomainslistsample] | List the custom domains of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_List.json | -| [customDomainsUpdateSample.js][customdomainsupdatesample] | Update custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Update.json | -| [deploymentsCreateOrUpdateSample.js][deploymentscreateorupdatesample] | Create a new Deployment or update an exiting Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_CreateOrUpdate.json | -| [deploymentsDeleteSample.js][deploymentsdeletesample] | Operation to delete a Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Delete.json | -| [deploymentsGenerateHeapDumpSample.js][deploymentsgenerateheapdumpsample] | Generate Heap Dump x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateHeapDump.json | -| [deploymentsGenerateThreadDumpSample.js][deploymentsgeneratethreaddumpsample] | Generate Thread Dump x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateThreadDump.json | -| [deploymentsGetLogFileUrlSample.js][deploymentsgetlogfileurlsample] | Get deployment log file URL x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GetLogFileUrl.json | -| [deploymentsGetSample.js][deploymentsgetsample] | Get a Deployment and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Get.json | -| [deploymentsListForClusterSample.js][deploymentslistforclustersample] | List deployments for a certain service x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_ListForCluster.json | -| [deploymentsListSample.js][deploymentslistsample] | Handles requests to list all resources in an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_List.json | -| [deploymentsRestartSample.js][deploymentsrestartsample] | Restart the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Restart.json | -| [deploymentsStartJfrSample.js][deploymentsstartjfrsample] | Start JFR x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_StartJFR.json | -| [deploymentsStartSample.js][deploymentsstartsample] | Start the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Start.json | -| [deploymentsStopSample.js][deploymentsstopsample] | Stop the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Stop.json | -| [deploymentsUpdateSample.js][deploymentsupdatesample] | Operation to update an exiting Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Update.json | -| [gatewayCustomDomainsCreateOrUpdateSample.js][gatewaycustomdomainscreateorupdatesample] | Create or update the Spring Cloud Gateway custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_CreateOrUpdate.json | -| [gatewayCustomDomainsDeleteSample.js][gatewaycustomdomainsdeletesample] | Delete the Spring Cloud Gateway custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Delete.json | -| [gatewayCustomDomainsGetSample.js][gatewaycustomdomainsgetsample] | Get the Spring Cloud Gateway custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Get.json | -| [gatewayCustomDomainsListSample.js][gatewaycustomdomainslistsample] | Handle requests to list all Spring Cloud Gateway custom domains. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_List.json | -| [gatewayRouteConfigsCreateOrUpdateSample.js][gatewayrouteconfigscreateorupdatesample] | Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_CreateOrUpdate.json | -| [gatewayRouteConfigsDeleteSample.js][gatewayrouteconfigsdeletesample] | Delete the Spring Cloud Gateway route config. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Delete.json | -| [gatewayRouteConfigsGetSample.js][gatewayrouteconfigsgetsample] | Get the Spring Cloud Gateway route configs. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Get.json | -| [gatewayRouteConfigsListSample.js][gatewayrouteconfigslistsample] | Handle requests to list all Spring Cloud Gateway route configs. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_List.json | -| [gatewaysCreateOrUpdateSample.js][gatewayscreateorupdatesample] | Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_CreateOrUpdate.json | -| [gatewaysDeleteSample.js][gatewaysdeletesample] | Disable the default Spring Cloud Gateway. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Delete.json | -| [gatewaysGetSample.js][gatewaysgetsample] | Get the Spring Cloud Gateway and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Get.json | -| [gatewaysListSample.js][gatewayslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_List.json | -| [gatewaysValidateDomainSample.js][gatewaysvalidatedomainsample] | Check the domains are valid as well as not in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_ValidateDomain.json | -| [monitoringSettingsGetSample.js][monitoringsettingsgetsample] | Get the Monitoring Setting and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_Get.json | -| [monitoringSettingsUpdatePatchSample.js][monitoringsettingsupdatepatchsample] | Update the Monitoring Setting. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePatch.json | -| [monitoringSettingsUpdatePutSample.js][monitoringsettingsupdateputsample] | Update the Monitoring Setting. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePut.json | -| [operationsListSample.js][operationslistsample] | Lists all of the available REST API operations of the Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Operations_List.json | -| [runtimeVersionsListRuntimeVersionsSample.js][runtimeversionslistruntimeversionssample] | Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/RuntimeVersions_ListRuntimeVersions.json | -| [serviceRegistriesCreateOrUpdateSample.js][serviceregistriescreateorupdatesample] | Create the default Service Registry or update the existing Service Registry. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_CreateOrUpdate.json | -| [serviceRegistriesDeleteSample.js][serviceregistriesdeletesample] | Disable the default Service Registry. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Delete.json | -| [serviceRegistriesGetSample.js][serviceregistriesgetsample] | Get the Service Registry and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Get.json | -| [serviceRegistriesListSample.js][serviceregistrieslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_List.json | -| [servicesCheckNameAvailabilitySample.js][serviceschecknameavailabilitysample] | Checks that the resource name is valid and is not already in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CheckNameAvailability.json | -| [servicesCreateOrUpdateSample.js][servicescreateorupdatesample] | Create a new Service or update an exiting Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CreateOrUpdate.json | -| [servicesDeleteSample.js][servicesdeletesample] | Operation to delete a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Delete.json | -| [servicesDisableTestEndpointSample.js][servicesdisabletestendpointsample] | Disable test endpoint functionality for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_DisableTestEndpoint.json | -| [servicesEnableTestEndpointSample.js][servicesenabletestendpointsample] | Enable test endpoint functionality for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_EnableTestEndpoint.json | -| [servicesGetSample.js][servicesgetsample] | Get a Service and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Get.json | -| [servicesListBySubscriptionSample.js][serviceslistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListBySubscription.json | -| [servicesListSample.js][serviceslistsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_List.json | -| [servicesListTestKeysSample.js][serviceslisttestkeyssample] | List test keys for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListTestKeys.json | -| [servicesRegenerateTestKeySample.js][servicesregeneratetestkeysample] | Regenerate a test key for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_RegenerateTestKey.json | -| [servicesStartSample.js][servicesstartsample] | Start a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Start.json | -| [servicesStopSample.js][servicesstopsample] | Stop a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Stop.json | -| [servicesUpdateSample.js][servicesupdatesample] | Operation to update an exiting Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Update.json | -| [skusListSample.js][skuslistsample] | Lists all of the available skus of the Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Skus_List.json | -| [storagesCreateOrUpdateSample.js][storagescreateorupdatesample] | Create or update storage resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_CreateOrUpdate.json | -| [storagesDeleteSample.js][storagesdeletesample] | Delete the storage resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Delete.json | -| [storagesGetSample.js][storagesgetsample] | Get the storage resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Get.json | -| [storagesListSample.js][storageslistsample] | List all the storages of one Azure Spring Cloud instance. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_List.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node apiPortalCustomDomainsCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env node apiPortalCustomDomainsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[apiportalcustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsCreateOrUpdateSample.js -[apiportalcustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsDeleteSample.js -[apiportalcustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsGetSample.js -[apiportalcustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsListSample.js -[apiportalscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsCreateOrUpdateSample.js -[apiportalsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsDeleteSample.js -[apiportalsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsGetSample.js -[apiportalslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsListSample.js -[apiportalsvalidatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsValidateDomainSample.js -[appscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsCreateOrUpdateSample.js -[appsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsDeleteSample.js -[appsgetresourceuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsGetResourceUploadUrlSample.js -[appsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsGetSample.js -[appslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsListSample.js -[appssetactivedeploymentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsSetActiveDeploymentsSample.js -[appsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsUpdateSample.js -[appsvalidatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsValidateDomainSample.js -[bindingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsCreateOrUpdateSample.js -[bindingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsDeleteSample.js -[bindingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsGetSample.js -[bindingslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsListSample.js -[bindingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsUpdateSample.js -[buildserviceagentpoolgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceAgentPoolGetSample.js -[buildserviceagentpoollistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceAgentPoolListSample.js -[buildserviceagentpoolupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceAgentPoolUpdatePutSample.js -[buildservicebuildercreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderCreateOrUpdateSample.js -[buildservicebuilderdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderDeleteSample.js -[buildservicebuildergetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderGetSample.js -[buildservicebuilderlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderListSample.js -[buildservicecreateorupdatebuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceCreateOrUpdateBuildSample.js -[buildservicegetbuildresultlogsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildResultLogSample.js -[buildservicegetbuildresultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildResultSample.js -[buildservicegetbuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildSample.js -[buildservicegetbuildservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildServiceSample.js -[buildservicegetresourceuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetResourceUploadUrlSample.js -[buildservicegetsupportedbuildpacksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetSupportedBuildpackSample.js -[buildservicegetsupportedstacksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetSupportedStackSample.js -[buildservicelistbuildresultssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListBuildResultsSample.js -[buildservicelistbuildservicessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListBuildServicesSample.js -[buildservicelistbuildssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListBuildsSample.js -[buildservicelistsupportedbuildpackssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListSupportedBuildpacksSample.js -[buildservicelistsupportedstackssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListSupportedStacksSample.js -[buildpackbindingcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingCreateOrUpdateSample.js -[buildpackbindingdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingDeleteSample.js -[buildpackbindinggetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingGetSample.js -[buildpackbindinglistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingListSample.js -[certificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesCreateOrUpdateSample.js -[certificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesDeleteSample.js -[certificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesGetSample.js -[certificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesListSample.js -[configserversgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersGetSample.js -[configserversupdatepatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersUpdatePatchSample.js -[configserversupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersUpdatePutSample.js -[configserversvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersValidateSample.js -[configurationservicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesCreateOrUpdateSample.js -[configurationservicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesDeleteSample.js -[configurationservicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesGetSample.js -[configurationserviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesListSample.js -[configurationservicesvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesValidateSample.js -[customdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsCreateOrUpdateSample.js -[customdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsDeleteSample.js -[customdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsGetSample.js -[customdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsListSample.js -[customdomainsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsUpdateSample.js -[deploymentscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsCreateOrUpdateSample.js -[deploymentsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsDeleteSample.js -[deploymentsgenerateheapdumpsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGenerateHeapDumpSample.js -[deploymentsgeneratethreaddumpsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGenerateThreadDumpSample.js -[deploymentsgetlogfileurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGetLogFileUrlSample.js -[deploymentsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGetSample.js -[deploymentslistforclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsListForClusterSample.js -[deploymentslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsListSample.js -[deploymentsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsRestartSample.js -[deploymentsstartjfrsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsStartJfrSample.js -[deploymentsstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsStartSample.js -[deploymentsstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsStopSample.js -[deploymentsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsUpdateSample.js -[gatewaycustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsCreateOrUpdateSample.js -[gatewaycustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsDeleteSample.js -[gatewaycustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsGetSample.js -[gatewaycustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsListSample.js -[gatewayrouteconfigscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsCreateOrUpdateSample.js -[gatewayrouteconfigsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsDeleteSample.js -[gatewayrouteconfigsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsGetSample.js -[gatewayrouteconfigslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsListSample.js -[gatewayscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysCreateOrUpdateSample.js -[gatewaysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysDeleteSample.js -[gatewaysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysGetSample.js -[gatewayslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysListSample.js -[gatewaysvalidatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysValidateDomainSample.js -[monitoringsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/monitoringSettingsGetSample.js -[monitoringsettingsupdatepatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/monitoringSettingsUpdatePatchSample.js -[monitoringsettingsupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/monitoringSettingsUpdatePutSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/operationsListSample.js -[runtimeversionslistruntimeversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/runtimeVersionsListRuntimeVersionsSample.js -[serviceregistriescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesCreateOrUpdateSample.js -[serviceregistriesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesDeleteSample.js -[serviceregistriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesGetSample.js -[serviceregistrieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesListSample.js -[serviceschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesCheckNameAvailabilitySample.js -[servicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesCreateOrUpdateSample.js -[servicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesDeleteSample.js -[servicesdisabletestendpointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesDisableTestEndpointSample.js -[servicesenabletestendpointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesEnableTestEndpointSample.js -[servicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesGetSample.js -[serviceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesListBySubscriptionSample.js -[serviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesListSample.js -[serviceslisttestkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesListTestKeysSample.js -[servicesregeneratetestkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesRegenerateTestKeySample.js -[servicesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesStartSample.js -[servicesstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesStopSample.js -[servicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesUpdateSample.js -[skuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/skusListSample.js -[storagescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesCreateOrUpdateSample.js -[storagesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesDeleteSample.js -[storagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesGetSample.js -[storageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesListSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform/README.md diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsCreateOrUpdateSample.js deleted file mode 100644 index 2969c01e9364..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsCreateOrUpdateSample.js +++ /dev/null @@ -1,41 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create or update the API portal custom domain. - * - * @summary Create or update the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_CreateOrUpdate.json - */ -async function apiPortalCustomDomainsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const apiPortalCustomDomainResource = { - properties: { thumbprint: "*" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - apiPortalName, - domainName, - apiPortalCustomDomainResource - ); - console.log(result); -} - -apiPortalCustomDomainsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsDeleteSample.js deleted file mode 100644 index f67bb2362dfe..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsDeleteSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Delete the API portal custom domain. - * - * @summary Delete the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Delete.json - */ -async function apiPortalCustomDomainsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.beginDeleteAndWait( - resourceGroupName, - serviceName, - apiPortalName, - domainName - ); - console.log(result); -} - -apiPortalCustomDomainsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsGetSample.js deleted file mode 100644 index f287cde8ecbc..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsGetSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the API portal custom domain. - * - * @summary Get the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Get.json - */ -async function apiPortalCustomDomainsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.get( - resourceGroupName, - serviceName, - apiPortalName, - domainName - ); - console.log(result); -} - -apiPortalCustomDomainsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsListSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsListSample.js deleted file mode 100644 index ab5d855f427b..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalCustomDomainsListSample.js +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handle requests to list all API portal custom domains. - * - * @summary Handle requests to list all API portal custom domains. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_List.json - */ -async function apiPortalCustomDomainsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.apiPortalCustomDomains.list( - resourceGroupName, - serviceName, - apiPortalName - )) { - resArray.push(item); - } - console.log(resArray); -} - -apiPortalCustomDomainsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsCreateOrUpdateSample.js deleted file mode 100644 index 25b84b146b66..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsCreateOrUpdateSample.js +++ /dev/null @@ -1,45 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create the default API portal or update the existing API portal. - * - * @summary Create the default API portal or update the existing API portal. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_CreateOrUpdate.json - */ -async function apiPortalsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const apiPortalResource = { - properties: { - gatewayIds: [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default", - ], - public: true, - }, - sku: { name: "E0", capacity: 2, tier: "Enterprise" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - apiPortalName, - apiPortalResource - ); - console.log(result); -} - -apiPortalsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsDeleteSample.js deleted file mode 100644 index ff79c5a0eedf..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsDeleteSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Delete the default API portal. - * - * @summary Delete the default API portal. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Delete.json - */ -async function apiPortalsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.beginDeleteAndWait( - resourceGroupName, - serviceName, - apiPortalName - ); - console.log(result); -} - -apiPortalsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsGetSample.js deleted file mode 100644 index d3478026dca9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsGetSample.js +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the API portal and its properties. - * - * @summary Get the API portal and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Get.json - */ -async function apiPortalsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.get(resourceGroupName, serviceName, apiPortalName); - console.log(result); -} - -apiPortalsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsListSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsListSample.js deleted file mode 100644 index 07023c1e9b3d..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsListSample.js +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_List.json - */ -async function apiPortalsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.apiPortals.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -apiPortalsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsValidateDomainSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsValidateDomainSample.js deleted file mode 100644 index 47109a9e94e6..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/apiPortalsValidateDomainSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Check the domains are valid as well as not in use. - * - * @summary Check the domains are valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_ValidateDomain.json - */ -async function apiPortalsValidateDomain() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const validatePayload = { name: "mydomain.io" }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.validateDomain( - resourceGroupName, - serviceName, - apiPortalName, - validatePayload - ); - console.log(result); -} - -apiPortalsValidateDomain().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsCreateOrUpdateSample.js deleted file mode 100644 index a2940417e395..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsCreateOrUpdateSample.js +++ /dev/null @@ -1,97 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create a new App or update an exiting App. - * - * @summary Create a new App or update an exiting App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_CreateOrUpdate.json - */ -async function appsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const appResource = { - identity: { - type: "SystemAssigned,UserAssigned", - principalId: undefined, - tenantId: undefined, - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": - { - clientId: undefined, - principalId: undefined, - }, - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": - { - clientId: undefined, - principalId: undefined, - }, - }, - }, - location: "eastus", - properties: { - addonConfigs: { - applicationConfigurationService: { - resourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configurationServices/myacs", - }, - serviceRegistry: { - resourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/serviceRegistries/myServiceRegistry", - }, - }, - customPersistentDisks: [ - { - customPersistentDiskProperties: { - type: "AzureFileVolume", - mountOptions: ["uid=0", "gid=0", "dir_mode=0777", "file_mode=0777"], - mountPath: "/mypath1/mypath2", - shareName: "myFileShare", - }, - storageId: "myASCStorageID", - }, - ], - enableEndToEndTLS: false, - fqdn: "myapp.mydomain.com", - httpsOnly: false, - loadedCertificates: [ - { - loadTrustStore: false, - resourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert1", - }, - { - loadTrustStore: true, - resourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert2", - }, - ], - persistentDisk: { mountPath: "/mypersistentdisk", sizeInGB: 2 }, - public: true, - temporaryDisk: { mountPath: "/mytemporarydisk", sizeInGB: 2 }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apps.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - appName, - appResource - ); - console.log(result); -} - -appsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsGetSample.js deleted file mode 100644 index 0c3aa10a441d..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsGetSample.js +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get an App and its properties. - * - * @summary Get an App and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Get.json - */ -async function appsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apps.get(resourceGroupName, serviceName, appName); - console.log(result); -} - -appsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsSetActiveDeploymentsSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsSetActiveDeploymentsSample.js deleted file mode 100644 index 90c0541ca06b..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsSetActiveDeploymentsSample.js +++ /dev/null @@ -1,39 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Set existing Deployment under the app as active - * - * @summary Set existing Deployment under the app as active - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_SetActiveDeployments.json - */ -async function appsSetActiveDeployments() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const activeDeploymentCollection = { - activeDeploymentNames: ["default"], - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apps.beginSetActiveDeploymentsAndWait( - resourceGroupName, - serviceName, - appName, - activeDeploymentCollection - ); - console.log(result); -} - -appsSetActiveDeployments().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsValidateDomainSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsValidateDomainSample.js deleted file mode 100644 index d6eb00918760..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsValidateDomainSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Check the resource name is valid as well as not in use. - * - * @summary Check the resource name is valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_ValidateDomain.json - */ -async function appsValidateDomain() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const validatePayload = { name: "mydomain.io" }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apps.validateDomain( - resourceGroupName, - serviceName, - appName, - validatePayload - ); - console.log(result); -} - -appsValidateDomain().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsCreateOrUpdateSample.js deleted file mode 100644 index 1586bf6fac65..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsCreateOrUpdateSample.js +++ /dev/null @@ -1,49 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create a new Binding or update an exiting Binding. - * - * @summary Create a new Binding or update an exiting Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_CreateOrUpdate.json - */ -async function bindingsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const bindingName = "mybinding"; - const bindingResource = { - properties: { - bindingParameters: { apiType: "SQL", databaseName: "db1" }, - createdAt: undefined, - generatedProperties: undefined, - key: "xxxx", - resourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmosdb-1", - updatedAt: undefined, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.bindings.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - appName, - bindingName, - bindingResource - ); - console.log(result); -} - -bindingsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsListSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsListSample.js deleted file mode 100644 index 55ea16d417aa..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsListSample.js +++ /dev/null @@ -1,34 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handles requests to list all resources in an App. - * - * @summary Handles requests to list all resources in an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_List.json - */ -async function bindingsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.bindings.list(resourceGroupName, serviceName, appName)) { - resArray.push(item); - } - console.log(resArray); -} - -bindingsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceAgentPoolListSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceAgentPoolListSample.js deleted file mode 100644 index 5a31b65837ca..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceAgentPoolListSample.js +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to List build service agent pool. - * - * @summary List build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_List.json - */ -async function buildServiceAgentPoolList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.buildServiceAgentPool.list( - resourceGroupName, - serviceName, - buildServiceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -buildServiceAgentPoolList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderCreateOrUpdateSample.js deleted file mode 100644 index 0e96bca2fac9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderCreateOrUpdateSample.js +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create or update a KPack builder. - * - * @summary Create or update a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_CreateOrUpdate.json - */ -async function buildServiceBuilderCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const builderName = "mybuilder"; - const builderResource = { - properties: { - buildpackGroups: [{ name: "mix", buildpacks: [{ id: "tanzu-buildpacks/java-azure" }] }], - stack: { id: "io.buildpacks.stacks.bionic", version: "base" }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceBuilder.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - buildServiceName, - builderName, - builderResource - ); - console.log(result); -} - -buildServiceBuilderCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderGetSample.js deleted file mode 100644 index a127d4d68ac9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderGetSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get a KPack builder. - * - * @summary Get a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Get.json - */ -async function buildServiceBuilderGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const builderName = "mybuilder"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceBuilder.get( - resourceGroupName, - serviceName, - buildServiceName, - builderName - ); - console.log(result); -} - -buildServiceBuilderGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildResultSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildResultSample.js deleted file mode 100644 index 4023cda94d93..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildResultSample.js +++ /dev/null @@ -1,39 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get a KPack build result. - * - * @summary Get a KPack build result. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResult.json - */ -async function buildServiceGetBuildResult() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const buildName = "mybuild"; - const buildResultName = "123"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.getBuildResult( - resourceGroupName, - serviceName, - buildServiceName, - buildName, - buildResultName - ); - console.log(result); -} - -buildServiceGetBuildResult().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildServiceSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildServiceSample.js deleted file mode 100644 index 085de81667fe..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildServiceSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get a build service resource. - * - * @summary Get a build service resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildService.json - */ -async function buildServiceGetBuildService() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.getBuildService( - resourceGroupName, - serviceName, - buildServiceName - ); - console.log(result); -} - -buildServiceGetBuildService().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetResourceUploadUrlSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetResourceUploadUrlSample.js deleted file mode 100644 index 738e4abb05a3..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetResourceUploadUrlSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get an resource upload URL for build service, which may be artifacts or source archive. - * - * @summary Get an resource upload URL for build service, which may be artifacts or source archive. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetResourceUploadUrl.json - */ -async function buildServiceGetResourceUploadUrl() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.getResourceUploadUrl( - resourceGroupName, - serviceName, - buildServiceName - ); - console.log(result); -} - -buildServiceGetResourceUploadUrl().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetSupportedBuildpackSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetSupportedBuildpackSample.js deleted file mode 100644 index 7afc007e1299..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetSupportedBuildpackSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the supported buildpack resource. - * - * @summary Get the supported buildpack resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedBuildpack.json - */ -async function buildServiceGetSupportedBuildpack() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const buildpackName = "tanzu-buildpacks-java-azure"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.getSupportedBuildpack( - resourceGroupName, - serviceName, - buildServiceName, - buildpackName - ); - console.log(result); -} - -buildServiceGetSupportedBuildpack().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListBuildResultsSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListBuildResultsSample.js deleted file mode 100644 index a4d7918ac1f5..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListBuildResultsSample.js +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to List KPack build results. - * - * @summary List KPack build results. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildResults.json - */ -async function buildServiceListBuildResults() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const buildName = "mybuild"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.buildServiceOperations.listBuildResults( - resourceGroupName, - serviceName, - buildServiceName, - buildName - )) { - resArray.push(item); - } - console.log(resArray); -} - -buildServiceListBuildResults().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListSupportedStacksSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListSupportedStacksSample.js deleted file mode 100644 index 05926dd98fdb..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListSupportedStacksSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get all supported stacks. - * - * @summary Get all supported stacks. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedStacks.json - */ -async function buildServiceListSupportedStacks() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.listSupportedStacks( - resourceGroupName, - serviceName, - buildServiceName - ); - console.log(result); -} - -buildServiceListSupportedStacks().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingDeleteSample.js deleted file mode 100644 index bb99283f92c9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingDeleteSample.js +++ /dev/null @@ -1,39 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Operation to delete a Buildpack Binding - * - * @summary Operation to delete a Buildpack Binding - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Delete.json - */ -async function buildpackBindingDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const builderName = "default"; - const buildpackBindingName = "myBuildpackBinding"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildpackBinding.beginDeleteAndWait( - resourceGroupName, - serviceName, - buildServiceName, - builderName, - buildpackBindingName - ); - console.log(result); -} - -buildpackBindingDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesCreateOrUpdateSample.js deleted file mode 100644 index b3ff553c185e..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesCreateOrUpdateSample.js +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create or update certificate resource. - * - * @summary Create or update certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_CreateOrUpdate.json - */ -async function certificatesCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const certificateName = "mycertificate"; - const certificateResource = { - properties: { - type: "KeyVaultCertificate", - certVersion: "08a219d06d874795a96db47e06fbb01e", - keyVaultCertName: "mycert", - vaultUri: "https://myvault.vault.azure.net", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.certificates.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - certificateName, - certificateResource - ); - console.log(result); -} - -certificatesCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersGetSample.js deleted file mode 100644 index 987bc66a536c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersGetSample.js +++ /dev/null @@ -1,30 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the config server and its properties. - * - * @summary Get the config server and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Get.json - */ -async function configServersGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configServers.get(resourceGroupName, serviceName); - console.log(result); -} - -configServersGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersValidateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersValidateSample.js deleted file mode 100644 index 05fb4f30e14c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersValidateSample.js +++ /dev/null @@ -1,41 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Check if the config server settings are valid. - * - * @summary Check if the config server settings are valid. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Validate.json - */ -async function configServersValidate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const configServerSettings = { - gitProperty: { - label: "master", - searchPaths: ["/"], - uri: "https://github.com/fake-user/fake-repository.git", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configServers.beginValidateAndWait( - resourceGroupName, - serviceName, - configServerSettings - ); - console.log(result); -} - -configServersValidate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesDeleteSample.js deleted file mode 100644 index f7617591ace3..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesDeleteSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Disable the default Application Configuration Service. - * - * @summary Disable the default Application Configuration Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Delete.json - */ -async function configurationServicesDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const configurationServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configurationServices.beginDeleteAndWait( - resourceGroupName, - serviceName, - configurationServiceName - ); - console.log(result); -} - -configurationServicesDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsCreateOrUpdateSample.js deleted file mode 100644 index 8af9b913aeef..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsCreateOrUpdateSample.js +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create or update custom domain of one lifecycle application. - * - * @summary Create or update custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_CreateOrUpdate.json - */ -async function customDomainsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const domainName = "mydomain.com"; - const domainResource = { - properties: { - certName: "mycert", - thumbprint: "934367bf1c97033f877db0f15cb1b586957d3133", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.customDomains.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - appName, - domainName, - domainResource - ); - console.log(result); -} - -customDomainsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsDeleteSample.js deleted file mode 100644 index 71312b5c29a5..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsDeleteSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Delete the custom domain of one lifecycle application. - * - * @summary Delete the custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Delete.json - */ -async function customDomainsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const domainName = "mydomain.com"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.customDomains.beginDeleteAndWait( - resourceGroupName, - serviceName, - appName, - domainName - ); - console.log(result); -} - -customDomainsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsListSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsListSample.js deleted file mode 100644 index d46883582e9b..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsListSample.js +++ /dev/null @@ -1,34 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to List the custom domains of one lifecycle application. - * - * @summary List the custom domains of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_List.json - */ -async function customDomainsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.customDomains.list(resourceGroupName, serviceName, appName)) { - resArray.push(item); - } - console.log(resArray); -} - -customDomainsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsUpdateSample.js deleted file mode 100644 index d6df10c2276c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsUpdateSample.js +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Update custom domain of one lifecycle application. - * - * @summary Update custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Update.json - */ -async function customDomainsUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const domainName = "mydomain.com"; - const domainResource = { - properties: { - certName: "mycert", - thumbprint: "934367bf1c97033f877db0f15cb1b586957d3133", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.customDomains.beginUpdateAndWait( - resourceGroupName, - serviceName, - appName, - domainName, - domainResource - ); - console.log(result); -} - -customDomainsUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsCreateOrUpdateSample.js deleted file mode 100644 index d1ec495d4ca1..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsCreateOrUpdateSample.js +++ /dev/null @@ -1,107 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create a new Deployment or update an exiting Deployment. - * - * @summary Create a new Deployment or update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_CreateOrUpdate.json - */ -async function deploymentsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource = { - properties: { - deploymentSettings: { - addonConfigs: { - applicationConfigurationService: { patterns: ["mypattern"] }, - }, - environmentVariables: { env: "test" }, - resourceRequests: { cpu: "1000m", memory: "3Gi" }, - }, - instances: [], - source: { - type: "Source", - artifactSelector: "sub-module-1", - relativePath: - "resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc", - version: "1.0", - }, - }, - sku: { name: "S0", capacity: 1, tier: "Standard" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsCreateOrUpdate().catch(console.error); - -/** - * This sample demonstrates how to Create a new Deployment or update an exiting Deployment. - * - * @summary Create a new Deployment or update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_CreateOrUpdate_CustomContainer.json - */ -async function deploymentsCreateOrUpdateCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource = { - properties: { - deploymentSettings: { - environmentVariables: { env: "test" }, - resourceRequests: { cpu: "1000m", memory: "3Gi" }, - }, - instances: [], - source: { - type: "Container", - customContainer: { - args: ["-c", "while true; do echo hello; sleep 10;done"], - command: ["/bin/sh"], - containerImage: "myContainerImage:v1", - imageRegistryCredential: { - password: "myPassword", - username: "myUsername", - }, - languageFramework: "springboot", - server: "myacr.azurecr.io", - }, - }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsCreateOrUpdateCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGetLogFileUrlSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGetLogFileUrlSample.js deleted file mode 100644 index a5fce1ad9dbb..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGetLogFileUrlSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get deployment log file URL - * - * @summary Get deployment log file URL - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GetLogFileUrl.json - */ -async function deploymentsGetLogFileUrl() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.getLogFileUrl( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsGetLogFileUrl().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGetSample.js deleted file mode 100644 index a14265908cd7..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGetSample.js +++ /dev/null @@ -1,62 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get a Deployment and its properties. - * - * @summary Get a Deployment and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Get.json - */ -async function deploymentsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.get( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsGet().catch(console.error); - -/** - * This sample demonstrates how to Get a Deployment and its properties. - * - * @summary Get a Deployment and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Get_CustomContainer.json - */ -async function deploymentsGetCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.get( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsGetCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsStartJfrSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsStartJfrSample.js deleted file mode 100644 index 84fc093f7083..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsStartJfrSample.js +++ /dev/null @@ -1,43 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Start JFR - * - * @summary Start JFR - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_StartJFR.json - */ -async function deploymentsStartJfr() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const diagnosticParameters = { - appInstance: "myappinstance", - duration: "60s", - filePath: "/byos/diagnose", - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginStartJFRAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - diagnosticParameters - ); - console.log(result); -} - -deploymentsStartJfr().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsUpdateSample.js deleted file mode 100644 index 375c5adfbd53..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsUpdateSample.js +++ /dev/null @@ -1,94 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Operation to update an exiting Deployment. - * - * @summary Operation to update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Update.json - */ -async function deploymentsUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource = { - properties: { - instances: [], - source: { - type: "Source", - artifactSelector: "sub-module-1", - relativePath: - "resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc", - version: "1.0", - }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsUpdate().catch(console.error); - -/** - * This sample demonstrates how to Operation to update an exiting Deployment. - * - * @summary Operation to update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Update_CustomContainer.json - */ -async function deploymentsUpdateCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource = { - properties: { - instances: [], - source: { - type: "Container", - customContainer: { - args: ["-c", "while true; do echo hello; sleep 10;done"], - command: ["/bin/sh"], - containerImage: "myNewContainerImage:v1", - imageRegistryCredential: { - password: "", - username: "myNewUsername", - }, - server: "mynewacr.azurecr.io", - }, - }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsUpdateCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsCreateOrUpdateSample.js deleted file mode 100644 index c6bdeceb6594..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsCreateOrUpdateSample.js +++ /dev/null @@ -1,41 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create or update the Spring Cloud Gateway custom domain. - * - * @summary Create or update the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_CreateOrUpdate.json - */ -async function gatewayCustomDomainsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const gatewayCustomDomainResource = { - properties: { thumbprint: "*" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - domainName, - gatewayCustomDomainResource - ); - console.log(result); -} - -gatewayCustomDomainsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsDeleteSample.js deleted file mode 100644 index 288e4f6e0f4e..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsDeleteSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Delete the Spring Cloud Gateway custom domain. - * - * @summary Delete the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Delete.json - */ -async function gatewayCustomDomainsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName, - domainName - ); - console.log(result); -} - -gatewayCustomDomainsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsGetSample.js deleted file mode 100644 index 6e1aeb109911..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsGetSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway custom domain. - * - * @summary Get the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Get.json - */ -async function gatewayCustomDomainsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.get( - resourceGroupName, - serviceName, - gatewayName, - domainName - ); - console.log(result); -} - -gatewayCustomDomainsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsListSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsListSample.js deleted file mode 100644 index 6696a529efd4..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayCustomDomainsListSample.js +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handle requests to list all Spring Cloud Gateway custom domains. - * - * @summary Handle requests to list all Spring Cloud Gateway custom domains. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_List.json - */ -async function gatewayCustomDomainsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gatewayCustomDomains.list( - resourceGroupName, - serviceName, - gatewayName - )) { - resArray.push(item); - } - console.log(resArray); -} - -gatewayCustomDomainsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsCreateOrUpdateSample.js deleted file mode 100644 index 80abb71459cd..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsCreateOrUpdateSample.js +++ /dev/null @@ -1,52 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. - * - * @summary Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_CreateOrUpdate.json - */ -async function gatewayRouteConfigsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const gatewayRouteConfigResource = { - properties: { - appResourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myApp", - routes: [ - { - filters: ["StripPrefix=2", "RateLimit=1,1s"], - predicates: ["Path=/api5/customer/**"], - ssoEnabled: true, - title: "myApp route config", - }, - ], - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName, - gatewayRouteConfigResource - ); - console.log(result); -} - -gatewayRouteConfigsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsDeleteSample.js deleted file mode 100644 index 9105444d3f9a..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsDeleteSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Delete the Spring Cloud Gateway route config. - * - * @summary Delete the Spring Cloud Gateway route config. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Delete.json - */ -async function gatewayRouteConfigsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName - ); - console.log(result); -} - -gatewayRouteConfigsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsGetSample.js deleted file mode 100644 index c72b26c3ffd7..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsGetSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway route configs. - * - * @summary Get the Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Get.json - */ -async function gatewayRouteConfigsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.get( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName - ); - console.log(result); -} - -gatewayRouteConfigsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsListSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsListSample.js deleted file mode 100644 index d69c77ef85a8..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewayRouteConfigsListSample.js +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handle requests to list all Spring Cloud Gateway route configs. - * - * @summary Handle requests to list all Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_List.json - */ -async function gatewayRouteConfigsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gatewayRouteConfigs.list( - resourceGroupName, - serviceName, - gatewayName - )) { - resArray.push(item); - } - console.log(resArray); -} - -gatewayRouteConfigsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysCreateOrUpdateSample.js deleted file mode 100644 index 5d00be3520d8..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysCreateOrUpdateSample.js +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - * - * @summary Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_CreateOrUpdate.json - */ -async function gatewaysCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const gatewayResource = { - properties: { public: true, resourceRequests: { cpu: "1", memory: "1G" } }, - sku: { name: "E0", capacity: 2, tier: "Enterprise" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - gatewayResource - ); - console.log(result); -} - -gatewaysCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysDeleteSample.js deleted file mode 100644 index 9a9e7ca45aa3..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysDeleteSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Disable the default Spring Cloud Gateway. - * - * @summary Disable the default Spring Cloud Gateway. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Delete.json - */ -async function gatewaysDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName - ); - console.log(result); -} - -gatewaysDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysGetSample.js deleted file mode 100644 index ce9eeb3f99ec..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysGetSample.js +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway and its properties. - * - * @summary Get the Spring Cloud Gateway and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Get.json - */ -async function gatewaysGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.get(resourceGroupName, serviceName, gatewayName); - console.log(result); -} - -gatewaysGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysListSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysListSample.js deleted file mode 100644 index 7f07691f6173..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysListSample.js +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_List.json - */ -async function gatewaysList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gateways.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -gatewaysList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysValidateDomainSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysValidateDomainSample.js deleted file mode 100644 index bc794ceae68e..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/gatewaysValidateDomainSample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Check the domains are valid as well as not in use. - * - * @summary Check the domains are valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_ValidateDomain.json - */ -async function gatewaysValidateDomain() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const validatePayload = { name: "mydomain.io" }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.validateDomain( - resourceGroupName, - serviceName, - gatewayName, - validatePayload - ); - console.log(result); -} - -gatewaysValidateDomain().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/monitoringSettingsUpdatePatchSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/monitoringSettingsUpdatePatchSample.js deleted file mode 100644 index 124ba3fd58cd..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/monitoringSettingsUpdatePatchSample.js +++ /dev/null @@ -1,41 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Update the Monitoring Setting. - * - * @summary Update the Monitoring Setting. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePatch.json - */ -async function monitoringSettingsUpdatePatch() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const monitoringSettingResource = { - properties: { - appInsightsInstrumentationKey: "00000000-0000-0000-0000-000000000000", - appInsightsSamplingRate: 10, - traceEnabled: true, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.monitoringSettings.beginUpdatePatchAndWait( - resourceGroupName, - serviceName, - monitoringSettingResource - ); - console.log(result); -} - -monitoringSettingsUpdatePatch().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/monitoringSettingsUpdatePutSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/monitoringSettingsUpdatePutSample.js deleted file mode 100644 index 5e86444aab79..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/monitoringSettingsUpdatePutSample.js +++ /dev/null @@ -1,41 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Update the Monitoring Setting. - * - * @summary Update the Monitoring Setting. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePut.json - */ -async function monitoringSettingsUpdatePut() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const monitoringSettingResource = { - properties: { - appInsightsInstrumentationKey: "00000000-0000-0000-0000-000000000000", - appInsightsSamplingRate: 10, - traceEnabled: true, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.monitoringSettings.beginUpdatePutAndWait( - resourceGroupName, - serviceName, - monitoringSettingResource - ); - console.log(result); -} - -monitoringSettingsUpdatePut().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/package.json b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/package.json deleted file mode 100644 index 4e048119a845..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-appplatform-js-beta", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript (Beta)", - "engines": { - "node": ">=12.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/appplatform/arm-appplatform" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform", - "dependencies": { - "@azure/arm-appplatform": "next", - "dotenv": "latest", - "@azure/identity": "^2.0.1" - } -} diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/runtimeVersionsListRuntimeVersionsSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/runtimeVersionsListRuntimeVersionsSample.js deleted file mode 100644 index e56ce8d10d79..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/runtimeVersionsListRuntimeVersionsSample.js +++ /dev/null @@ -1,28 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - * - * @summary Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/RuntimeVersions_ListRuntimeVersions.json - */ -async function runtimeVersionsListRuntimeVersions() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.runtimeVersions.listRuntimeVersions(); - console.log(result); -} - -runtimeVersionsListRuntimeVersions().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/sample.env b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesCreateOrUpdateSample.js deleted file mode 100644 index 15b72cca8fda..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesCreateOrUpdateSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create the default Service Registry or update the existing Service Registry. - * - * @summary Create the default Service Registry or update the existing Service Registry. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_CreateOrUpdate.json - */ -async function serviceRegistriesCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const serviceRegistryName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.serviceRegistries.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - serviceRegistryName - ); - console.log(result); -} - -serviceRegistriesCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesDeleteSample.js deleted file mode 100644 index 68d69b3d4c22..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesDeleteSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Disable the default Service Registry. - * - * @summary Disable the default Service Registry. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Delete.json - */ -async function serviceRegistriesDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const serviceRegistryName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.serviceRegistries.beginDeleteAndWait( - resourceGroupName, - serviceName, - serviceRegistryName - ); - console.log(result); -} - -serviceRegistriesDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesCheckNameAvailabilitySample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesCheckNameAvailabilitySample.js deleted file mode 100644 index a0dd5ec0ea51..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesCheckNameAvailabilitySample.js +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Checks that the resource name is valid and is not already in use. - * - * @summary Checks that the resource name is valid and is not already in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CheckNameAvailability.json - */ -async function servicesCheckNameAvailability() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const availabilityParameters = { - name: "myservice", - type: "Microsoft.AppPlatform/Spring", - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.checkNameAvailability(location, availabilityParameters); - console.log(result); -} - -servicesCheckNameAvailability().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesDisableTestEndpointSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesDisableTestEndpointSample.js deleted file mode 100644 index c849b9231752..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesDisableTestEndpointSample.js +++ /dev/null @@ -1,30 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Disable test endpoint functionality for a Service. - * - * @summary Disable test endpoint functionality for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_DisableTestEndpoint.json - */ -async function servicesDisableTestEndpoint() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.disableTestEndpoint(resourceGroupName, serviceName); - console.log(result); -} - -servicesDisableTestEndpoint().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesGetSample.js deleted file mode 100644 index 06ab762d8d36..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesGetSample.js +++ /dev/null @@ -1,30 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get a Service and its properties. - * - * @summary Get a Service and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Get.json - */ -async function servicesGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.get(resourceGroupName, serviceName); - console.log(result); -} - -servicesGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesListBySubscriptionSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesListBySubscriptionSample.js deleted file mode 100644 index 933dfcb61827..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesListBySubscriptionSample.js +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handles requests to list all resources in a subscription. - * - * @summary Handles requests to list all resources in a subscription. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListBySubscription.json - */ -async function servicesListBySubscription() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.services.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -servicesListBySubscription().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesListSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesListSample.js deleted file mode 100644 index e267d5942c79..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesListSample.js +++ /dev/null @@ -1,32 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Handles requests to list all resources in a resource group. - * - * @summary Handles requests to list all resources in a resource group. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_List.json - */ -async function servicesList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.services.list(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -servicesList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesRegenerateTestKeySample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesRegenerateTestKeySample.js deleted file mode 100644 index 3c8a39573edd..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesRegenerateTestKeySample.js +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Regenerate a test key for a Service. - * - * @summary Regenerate a test key for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_RegenerateTestKey.json - */ -async function servicesRegenerateTestKey() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const regenerateTestKeyRequest = { - keyType: "Primary", - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.regenerateTestKey( - resourceGroupName, - serviceName, - regenerateTestKeyRequest - ); - console.log(result); -} - -servicesRegenerateTestKey().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesStartSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesStartSample.js deleted file mode 100644 index 4113986192de..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesStartSample.js +++ /dev/null @@ -1,30 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Start a Service. - * - * @summary Start a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Start.json - */ -async function servicesStart() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginStartAndWait(resourceGroupName, serviceName); - console.log(result); -} - -servicesStart().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesStopSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesStopSample.js deleted file mode 100644 index 0480a87a3621..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesStopSample.js +++ /dev/null @@ -1,30 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Stop a Service. - * - * @summary Stop a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Stop.json - */ -async function servicesStop() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginStopAndWait(resourceGroupName, serviceName); - console.log(result); -} - -servicesStop().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/skusListSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/skusListSample.js deleted file mode 100644 index 6f005fcc99af..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/skusListSample.js +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Lists all of the available skus of the Microsoft.AppPlatform provider. - * - * @summary Lists all of the available skus of the Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Skus_List.json - */ -async function skusList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.skus.list()) { - resArray.push(item); - } - console.log(resArray); -} - -skusList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesCreateOrUpdateSample.js deleted file mode 100644 index 9519bd43d185..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesCreateOrUpdateSample.js +++ /dev/null @@ -1,43 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Create or update storage resource. - * - * @summary Create or update storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_CreateOrUpdate.json - */ -async function storagesCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const storageResource = { - properties: { - accountKey: "account-key-of-storage-account", - accountName: "storage-account-name", - storageType: "StorageAccount", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - storageName, - storageResource - ); - console.log(result); -} - -storagesCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesDeleteSample.js deleted file mode 100644 index 3b81e678eaac..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesDeleteSample.js +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Delete the storage resource. - * - * @summary Delete the storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Delete.json - */ -async function storagesDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.beginDeleteAndWait( - resourceGroupName, - serviceName, - storageName - ); - console.log(result); -} - -storagesDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesGetSample.js deleted file mode 100644 index e55c1430cfbd..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesGetSample.js +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to Get the storage resource. - * - * @summary Get the storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Get.json - */ -async function storagesGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.get(resourceGroupName, serviceName, storageName); - console.log(result); -} - -storagesGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesListSample.js b/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesListSample.js deleted file mode 100644 index 17115e5a9ae7..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/storagesListSample.js +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); -const { DefaultAzureCredential } = require("@azure/identity"); - -/** - * This sample demonstrates how to List all the storages of one Azure Spring Cloud instance. - * - * @summary List all the storages of one Azure Spring Cloud instance. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_List.json - */ -async function storagesList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myService"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.storages.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -storagesList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/README.md b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/README.md deleted file mode 100644 index 900902c42a67..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/README.md +++ /dev/null @@ -1,295 +0,0 @@ -# client library samples for TypeScript (Beta) - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [apiPortalCustomDomainsCreateOrUpdateSample.ts][apiportalcustomdomainscreateorupdatesample] | Create or update the API portal custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_CreateOrUpdate.json | -| [apiPortalCustomDomainsDeleteSample.ts][apiportalcustomdomainsdeletesample] | Delete the API portal custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Delete.json | -| [apiPortalCustomDomainsGetSample.ts][apiportalcustomdomainsgetsample] | Get the API portal custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Get.json | -| [apiPortalCustomDomainsListSample.ts][apiportalcustomdomainslistsample] | Handle requests to list all API portal custom domains. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_List.json | -| [apiPortalsCreateOrUpdateSample.ts][apiportalscreateorupdatesample] | Create the default API portal or update the existing API portal. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_CreateOrUpdate.json | -| [apiPortalsDeleteSample.ts][apiportalsdeletesample] | Delete the default API portal. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Delete.json | -| [apiPortalsGetSample.ts][apiportalsgetsample] | Get the API portal and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Get.json | -| [apiPortalsListSample.ts][apiportalslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_List.json | -| [apiPortalsValidateDomainSample.ts][apiportalsvalidatedomainsample] | Check the domains are valid as well as not in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_ValidateDomain.json | -| [appsCreateOrUpdateSample.ts][appscreateorupdatesample] | Create a new App or update an exiting App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_CreateOrUpdate.json | -| [appsDeleteSample.ts][appsdeletesample] | Operation to delete an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Delete.json | -| [appsGetResourceUploadUrlSample.ts][appsgetresourceuploadurlsample] | Get an resource upload URL for an App, which may be artifacts or source archive. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_GetResourceUploadUrl.json | -| [appsGetSample.ts][appsgetsample] | Get an App and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Get.json | -| [appsListSample.ts][appslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_List.json | -| [appsSetActiveDeploymentsSample.ts][appssetactivedeploymentssample] | Set existing Deployment under the app as active x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_SetActiveDeployments.json | -| [appsUpdateSample.ts][appsupdatesample] | Operation to update an exiting App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Update.json | -| [appsValidateDomainSample.ts][appsvalidatedomainsample] | Check the resource name is valid as well as not in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_ValidateDomain.json | -| [bindingsCreateOrUpdateSample.ts][bindingscreateorupdatesample] | Create a new Binding or update an exiting Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_CreateOrUpdate.json | -| [bindingsDeleteSample.ts][bindingsdeletesample] | Operation to delete a Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Delete.json | -| [bindingsGetSample.ts][bindingsgetsample] | Get a Binding and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Get.json | -| [bindingsListSample.ts][bindingslistsample] | Handles requests to list all resources in an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_List.json | -| [bindingsUpdateSample.ts][bindingsupdatesample] | Operation to update an exiting Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Update.json | -| [buildServiceAgentPoolGetSample.ts][buildserviceagentpoolgetsample] | Get build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_Get.json | -| [buildServiceAgentPoolListSample.ts][buildserviceagentpoollistsample] | List build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_List.json | -| [buildServiceAgentPoolUpdatePutSample.ts][buildserviceagentpoolupdateputsample] | Create or update build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_UpdatePut.json | -| [buildServiceBuilderCreateOrUpdateSample.ts][buildservicebuildercreateorupdatesample] | Create or update a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_CreateOrUpdate.json | -| [buildServiceBuilderDeleteSample.ts][buildservicebuilderdeletesample] | Delete a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Delete.json | -| [buildServiceBuilderGetSample.ts][buildservicebuildergetsample] | Get a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Get.json | -| [buildServiceBuilderListSample.ts][buildservicebuilderlistsample] | List KPack builders result. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_List.json | -| [buildServiceCreateOrUpdateBuildSample.ts][buildservicecreateorupdatebuildsample] | Create or update a KPack build. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_CreateOrUpdateBuild.json | -| [buildServiceGetBuildResultLogSample.ts][buildservicegetbuildresultlogsample] | Get a KPack build result log download URL. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResultLog.json | -| [buildServiceGetBuildResultSample.ts][buildservicegetbuildresultsample] | Get a KPack build result. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResult.json | -| [buildServiceGetBuildSample.ts][buildservicegetbuildsample] | Get a KPack build. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuild.json | -| [buildServiceGetBuildServiceSample.ts][buildservicegetbuildservicesample] | Get a build service resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildService.json | -| [buildServiceGetResourceUploadUrlSample.ts][buildservicegetresourceuploadurlsample] | Get an resource upload URL for build service, which may be artifacts or source archive. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetResourceUploadUrl.json | -| [buildServiceGetSupportedBuildpackSample.ts][buildservicegetsupportedbuildpacksample] | Get the supported buildpack resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedBuildpack.json | -| [buildServiceGetSupportedStackSample.ts][buildservicegetsupportedstacksample] | Get the supported stack resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedStack.json | -| [buildServiceListBuildResultsSample.ts][buildservicelistbuildresultssample] | List KPack build results. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildResults.json | -| [buildServiceListBuildServicesSample.ts][buildservicelistbuildservicessample] | List build services resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildServices.json | -| [buildServiceListBuildsSample.ts][buildservicelistbuildssample] | List KPack builds. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuilds.json | -| [buildServiceListSupportedBuildpacksSample.ts][buildservicelistsupportedbuildpackssample] | Get all supported buildpacks. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedBuildpacks.json | -| [buildServiceListSupportedStacksSample.ts][buildservicelistsupportedstackssample] | Get all supported stacks. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedStacks.json | -| [buildpackBindingCreateOrUpdateSample.ts][buildpackbindingcreateorupdatesample] | Create or update a buildpack binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_CreateOrUpdate.json | -| [buildpackBindingDeleteSample.ts][buildpackbindingdeletesample] | Operation to delete a Buildpack Binding x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Delete.json | -| [buildpackBindingGetSample.ts][buildpackbindinggetsample] | Get a buildpack binding by name. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Get.json | -| [buildpackBindingListSample.ts][buildpackbindinglistsample] | Handles requests to list all buildpack bindings in a builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_List.json | -| [certificatesCreateOrUpdateSample.ts][certificatescreateorupdatesample] | Create or update certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_CreateOrUpdate.json | -| [certificatesDeleteSample.ts][certificatesdeletesample] | Delete the certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Delete.json | -| [certificatesGetSample.ts][certificatesgetsample] | Get the certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Get.json | -| [certificatesListSample.ts][certificateslistsample] | List all the certificates of one user. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_List.json | -| [configServersGetSample.ts][configserversgetsample] | Get the config server and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Get.json | -| [configServersUpdatePatchSample.ts][configserversupdatepatchsample] | Update the config server. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePatch.json | -| [configServersUpdatePutSample.ts][configserversupdateputsample] | Update the config server. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePut.json | -| [configServersValidateSample.ts][configserversvalidatesample] | Check if the config server settings are valid. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Validate.json | -| [configurationServicesCreateOrUpdateSample.ts][configurationservicescreateorupdatesample] | Create the default Application Configuration Service or update the existing Application Configuration Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_CreateOrUpdate.json | -| [configurationServicesDeleteSample.ts][configurationservicesdeletesample] | Disable the default Application Configuration Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Delete.json | -| [configurationServicesGetSample.ts][configurationservicesgetsample] | Get the Application Configuration Service and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Get.json | -| [configurationServicesListSample.ts][configurationserviceslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_List.json | -| [configurationServicesValidateSample.ts][configurationservicesvalidatesample] | Check if the Application Configuration Service settings are valid. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Validate.json | -| [customDomainsCreateOrUpdateSample.ts][customdomainscreateorupdatesample] | Create or update custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_CreateOrUpdate.json | -| [customDomainsDeleteSample.ts][customdomainsdeletesample] | Delete the custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Delete.json | -| [customDomainsGetSample.ts][customdomainsgetsample] | Get the custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Get.json | -| [customDomainsListSample.ts][customdomainslistsample] | List the custom domains of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_List.json | -| [customDomainsUpdateSample.ts][customdomainsupdatesample] | Update custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Update.json | -| [deploymentsCreateOrUpdateSample.ts][deploymentscreateorupdatesample] | Create a new Deployment or update an exiting Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_CreateOrUpdate.json | -| [deploymentsDeleteSample.ts][deploymentsdeletesample] | Operation to delete a Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Delete.json | -| [deploymentsGenerateHeapDumpSample.ts][deploymentsgenerateheapdumpsample] | Generate Heap Dump x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateHeapDump.json | -| [deploymentsGenerateThreadDumpSample.ts][deploymentsgeneratethreaddumpsample] | Generate Thread Dump x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateThreadDump.json | -| [deploymentsGetLogFileUrlSample.ts][deploymentsgetlogfileurlsample] | Get deployment log file URL x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GetLogFileUrl.json | -| [deploymentsGetSample.ts][deploymentsgetsample] | Get a Deployment and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Get.json | -| [deploymentsListForClusterSample.ts][deploymentslistforclustersample] | List deployments for a certain service x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_ListForCluster.json | -| [deploymentsListSample.ts][deploymentslistsample] | Handles requests to list all resources in an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_List.json | -| [deploymentsRestartSample.ts][deploymentsrestartsample] | Restart the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Restart.json | -| [deploymentsStartJfrSample.ts][deploymentsstartjfrsample] | Start JFR x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_StartJFR.json | -| [deploymentsStartSample.ts][deploymentsstartsample] | Start the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Start.json | -| [deploymentsStopSample.ts][deploymentsstopsample] | Stop the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Stop.json | -| [deploymentsUpdateSample.ts][deploymentsupdatesample] | Operation to update an exiting Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Update.json | -| [gatewayCustomDomainsCreateOrUpdateSample.ts][gatewaycustomdomainscreateorupdatesample] | Create or update the Spring Cloud Gateway custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_CreateOrUpdate.json | -| [gatewayCustomDomainsDeleteSample.ts][gatewaycustomdomainsdeletesample] | Delete the Spring Cloud Gateway custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Delete.json | -| [gatewayCustomDomainsGetSample.ts][gatewaycustomdomainsgetsample] | Get the Spring Cloud Gateway custom domain. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Get.json | -| [gatewayCustomDomainsListSample.ts][gatewaycustomdomainslistsample] | Handle requests to list all Spring Cloud Gateway custom domains. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_List.json | -| [gatewayRouteConfigsCreateOrUpdateSample.ts][gatewayrouteconfigscreateorupdatesample] | Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_CreateOrUpdate.json | -| [gatewayRouteConfigsDeleteSample.ts][gatewayrouteconfigsdeletesample] | Delete the Spring Cloud Gateway route config. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Delete.json | -| [gatewayRouteConfigsGetSample.ts][gatewayrouteconfigsgetsample] | Get the Spring Cloud Gateway route configs. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Get.json | -| [gatewayRouteConfigsListSample.ts][gatewayrouteconfigslistsample] | Handle requests to list all Spring Cloud Gateway route configs. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_List.json | -| [gatewaysCreateOrUpdateSample.ts][gatewayscreateorupdatesample] | Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_CreateOrUpdate.json | -| [gatewaysDeleteSample.ts][gatewaysdeletesample] | Disable the default Spring Cloud Gateway. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Delete.json | -| [gatewaysGetSample.ts][gatewaysgetsample] | Get the Spring Cloud Gateway and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Get.json | -| [gatewaysListSample.ts][gatewayslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_List.json | -| [gatewaysValidateDomainSample.ts][gatewaysvalidatedomainsample] | Check the domains are valid as well as not in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_ValidateDomain.json | -| [monitoringSettingsGetSample.ts][monitoringsettingsgetsample] | Get the Monitoring Setting and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_Get.json | -| [monitoringSettingsUpdatePatchSample.ts][monitoringsettingsupdatepatchsample] | Update the Monitoring Setting. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePatch.json | -| [monitoringSettingsUpdatePutSample.ts][monitoringsettingsupdateputsample] | Update the Monitoring Setting. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePut.json | -| [operationsListSample.ts][operationslistsample] | Lists all of the available REST API operations of the Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Operations_List.json | -| [runtimeVersionsListRuntimeVersionsSample.ts][runtimeversionslistruntimeversionssample] | Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/RuntimeVersions_ListRuntimeVersions.json | -| [serviceRegistriesCreateOrUpdateSample.ts][serviceregistriescreateorupdatesample] | Create the default Service Registry or update the existing Service Registry. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_CreateOrUpdate.json | -| [serviceRegistriesDeleteSample.ts][serviceregistriesdeletesample] | Disable the default Service Registry. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Delete.json | -| [serviceRegistriesGetSample.ts][serviceregistriesgetsample] | Get the Service Registry and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Get.json | -| [serviceRegistriesListSample.ts][serviceregistrieslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_List.json | -| [servicesCheckNameAvailabilitySample.ts][serviceschecknameavailabilitysample] | Checks that the resource name is valid and is not already in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CheckNameAvailability.json | -| [servicesCreateOrUpdateSample.ts][servicescreateorupdatesample] | Create a new Service or update an exiting Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CreateOrUpdate.json | -| [servicesDeleteSample.ts][servicesdeletesample] | Operation to delete a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Delete.json | -| [servicesDisableTestEndpointSample.ts][servicesdisabletestendpointsample] | Disable test endpoint functionality for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_DisableTestEndpoint.json | -| [servicesEnableTestEndpointSample.ts][servicesenabletestendpointsample] | Enable test endpoint functionality for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_EnableTestEndpoint.json | -| [servicesGetSample.ts][servicesgetsample] | Get a Service and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Get.json | -| [servicesListBySubscriptionSample.ts][serviceslistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListBySubscription.json | -| [servicesListSample.ts][serviceslistsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_List.json | -| [servicesListTestKeysSample.ts][serviceslisttestkeyssample] | List test keys for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListTestKeys.json | -| [servicesRegenerateTestKeySample.ts][servicesregeneratetestkeysample] | Regenerate a test key for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_RegenerateTestKey.json | -| [servicesStartSample.ts][servicesstartsample] | Start a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Start.json | -| [servicesStopSample.ts][servicesstopsample] | Stop a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Stop.json | -| [servicesUpdateSample.ts][servicesupdatesample] | Operation to update an exiting Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Update.json | -| [skusListSample.ts][skuslistsample] | Lists all of the available skus of the Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Skus_List.json | -| [storagesCreateOrUpdateSample.ts][storagescreateorupdatesample] | Create or update storage resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_CreateOrUpdate.json | -| [storagesDeleteSample.ts][storagesdeletesample] | Delete the storage resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Delete.json | -| [storagesGetSample.ts][storagesgetsample] | Get the storage resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Get.json | -| [storagesListSample.ts][storageslistsample] | List all the storages of one Azure Spring Cloud instance. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_List.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/apiPortalCustomDomainsCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env node dist/apiPortalCustomDomainsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[apiportalcustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsCreateOrUpdateSample.ts -[apiportalcustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsDeleteSample.ts -[apiportalcustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsGetSample.ts -[apiportalcustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsListSample.ts -[apiportalscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsCreateOrUpdateSample.ts -[apiportalsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsDeleteSample.ts -[apiportalsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsGetSample.ts -[apiportalslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsListSample.ts -[apiportalsvalidatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsValidateDomainSample.ts -[appscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsCreateOrUpdateSample.ts -[appsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsDeleteSample.ts -[appsgetresourceuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsGetResourceUploadUrlSample.ts -[appsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsGetSample.ts -[appslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsListSample.ts -[appssetactivedeploymentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsSetActiveDeploymentsSample.ts -[appsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsUpdateSample.ts -[appsvalidatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsValidateDomainSample.ts -[bindingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsCreateOrUpdateSample.ts -[bindingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsDeleteSample.ts -[bindingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsGetSample.ts -[bindingslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsListSample.ts -[bindingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsUpdateSample.ts -[buildserviceagentpoolgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceAgentPoolGetSample.ts -[buildserviceagentpoollistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceAgentPoolListSample.ts -[buildserviceagentpoolupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceAgentPoolUpdatePutSample.ts -[buildservicebuildercreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts -[buildservicebuilderdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderDeleteSample.ts -[buildservicebuildergetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderGetSample.ts -[buildservicebuilderlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderListSample.ts -[buildservicecreateorupdatebuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceCreateOrUpdateBuildSample.ts -[buildservicegetbuildresultlogsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildResultLogSample.ts -[buildservicegetbuildresultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildResultSample.ts -[buildservicegetbuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildSample.ts -[buildservicegetbuildservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildServiceSample.ts -[buildservicegetresourceuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetResourceUploadUrlSample.ts -[buildservicegetsupportedbuildpacksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetSupportedBuildpackSample.ts -[buildservicegetsupportedstacksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetSupportedStackSample.ts -[buildservicelistbuildresultssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListBuildResultsSample.ts -[buildservicelistbuildservicessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListBuildServicesSample.ts -[buildservicelistbuildssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListBuildsSample.ts -[buildservicelistsupportedbuildpackssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListSupportedBuildpacksSample.ts -[buildservicelistsupportedstackssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListSupportedStacksSample.ts -[buildpackbindingcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingCreateOrUpdateSample.ts -[buildpackbindingdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingDeleteSample.ts -[buildpackbindinggetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingGetSample.ts -[buildpackbindinglistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingListSample.ts -[certificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesCreateOrUpdateSample.ts -[certificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesDeleteSample.ts -[certificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesGetSample.ts -[certificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesListSample.ts -[configserversgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersGetSample.ts -[configserversupdatepatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersUpdatePatchSample.ts -[configserversupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersUpdatePutSample.ts -[configserversvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersValidateSample.ts -[configurationservicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesCreateOrUpdateSample.ts -[configurationservicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesDeleteSample.ts -[configurationservicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesGetSample.ts -[configurationserviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesListSample.ts -[configurationservicesvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesValidateSample.ts -[customdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsCreateOrUpdateSample.ts -[customdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsDeleteSample.ts -[customdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsGetSample.ts -[customdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsListSample.ts -[customdomainsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsUpdateSample.ts -[deploymentscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsCreateOrUpdateSample.ts -[deploymentsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsDeleteSample.ts -[deploymentsgenerateheapdumpsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGenerateHeapDumpSample.ts -[deploymentsgeneratethreaddumpsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGenerateThreadDumpSample.ts -[deploymentsgetlogfileurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGetLogFileUrlSample.ts -[deploymentsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGetSample.ts -[deploymentslistforclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsListForClusterSample.ts -[deploymentslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsListSample.ts -[deploymentsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsRestartSample.ts -[deploymentsstartjfrsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsStartJfrSample.ts -[deploymentsstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsStartSample.ts -[deploymentsstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsStopSample.ts -[deploymentsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsUpdateSample.ts -[gatewaycustomdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsCreateOrUpdateSample.ts -[gatewaycustomdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsDeleteSample.ts -[gatewaycustomdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsGetSample.ts -[gatewaycustomdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsListSample.ts -[gatewayrouteconfigscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsCreateOrUpdateSample.ts -[gatewayrouteconfigsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsDeleteSample.ts -[gatewayrouteconfigsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsGetSample.ts -[gatewayrouteconfigslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsListSample.ts -[gatewayscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysCreateOrUpdateSample.ts -[gatewaysdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysDeleteSample.ts -[gatewaysgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysGetSample.ts -[gatewayslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysListSample.ts -[gatewaysvalidatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysValidateDomainSample.ts -[monitoringsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/monitoringSettingsGetSample.ts -[monitoringsettingsupdatepatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/monitoringSettingsUpdatePatchSample.ts -[monitoringsettingsupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/monitoringSettingsUpdatePutSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/operationsListSample.ts -[runtimeversionslistruntimeversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts -[serviceregistriescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesCreateOrUpdateSample.ts -[serviceregistriesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesDeleteSample.ts -[serviceregistriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesGetSample.ts -[serviceregistrieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesListSample.ts -[serviceschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesCheckNameAvailabilitySample.ts -[servicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesCreateOrUpdateSample.ts -[servicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesDeleteSample.ts -[servicesdisabletestendpointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesDisableTestEndpointSample.ts -[servicesenabletestendpointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesEnableTestEndpointSample.ts -[servicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesGetSample.ts -[serviceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesListBySubscriptionSample.ts -[serviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesListSample.ts -[serviceslisttestkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesListTestKeysSample.ts -[servicesregeneratetestkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesRegenerateTestKeySample.ts -[servicesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesStartSample.ts -[servicesstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesStopSample.ts -[servicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesUpdateSample.ts -[skuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/skusListSample.ts -[storagescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesCreateOrUpdateSample.ts -[storagesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesDeleteSample.ts -[storagesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesGetSample.ts -[storageslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesListSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/package.json b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/package.json deleted file mode 100644 index e8dd6152e791..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-appplatform-ts-beta", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript (Beta)", - "engines": { - "node": ">=12.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/appplatform/arm-appplatform" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform", - "dependencies": { - "@azure/arm-appplatform": "next", - "dotenv": "latest", - "@azure/identity": "^2.0.1" - }, - "devDependencies": { - "@types/node": "^12.0.0", - "typescript": "~4.4.0", - "rimraf": "latest" - } -} diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/sample.env b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsCreateOrUpdateSample.ts deleted file mode 100644 index 79f2f5ccc8a9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsCreateOrUpdateSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ApiPortalCustomDomainResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update the API portal custom domain. - * - * @summary Create or update the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_CreateOrUpdate.json - */ -async function apiPortalCustomDomainsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const apiPortalCustomDomainResource: ApiPortalCustomDomainResource = { - properties: { thumbprint: "*" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - apiPortalName, - domainName, - apiPortalCustomDomainResource - ); - console.log(result); -} - -apiPortalCustomDomainsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsDeleteSample.ts deleted file mode 100644 index 53356fd2c799..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsDeleteSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the API portal custom domain. - * - * @summary Delete the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Delete.json - */ -async function apiPortalCustomDomainsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.beginDeleteAndWait( - resourceGroupName, - serviceName, - apiPortalName, - domainName - ); - console.log(result); -} - -apiPortalCustomDomainsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsGetSample.ts deleted file mode 100644 index f3850cef0fa7..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsGetSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the API portal custom domain. - * - * @summary Get the API portal custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Get.json - */ -async function apiPortalCustomDomainsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortalCustomDomains.get( - resourceGroupName, - serviceName, - apiPortalName, - domainName - ); - console.log(result); -} - -apiPortalCustomDomainsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsListSample.ts deleted file mode 100644 index eabad4c24d0c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalCustomDomainsListSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handle requests to list all API portal custom domains. - * - * @summary Handle requests to list all API portal custom domains. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_List.json - */ -async function apiPortalCustomDomainsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.apiPortalCustomDomains.list( - resourceGroupName, - serviceName, - apiPortalName - )) { - resArray.push(item); - } - console.log(resArray); -} - -apiPortalCustomDomainsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsCreateOrUpdateSample.ts deleted file mode 100644 index b5fe4364aa3f..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsCreateOrUpdateSample.ts +++ /dev/null @@ -1,48 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ApiPortalResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create the default API portal or update the existing API portal. - * - * @summary Create the default API portal or update the existing API portal. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_CreateOrUpdate.json - */ -async function apiPortalsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const apiPortalResource: ApiPortalResource = { - properties: { - gatewayIds: [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default" - ], - public: true - }, - sku: { name: "E0", capacity: 2, tier: "Enterprise" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - apiPortalName, - apiPortalResource - ); - console.log(result); -} - -apiPortalsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsDeleteSample.ts deleted file mode 100644 index 80ae88d8a03c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsDeleteSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the default API portal. - * - * @summary Delete the default API portal. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Delete.json - */ -async function apiPortalsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.beginDeleteAndWait( - resourceGroupName, - serviceName, - apiPortalName - ); - console.log(result); -} - -apiPortalsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsGetSample.ts deleted file mode 100644 index f7ab08f1c983..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsGetSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the API portal and its properties. - * - * @summary Get the API portal and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Get.json - */ -async function apiPortalsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.get( - resourceGroupName, - serviceName, - apiPortalName - ); - console.log(result); -} - -apiPortalsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsListSample.ts deleted file mode 100644 index 11e4525e3bac..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsListSample.ts +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_List.json - */ -async function apiPortalsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.apiPortals.list( - resourceGroupName, - serviceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -apiPortalsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsValidateDomainSample.ts deleted file mode 100644 index 1bfec026b167..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/apiPortalsValidateDomainSample.ts +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CustomDomainValidatePayload, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Check the domains are valid as well as not in use. - * - * @summary Check the domains are valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_ValidateDomain.json - */ -async function apiPortalsValidateDomain() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const apiPortalName = "default"; - const validatePayload: CustomDomainValidatePayload = { name: "mydomain.io" }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apiPortals.validateDomain( - resourceGroupName, - serviceName, - apiPortalName, - validatePayload - ); - console.log(result); -} - -apiPortalsValidateDomain().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsCreateOrUpdateSample.ts deleted file mode 100644 index 3c240beaa1cc..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsCreateOrUpdateSample.ts +++ /dev/null @@ -1,98 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AppResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create a new App or update an exiting App. - * - * @summary Create a new App or update an exiting App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_CreateOrUpdate.json - */ -async function appsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const appResource: AppResource = { - identity: { - type: "SystemAssigned,UserAssigned", - principalId: undefined, - tenantId: undefined, - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": { - clientId: undefined, - principalId: undefined - }, - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": { - clientId: undefined, - principalId: undefined - } - } - }, - location: "eastus", - properties: { - addonConfigs: { - applicationConfigurationService: { - resourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configurationServices/myacs" - }, - serviceRegistry: { - resourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/serviceRegistries/myServiceRegistry" - } - }, - customPersistentDisks: [ - { - customPersistentDiskProperties: { - type: "AzureFileVolume", - mountOptions: ["uid=0", "gid=0", "dir_mode=0777", "file_mode=0777"], - mountPath: "/mypath1/mypath2", - shareName: "myFileShare" - }, - storageId: "myASCStorageID" - } - ], - enableEndToEndTLS: false, - fqdn: "myapp.mydomain.com", - httpsOnly: false, - loadedCertificates: [ - { - loadTrustStore: false, - resourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert1" - }, - { - loadTrustStore: true, - resourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/certificates/mycert2" - } - ], - persistentDisk: { mountPath: "/mypersistentdisk", sizeInGB: 2 }, - public: true, - temporaryDisk: { mountPath: "/mytemporarydisk", sizeInGB: 2 } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apps.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - appName, - appResource - ); - console.log(result); -} - -appsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsDeleteSample.ts deleted file mode 100644 index 920b3db7a2e7..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsDeleteSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Operation to delete an App. - * - * @summary Operation to delete an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Delete.json - */ -async function appsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apps.beginDeleteAndWait( - resourceGroupName, - serviceName, - appName - ); - console.log(result); -} - -appsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsListSample.ts deleted file mode 100644 index 8008f13c1edf..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsListSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_List.json - */ -async function appsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.apps.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -appsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsSetActiveDeploymentsSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsSetActiveDeploymentsSample.ts deleted file mode 100644 index 5d8d3632f5ef..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsSetActiveDeploymentsSample.ts +++ /dev/null @@ -1,42 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ActiveDeploymentCollection, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Set existing Deployment under the app as active - * - * @summary Set existing Deployment under the app as active - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_SetActiveDeployments.json - */ -async function appsSetActiveDeployments() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const activeDeploymentCollection: ActiveDeploymentCollection = { - activeDeploymentNames: ["default"] - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apps.beginSetActiveDeploymentsAndWait( - resourceGroupName, - serviceName, - appName, - activeDeploymentCollection - ); - console.log(result); -} - -appsSetActiveDeployments().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsValidateDomainSample.ts deleted file mode 100644 index 57ccfc6fe72d..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsValidateDomainSample.ts +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CustomDomainValidatePayload, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Check the resource name is valid as well as not in use. - * - * @summary Check the resource name is valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_ValidateDomain.json - */ -async function appsValidateDomain() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const validatePayload: CustomDomainValidatePayload = { name: "mydomain.io" }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.apps.validateDomain( - resourceGroupName, - serviceName, - appName, - validatePayload - ); - console.log(result); -} - -appsValidateDomain().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsCreateOrUpdateSample.ts deleted file mode 100644 index ada9dd2344fa..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsCreateOrUpdateSample.ts +++ /dev/null @@ -1,52 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BindingResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create a new Binding or update an exiting Binding. - * - * @summary Create a new Binding or update an exiting Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_CreateOrUpdate.json - */ -async function bindingsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const bindingName = "mybinding"; - const bindingResource: BindingResource = { - properties: { - bindingParameters: { apiType: "SQL", databaseName: "db1" }, - createdAt: undefined, - generatedProperties: undefined, - key: "xxxx", - resourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/my-cosmosdb-1", - updatedAt: undefined - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.bindings.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - appName, - bindingName, - bindingResource - ); - console.log(result); -} - -bindingsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsDeleteSample.ts deleted file mode 100644 index 291d496c6aa5..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsDeleteSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Operation to delete a Binding. - * - * @summary Operation to delete a Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Delete.json - */ -async function bindingsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const bindingName = "mybinding"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.bindings.beginDeleteAndWait( - resourceGroupName, - serviceName, - appName, - bindingName - ); - console.log(result); -} - -bindingsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsListSample.ts deleted file mode 100644 index 54021ded717d..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsListSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handles requests to list all resources in an App. - * - * @summary Handles requests to list all resources in an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_List.json - */ -async function bindingsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.bindings.list( - resourceGroupName, - serviceName, - appName - )) { - resArray.push(item); - } - console.log(resArray); -} - -bindingsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceAgentPoolGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceAgentPoolGetSample.ts deleted file mode 100644 index 844751ab423e..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceAgentPoolGetSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get build service agent pool. - * - * @summary Get build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_Get.json - */ -async function buildServiceAgentPoolGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const agentPoolName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceAgentPool.get( - resourceGroupName, - serviceName, - buildServiceName, - agentPoolName - ); - console.log(result); -} - -buildServiceAgentPoolGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceAgentPoolListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceAgentPoolListSample.ts deleted file mode 100644 index f3942f2d2ca2..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceAgentPoolListSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to List build service agent pool. - * - * @summary List build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_List.json - */ -async function buildServiceAgentPoolList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.buildServiceAgentPool.list( - resourceGroupName, - serviceName, - buildServiceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -buildServiceAgentPoolList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceAgentPoolUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceAgentPoolUpdatePutSample.ts deleted file mode 100644 index 60740254be14..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceAgentPoolUpdatePutSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BuildServiceAgentPoolResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update build service agent pool. - * - * @summary Create or update build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_UpdatePut.json - */ -async function buildServiceAgentPoolUpdatePut() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const agentPoolName = "default"; - const agentPoolResource: BuildServiceAgentPoolResource = { - properties: { poolSize: { name: "S3" } } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceAgentPool.beginUpdatePutAndWait( - resourceGroupName, - serviceName, - buildServiceName, - agentPoolName, - agentPoolResource - ); - console.log(result); -} - -buildServiceAgentPoolUpdatePut().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts deleted file mode 100644 index 9fd9f2e922e1..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts +++ /dev/null @@ -1,49 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - BuilderResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update a KPack builder. - * - * @summary Create or update a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_CreateOrUpdate.json - */ -async function buildServiceBuilderCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const builderName = "mybuilder"; - const builderResource: BuilderResource = { - properties: { - buildpackGroups: [ - { name: "mix", buildpacks: [{ id: "tanzu-buildpacks/java-azure" }] } - ], - stack: { id: "io.buildpacks.stacks.bionic", version: "base" } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceBuilder.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - buildServiceName, - builderName, - builderResource - ); - console.log(result); -} - -buildServiceBuilderCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderDeleteSample.ts deleted file mode 100644 index a5c149c6519b..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderDeleteSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete a KPack builder. - * - * @summary Delete a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Delete.json - */ -async function buildServiceBuilderDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const builderName = "mybuilder"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceBuilder.beginDeleteAndWait( - resourceGroupName, - serviceName, - buildServiceName, - builderName - ); - console.log(result); -} - -buildServiceBuilderDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderListSample.ts deleted file mode 100644 index 5ffeaee55c0a..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderListSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to List KPack builders result. - * - * @summary List KPack builders result. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_List.json - */ -async function buildServiceBuilderList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.buildServiceBuilder.list( - resourceGroupName, - serviceName, - buildServiceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -buildServiceBuilderList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceCreateOrUpdateBuildSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceCreateOrUpdateBuildSample.ts deleted file mode 100644 index d291119ad979..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceCreateOrUpdateBuildSample.ts +++ /dev/null @@ -1,49 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { Build, AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update a KPack build. - * - * @summary Create or update a KPack build. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_CreateOrUpdateBuild.json - */ -async function buildServiceCreateOrUpdateBuild() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const buildName = "mybuild"; - const build: Build = { - properties: { - agentPool: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/agentPools/default", - builder: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builders/default", - env: { environmentVariable: "test" }, - relativePath: - "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-20210601-3ed9f4a2-986b-4bbd-b833-a42dccb2f777" - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.createOrUpdateBuild( - resourceGroupName, - serviceName, - buildServiceName, - buildName, - build - ); - console.log(result); -} - -buildServiceCreateOrUpdateBuild().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildResultLogSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildResultLogSample.ts deleted file mode 100644 index 0c35bdefbee4..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildResultLogSample.ts +++ /dev/null @@ -1,39 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get a KPack build result log download URL. - * - * @summary Get a KPack build result log download URL. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResultLog.json - */ -async function buildServiceGetBuildResultLog() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const buildName = "mybuild"; - const buildResultName = "123"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.getBuildResultLog( - resourceGroupName, - serviceName, - buildServiceName, - buildName, - buildResultName - ); - console.log(result); -} - -buildServiceGetBuildResultLog().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildSample.ts deleted file mode 100644 index b29ac5e0cecf..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get a KPack build. - * - * @summary Get a KPack build. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuild.json - */ -async function buildServiceGetBuild() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const buildName = "mybuild"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.getBuild( - resourceGroupName, - serviceName, - buildServiceName, - buildName - ); - console.log(result); -} - -buildServiceGetBuild().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildServiceSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildServiceSample.ts deleted file mode 100644 index f1db49f92e6e..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildServiceSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get a build service resource. - * - * @summary Get a build service resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildService.json - */ -async function buildServiceGetBuildService() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.getBuildService( - resourceGroupName, - serviceName, - buildServiceName - ); - console.log(result); -} - -buildServiceGetBuildService().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetSupportedBuildpackSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetSupportedBuildpackSample.ts deleted file mode 100644 index 1a8f66c2b0c7..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetSupportedBuildpackSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the supported buildpack resource. - * - * @summary Get the supported buildpack resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedBuildpack.json - */ -async function buildServiceGetSupportedBuildpack() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const buildpackName = "tanzu-buildpacks-java-azure"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.getSupportedBuildpack( - resourceGroupName, - serviceName, - buildServiceName, - buildpackName - ); - console.log(result); -} - -buildServiceGetSupportedBuildpack().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListBuildServicesSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListBuildServicesSample.ts deleted file mode 100644 index 30543425b720..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListBuildServicesSample.ts +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to List build services resource. - * - * @summary List build services resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildServices.json - */ -async function buildServiceListBuildServices() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.buildServiceOperations.listBuildServices( - resourceGroupName, - serviceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -buildServiceListBuildServices().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListBuildsSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListBuildsSample.ts deleted file mode 100644 index 6c9ca0f68887..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListBuildsSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to List KPack builds. - * - * @summary List KPack builds. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuilds.json - */ -async function buildServiceListBuilds() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.buildServiceOperations.listBuilds( - resourceGroupName, - serviceName, - buildServiceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -buildServiceListBuilds().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListSupportedBuildpacksSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListSupportedBuildpacksSample.ts deleted file mode 100644 index 1327dde3c966..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListSupportedBuildpacksSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get all supported buildpacks. - * - * @summary Get all supported buildpacks. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedBuildpacks.json - */ -async function buildServiceListSupportedBuildpacks() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.listSupportedBuildpacks( - resourceGroupName, - serviceName, - buildServiceName - ); - console.log(result); -} - -buildServiceListSupportedBuildpacks().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListSupportedStacksSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListSupportedStacksSample.ts deleted file mode 100644 index 40f88fa94e80..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListSupportedStacksSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get all supported stacks. - * - * @summary Get all supported stacks. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedStacks.json - */ -async function buildServiceListSupportedStacks() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildServiceOperations.listSupportedStacks( - resourceGroupName, - serviceName, - buildServiceName - ); - console.log(result); -} - -buildServiceListSupportedStacks().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingDeleteSample.ts deleted file mode 100644 index 3dcb2b246e74..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingDeleteSample.ts +++ /dev/null @@ -1,39 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Operation to delete a Buildpack Binding - * - * @summary Operation to delete a Buildpack Binding - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Delete.json - */ -async function buildpackBindingDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const builderName = "default"; - const buildpackBindingName = "myBuildpackBinding"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.buildpackBinding.beginDeleteAndWait( - resourceGroupName, - serviceName, - buildServiceName, - builderName, - buildpackBindingName - ); - console.log(result); -} - -buildpackBindingDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingListSample.ts deleted file mode 100644 index e951e71bb253..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingListSample.ts +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handles requests to list all buildpack bindings in a builder. - * - * @summary Handles requests to list all buildpack bindings in a builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_List.json - */ -async function buildpackBindingGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const buildServiceName = "default"; - const builderName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.buildpackBinding.list( - resourceGroupName, - serviceName, - buildServiceName, - builderName - )) { - resArray.push(item); - } - console.log(resArray); -} - -buildpackBindingGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesDeleteSample.ts deleted file mode 100644 index 7db1c9877424..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesDeleteSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the certificate resource. - * - * @summary Delete the certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Delete.json - */ -async function certificatesDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const certificateName = "mycertificate"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.certificates.beginDeleteAndWait( - resourceGroupName, - serviceName, - certificateName - ); - console.log(result); -} - -certificatesDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesGetSample.ts deleted file mode 100644 index 8ab5b74ef97d..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesGetSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the certificate resource. - * - * @summary Get the certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Get.json - */ -async function certificatesGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const certificateName = "mycertificate"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.certificates.get( - resourceGroupName, - serviceName, - certificateName - ); - console.log(result); -} - -certificatesGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesListSample.ts deleted file mode 100644 index da1d6022277e..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesListSample.ts +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to List all the certificates of one user. - * - * @summary List all the certificates of one user. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_List.json - */ -async function certificatesList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myService"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.certificates.list( - resourceGroupName, - serviceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -certificatesList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersGetSample.ts deleted file mode 100644 index 71621a915cb9..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersGetSample.ts +++ /dev/null @@ -1,30 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the config server and its properties. - * - * @summary Get the config server and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Get.json - */ -async function configServersGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configServers.get(resourceGroupName, serviceName); - console.log(result); -} - -configServersGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersUpdatePutSample.ts deleted file mode 100644 index 4bfd37686cfa..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersUpdatePutSample.ts +++ /dev/null @@ -1,48 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ConfigServerResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Update the config server. - * - * @summary Update the config server. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePut.json - */ -async function configServersUpdatePut() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const configServerResource: ConfigServerResource = { - properties: { - configServer: { - gitProperty: { - label: "master", - searchPaths: ["/"], - uri: "https://github.com/fake-user/fake-repository.git" - } - } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configServers.beginUpdatePutAndWait( - resourceGroupName, - serviceName, - configServerResource - ); - console.log(result); -} - -configServersUpdatePut().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersValidateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersValidateSample.ts deleted file mode 100644 index 6262cea8e5a0..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersValidateSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ConfigServerSettings, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Check if the config server settings are valid. - * - * @summary Check if the config server settings are valid. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Validate.json - */ -async function configServersValidate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const configServerSettings: ConfigServerSettings = { - gitProperty: { - label: "master", - searchPaths: ["/"], - uri: "https://github.com/fake-user/fake-repository.git" - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configServers.beginValidateAndWait( - resourceGroupName, - serviceName, - configServerSettings - ); - console.log(result); -} - -configServersValidate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesCreateOrUpdateSample.ts deleted file mode 100644 index f116ea415312..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesCreateOrUpdateSample.ts +++ /dev/null @@ -1,55 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ConfigurationServiceResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create the default Application Configuration Service or update the existing Application Configuration Service. - * - * @summary Create the default Application Configuration Service or update the existing Application Configuration Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_CreateOrUpdate.json - */ -async function configurationServicesCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const configurationServiceName = "default"; - const configurationServiceResource: ConfigurationServiceResource = { - properties: { - settings: { - gitProperty: { - repositories: [ - { - name: "fake", - label: "master", - patterns: ["app/dev"], - uri: "https://github.com/fake-user/fake-repository" - } - ] - } - } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configurationServices.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - configurationServiceName, - configurationServiceResource - ); - console.log(result); -} - -configurationServicesCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesDeleteSample.ts deleted file mode 100644 index 8d65fa2afdb8..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesDeleteSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Disable the default Application Configuration Service. - * - * @summary Disable the default Application Configuration Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Delete.json - */ -async function configurationServicesDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const configurationServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configurationServices.beginDeleteAndWait( - resourceGroupName, - serviceName, - configurationServiceName - ); - console.log(result); -} - -configurationServicesDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesGetSample.ts deleted file mode 100644 index e66b0136e79f..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesGetSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the Application Configuration Service and its properties. - * - * @summary Get the Application Configuration Service and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Get.json - */ -async function configurationServicesGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const configurationServiceName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.configurationServices.get( - resourceGroupName, - serviceName, - configurationServiceName - ); - console.log(result); -} - -configurationServicesGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesListSample.ts deleted file mode 100644 index 7f2ddb25d9c2..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesListSample.ts +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_List.json - */ -async function configurationServicesList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.configurationServices.list( - resourceGroupName, - serviceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -configurationServicesList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsCreateOrUpdateSample.ts deleted file mode 100644 index 7eed0cd3c7fe..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsCreateOrUpdateSample.ts +++ /dev/null @@ -1,47 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CustomDomainResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update custom domain of one lifecycle application. - * - * @summary Create or update custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_CreateOrUpdate.json - */ -async function customDomainsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const domainName = "mydomain.com"; - const domainResource: CustomDomainResource = { - properties: { - certName: "mycert", - thumbprint: "934367bf1c97033f877db0f15cb1b586957d3133" - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.customDomains.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - appName, - domainName, - domainResource - ); - console.log(result); -} - -customDomainsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsDeleteSample.ts deleted file mode 100644 index cba07e81cbcd..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsDeleteSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the custom domain of one lifecycle application. - * - * @summary Delete the custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Delete.json - */ -async function customDomainsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const domainName = "mydomain.com"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.customDomains.beginDeleteAndWait( - resourceGroupName, - serviceName, - appName, - domainName - ); - console.log(result); -} - -customDomainsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsListSample.ts deleted file mode 100644 index c950368ef7c8..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsListSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to List the custom domains of one lifecycle application. - * - * @summary List the custom domains of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_List.json - */ -async function customDomainsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.customDomains.list( - resourceGroupName, - serviceName, - appName - )) { - resArray.push(item); - } - console.log(resArray); -} - -customDomainsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsUpdateSample.ts deleted file mode 100644 index f4fbc2f6dbfe..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsUpdateSample.ts +++ /dev/null @@ -1,47 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CustomDomainResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Update custom domain of one lifecycle application. - * - * @summary Update custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Update.json - */ -async function customDomainsUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const domainName = "mydomain.com"; - const domainResource: CustomDomainResource = { - properties: { - certName: "mycert", - thumbprint: "934367bf1c97033f877db0f15cb1b586957d3133" - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.customDomains.beginUpdateAndWait( - resourceGroupName, - serviceName, - appName, - domainName, - domainResource - ); - console.log(result); -} - -customDomainsUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsCreateOrUpdateSample.ts deleted file mode 100644 index 3df4eba418da..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsCreateOrUpdateSample.ts +++ /dev/null @@ -1,110 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DeploymentResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create a new Deployment or update an exiting Deployment. - * - * @summary Create a new Deployment or update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_CreateOrUpdate.json - */ -async function deploymentsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource: DeploymentResource = { - properties: { - deploymentSettings: { - addonConfigs: { - applicationConfigurationService: { patterns: ["mypattern"] } - }, - environmentVariables: { env: "test" }, - resourceRequests: { cpu: "1000m", memory: "3Gi" } - }, - instances: [], - source: { - type: "Source", - artifactSelector: "sub-module-1", - relativePath: - "resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc", - version: "1.0" - } - }, - sku: { name: "S0", capacity: 1, tier: "Standard" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsCreateOrUpdate().catch(console.error); - -/** - * This sample demonstrates how to Create a new Deployment or update an exiting Deployment. - * - * @summary Create a new Deployment or update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_CreateOrUpdate_CustomContainer.json - */ -async function deploymentsCreateOrUpdateCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource: DeploymentResource = { - properties: { - deploymentSettings: { - environmentVariables: { env: "test" }, - resourceRequests: { cpu: "1000m", memory: "3Gi" } - }, - instances: [], - source: { - type: "Container", - customContainer: { - args: ["-c", "while true; do echo hello; sleep 10;done"], - command: ["/bin/sh"], - containerImage: "myContainerImage:v1", - imageRegistryCredential: { - password: "myPassword", - username: "myUsername" - }, - languageFramework: "springboot", - server: "myacr.azurecr.io" - } - } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsCreateOrUpdateCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsDeleteSample.ts deleted file mode 100644 index f39c17972300..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsDeleteSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Operation to delete a Deployment. - * - * @summary Operation to delete a Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Delete.json - */ -async function deploymentsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginDeleteAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGetLogFileUrlSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGetLogFileUrlSample.ts deleted file mode 100644 index bfce5700d2dd..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGetLogFileUrlSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get deployment log file URL - * - * @summary Get deployment log file URL - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GetLogFileUrl.json - */ -async function deploymentsGetLogFileUrl() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.getLogFileUrl( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsGetLogFileUrl().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGetSample.ts deleted file mode 100644 index bd658b648e98..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGetSample.ts +++ /dev/null @@ -1,62 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get a Deployment and its properties. - * - * @summary Get a Deployment and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Get.json - */ -async function deploymentsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.get( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsGet().catch(console.error); - -/** - * This sample demonstrates how to Get a Deployment and its properties. - * - * @summary Get a Deployment and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Get_CustomContainer.json - */ -async function deploymentsGetCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.get( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsGetCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsListForClusterSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsListForClusterSample.ts deleted file mode 100644 index bb04c2847be5..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsListForClusterSample.ts +++ /dev/null @@ -1,36 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to List deployments for a certain service - * - * @summary List deployments for a certain service - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_ListForCluster.json - */ -async function deploymentsListForCluster() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.deployments.listForCluster( - resourceGroupName, - serviceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -deploymentsListForCluster().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsListSample.ts deleted file mode 100644 index aa950eed396f..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsListSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handles requests to list all resources in an App. - * - * @summary Handles requests to list all resources in an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_List.json - */ -async function deploymentsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.deployments.list( - resourceGroupName, - serviceName, - appName - )) { - resArray.push(item); - } - console.log(resArray); -} - -deploymentsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsStopSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsStopSample.ts deleted file mode 100644 index 24a9fd9a03c1..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsStopSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Stop the deployment. - * - * @summary Stop the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Stop.json - */ -async function deploymentsStop() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginStopAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName - ); - console.log(result); -} - -deploymentsStop().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsUpdateSample.ts deleted file mode 100644 index ad32420f9caf..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsUpdateSample.ts +++ /dev/null @@ -1,97 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DeploymentResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Operation to update an exiting Deployment. - * - * @summary Operation to update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Update.json - */ -async function deploymentsUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource: DeploymentResource = { - properties: { - instances: [], - source: { - type: "Source", - artifactSelector: "sub-module-1", - relativePath: - "resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc", - version: "1.0" - } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsUpdate().catch(console.error); - -/** - * This sample demonstrates how to Operation to update an exiting Deployment. - * - * @summary Operation to update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Update_CustomContainer.json - */ -async function deploymentsUpdateCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource: DeploymentResource = { - properties: { - instances: [], - source: { - type: "Container", - customContainer: { - args: ["-c", "while true; do echo hello; sleep 10;done"], - command: ["/bin/sh"], - containerImage: "myNewContainerImage:v1", - imageRegistryCredential: { - password: "", - username: "myNewUsername" - }, - server: "mynewacr.azurecr.io" - } - } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsUpdateCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsCreateOrUpdateSample.ts deleted file mode 100644 index 9fdc049cfe21..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsCreateOrUpdateSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - GatewayCustomDomainResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update the Spring Cloud Gateway custom domain. - * - * @summary Create or update the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_CreateOrUpdate.json - */ -async function gatewayCustomDomainsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const gatewayCustomDomainResource: GatewayCustomDomainResource = { - properties: { thumbprint: "*" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - domainName, - gatewayCustomDomainResource - ); - console.log(result); -} - -gatewayCustomDomainsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsDeleteSample.ts deleted file mode 100644 index 857cdac7ecec..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsDeleteSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the Spring Cloud Gateway custom domain. - * - * @summary Delete the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Delete.json - */ -async function gatewayCustomDomainsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName, - domainName - ); - console.log(result); -} - -gatewayCustomDomainsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsGetSample.ts deleted file mode 100644 index b2d1e9a59889..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsGetSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway custom domain. - * - * @summary Get the Spring Cloud Gateway custom domain. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_Get.json - */ -async function gatewayCustomDomainsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const domainName = "myDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayCustomDomains.get( - resourceGroupName, - serviceName, - gatewayName, - domainName - ); - console.log(result); -} - -gatewayCustomDomainsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsListSample.ts deleted file mode 100644 index 00fd3ad2f5e2..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayCustomDomainsListSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handle requests to list all Spring Cloud Gateway custom domains. - * - * @summary Handle requests to list all Spring Cloud Gateway custom domains. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayCustomDomains_List.json - */ -async function gatewayCustomDomainsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gatewayCustomDomains.list( - resourceGroupName, - serviceName, - gatewayName - )) { - resArray.push(item); - } - console.log(resArray); -} - -gatewayCustomDomainsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsCreateOrUpdateSample.ts deleted file mode 100644 index 88ac2615cf9b..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsCreateOrUpdateSample.ts +++ /dev/null @@ -1,55 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - GatewayRouteConfigResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. - * - * @summary Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_CreateOrUpdate.json - */ -async function gatewayRouteConfigsCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const gatewayRouteConfigResource: GatewayRouteConfigResource = { - properties: { - appResourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myApp", - routes: [ - { - filters: ["StripPrefix=2", "RateLimit=1,1s"], - predicates: ["Path=/api5/customer/**"], - ssoEnabled: true, - title: "myApp route config" - } - ] - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName, - gatewayRouteConfigResource - ); - console.log(result); -} - -gatewayRouteConfigsCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsDeleteSample.ts deleted file mode 100644 index 5f973acfb703..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsDeleteSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the Spring Cloud Gateway route config. - * - * @summary Delete the Spring Cloud Gateway route config. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Delete.json - */ -async function gatewayRouteConfigsDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName - ); - console.log(result); -} - -gatewayRouteConfigsDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsGetSample.ts deleted file mode 100644 index 022ec6d0935f..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsGetSample.ts +++ /dev/null @@ -1,37 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway route configs. - * - * @summary Get the Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_Get.json - */ -async function gatewayRouteConfigsGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const routeConfigName = "myRouteConfig"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gatewayRouteConfigs.get( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName - ); - console.log(result); -} - -gatewayRouteConfigsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsListSample.ts deleted file mode 100644 index 9dd386692c90..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewayRouteConfigsListSample.ts +++ /dev/null @@ -1,38 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handle requests to list all Spring Cloud Gateway route configs. - * - * @summary Handle requests to list all Spring Cloud Gateway route configs. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/GatewayRouteConfigs_List.json - */ -async function gatewayRouteConfigsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gatewayRouteConfigs.list( - resourceGroupName, - serviceName, - gatewayName - )) { - resArray.push(item); - } - console.log(resArray); -} - -gatewayRouteConfigsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysCreateOrUpdateSample.ts deleted file mode 100644 index 8e710655cd82..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysCreateOrUpdateSample.ts +++ /dev/null @@ -1,43 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - GatewayResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - * - * @summary Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_CreateOrUpdate.json - */ -async function gatewaysCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const gatewayResource: GatewayResource = { - properties: { public: true, resourceRequests: { cpu: "1", memory: "1G" } }, - sku: { name: "E0", capacity: 2, tier: "Enterprise" } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - gatewayName, - gatewayResource - ); - console.log(result); -} - -gatewaysCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysDeleteSample.ts deleted file mode 100644 index 47b1e99706c2..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysDeleteSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Disable the default Spring Cloud Gateway. - * - * @summary Disable the default Spring Cloud Gateway. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Delete.json - */ -async function gatewaysDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.beginDeleteAndWait( - resourceGroupName, - serviceName, - gatewayName - ); - console.log(result); -} - -gatewaysDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysGetSample.ts deleted file mode 100644 index b9c4aaa5bd35..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysGetSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the Spring Cloud Gateway and its properties. - * - * @summary Get the Spring Cloud Gateway and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_Get.json - */ -async function gatewaysGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.get( - resourceGroupName, - serviceName, - gatewayName - ); - console.log(result); -} - -gatewaysGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysListSample.ts deleted file mode 100644 index 037edc040095..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysListSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handles requests to list all resources in a Service. - * - * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_List.json - */ -async function gatewaysList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gateways.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -gatewaysList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysValidateDomainSample.ts deleted file mode 100644 index 2b3c3fb51905..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/gatewaysValidateDomainSample.ts +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CustomDomainValidatePayload, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Check the domains are valid as well as not in use. - * - * @summary Check the domains are valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Gateways_ValidateDomain.json - */ -async function gatewaysValidateDomain() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const gatewayName = "default"; - const validatePayload: CustomDomainValidatePayload = { name: "mydomain.io" }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.gateways.validateDomain( - resourceGroupName, - serviceName, - gatewayName, - validatePayload - ); - console.log(result); -} - -gatewaysValidateDomain().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/monitoringSettingsUpdatePatchSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/monitoringSettingsUpdatePatchSample.ts deleted file mode 100644 index a0e8ec0e5c37..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/monitoringSettingsUpdatePatchSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MonitoringSettingResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Update the Monitoring Setting. - * - * @summary Update the Monitoring Setting. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePatch.json - */ -async function monitoringSettingsUpdatePatch() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const monitoringSettingResource: MonitoringSettingResource = { - properties: { - appInsightsInstrumentationKey: "00000000-0000-0000-0000-000000000000", - appInsightsSamplingRate: 10, - traceEnabled: true - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.monitoringSettings.beginUpdatePatchAndWait( - resourceGroupName, - serviceName, - monitoringSettingResource - ); - console.log(result); -} - -monitoringSettingsUpdatePatch().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/monitoringSettingsUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/monitoringSettingsUpdatePutSample.ts deleted file mode 100644 index da94a4ed4bef..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/monitoringSettingsUpdatePutSample.ts +++ /dev/null @@ -1,44 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MonitoringSettingResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Update the Monitoring Setting. - * - * @summary Update the Monitoring Setting. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePut.json - */ -async function monitoringSettingsUpdatePut() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const monitoringSettingResource: MonitoringSettingResource = { - properties: { - appInsightsInstrumentationKey: "00000000-0000-0000-0000-000000000000", - appInsightsSamplingRate: 10, - traceEnabled: true - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.monitoringSettings.beginUpdatePutAndWait( - resourceGroupName, - serviceName, - monitoringSettingResource - ); - console.log(result); -} - -monitoringSettingsUpdatePut().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/operationsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/operationsListSample.ts deleted file mode 100644 index cb8183f68b16..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - * - * @summary Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Operations_List.json - */ -async function operationsList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -operationsList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts deleted file mode 100644 index 232decc28d89..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts +++ /dev/null @@ -1,28 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - * - * @summary Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/RuntimeVersions_ListRuntimeVersions.json - */ -async function runtimeVersionsListRuntimeVersions() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.runtimeVersions.listRuntimeVersions(); - console.log(result); -} - -runtimeVersionsListRuntimeVersions().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesCreateOrUpdateSample.ts deleted file mode 100644 index 89cfc1eb1289..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesCreateOrUpdateSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create the default Service Registry or update the existing Service Registry. - * - * @summary Create the default Service Registry or update the existing Service Registry. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_CreateOrUpdate.json - */ -async function serviceRegistriesCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const serviceRegistryName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.serviceRegistries.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - serviceRegistryName - ); - console.log(result); -} - -serviceRegistriesCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesDeleteSample.ts deleted file mode 100644 index 7777e2649892..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesDeleteSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Disable the default Service Registry. - * - * @summary Disable the default Service Registry. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Delete.json - */ -async function serviceRegistriesDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const serviceRegistryName = "default"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.serviceRegistries.beginDeleteAndWait( - resourceGroupName, - serviceName, - serviceRegistryName - ); - console.log(result); -} - -serviceRegistriesDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesCheckNameAvailabilitySample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesCheckNameAvailabilitySample.ts deleted file mode 100644 index e5a0b6d4d875..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesCheckNameAvailabilitySample.ts +++ /dev/null @@ -1,39 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NameAvailabilityParameters, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Checks that the resource name is valid and is not already in use. - * - * @summary Checks that the resource name is valid and is not already in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CheckNameAvailability.json - */ -async function servicesCheckNameAvailability() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const availabilityParameters: NameAvailabilityParameters = { - name: "myservice", - type: "Microsoft.AppPlatform/Spring" - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.checkNameAvailability( - location, - availabilityParameters - ); - console.log(result); -} - -servicesCheckNameAvailability().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesDisableTestEndpointSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesDisableTestEndpointSample.ts deleted file mode 100644 index 85ac01c403fc..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesDisableTestEndpointSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Disable test endpoint functionality for a Service. - * - * @summary Disable test endpoint functionality for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_DisableTestEndpoint.json - */ -async function servicesDisableTestEndpoint() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.disableTestEndpoint( - resourceGroupName, - serviceName - ); - console.log(result); -} - -servicesDisableTestEndpoint().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesEnableTestEndpointSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesEnableTestEndpointSample.ts deleted file mode 100644 index f00ea74e8464..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesEnableTestEndpointSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Enable test endpoint functionality for a Service. - * - * @summary Enable test endpoint functionality for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_EnableTestEndpoint.json - */ -async function servicesEnableTestEndpoint() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.enableTestEndpoint( - resourceGroupName, - serviceName - ); - console.log(result); -} - -servicesEnableTestEndpoint().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesListBySubscriptionSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesListBySubscriptionSample.ts deleted file mode 100644 index 994fda4e5fa4..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesListBySubscriptionSample.ts +++ /dev/null @@ -1,31 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handles requests to list all resources in a subscription. - * - * @summary Handles requests to list all resources in a subscription. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListBySubscription.json - */ -async function servicesListBySubscription() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.services.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -servicesListBySubscription().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesListSample.ts deleted file mode 100644 index b1dfae56602c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesListSample.ts +++ /dev/null @@ -1,32 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Handles requests to list all resources in a resource group. - * - * @summary Handles requests to list all resources in a resource group. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_List.json - */ -async function servicesList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.services.list(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -servicesList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesListTestKeysSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesListTestKeysSample.ts deleted file mode 100644 index 9ab4ed1af0f2..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesListTestKeysSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to List test keys for a Service. - * - * @summary List test keys for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListTestKeys.json - */ -async function servicesListTestKeys() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.listTestKeys( - resourceGroupName, - serviceName - ); - console.log(result); -} - -servicesListTestKeys().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesRegenerateTestKeySample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesRegenerateTestKeySample.ts deleted file mode 100644 index 7cefb695c7bc..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesRegenerateTestKeySample.ts +++ /dev/null @@ -1,40 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RegenerateTestKeyRequestPayload, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Regenerate a test key for a Service. - * - * @summary Regenerate a test key for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_RegenerateTestKey.json - */ -async function servicesRegenerateTestKey() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const regenerateTestKeyRequest: RegenerateTestKeyRequestPayload = { - keyType: "Primary" - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.regenerateTestKey( - resourceGroupName, - serviceName, - regenerateTestKeyRequest - ); - console.log(result); -} - -servicesRegenerateTestKey().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesStartSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesStartSample.ts deleted file mode 100644 index 05a7cacc4767..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesStartSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Start a Service. - * - * @summary Start a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Start.json - */ -async function servicesStart() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginStartAndWait( - resourceGroupName, - serviceName - ); - console.log(result); -} - -servicesStart().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesStopSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesStopSample.ts deleted file mode 100644 index 3bd4b6495977..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesStopSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Stop a Service. - * - * @summary Stop a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Stop.json - */ -async function servicesStop() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.services.beginStopAndWait( - resourceGroupName, - serviceName - ); - console.log(result); -} - -servicesStop().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesCreateOrUpdateSample.ts deleted file mode 100644 index 485e96fb0705..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesCreateOrUpdateSample.ts +++ /dev/null @@ -1,46 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - StorageResource, - AppPlatformManagementClient -} from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Create or update storage resource. - * - * @summary Create or update storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_CreateOrUpdate.json - */ -async function storagesCreateOrUpdate() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const storageResource: StorageResource = { - properties: { - accountKey: "account-key-of-storage-account", - accountName: "storage-account-name", - storageType: "StorageAccount" - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - storageName, - storageResource - ); - console.log(result); -} - -storagesCreateOrUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesDeleteSample.ts deleted file mode 100644 index 7c98f959e31d..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesDeleteSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Delete the storage resource. - * - * @summary Delete the storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Delete.json - */ -async function storagesDelete() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.beginDeleteAndWait( - resourceGroupName, - serviceName, - storageName - ); - console.log(result); -} - -storagesDelete().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesGetSample.ts deleted file mode 100644 index ea9e5d32550c..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesGetSample.ts +++ /dev/null @@ -1,35 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to Get the storage resource. - * - * @summary Get the storage resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_Get.json - */ -async function storagesGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const storageName = "mystorage"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.storages.get( - resourceGroupName, - serviceName, - storageName - ); - console.log(result); -} - -storagesGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesListSample.ts deleted file mode 100644 index 6c6a99170421..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/storagesListSample.ts +++ /dev/null @@ -1,33 +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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AppPlatformManagementClient } from "@azure/arm-appplatform"; -import { DefaultAzureCredential } from "@azure/identity"; - -/** - * This sample demonstrates how to List all the storages of one Azure Spring Cloud instance. - * - * @summary List all the storages of one Azure Spring Cloud instance. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Storages_List.json - */ -async function storagesList() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myService"; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.storages.list(resourceGroupName, serviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -storagesList().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/tsconfig.json b/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/tsconfig.json deleted file mode 100644 index 416c2dd82e00..000000000000 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2018", - "module": "commonjs", - "moduleResolution": "node", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "alwaysStrict": true, - "outDir": "dist", - "rootDir": "src" - }, - "include": [ - "src/**.ts" - ] -} diff --git a/sdk/appplatform/arm-appplatform/samples/v2/javascript/README.md b/sdk/appplatform/arm-appplatform/samples/v2/javascript/README.md new file mode 100644 index 000000000000..135ebe0b11a1 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/README.md @@ -0,0 +1,226 @@ +# client library samples for JavaScript + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [appsCreateOrUpdateSample.js][appscreateorupdatesample] | Create a new App or update an exiting App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_CreateOrUpdate.json | +| [appsDeleteSample.js][appsdeletesample] | Operation to delete an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Delete.json | +| [appsGetResourceUploadUrlSample.js][appsgetresourceuploadurlsample] | Get an resource upload URL for an App, which may be artifacts or source archive. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_GetResourceUploadUrl.json | +| [appsGetSample.js][appsgetsample] | Get an App and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Get.json | +| [appsListSample.js][appslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_List.json | +| [appsSetActiveDeploymentsSample.js][appssetactivedeploymentssample] | Set existing Deployment under the app as active x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_SetActiveDeployments.json | +| [appsUpdateSample.js][appsupdatesample] | Operation to update an exiting App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Update.json | +| [appsValidateDomainSample.js][appsvalidatedomainsample] | Check the resource name is valid as well as not in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_ValidateDomain.json | +| [bindingsCreateOrUpdateSample.js][bindingscreateorupdatesample] | Create a new Binding or update an exiting Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_CreateOrUpdate.json | +| [bindingsDeleteSample.js][bindingsdeletesample] | Operation to delete a Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Delete.json | +| [bindingsGetSample.js][bindingsgetsample] | Get a Binding and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Get.json | +| [bindingsListSample.js][bindingslistsample] | Handles requests to list all resources in an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_List.json | +| [bindingsUpdateSample.js][bindingsupdatesample] | Operation to update an exiting Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Update.json | +| [buildServiceAgentPoolGetSample.js][buildserviceagentpoolgetsample] | Get build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_Get.json | +| [buildServiceAgentPoolListSample.js][buildserviceagentpoollistsample] | List build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_List.json | +| [buildServiceAgentPoolUpdatePutSample.js][buildserviceagentpoolupdateputsample] | Create or update build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_UpdatePut.json | +| [buildServiceBuilderCreateOrUpdateSample.js][buildservicebuildercreateorupdatesample] | Create or update a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_CreateOrUpdate.json | +| [buildServiceBuilderDeleteSample.js][buildservicebuilderdeletesample] | Delete a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_Delete.json | +| [buildServiceBuilderGetSample.js][buildservicebuildergetsample] | Get a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_Get.json | +| [buildServiceBuilderListSample.js][buildservicebuilderlistsample] | List KPack builders result. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_List.json | +| [buildServiceCreateOrUpdateBuildSample.js][buildservicecreateorupdatebuildsample] | Create or update a KPack build. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_CreateOrUpdateBuild.json | +| [buildServiceGetBuildResultLogSample.js][buildservicegetbuildresultlogsample] | Get a KPack build result log download URL. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildResultLog.json | +| [buildServiceGetBuildResultSample.js][buildservicegetbuildresultsample] | Get a KPack build result. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildResult.json | +| [buildServiceGetBuildSample.js][buildservicegetbuildsample] | Get a KPack build. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuild.json | +| [buildServiceGetBuildServiceSample.js][buildservicegetbuildservicesample] | Get a build service resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildService.json | +| [buildServiceGetResourceUploadUrlSample.js][buildservicegetresourceuploadurlsample] | Get an resource upload URL for build service, which may be artifacts or source archive. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetResourceUploadUrl.json | +| [buildServiceGetSupportedBuildpackSample.js][buildservicegetsupportedbuildpacksample] | Get the supported buildpack resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetSupportedBuildpack.json | +| [buildServiceGetSupportedStackSample.js][buildservicegetsupportedstacksample] | Get the supported stack resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetSupportedStack.json | +| [buildServiceListBuildResultsSample.js][buildservicelistbuildresultssample] | List KPack build results. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuildResults.json | +| [buildServiceListBuildServicesSample.js][buildservicelistbuildservicessample] | List build services resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuildServices.json | +| [buildServiceListBuildsSample.js][buildservicelistbuildssample] | List KPack builds. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuilds.json | +| [buildServiceListSupportedBuildpacksSample.js][buildservicelistsupportedbuildpackssample] | Get all supported buildpacks. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListSupportedBuildpacks.json | +| [buildServiceListSupportedStacksSample.js][buildservicelistsupportedstackssample] | Get all supported stacks. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListSupportedStacks.json | +| [buildpackBindingCreateOrUpdateSample.js][buildpackbindingcreateorupdatesample] | Create or update a buildpack binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_CreateOrUpdate.json | +| [buildpackBindingDeleteSample.js][buildpackbindingdeletesample] | Operation to delete a Buildpack Binding x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_Delete.json | +| [buildpackBindingGetSample.js][buildpackbindinggetsample] | Get a buildpack binding by name. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_Get.json | +| [buildpackBindingListSample.js][buildpackbindinglistsample] | Handles requests to list all buildpack bindings in a builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_List.json | +| [certificatesCreateOrUpdateSample.js][certificatescreateorupdatesample] | Create or update certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_CreateOrUpdate.json | +| [certificatesDeleteSample.js][certificatesdeletesample] | Delete the certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_Delete.json | +| [certificatesGetSample.js][certificatesgetsample] | Get the certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_Get.json | +| [certificatesListSample.js][certificateslistsample] | List all the certificates of one user. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_List.json | +| [configServersGetSample.js][configserversgetsample] | Get the config server and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_Get.json | +| [configServersUpdatePatchSample.js][configserversupdatepatchsample] | Update the config server. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_UpdatePatch.json | +| [configServersUpdatePutSample.js][configserversupdateputsample] | Update the config server. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_UpdatePut.json | +| [configServersValidateSample.js][configserversvalidatesample] | Check if the config server settings are valid. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_Validate.json | +| [configurationServicesCreateOrUpdateSample.js][configurationservicescreateorupdatesample] | Create the default Application Configuration Service or update the existing Application Configuration Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_CreateOrUpdate.json | +| [configurationServicesDeleteSample.js][configurationservicesdeletesample] | Disable the default Application Configuration Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Delete.json | +| [configurationServicesGetSample.js][configurationservicesgetsample] | Get the Application Configuration Service and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Get.json | +| [configurationServicesListSample.js][configurationserviceslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_List.json | +| [configurationServicesValidateSample.js][configurationservicesvalidatesample] | Check if the Application Configuration Service settings are valid. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Validate.json | +| [customDomainsCreateOrUpdateSample.js][customdomainscreateorupdatesample] | Create or update custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_CreateOrUpdate.json | +| [customDomainsDeleteSample.js][customdomainsdeletesample] | Delete the custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Delete.json | +| [customDomainsGetSample.js][customdomainsgetsample] | Get the custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Get.json | +| [customDomainsListSample.js][customdomainslistsample] | List the custom domains of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_List.json | +| [customDomainsUpdateSample.js][customdomainsupdatesample] | Update custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Update.json | +| [deploymentsCreateOrUpdateSample.js][deploymentscreateorupdatesample] | Create a new Deployment or update an exiting Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_CreateOrUpdate.json | +| [deploymentsDeleteSample.js][deploymentsdeletesample] | Operation to delete a Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Delete.json | +| [deploymentsGenerateHeapDumpSample.js][deploymentsgenerateheapdumpsample] | Generate Heap Dump x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GenerateHeapDump.json | +| [deploymentsGenerateThreadDumpSample.js][deploymentsgeneratethreaddumpsample] | Generate Thread Dump x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GenerateThreadDump.json | +| [deploymentsGetLogFileUrlSample.js][deploymentsgetlogfileurlsample] | Get deployment log file URL x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GetLogFileUrl.json | +| [deploymentsGetSample.js][deploymentsgetsample] | Get a Deployment and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Get.json | +| [deploymentsListForClusterSample.js][deploymentslistforclustersample] | List deployments for a certain service x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_ListForCluster.json | +| [deploymentsListSample.js][deploymentslistsample] | Handles requests to list all resources in an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_List.json | +| [deploymentsRestartSample.js][deploymentsrestartsample] | Restart the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Restart.json | +| [deploymentsStartJfrSample.js][deploymentsstartjfrsample] | Start JFR x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_StartJFR.json | +| [deploymentsStartSample.js][deploymentsstartsample] | Start the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Start.json | +| [deploymentsStopSample.js][deploymentsstopsample] | Stop the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Stop.json | +| [deploymentsUpdateSample.js][deploymentsupdatesample] | Operation to update an exiting Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Update.json | +| [monitoringSettingsGetSample.js][monitoringsettingsgetsample] | Get the Monitoring Setting and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_Get.json | +| [monitoringSettingsUpdatePatchSample.js][monitoringsettingsupdatepatchsample] | Update the Monitoring Setting. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_UpdatePatch.json | +| [monitoringSettingsUpdatePutSample.js][monitoringsettingsupdateputsample] | Update the Monitoring Setting. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_UpdatePut.json | +| [operationsListSample.js][operationslistsample] | Lists all of the available REST API operations of the Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Operations_List.json | +| [runtimeVersionsListRuntimeVersionsSample.js][runtimeversionslistruntimeversionssample] | Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/RuntimeVersions_ListRuntimeVersions.json | +| [serviceRegistriesCreateOrUpdateSample.js][serviceregistriescreateorupdatesample] | Create the default Service Registry or update the existing Service Registry. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_CreateOrUpdate.json | +| [serviceRegistriesDeleteSample.js][serviceregistriesdeletesample] | Disable the default Service Registry. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_Delete.json | +| [serviceRegistriesGetSample.js][serviceregistriesgetsample] | Get the Service Registry and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_Get.json | +| [serviceRegistriesListSample.js][serviceregistrieslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_List.json | +| [servicesCheckNameAvailabilitySample.js][serviceschecknameavailabilitysample] | Checks that the resource name is valid and is not already in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_CheckNameAvailability.json | +| [servicesCreateOrUpdateSample.js][servicescreateorupdatesample] | Create a new Service or update an exiting Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_CreateOrUpdate.json | +| [servicesDeleteSample.js][servicesdeletesample] | Operation to delete a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Delete.json | +| [servicesDisableTestEndpointSample.js][servicesdisabletestendpointsample] | Disable test endpoint functionality for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_DisableTestEndpoint.json | +| [servicesEnableTestEndpointSample.js][servicesenabletestendpointsample] | Enable test endpoint functionality for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_EnableTestEndpoint.json | +| [servicesGetSample.js][servicesgetsample] | Get a Service and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Get.json | +| [servicesListBySubscriptionSample.js][serviceslistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_ListBySubscription.json | +| [servicesListSample.js][serviceslistsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_List.json | +| [servicesListTestKeysSample.js][serviceslisttestkeyssample] | List test keys for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_ListTestKeys.json | +| [servicesRegenerateTestKeySample.js][servicesregeneratetestkeysample] | Regenerate a test key for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_RegenerateTestKey.json | +| [servicesUpdateSample.js][servicesupdatesample] | Operation to update an exiting Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Update.json | +| [skusListSample.js][skuslistsample] | Lists all of the available skus of the Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Skus_List.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node appsCreateOrUpdateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env node appsCreateOrUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[appscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsCreateOrUpdateSample.js +[appsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsDeleteSample.js +[appsgetresourceuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsGetResourceUploadUrlSample.js +[appsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsGetSample.js +[appslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsListSample.js +[appssetactivedeploymentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsSetActiveDeploymentsSample.js +[appsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsUpdateSample.js +[appsvalidatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsValidateDomainSample.js +[bindingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsCreateOrUpdateSample.js +[bindingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsDeleteSample.js +[bindingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsGetSample.js +[bindingslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsListSample.js +[bindingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsUpdateSample.js +[buildserviceagentpoolgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceAgentPoolGetSample.js +[buildserviceagentpoollistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceAgentPoolListSample.js +[buildserviceagentpoolupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceAgentPoolUpdatePutSample.js +[buildservicebuildercreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderCreateOrUpdateSample.js +[buildservicebuilderdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderDeleteSample.js +[buildservicebuildergetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderGetSample.js +[buildservicebuilderlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderListSample.js +[buildservicecreateorupdatebuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceCreateOrUpdateBuildSample.js +[buildservicegetbuildresultlogsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildResultLogSample.js +[buildservicegetbuildresultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildResultSample.js +[buildservicegetbuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildSample.js +[buildservicegetbuildservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildServiceSample.js +[buildservicegetresourceuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetResourceUploadUrlSample.js +[buildservicegetsupportedbuildpacksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetSupportedBuildpackSample.js +[buildservicegetsupportedstacksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetSupportedStackSample.js +[buildservicelistbuildresultssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListBuildResultsSample.js +[buildservicelistbuildservicessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListBuildServicesSample.js +[buildservicelistbuildssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListBuildsSample.js +[buildservicelistsupportedbuildpackssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListSupportedBuildpacksSample.js +[buildservicelistsupportedstackssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListSupportedStacksSample.js +[buildpackbindingcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingCreateOrUpdateSample.js +[buildpackbindingdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingDeleteSample.js +[buildpackbindinggetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingGetSample.js +[buildpackbindinglistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingListSample.js +[certificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesCreateOrUpdateSample.js +[certificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesDeleteSample.js +[certificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesGetSample.js +[certificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesListSample.js +[configserversgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersGetSample.js +[configserversupdatepatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersUpdatePatchSample.js +[configserversupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersUpdatePutSample.js +[configserversvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersValidateSample.js +[configurationservicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesCreateOrUpdateSample.js +[configurationservicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesDeleteSample.js +[configurationservicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesGetSample.js +[configurationserviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesListSample.js +[configurationservicesvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesValidateSample.js +[customdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsCreateOrUpdateSample.js +[customdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsDeleteSample.js +[customdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsGetSample.js +[customdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsListSample.js +[customdomainsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsUpdateSample.js +[deploymentscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsCreateOrUpdateSample.js +[deploymentsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsDeleteSample.js +[deploymentsgenerateheapdumpsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGenerateHeapDumpSample.js +[deploymentsgeneratethreaddumpsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGenerateThreadDumpSample.js +[deploymentsgetlogfileurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGetLogFileUrlSample.js +[deploymentsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGetSample.js +[deploymentslistforclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsListForClusterSample.js +[deploymentslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsListSample.js +[deploymentsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsRestartSample.js +[deploymentsstartjfrsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsStartJfrSample.js +[deploymentsstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsStartSample.js +[deploymentsstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsStopSample.js +[deploymentsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsUpdateSample.js +[monitoringsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/monitoringSettingsGetSample.js +[monitoringsettingsupdatepatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/monitoringSettingsUpdatePatchSample.js +[monitoringsettingsupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/monitoringSettingsUpdatePutSample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/operationsListSample.js +[runtimeversionslistruntimeversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/runtimeVersionsListRuntimeVersionsSample.js +[serviceregistriescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesCreateOrUpdateSample.js +[serviceregistriesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesDeleteSample.js +[serviceregistriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesGetSample.js +[serviceregistrieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesListSample.js +[serviceschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesCheckNameAvailabilitySample.js +[servicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesCreateOrUpdateSample.js +[servicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesDeleteSample.js +[servicesdisabletestendpointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesDisableTestEndpointSample.js +[servicesenabletestendpointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesEnableTestEndpointSample.js +[servicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesGetSample.js +[serviceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesListBySubscriptionSample.js +[serviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesListSample.js +[serviceslisttestkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesListTestKeysSample.js +[servicesregeneratetestkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesRegenerateTestKeySample.js +[servicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesUpdateSample.js +[skuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/javascript/skusListSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform/README.md diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsCreateOrUpdateSample.js similarity index 72% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsCreateOrUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/appsCreateOrUpdateSample.js index a2940417e395..9b4a93e8315a 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsCreateOrUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsCreateOrUpdateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Create a new App or update an exiting App. * * @summary Create a new App or update an exiting App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_CreateOrUpdate.json */ async function appsCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; @@ -24,21 +24,9 @@ async function appsCreateOrUpdate() { const appName = "myapp"; const appResource = { identity: { - type: "SystemAssigned,UserAssigned", + type: "SystemAssigned", principalId: undefined, tenantId: undefined, - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": - { - clientId: undefined, - principalId: undefined, - }, - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": - { - clientId: undefined, - principalId: undefined, - }, - }, }, location: "eastus", properties: { @@ -52,17 +40,6 @@ async function appsCreateOrUpdate() { "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/serviceRegistries/myServiceRegistry", }, }, - customPersistentDisks: [ - { - customPersistentDiskProperties: { - type: "AzureFileVolume", - mountOptions: ["uid=0", "gid=0", "dir_mode=0777", "file_mode=0777"], - mountPath: "/mypath1/mypath2", - shareName: "myFileShare", - }, - storageId: "myASCStorageID", - }, - ], enableEndToEndTLS: false, fqdn: "myapp.mydomain.com", httpsOnly: false, diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsDeleteSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsDeleteSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/appsDeleteSample.js index 04b07c67c3bd..c00115ee2475 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsDeleteSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsDeleteSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Operation to delete an App. * * @summary Operation to delete an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Delete.json */ async function appsDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsGetResourceUploadUrlSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsGetResourceUploadUrlSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsGetResourceUploadUrlSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/appsGetResourceUploadUrlSample.js index e97b2c87f738..e9ae793b193a 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsGetResourceUploadUrlSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsGetResourceUploadUrlSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get an resource upload URL for an App, which may be artifacts or source archive. * * @summary Get an resource upload URL for an App, which may be artifacts or source archive. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_GetResourceUploadUrl.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_GetResourceUploadUrl.json */ async function appsGetResourceUploadUrl() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsGetSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsGetSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/appsGetSample.js index 0c3aa10a441d..40acd72b90ec 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsGetSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsGetSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get an App and its properties. * * @summary Get an App and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Get.json */ async function appsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsListSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsListSample.js similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsListSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/appsListSample.js index f120b183cd96..f375f97cc75d 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsListSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsListSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Handles requests to list all resources in a Service. * * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_List.json */ async function appsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsSetActiveDeploymentsSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsSetActiveDeploymentsSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsSetActiveDeploymentsSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/appsSetActiveDeploymentsSample.js index 90c0541ca06b..c05f8e266cdc 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsSetActiveDeploymentsSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsSetActiveDeploymentsSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Set existing Deployment under the app as active * * @summary Set existing Deployment under the app as active - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_SetActiveDeployments.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_SetActiveDeployments.json */ async function appsSetActiveDeployments() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsUpdateSample.js similarity index 62% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/appsUpdateSample.js index e30b91c0beae..0f4c7ad2fa75 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/appsUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsUpdateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Operation to update an exiting App. * * @summary Operation to update an exiting App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Update.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Update.json */ async function appsUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; @@ -24,35 +24,12 @@ async function appsUpdate() { const appName = "myapp"; const appResource = { identity: { - type: "SystemAssigned,UserAssigned", + type: "SystemAssigned", principalId: undefined, tenantId: undefined, - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": - { - clientId: undefined, - principalId: undefined, - }, - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": - { - clientId: undefined, - principalId: undefined, - }, - }, }, location: "eastus", properties: { - customPersistentDisks: [ - { - customPersistentDiskProperties: { - type: "AzureFileVolume", - mountOptions: [], - mountPath: "/mypath1/mypath2", - shareName: "myFileShare", - }, - storageId: "myASCStorageID", - }, - ], enableEndToEndTLS: false, fqdn: "myapp.mydomain.com", httpsOnly: false, diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsValidateDomainSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsValidateDomainSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsValidateDomainSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/appsValidateDomainSample.js index d6eb00918760..58948e5b2d29 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/appsValidateDomainSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/appsValidateDomainSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Check the resource name is valid as well as not in use. * * @summary Check the resource name is valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_ValidateDomain.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_ValidateDomain.json */ async function appsValidateDomain() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsCreateOrUpdateSample.js similarity index 95% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsCreateOrUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsCreateOrUpdateSample.js index 1586bf6fac65..6e7f2e67804c 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsCreateOrUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsCreateOrUpdateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Create a new Binding or update an exiting Binding. * * @summary Create a new Binding or update an exiting Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_CreateOrUpdate.json */ async function bindingsCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsDeleteSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsDeleteSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsDeleteSample.js index b66d00e403d9..e4b6847a1dc8 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsDeleteSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsDeleteSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Operation to delete a Binding. * * @summary Operation to delete a Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Delete.json */ async function bindingsDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsGetSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsGetSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsGetSample.js index 45c816f6d173..169cb2421468 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsGetSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsGetSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get a Binding and its properties. * * @summary Get a Binding and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Get.json */ async function bindingsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsListSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsListSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsListSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsListSample.js index 55ea16d417aa..c01e5f9ffe3e 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsListSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsListSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Handles requests to list all resources in an App. * * @summary Handles requests to list all resources in an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_List.json */ async function bindingsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsUpdateSample.js similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsUpdateSample.js index 2c165503921d..a95c959becbb 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/bindingsUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/bindingsUpdateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Operation to update an exiting Binding. * * @summary Operation to update an exiting Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Update.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Update.json */ async function bindingsUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceAgentPoolGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceAgentPoolGetSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceAgentPoolGetSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceAgentPoolGetSample.js index c0aa001e00fe..1469f4077df1 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceAgentPoolGetSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceAgentPoolGetSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get build service agent pool. * * @summary Get build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_Get.json */ async function buildServiceAgentPoolGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceAgentPoolListSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceAgentPoolListSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceAgentPoolListSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceAgentPoolListSample.js index 5a31b65837ca..bc02ed27129e 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceAgentPoolListSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceAgentPoolListSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to List build service agent pool. * * @summary List build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_List.json */ async function buildServiceAgentPoolList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceAgentPoolUpdatePutSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceAgentPoolUpdatePutSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceAgentPoolUpdatePutSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceAgentPoolUpdatePutSample.js index 954c84fc5728..0af2591c2aa4 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceAgentPoolUpdatePutSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceAgentPoolUpdatePutSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Create or update build service agent pool. * * @summary Create or update build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_UpdatePut.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_UpdatePut.json */ async function buildServiceAgentPoolUpdatePut() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderCreateOrUpdateSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderCreateOrUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderCreateOrUpdateSample.js index 0e96bca2fac9..a41f24601032 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderCreateOrUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderCreateOrUpdateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Create or update a KPack builder. * * @summary Create or update a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_CreateOrUpdate.json */ async function buildServiceBuilderCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderDeleteSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderDeleteSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderDeleteSample.js index 14027f84c1e6..d1da35b540dd 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderDeleteSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderDeleteSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Delete a KPack builder. * * @summary Delete a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_Delete.json */ async function buildServiceBuilderDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderGetSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderGetSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderGetSample.js index a127d4d68ac9..cbdc204a4d71 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceBuilderGetSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderGetSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get a KPack builder. * * @summary Get a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_Get.json */ async function buildServiceBuilderGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderListSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderListSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderListSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderListSample.js index 16c8f0184f8a..cec2cd9cd3db 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceBuilderListSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceBuilderListSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to List KPack builders result. * * @summary List KPack builders result. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_List.json */ async function buildServiceBuilderList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceCreateOrUpdateBuildSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceCreateOrUpdateBuildSample.js similarity index 95% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceCreateOrUpdateBuildSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceCreateOrUpdateBuildSample.js index ae9e24d66a50..2194a99b5dd2 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceCreateOrUpdateBuildSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceCreateOrUpdateBuildSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Create or update a KPack build. * * @summary Create or update a KPack build. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_CreateOrUpdateBuild.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_CreateOrUpdateBuild.json */ async function buildServiceCreateOrUpdateBuild() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildResultLogSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildResultLogSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildResultLogSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildResultLogSample.js index bb98f3feaae5..848f561ce2c2 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildResultLogSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildResultLogSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get a KPack build result log download URL. * * @summary Get a KPack build result log download URL. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResultLog.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildResultLog.json */ async function buildServiceGetBuildResultLog() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildResultSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildResultSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildResultSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildResultSample.js index 4023cda94d93..cca95e4f5909 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildResultSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildResultSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get a KPack build result. * * @summary Get a KPack build result. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResult.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildResult.json */ async function buildServiceGetBuildResult() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildSample.js index b3efa0d0fe36..c5b20a5cb0ca 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetBuildSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get a KPack build. * * @summary Get a KPack build. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuild.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuild.json */ async function buildServiceGetBuild() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildServiceSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildServiceSample.js similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildServiceSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildServiceSample.js index 085de81667fe..57f9195f3791 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetBuildServiceSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetBuildServiceSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get a build service resource. * * @summary Get a build service resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildService.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildService.json */ async function buildServiceGetBuildService() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetResourceUploadUrlSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetResourceUploadUrlSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetResourceUploadUrlSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetResourceUploadUrlSample.js index 738e4abb05a3..45ec6477a865 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetResourceUploadUrlSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetResourceUploadUrlSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get an resource upload URL for build service, which may be artifacts or source archive. * * @summary Get an resource upload URL for build service, which may be artifacts or source archive. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetResourceUploadUrl.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetResourceUploadUrl.json */ async function buildServiceGetResourceUploadUrl() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetSupportedBuildpackSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetSupportedBuildpackSample.js similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetSupportedBuildpackSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetSupportedBuildpackSample.js index 7afc007e1299..ff5001592d5c 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceGetSupportedBuildpackSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetSupportedBuildpackSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get the supported buildpack resource. * * @summary Get the supported buildpack resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedBuildpack.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetSupportedBuildpack.json */ async function buildServiceGetSupportedBuildpack() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetSupportedStackSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetSupportedStackSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetSupportedStackSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetSupportedStackSample.js index 26e9c784528c..f98bac5a9842 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceGetSupportedStackSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceGetSupportedStackSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get the supported stack resource. * * @summary Get the supported stack resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedStack.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetSupportedStack.json */ async function buildServiceGetSupportedStack() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListBuildResultsSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListBuildResultsSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListBuildResultsSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListBuildResultsSample.js index a4d7918ac1f5..201dd7afeccd 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListBuildResultsSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListBuildResultsSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to List KPack build results. * * @summary List KPack build results. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildResults.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuildResults.json */ async function buildServiceListBuildResults() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListBuildServicesSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListBuildServicesSample.js similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListBuildServicesSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListBuildServicesSample.js index 2218a92b73ff..93273a556a47 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListBuildServicesSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListBuildServicesSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to List build services resource. * * @summary List build services resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildServices.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuildServices.json */ async function buildServiceListBuildServices() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListBuildsSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListBuildsSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListBuildsSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListBuildsSample.js index 4e1121befcc6..0269396b9c25 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListBuildsSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListBuildsSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to List KPack builds. * * @summary List KPack builds. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuilds.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuilds.json */ async function buildServiceListBuilds() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListSupportedBuildpacksSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListSupportedBuildpacksSample.js similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListSupportedBuildpacksSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListSupportedBuildpacksSample.js index fd58fa83fd70..5b36b19156c5 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildServiceListSupportedBuildpacksSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListSupportedBuildpacksSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get all supported buildpacks. * * @summary Get all supported buildpacks. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedBuildpacks.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListSupportedBuildpacks.json */ async function buildServiceListSupportedBuildpacks() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListSupportedStacksSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListSupportedStacksSample.js similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListSupportedStacksSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListSupportedStacksSample.js index 05926dd98fdb..6d826a712a26 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildServiceListSupportedStacksSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildServiceListSupportedStacksSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get all supported stacks. * * @summary Get all supported stacks. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedStacks.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListSupportedStacks.json */ async function buildServiceListSupportedStacks() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingCreateOrUpdateSample.js similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingCreateOrUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingCreateOrUpdateSample.js index 83805d1f8bc2..02a502e1ca03 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingCreateOrUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingCreateOrUpdateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Create or update a buildpack binding. * * @summary Create or update a buildpack binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_CreateOrUpdate.json */ async function buildpackBindingCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingDeleteSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingDeleteSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingDeleteSample.js index bb99283f92c9..d7ae00c38e1f 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/buildpackBindingDeleteSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingDeleteSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Operation to delete a Buildpack Binding * * @summary Operation to delete a Buildpack Binding - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_Delete.json */ async function buildpackBindingDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingGetSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingGetSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingGetSample.js index 6404503db150..9bbd8a63927d 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingGetSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingGetSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get a buildpack binding by name. * * @summary Get a buildpack binding by name. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_Get.json */ async function buildpackBindingGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingListSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingListSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingListSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingListSample.js index d2c1598dc6c8..a33fa6a2f188 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/buildpackBindingListSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/buildpackBindingListSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Handles requests to list all buildpack bindings in a builder. * * @summary Handles requests to list all buildpack bindings in a builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_List.json */ async function buildpackBindingGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesCreateOrUpdateSample.js similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesCreateOrUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesCreateOrUpdateSample.js index b3ff553c185e..db6730fa5aa3 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/certificatesCreateOrUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesCreateOrUpdateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Create or update certificate resource. * * @summary Create or update certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_CreateOrUpdate.json */ async function certificatesCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesDeleteSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesDeleteSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesDeleteSample.js index 6df1ca1cdcb4..303b664a338b 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesDeleteSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesDeleteSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Delete the certificate resource. * * @summary Delete the certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_Delete.json */ async function certificatesDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesGetSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesGetSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesGetSample.js index f1dd6d157899..263b7908d409 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesGetSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesGetSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get the certificate resource. * * @summary Get the certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_Get.json */ async function certificatesGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesListSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesListSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesListSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesListSample.js index e0194b6994e9..4717ca5df57a 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/certificatesListSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/certificatesListSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to List all the certificates of one user. * * @summary List all the certificates of one user. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_List.json */ async function certificatesList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersGetSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersGetSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersGetSample.js index 987bc66a536c..797e6158772b 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersGetSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersGetSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get the config server and its properties. * * @summary Get the config server and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_Get.json */ async function configServersGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersUpdatePatchSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersUpdatePatchSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersUpdatePatchSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersUpdatePatchSample.js index 88ef9101154f..a3687f3ca62f 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersUpdatePatchSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersUpdatePatchSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Update the config server. * * @summary Update the config server. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePatch.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_UpdatePatch.json */ async function configServersUpdatePatch() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersUpdatePutSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersUpdatePutSample.js similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersUpdatePutSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersUpdatePutSample.js index b6f317df5a1f..24a31319de1c 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configServersUpdatePutSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersUpdatePutSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Update the config server. * * @summary Update the config server. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePut.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_UpdatePut.json */ async function configServersUpdatePut() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersValidateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersValidateSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersValidateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersValidateSample.js index 05fb4f30e14c..16b8725196ac 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configServersValidateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configServersValidateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Check if the config server settings are valid. * * @summary Check if the config server settings are valid. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Validate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_Validate.json */ async function configServersValidate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesCreateOrUpdateSample.js similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesCreateOrUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesCreateOrUpdateSample.js index fd5dba0174ac..6d3773f8f6f3 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesCreateOrUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesCreateOrUpdateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Create the default Application Configuration Service or update the existing Application Configuration Service. * * @summary Create the default Application Configuration Service or update the existing Application Configuration Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_CreateOrUpdate.json */ async function configurationServicesCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesDeleteSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesDeleteSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesDeleteSample.js index f7617591ace3..921c8ba3a0da 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/configurationServicesDeleteSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesDeleteSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Disable the default Application Configuration Service. * * @summary Disable the default Application Configuration Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Delete.json */ async function configurationServicesDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesGetSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesGetSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesGetSample.js index b5ab685bfd27..bf75ee0353d0 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesGetSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesGetSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get the Application Configuration Service and its properties. * * @summary Get the Application Configuration Service and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Get.json */ async function configurationServicesGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesListSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesListSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesListSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesListSample.js index 48111fecaec9..e3e2fa915e8e 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesListSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesListSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Handles requests to list all resources in a Service. * * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_List.json */ async function configurationServicesList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesValidateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesValidateSample.js similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesValidateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesValidateSample.js index a1554543a226..fce28d8143ab 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/configurationServicesValidateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/configurationServicesValidateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Check if the Application Configuration Service settings are valid. * * @summary Check if the Application Configuration Service settings are valid. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Validate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Validate.json */ async function configurationServicesValidate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsCreateOrUpdateSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsCreateOrUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsCreateOrUpdateSample.js index 8af9b913aeef..c391cef332f5 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsCreateOrUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsCreateOrUpdateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Create or update custom domain of one lifecycle application. * * @summary Create or update custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_CreateOrUpdate.json */ async function customDomainsCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsDeleteSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsDeleteSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsDeleteSample.js index 71312b5c29a5..5477bb1d817d 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsDeleteSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsDeleteSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Delete the custom domain of one lifecycle application. * * @summary Delete the custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Delete.json */ async function customDomainsDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsGetSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsGetSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsGetSample.js index e5e634a26d27..9ff1206f928c 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/customDomainsGetSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsGetSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get the custom domain of one lifecycle application. * * @summary Get the custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Get.json */ async function customDomainsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsListSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsListSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsListSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsListSample.js index d46883582e9b..e5a4b8180277 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsListSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsListSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to List the custom domains of one lifecycle application. * * @summary List the custom domains of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_List.json */ async function customDomainsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsUpdateSample.js similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsUpdateSample.js index d6df10c2276c..902e5c3c0fd2 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/customDomainsUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/customDomainsUpdateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Update custom domain of one lifecycle application. * * @summary Update custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Update.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Update.json */ async function customDomainsUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsCreateOrUpdateSample.js similarity index 52% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsCreateOrUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsCreateOrUpdateSample.js index d1ec495d4ca1..2193b5dc41a1 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsCreateOrUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsCreateOrUpdateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Create a new Deployment or update an exiting Deployment. * * @summary Create a new Deployment or update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_CreateOrUpdate.json */ async function deploymentsCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; @@ -56,52 +56,3 @@ async function deploymentsCreateOrUpdate() { } deploymentsCreateOrUpdate().catch(console.error); - -/** - * This sample demonstrates how to Create a new Deployment or update an exiting Deployment. - * - * @summary Create a new Deployment or update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_CreateOrUpdate_CustomContainer.json - */ -async function deploymentsCreateOrUpdateCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource = { - properties: { - deploymentSettings: { - environmentVariables: { env: "test" }, - resourceRequests: { cpu: "1000m", memory: "3Gi" }, - }, - instances: [], - source: { - type: "Container", - customContainer: { - args: ["-c", "while true; do echo hello; sleep 10;done"], - command: ["/bin/sh"], - containerImage: "myContainerImage:v1", - imageRegistryCredential: { - password: "myPassword", - username: "myUsername", - }, - languageFramework: "springboot", - server: "myacr.azurecr.io", - }, - }, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsCreateOrUpdateCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsDeleteSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsDeleteSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsDeleteSample.js index ca244ad67372..0956ecee711c 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsDeleteSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsDeleteSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Operation to delete a Deployment. * * @summary Operation to delete a Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Delete.json */ async function deploymentsDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGenerateHeapDumpSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGenerateHeapDumpSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGenerateHeapDumpSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGenerateHeapDumpSample.js index 41bfd9209305..6922c3eb3704 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGenerateHeapDumpSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGenerateHeapDumpSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Generate Heap Dump * * @summary Generate Heap Dump - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateHeapDump.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GenerateHeapDump.json */ async function deploymentsGenerateHeapDump() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGenerateThreadDumpSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGenerateThreadDumpSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGenerateThreadDumpSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGenerateThreadDumpSample.js index d826086cc076..3b0e5e978644 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsGenerateThreadDumpSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGenerateThreadDumpSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Generate Thread Dump * * @summary Generate Thread Dump - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateThreadDump.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GenerateThreadDump.json */ async function deploymentsGenerateHeapDump() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGetLogFileUrlSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGetLogFileUrlSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGetLogFileUrlSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGetLogFileUrlSample.js index a5fce1ad9dbb..b7bb8790f7f8 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsGetLogFileUrlSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGetLogFileUrlSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get deployment log file URL * * @summary Get deployment log file URL - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GetLogFileUrl.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GetLogFileUrl.json */ async function deploymentsGetLogFileUrl() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsStartSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGetSample.js similarity index 75% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsStartSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGetSample.js index 0cb73dcfe212..b5acca5283b1 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsStartSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsGetSample.js @@ -12,12 +12,12 @@ const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); const { DefaultAzureCredential } = require("@azure/identity"); /** - * This sample demonstrates how to Start the deployment. + * This sample demonstrates how to Get a Deployment and its properties. * - * @summary Start the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Start.json + * @summary Get a Deployment and its properties. + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Get.json */ -async function deploymentsStart() { +async function deploymentsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const resourceGroupName = "myResourceGroup"; const serviceName = "myservice"; @@ -25,7 +25,7 @@ async function deploymentsStart() { const deploymentName = "mydeployment"; const credential = new DefaultAzureCredential(); const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginStartAndWait( + const result = await client.deployments.get( resourceGroupName, serviceName, appName, @@ -34,4 +34,4 @@ async function deploymentsStart() { console.log(result); } -deploymentsStart().catch(console.error); +deploymentsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsListForClusterSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsListForClusterSample.js similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsListForClusterSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsListForClusterSample.js index 949eaf0b97ea..cc5f2fb47b13 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsListForClusterSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsListForClusterSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to List deployments for a certain service * * @summary List deployments for a certain service - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_ListForCluster.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_ListForCluster.json */ async function deploymentsListForCluster() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsListSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsListSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsListSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsListSample.js index ed5a189a45a5..37f334cc010e 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsListSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsListSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Handles requests to list all resources in an App. * * @summary Handles requests to list all resources in an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_List.json */ async function deploymentsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsRestartSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsRestartSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsRestartSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsRestartSample.js index 0a86c26a7200..317a51ca1285 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsRestartSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsRestartSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Restart the deployment. * * @summary Restart the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Restart.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Restart.json */ async function deploymentsRestart() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsStartJfrSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsStartJfrSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsStartJfrSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsStartJfrSample.js index 84fc093f7083..1acb5cb40982 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsStartJfrSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsStartJfrSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Start JFR * * @summary Start JFR - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_StartJFR.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_StartJFR.json */ async function deploymentsStartJfr() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsStartSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsStartSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsStartSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsStartSample.js index 0cb73dcfe212..f7ad5e40b82e 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/deploymentsStartSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsStartSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Start the deployment. * * @summary Start the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Start.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Start.json */ async function deploymentsStart() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsStopSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsStopSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsStopSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsStopSample.js index 80c6da632547..4c72fcd1d84b 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/deploymentsStopSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsStopSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Stop the deployment. * * @summary Stop the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Stop.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Stop.json */ async function deploymentsStop() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsUpdateSample.js similarity index 59% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsUpdateSample.js index 2c165503921d..dc35324043bc 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/bindingsUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/deploymentsUpdateSample.js @@ -12,36 +12,39 @@ const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); const { DefaultAzureCredential } = require("@azure/identity"); /** - * This sample demonstrates how to Operation to update an exiting Binding. + * This sample demonstrates how to Operation to update an exiting Deployment. * - * @summary Operation to update an exiting Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Update.json + * @summary Operation to update an exiting Deployment. + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Update.json */ -async function bindingsUpdate() { +async function deploymentsUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const resourceGroupName = "myResourceGroup"; const serviceName = "myservice"; const appName = "myapp"; - const bindingName = "mybinding"; - const bindingResource = { + const deploymentName = "mydeployment"; + const deploymentResource = { properties: { - bindingParameters: { apiType: "SQL", databaseName: "db1" }, - createdAt: undefined, - generatedProperties: undefined, - key: "xxxx", - updatedAt: undefined, + instances: [], + source: { + type: "Source", + artifactSelector: "sub-module-1", + relativePath: + "resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc", + version: "1.0", + }, }, }; const credential = new DefaultAzureCredential(); const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.bindings.beginUpdateAndWait( + const result = await client.deployments.beginUpdateAndWait( resourceGroupName, serviceName, appName, - bindingName, - bindingResource + deploymentName, + deploymentResource ); console.log(result); } -bindingsUpdate().catch(console.error); +deploymentsUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/monitoringSettingsGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/monitoringSettingsGetSample.js similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/monitoringSettingsGetSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/monitoringSettingsGetSample.js index 8a8fb495471a..59d8825a10ee 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/monitoringSettingsGetSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/monitoringSettingsGetSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get the Monitoring Setting and its properties. * * @summary Get the Monitoring Setting and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_Get.json */ async function monitoringSettingsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/monitoringSettingsUpdatePatchSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/monitoringSettingsUpdatePatchSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/monitoringSettingsUpdatePatchSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/monitoringSettingsUpdatePatchSample.js index 124ba3fd58cd..4a7f0d9de0ac 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/monitoringSettingsUpdatePatchSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/monitoringSettingsUpdatePatchSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Update the Monitoring Setting. * * @summary Update the Monitoring Setting. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePatch.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_UpdatePatch.json */ async function monitoringSettingsUpdatePatch() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/monitoringSettingsUpdatePutSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/monitoringSettingsUpdatePutSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/monitoringSettingsUpdatePutSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/monitoringSettingsUpdatePutSample.js index 5e86444aab79..9c2e0a2c3275 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/monitoringSettingsUpdatePutSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/monitoringSettingsUpdatePutSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Update the Monitoring Setting. * * @summary Update the Monitoring Setting. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePut.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_UpdatePut.json */ async function monitoringSettingsUpdatePut() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/operationsListSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/operationsListSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/operationsListSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/operationsListSample.js index bb7749e70011..4c4a43678020 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/operationsListSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/operationsListSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.AppPlatform provider. * * @summary Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Operations_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Operations_List.json */ async function operationsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/package.json b/sdk/appplatform/arm-appplatform/samples/v2/javascript/package.json similarity index 80% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/package.json rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/package.json index 4e048119a845..d11a64565ac8 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/package.json +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-appplatform-js-beta", + "name": "@azure-samples/arm-appplatform-js", "private": true, "version": "1.0.0", - "description": " client library samples for JavaScript (Beta)", + "description": " client library samples for JavaScript", "engines": { "node": ">=12.0.0" }, @@ -25,7 +25,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform", "dependencies": { - "@azure/arm-appplatform": "next", + "@azure/arm-appplatform": "latest", "dotenv": "latest", "@azure/identity": "^2.0.1" } diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/runtimeVersionsListRuntimeVersionsSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/runtimeVersionsListRuntimeVersionsSample.js similarity index 91% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/runtimeVersionsListRuntimeVersionsSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/runtimeVersionsListRuntimeVersionsSample.js index e56ce8d10d79..9bfa2e67bcf8 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/runtimeVersionsListRuntimeVersionsSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/runtimeVersionsListRuntimeVersionsSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. * * @summary Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/RuntimeVersions_ListRuntimeVersions.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/RuntimeVersions_ListRuntimeVersions.json */ async function runtimeVersionsListRuntimeVersions() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/sample.env b/sdk/appplatform/arm-appplatform/samples/v2/javascript/sample.env similarity index 100% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/sample.env rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/sample.env diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesCreateOrUpdateSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesCreateOrUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesCreateOrUpdateSample.js index 15b72cca8fda..13f7fe21352a 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesCreateOrUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesCreateOrUpdateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Create the default Service Registry or update the existing Service Registry. * * @summary Create the default Service Registry or update the existing Service Registry. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_CreateOrUpdate.json */ async function serviceRegistriesCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesDeleteSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesDeleteSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesDeleteSample.js index 68d69b3d4c22..f10bb7dc0e2e 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/serviceRegistriesDeleteSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesDeleteSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Disable the default Service Registry. * * @summary Disable the default Service Registry. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_Delete.json */ async function serviceRegistriesDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesGetSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesGetSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesGetSample.js index 74f4aeff281b..3e2e66f1fd0e 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesGetSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesGetSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get the Service Registry and its properties. * * @summary Get the Service Registry and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_Get.json */ async function serviceRegistriesGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesListSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesListSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesListSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesListSample.js index 90e9704605a6..dcb198b76069 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/serviceRegistriesListSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/serviceRegistriesListSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Handles requests to list all resources in a Service. * * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_List.json */ async function serviceRegistriesList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesCheckNameAvailabilitySample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesCheckNameAvailabilitySample.js similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesCheckNameAvailabilitySample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesCheckNameAvailabilitySample.js index a0dd5ec0ea51..4cefc9a9d5b9 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesCheckNameAvailabilitySample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesCheckNameAvailabilitySample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Checks that the resource name is valid and is not already in use. * * @summary Checks that the resource name is valid and is not already in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CheckNameAvailability.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_CheckNameAvailability.json */ async function servicesCheckNameAvailability() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesCreateOrUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesCreateOrUpdateSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesCreateOrUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesCreateOrUpdateSample.js index b3fbcc82fa73..4f4eae338ca7 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesCreateOrUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesCreateOrUpdateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Create a new Service or update an exiting Service. * * @summary Create a new Service or update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_CreateOrUpdate.json */ async function servicesCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; @@ -43,7 +43,7 @@ servicesCreateOrUpdate().catch(console.error); * This sample demonstrates how to Create a new Service or update an exiting Service. * * @summary Create a new Service or update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CreateOrUpdate_VNetInjection.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_CreateOrUpdate_VNetInjection.json */ async function servicesCreateOrUpdateVNetInjection() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesDeleteSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesDeleteSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesDeleteSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesDeleteSample.js index 4645eae82380..9c11c5fe9767 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesDeleteSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesDeleteSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Operation to delete a Service. * * @summary Operation to delete a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Delete.json */ async function servicesDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesDisableTestEndpointSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesDisableTestEndpointSample.js similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesDisableTestEndpointSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesDisableTestEndpointSample.js index c849b9231752..df836dcca485 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesDisableTestEndpointSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesDisableTestEndpointSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Disable test endpoint functionality for a Service. * * @summary Disable test endpoint functionality for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_DisableTestEndpoint.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_DisableTestEndpoint.json */ async function servicesDisableTestEndpoint() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesEnableTestEndpointSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesEnableTestEndpointSample.js similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesEnableTestEndpointSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesEnableTestEndpointSample.js index b1671b944114..0a002005b1c3 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesEnableTestEndpointSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesEnableTestEndpointSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Enable test endpoint functionality for a Service. * * @summary Enable test endpoint functionality for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_EnableTestEndpoint.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_EnableTestEndpoint.json */ async function servicesEnableTestEndpoint() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesGetSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesGetSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesGetSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesGetSample.js index 06ab762d8d36..12ab22a1d3b9 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesGetSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesGetSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Get a Service and its properties. * * @summary Get a Service and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Get.json */ async function servicesGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesListBySubscriptionSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesListBySubscriptionSample.js similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesListBySubscriptionSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesListBySubscriptionSample.js index 933dfcb61827..6b0c37085cae 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesListBySubscriptionSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesListBySubscriptionSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Handles requests to list all resources in a subscription. * * @summary Handles requests to list all resources in a subscription. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListBySubscription.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_ListBySubscription.json */ async function servicesListBySubscription() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesListSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesListSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesListSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesListSample.js index e267d5942c79..ec7a66773a34 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesListSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesListSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Handles requests to list all resources in a resource group. * * @summary Handles requests to list all resources in a resource group. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_List.json */ async function servicesList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesListTestKeysSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesListTestKeysSample.js similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesListTestKeysSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesListTestKeysSample.js index 8c2e15020624..82d3d392d38d 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesListTestKeysSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesListTestKeysSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to List test keys for a Service. * * @summary List test keys for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListTestKeys.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_ListTestKeys.json */ async function servicesListTestKeys() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesRegenerateTestKeySample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesRegenerateTestKeySample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesRegenerateTestKeySample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesRegenerateTestKeySample.js index 3c8a39573edd..af01479b86df 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/servicesRegenerateTestKeySample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesRegenerateTestKeySample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Regenerate a test key for a Service. * * @summary Regenerate a test key for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_RegenerateTestKey.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_RegenerateTestKey.json */ async function servicesRegenerateTestKey() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesUpdateSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesUpdateSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesUpdateSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesUpdateSample.js index 76ce8f9ef4cf..926ecabdaa6f 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/javascript/servicesUpdateSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/servicesUpdateSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Operation to update an exiting Service. * * @summary Operation to update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Update.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Update.json */ async function servicesUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/skusListSample.js b/sdk/appplatform/arm-appplatform/samples/v2/javascript/skusListSample.js similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/skusListSample.js rename to sdk/appplatform/arm-appplatform/samples/v2/javascript/skusListSample.js index 6f005fcc99af..dec29a551ac0 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/javascript/skusListSample.js +++ b/sdk/appplatform/arm-appplatform/samples/v2/javascript/skusListSample.js @@ -15,7 +15,7 @@ const { DefaultAzureCredential } = require("@azure/identity"); * This sample demonstrates how to Lists all of the available skus of the Microsoft.AppPlatform provider. * * @summary Lists all of the available skus of the Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Skus_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Skus_List.json */ async function skusList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2/typescript/README.md b/sdk/appplatform/arm-appplatform/samples/v2/typescript/README.md new file mode 100644 index 000000000000..20d018e851c7 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/README.md @@ -0,0 +1,239 @@ +# client library samples for TypeScript + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [appsCreateOrUpdateSample.ts][appscreateorupdatesample] | Create a new App or update an exiting App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_CreateOrUpdate.json | +| [appsDeleteSample.ts][appsdeletesample] | Operation to delete an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Delete.json | +| [appsGetResourceUploadUrlSample.ts][appsgetresourceuploadurlsample] | Get an resource upload URL for an App, which may be artifacts or source archive. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_GetResourceUploadUrl.json | +| [appsGetSample.ts][appsgetsample] | Get an App and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Get.json | +| [appsListSample.ts][appslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_List.json | +| [appsSetActiveDeploymentsSample.ts][appssetactivedeploymentssample] | Set existing Deployment under the app as active x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_SetActiveDeployments.json | +| [appsUpdateSample.ts][appsupdatesample] | Operation to update an exiting App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Update.json | +| [appsValidateDomainSample.ts][appsvalidatedomainsample] | Check the resource name is valid as well as not in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_ValidateDomain.json | +| [bindingsCreateOrUpdateSample.ts][bindingscreateorupdatesample] | Create a new Binding or update an exiting Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_CreateOrUpdate.json | +| [bindingsDeleteSample.ts][bindingsdeletesample] | Operation to delete a Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Delete.json | +| [bindingsGetSample.ts][bindingsgetsample] | Get a Binding and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Get.json | +| [bindingsListSample.ts][bindingslistsample] | Handles requests to list all resources in an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_List.json | +| [bindingsUpdateSample.ts][bindingsupdatesample] | Operation to update an exiting Binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Update.json | +| [buildServiceAgentPoolGetSample.ts][buildserviceagentpoolgetsample] | Get build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_Get.json | +| [buildServiceAgentPoolListSample.ts][buildserviceagentpoollistsample] | List build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_List.json | +| [buildServiceAgentPoolUpdatePutSample.ts][buildserviceagentpoolupdateputsample] | Create or update build service agent pool. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_UpdatePut.json | +| [buildServiceBuilderCreateOrUpdateSample.ts][buildservicebuildercreateorupdatesample] | Create or update a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_CreateOrUpdate.json | +| [buildServiceBuilderDeleteSample.ts][buildservicebuilderdeletesample] | Delete a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_Delete.json | +| [buildServiceBuilderGetSample.ts][buildservicebuildergetsample] | Get a KPack builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_Get.json | +| [buildServiceBuilderListSample.ts][buildservicebuilderlistsample] | List KPack builders result. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_List.json | +| [buildServiceCreateOrUpdateBuildSample.ts][buildservicecreateorupdatebuildsample] | Create or update a KPack build. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_CreateOrUpdateBuild.json | +| [buildServiceGetBuildResultLogSample.ts][buildservicegetbuildresultlogsample] | Get a KPack build result log download URL. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildResultLog.json | +| [buildServiceGetBuildResultSample.ts][buildservicegetbuildresultsample] | Get a KPack build result. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildResult.json | +| [buildServiceGetBuildSample.ts][buildservicegetbuildsample] | Get a KPack build. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuild.json | +| [buildServiceGetBuildServiceSample.ts][buildservicegetbuildservicesample] | Get a build service resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildService.json | +| [buildServiceGetResourceUploadUrlSample.ts][buildservicegetresourceuploadurlsample] | Get an resource upload URL for build service, which may be artifacts or source archive. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetResourceUploadUrl.json | +| [buildServiceGetSupportedBuildpackSample.ts][buildservicegetsupportedbuildpacksample] | Get the supported buildpack resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetSupportedBuildpack.json | +| [buildServiceGetSupportedStackSample.ts][buildservicegetsupportedstacksample] | Get the supported stack resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetSupportedStack.json | +| [buildServiceListBuildResultsSample.ts][buildservicelistbuildresultssample] | List KPack build results. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuildResults.json | +| [buildServiceListBuildServicesSample.ts][buildservicelistbuildservicessample] | List build services resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuildServices.json | +| [buildServiceListBuildsSample.ts][buildservicelistbuildssample] | List KPack builds. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuilds.json | +| [buildServiceListSupportedBuildpacksSample.ts][buildservicelistsupportedbuildpackssample] | Get all supported buildpacks. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListSupportedBuildpacks.json | +| [buildServiceListSupportedStacksSample.ts][buildservicelistsupportedstackssample] | Get all supported stacks. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListSupportedStacks.json | +| [buildpackBindingCreateOrUpdateSample.ts][buildpackbindingcreateorupdatesample] | Create or update a buildpack binding. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_CreateOrUpdate.json | +| [buildpackBindingDeleteSample.ts][buildpackbindingdeletesample] | Operation to delete a Buildpack Binding x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_Delete.json | +| [buildpackBindingGetSample.ts][buildpackbindinggetsample] | Get a buildpack binding by name. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_Get.json | +| [buildpackBindingListSample.ts][buildpackbindinglistsample] | Handles requests to list all buildpack bindings in a builder. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_List.json | +| [certificatesCreateOrUpdateSample.ts][certificatescreateorupdatesample] | Create or update certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_CreateOrUpdate.json | +| [certificatesDeleteSample.ts][certificatesdeletesample] | Delete the certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_Delete.json | +| [certificatesGetSample.ts][certificatesgetsample] | Get the certificate resource. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_Get.json | +| [certificatesListSample.ts][certificateslistsample] | List all the certificates of one user. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_List.json | +| [configServersGetSample.ts][configserversgetsample] | Get the config server and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_Get.json | +| [configServersUpdatePatchSample.ts][configserversupdatepatchsample] | Update the config server. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_UpdatePatch.json | +| [configServersUpdatePutSample.ts][configserversupdateputsample] | Update the config server. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_UpdatePut.json | +| [configServersValidateSample.ts][configserversvalidatesample] | Check if the config server settings are valid. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_Validate.json | +| [configurationServicesCreateOrUpdateSample.ts][configurationservicescreateorupdatesample] | Create the default Application Configuration Service or update the existing Application Configuration Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_CreateOrUpdate.json | +| [configurationServicesDeleteSample.ts][configurationservicesdeletesample] | Disable the default Application Configuration Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Delete.json | +| [configurationServicesGetSample.ts][configurationservicesgetsample] | Get the Application Configuration Service and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Get.json | +| [configurationServicesListSample.ts][configurationserviceslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_List.json | +| [configurationServicesValidateSample.ts][configurationservicesvalidatesample] | Check if the Application Configuration Service settings are valid. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Validate.json | +| [customDomainsCreateOrUpdateSample.ts][customdomainscreateorupdatesample] | Create or update custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_CreateOrUpdate.json | +| [customDomainsDeleteSample.ts][customdomainsdeletesample] | Delete the custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Delete.json | +| [customDomainsGetSample.ts][customdomainsgetsample] | Get the custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Get.json | +| [customDomainsListSample.ts][customdomainslistsample] | List the custom domains of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_List.json | +| [customDomainsUpdateSample.ts][customdomainsupdatesample] | Update custom domain of one lifecycle application. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Update.json | +| [deploymentsCreateOrUpdateSample.ts][deploymentscreateorupdatesample] | Create a new Deployment or update an exiting Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_CreateOrUpdate.json | +| [deploymentsDeleteSample.ts][deploymentsdeletesample] | Operation to delete a Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Delete.json | +| [deploymentsGenerateHeapDumpSample.ts][deploymentsgenerateheapdumpsample] | Generate Heap Dump x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GenerateHeapDump.json | +| [deploymentsGenerateThreadDumpSample.ts][deploymentsgeneratethreaddumpsample] | Generate Thread Dump x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GenerateThreadDump.json | +| [deploymentsGetLogFileUrlSample.ts][deploymentsgetlogfileurlsample] | Get deployment log file URL x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GetLogFileUrl.json | +| [deploymentsGetSample.ts][deploymentsgetsample] | Get a Deployment and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Get.json | +| [deploymentsListForClusterSample.ts][deploymentslistforclustersample] | List deployments for a certain service x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_ListForCluster.json | +| [deploymentsListSample.ts][deploymentslistsample] | Handles requests to list all resources in an App. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_List.json | +| [deploymentsRestartSample.ts][deploymentsrestartsample] | Restart the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Restart.json | +| [deploymentsStartJfrSample.ts][deploymentsstartjfrsample] | Start JFR x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_StartJFR.json | +| [deploymentsStartSample.ts][deploymentsstartsample] | Start the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Start.json | +| [deploymentsStopSample.ts][deploymentsstopsample] | Stop the deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Stop.json | +| [deploymentsUpdateSample.ts][deploymentsupdatesample] | Operation to update an exiting Deployment. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Update.json | +| [monitoringSettingsGetSample.ts][monitoringsettingsgetsample] | Get the Monitoring Setting and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_Get.json | +| [monitoringSettingsUpdatePatchSample.ts][monitoringsettingsupdatepatchsample] | Update the Monitoring Setting. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_UpdatePatch.json | +| [monitoringSettingsUpdatePutSample.ts][monitoringsettingsupdateputsample] | Update the Monitoring Setting. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_UpdatePut.json | +| [operationsListSample.ts][operationslistsample] | Lists all of the available REST API operations of the Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Operations_List.json | +| [runtimeVersionsListRuntimeVersionsSample.ts][runtimeversionslistruntimeversionssample] | Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/RuntimeVersions_ListRuntimeVersions.json | +| [serviceRegistriesCreateOrUpdateSample.ts][serviceregistriescreateorupdatesample] | Create the default Service Registry or update the existing Service Registry. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_CreateOrUpdate.json | +| [serviceRegistriesDeleteSample.ts][serviceregistriesdeletesample] | Disable the default Service Registry. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_Delete.json | +| [serviceRegistriesGetSample.ts][serviceregistriesgetsample] | Get the Service Registry and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_Get.json | +| [serviceRegistriesListSample.ts][serviceregistrieslistsample] | Handles requests to list all resources in a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_List.json | +| [servicesCheckNameAvailabilitySample.ts][serviceschecknameavailabilitysample] | Checks that the resource name is valid and is not already in use. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_CheckNameAvailability.json | +| [servicesCreateOrUpdateSample.ts][servicescreateorupdatesample] | Create a new Service or update an exiting Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_CreateOrUpdate.json | +| [servicesDeleteSample.ts][servicesdeletesample] | Operation to delete a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Delete.json | +| [servicesDisableTestEndpointSample.ts][servicesdisabletestendpointsample] | Disable test endpoint functionality for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_DisableTestEndpoint.json | +| [servicesEnableTestEndpointSample.ts][servicesenabletestendpointsample] | Enable test endpoint functionality for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_EnableTestEndpoint.json | +| [servicesGetSample.ts][servicesgetsample] | Get a Service and its properties. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Get.json | +| [servicesListBySubscriptionSample.ts][serviceslistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_ListBySubscription.json | +| [servicesListSample.ts][serviceslistsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_List.json | +| [servicesListTestKeysSample.ts][serviceslisttestkeyssample] | List test keys for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_ListTestKeys.json | +| [servicesRegenerateTestKeySample.ts][servicesregeneratetestkeysample] | Regenerate a test key for a Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_RegenerateTestKey.json | +| [servicesUpdateSample.ts][servicesupdatesample] | Operation to update an exiting Service. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Update.json | +| [skusListSample.ts][skuslistsample] | Lists all of the available skus of the Microsoft.AppPlatform provider. x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Skus_List.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/appsCreateOrUpdateSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env node dist/appsCreateOrUpdateSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[appscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsCreateOrUpdateSample.ts +[appsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsDeleteSample.ts +[appsgetresourceuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsGetResourceUploadUrlSample.ts +[appsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsGetSample.ts +[appslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsListSample.ts +[appssetactivedeploymentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsSetActiveDeploymentsSample.ts +[appsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsUpdateSample.ts +[appsvalidatedomainsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsValidateDomainSample.ts +[bindingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsCreateOrUpdateSample.ts +[bindingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsDeleteSample.ts +[bindingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsGetSample.ts +[bindingslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsListSample.ts +[bindingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsUpdateSample.ts +[buildserviceagentpoolgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceAgentPoolGetSample.ts +[buildserviceagentpoollistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceAgentPoolListSample.ts +[buildserviceagentpoolupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceAgentPoolUpdatePutSample.ts +[buildservicebuildercreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts +[buildservicebuilderdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderDeleteSample.ts +[buildservicebuildergetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderGetSample.ts +[buildservicebuilderlistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderListSample.ts +[buildservicecreateorupdatebuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceCreateOrUpdateBuildSample.ts +[buildservicegetbuildresultlogsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildResultLogSample.ts +[buildservicegetbuildresultsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildResultSample.ts +[buildservicegetbuildsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildSample.ts +[buildservicegetbuildservicesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildServiceSample.ts +[buildservicegetresourceuploadurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetResourceUploadUrlSample.ts +[buildservicegetsupportedbuildpacksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetSupportedBuildpackSample.ts +[buildservicegetsupportedstacksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetSupportedStackSample.ts +[buildservicelistbuildresultssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListBuildResultsSample.ts +[buildservicelistbuildservicessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListBuildServicesSample.ts +[buildservicelistbuildssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListBuildsSample.ts +[buildservicelistsupportedbuildpackssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListSupportedBuildpacksSample.ts +[buildservicelistsupportedstackssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListSupportedStacksSample.ts +[buildpackbindingcreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingCreateOrUpdateSample.ts +[buildpackbindingdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingDeleteSample.ts +[buildpackbindinggetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingGetSample.ts +[buildpackbindinglistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingListSample.ts +[certificatescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesCreateOrUpdateSample.ts +[certificatesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesDeleteSample.ts +[certificatesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesGetSample.ts +[certificateslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesListSample.ts +[configserversgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersGetSample.ts +[configserversupdatepatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersUpdatePatchSample.ts +[configserversupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersUpdatePutSample.ts +[configserversvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersValidateSample.ts +[configurationservicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesCreateOrUpdateSample.ts +[configurationservicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesDeleteSample.ts +[configurationservicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesGetSample.ts +[configurationserviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesListSample.ts +[configurationservicesvalidatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesValidateSample.ts +[customdomainscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsCreateOrUpdateSample.ts +[customdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsDeleteSample.ts +[customdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsGetSample.ts +[customdomainslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsListSample.ts +[customdomainsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsUpdateSample.ts +[deploymentscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsCreateOrUpdateSample.ts +[deploymentsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsDeleteSample.ts +[deploymentsgenerateheapdumpsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGenerateHeapDumpSample.ts +[deploymentsgeneratethreaddumpsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGenerateThreadDumpSample.ts +[deploymentsgetlogfileurlsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGetLogFileUrlSample.ts +[deploymentsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGetSample.ts +[deploymentslistforclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsListForClusterSample.ts +[deploymentslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsListSample.ts +[deploymentsrestartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsRestartSample.ts +[deploymentsstartjfrsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsStartJfrSample.ts +[deploymentsstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsStartSample.ts +[deploymentsstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsStopSample.ts +[deploymentsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsUpdateSample.ts +[monitoringsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/monitoringSettingsGetSample.ts +[monitoringsettingsupdatepatchsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/monitoringSettingsUpdatePatchSample.ts +[monitoringsettingsupdateputsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/monitoringSettingsUpdatePutSample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/operationsListSample.ts +[runtimeversionslistruntimeversionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts +[serviceregistriescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesCreateOrUpdateSample.ts +[serviceregistriesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesDeleteSample.ts +[serviceregistriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesGetSample.ts +[serviceregistrieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesListSample.ts +[serviceschecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesCheckNameAvailabilitySample.ts +[servicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesCreateOrUpdateSample.ts +[servicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesDeleteSample.ts +[servicesdisabletestendpointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesDisableTestEndpointSample.ts +[servicesenabletestendpointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesEnableTestEndpointSample.ts +[servicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesGetSample.ts +[serviceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesListBySubscriptionSample.ts +[serviceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesListSample.ts +[serviceslisttestkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesListTestKeysSample.ts +[servicesregeneratetestkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesRegenerateTestKeySample.ts +[servicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesUpdateSample.ts +[skuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/skusListSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/package.json b/sdk/appplatform/arm-appplatform/samples/v2/typescript/package.json similarity index 84% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/package.json rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/package.json index e8dd6152e791..4592a8305945 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/package.json +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/package.json @@ -1,8 +1,8 @@ { - "name": "@azure-samples/arm-appplatform-ts-beta", + "name": "@azure-samples/arm-appplatform-ts", "private": true, "version": "1.0.0", - "description": " client library samples for TypeScript (Beta)", + "description": " client library samples for TypeScript", "engines": { "node": ">=12.0.0" }, @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform", "dependencies": { - "@azure/arm-appplatform": "next", + "@azure/arm-appplatform": "latest", "dotenv": "latest", "@azure/identity": "^2.0.1" }, diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/sample.env b/sdk/appplatform/arm-appplatform/samples/v2/typescript/sample.env similarity index 100% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/sample.env rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/sample.env diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsCreateOrUpdateSample.ts similarity index 72% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsCreateOrUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsCreateOrUpdateSample.ts index 3c240beaa1cc..ec0fc7eabc02 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create a new App or update an exiting App. * * @summary Create a new App or update an exiting App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_CreateOrUpdate.json */ async function appsCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; @@ -27,19 +27,9 @@ async function appsCreateOrUpdate() { const appName = "myapp"; const appResource: AppResource = { identity: { - type: "SystemAssigned,UserAssigned", + type: "SystemAssigned", principalId: undefined, - tenantId: undefined, - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": { - clientId: undefined, - principalId: undefined - }, - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": { - clientId: undefined, - principalId: undefined - } - } + tenantId: undefined }, location: "eastus", properties: { @@ -53,17 +43,6 @@ async function appsCreateOrUpdate() { "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/serviceRegistries/myServiceRegistry" } }, - customPersistentDisks: [ - { - customPersistentDiskProperties: { - type: "AzureFileVolume", - mountOptions: ["uid=0", "gid=0", "dir_mode=0777", "file_mode=0777"], - mountPath: "/mypath1/mypath2", - shareName: "myFileShare" - }, - storageId: "myASCStorageID" - } - ], enableEndToEndTLS: false, fqdn: "myapp.mydomain.com", httpsOnly: false, diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsDeleteSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsDeleteSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsDeleteSample.ts index 920b3db7a2e7..dfaa51860b49 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to delete an App. * * @summary Operation to delete an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Delete.json */ async function appsDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsGetResourceUploadUrlSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsGetResourceUploadUrlSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsGetResourceUploadUrlSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsGetResourceUploadUrlSample.ts index 5e66e3e4298b..b78f80930453 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsGetResourceUploadUrlSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsGetResourceUploadUrlSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get an resource upload URL for an App, which may be artifacts or source archive. * * @summary Get an resource upload URL for an App, which may be artifacts or source archive. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_GetResourceUploadUrl.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_GetResourceUploadUrl.json */ async function appsGetResourceUploadUrl() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsGetSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsGetSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsGetSample.ts index c3bd2d0a9b2d..9315caca5558 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get an App and its properties. * * @summary Get an App and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Get.json */ async function appsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsListSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsListSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsListSample.ts index 8008f13c1edf..c8911dd53f2a 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all resources in a Service. * * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_List.json */ async function appsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsSetActiveDeploymentsSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsSetActiveDeploymentsSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsSetActiveDeploymentsSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsSetActiveDeploymentsSample.ts index 5d8d3632f5ef..e8a35c63e85a 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsSetActiveDeploymentsSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsSetActiveDeploymentsSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Set existing Deployment under the app as active * * @summary Set existing Deployment under the app as active - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_SetActiveDeployments.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_SetActiveDeployments.json */ async function appsSetActiveDeployments() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsUpdateSample.ts similarity index 62% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsUpdateSample.ts index b7832ad3e93f..754e10525115 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/appsUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to update an exiting App. * * @summary Operation to update an exiting App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_Update.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_Update.json */ async function appsUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; @@ -27,33 +27,12 @@ async function appsUpdate() { const appName = "myapp"; const appResource: AppResource = { identity: { - type: "SystemAssigned,UserAssigned", + type: "SystemAssigned", principalId: undefined, - tenantId: undefined, - userAssignedIdentities: { - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": { - clientId: undefined, - principalId: undefined - }, - "/subscriptions/00000000000000000000000000000000/resourceGroups/samplegroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": { - clientId: undefined, - principalId: undefined - } - } + tenantId: undefined }, location: "eastus", properties: { - customPersistentDisks: [ - { - customPersistentDiskProperties: { - type: "AzureFileVolume", - mountOptions: [], - mountPath: "/mypath1/mypath2", - shareName: "myFileShare" - }, - storageId: "myASCStorageID" - } - ], enableEndToEndTLS: false, fqdn: "myapp.mydomain.com", httpsOnly: false, diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsValidateDomainSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsValidateDomainSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsValidateDomainSample.ts index 57ccfc6fe72d..8ed39e2cc420 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/appsValidateDomainSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/appsValidateDomainSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Check the resource name is valid as well as not in use. * * @summary Check the resource name is valid as well as not in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Apps_ValidateDomain.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Apps_ValidateDomain.json */ async function appsValidateDomain() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsCreateOrUpdateSample.ts similarity index 95% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsCreateOrUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsCreateOrUpdateSample.ts index ada9dd2344fa..3b6936a5623a 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create a new Binding or update an exiting Binding. * * @summary Create a new Binding or update an exiting Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_CreateOrUpdate.json */ async function bindingsCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsDeleteSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsDeleteSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsDeleteSample.ts index 291d496c6aa5..fc6c7c249c2e 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to delete a Binding. * * @summary Operation to delete a Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Delete.json */ async function bindingsDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsGetSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsGetSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsGetSample.ts index 486acacdd6da..0f5a4356b262 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a Binding and its properties. * * @summary Get a Binding and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Get.json */ async function bindingsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsListSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsListSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsListSample.ts index 54021ded717d..b3924856f6a8 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all resources in an App. * * @summary Handles requests to list all resources in an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_List.json */ async function bindingsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsUpdateSample.ts similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsUpdateSample.ts index b28afb7c3c9d..f206e36d2cdf 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/bindingsUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/bindingsUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to update an exiting Binding. * * @summary Operation to update an exiting Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Update.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Bindings_Update.json */ async function bindingsUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceAgentPoolGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceAgentPoolGetSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceAgentPoolGetSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceAgentPoolGetSample.ts index 844751ab423e..7069b594c637 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceAgentPoolGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceAgentPoolGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get build service agent pool. * * @summary Get build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_Get.json */ async function buildServiceAgentPoolGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceAgentPoolListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceAgentPoolListSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceAgentPoolListSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceAgentPoolListSample.ts index f3942f2d2ca2..0e214ac0d297 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceAgentPoolListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceAgentPoolListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List build service agent pool. * * @summary List build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_List.json */ async function buildServiceAgentPoolList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceAgentPoolUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceAgentPoolUpdatePutSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceAgentPoolUpdatePutSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceAgentPoolUpdatePutSample.ts index 60740254be14..c7f71b6ffd08 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceAgentPoolUpdatePutSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceAgentPoolUpdatePutSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create or update build service agent pool. * * @summary Create or update build service agent pool. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceAgentPool_UpdatePut.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceAgentPool_UpdatePut.json */ async function buildServiceAgentPoolUpdatePut() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts index 9fd9f2e922e1..f1d47db3e5a8 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create or update a KPack builder. * * @summary Create or update a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_CreateOrUpdate.json */ async function buildServiceBuilderCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderDeleteSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderDeleteSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderDeleteSample.ts index a5c149c6519b..4da5c890c61f 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Delete a KPack builder. * * @summary Delete a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_Delete.json */ async function buildServiceBuilderDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderGetSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderGetSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderGetSample.ts index b0853f0483d9..8abb7051b809 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceBuilderGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a KPack builder. * * @summary Get a KPack builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_Get.json */ async function buildServiceBuilderGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderListSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderListSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderListSample.ts index 5ffeaee55c0a..1e14570e387f 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceBuilderListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceBuilderListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List KPack builders result. * * @summary List KPack builders result. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildServiceBuilder_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildServiceBuilder_List.json */ async function buildServiceBuilderList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceCreateOrUpdateBuildSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceCreateOrUpdateBuildSample.ts similarity index 95% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceCreateOrUpdateBuildSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceCreateOrUpdateBuildSample.ts index d291119ad979..5e147630af1a 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceCreateOrUpdateBuildSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceCreateOrUpdateBuildSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create or update a KPack build. * * @summary Create or update a KPack build. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_CreateOrUpdateBuild.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_CreateOrUpdateBuild.json */ async function buildServiceCreateOrUpdateBuild() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildResultLogSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildResultLogSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildResultLogSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildResultLogSample.ts index 0c35bdefbee4..c3f3260c4fcb 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildResultLogSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildResultLogSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a KPack build result log download URL. * * @summary Get a KPack build result log download URL. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResultLog.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildResultLog.json */ async function buildServiceGetBuildResultLog() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildResultSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildResultSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildResultSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildResultSample.ts index 2c366f21cff6..0f4edbc26c93 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetBuildResultSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildResultSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a KPack build result. * * @summary Get a KPack build result. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildResult.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildResult.json */ async function buildServiceGetBuildResult() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildSample.ts index b29ac5e0cecf..ca98fd3f4ac0 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a KPack build. * * @summary Get a KPack build. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuild.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuild.json */ async function buildServiceGetBuild() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildServiceSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildServiceSample.ts similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildServiceSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildServiceSample.ts index f1db49f92e6e..acbeb2bb05cc 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetBuildServiceSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetBuildServiceSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a build service resource. * * @summary Get a build service resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetBuildService.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetBuildService.json */ async function buildServiceGetBuildService() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetResourceUploadUrlSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetResourceUploadUrlSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetResourceUploadUrlSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetResourceUploadUrlSample.ts index 89243d370192..dbdbf37ac296 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetResourceUploadUrlSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetResourceUploadUrlSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get an resource upload URL for build service, which may be artifacts or source archive. * * @summary Get an resource upload URL for build service, which may be artifacts or source archive. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetResourceUploadUrl.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetResourceUploadUrl.json */ async function buildServiceGetResourceUploadUrl() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetSupportedBuildpackSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetSupportedBuildpackSample.ts similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetSupportedBuildpackSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetSupportedBuildpackSample.ts index 1a8f66c2b0c7..64bc1e923132 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceGetSupportedBuildpackSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetSupportedBuildpackSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the supported buildpack resource. * * @summary Get the supported buildpack resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedBuildpack.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetSupportedBuildpack.json */ async function buildServiceGetSupportedBuildpack() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetSupportedStackSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetSupportedStackSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetSupportedStackSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetSupportedStackSample.ts index c897a5e0467d..41a3ff05ee90 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceGetSupportedStackSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceGetSupportedStackSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the supported stack resource. * * @summary Get the supported stack resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_GetSupportedStack.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_GetSupportedStack.json */ async function buildServiceGetSupportedStack() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListBuildResultsSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListBuildResultsSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListBuildResultsSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListBuildResultsSample.ts index 999666a73cd4..ead4d17d724c 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildServiceListBuildResultsSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListBuildResultsSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List KPack build results. * * @summary List KPack build results. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildResults.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuildResults.json */ async function buildServiceListBuildResults() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListBuildServicesSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListBuildServicesSample.ts similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListBuildServicesSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListBuildServicesSample.ts index 30543425b720..b0998ed80a59 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListBuildServicesSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListBuildServicesSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List build services resource. * * @summary List build services resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuildServices.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuildServices.json */ async function buildServiceListBuildServices() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListBuildsSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListBuildsSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListBuildsSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListBuildsSample.ts index 6c9ca0f68887..4ad547da6923 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListBuildsSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListBuildsSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List KPack builds. * * @summary List KPack builds. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListBuilds.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListBuilds.json */ async function buildServiceListBuilds() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListSupportedBuildpacksSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListSupportedBuildpacksSample.ts similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListSupportedBuildpacksSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListSupportedBuildpacksSample.ts index 1327dde3c966..4e90ccedf342 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListSupportedBuildpacksSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListSupportedBuildpacksSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get all supported buildpacks. * * @summary Get all supported buildpacks. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedBuildpacks.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListSupportedBuildpacks.json */ async function buildServiceListSupportedBuildpacks() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListSupportedStacksSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListSupportedStacksSample.ts similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListSupportedStacksSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListSupportedStacksSample.ts index 40f88fa94e80..6ec27c6b21a1 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildServiceListSupportedStacksSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildServiceListSupportedStacksSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get all supported stacks. * * @summary Get all supported stacks. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildService_ListSupportedStacks.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildService_ListSupportedStacks.json */ async function buildServiceListSupportedStacks() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingCreateOrUpdateSample.ts similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingCreateOrUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingCreateOrUpdateSample.ts index 12ef67660337..884e0d9c299e 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create or update a buildpack binding. * * @summary Create or update a buildpack binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_CreateOrUpdate.json */ async function buildpackBindingCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingDeleteSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingDeleteSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingDeleteSample.ts index 3dcb2b246e74..68c0b1f81610 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to delete a Buildpack Binding * * @summary Operation to delete a Buildpack Binding - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_Delete.json */ async function buildpackBindingDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingGetSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingGetSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingGetSample.ts index a31bae78936c..4147f847478c 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/buildpackBindingGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a buildpack binding by name. * * @summary Get a buildpack binding by name. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_Get.json */ async function buildpackBindingGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingListSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingListSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingListSample.ts index e951e71bb253..cc9221033694 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/buildpackBindingListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/buildpackBindingListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all buildpack bindings in a builder. * * @summary Handles requests to list all buildpack bindings in a builder. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/BuildpackBinding_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/BuildpackBinding_List.json */ async function buildpackBindingGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesCreateOrUpdateSample.ts similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesCreateOrUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesCreateOrUpdateSample.ts index f25bf7117c35..7f29bf8c4a34 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/certificatesCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create or update certificate resource. * * @summary Create or update certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_CreateOrUpdate.json */ async function certificatesCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesDeleteSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesDeleteSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesDeleteSample.ts index 7db1c9877424..46e0230cc3b7 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Delete the certificate resource. * * @summary Delete the certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_Delete.json */ async function certificatesDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesGetSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesGetSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesGetSample.ts index 8ab5b74ef97d..dc268bba1032 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the certificate resource. * * @summary Get the certificate resource. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_Get.json */ async function certificatesGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesListSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesListSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesListSample.ts index da1d6022277e..f7bec4954ed0 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/certificatesListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/certificatesListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List all the certificates of one user. * * @summary List all the certificates of one user. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Certificates_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Certificates_List.json */ async function certificatesList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersGetSample.ts similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersGetSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersGetSample.ts index 71621a915cb9..f4188a032990 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the config server and its properties. * * @summary Get the config server and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_Get.json */ async function configServersGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersUpdatePatchSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersUpdatePatchSample.ts similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersUpdatePatchSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersUpdatePatchSample.ts index fc87b6343931..ddf4b2d4bd2a 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configServersUpdatePatchSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersUpdatePatchSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Update the config server. * * @summary Update the config server. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePatch.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_UpdatePatch.json */ async function configServersUpdatePatch() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersUpdatePutSample.ts similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersUpdatePutSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersUpdatePutSample.ts index 4bfd37686cfa..341b386aac24 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersUpdatePutSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersUpdatePutSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Update the config server. * * @summary Update the config server. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_UpdatePut.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_UpdatePut.json */ async function configServersUpdatePut() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersValidateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersValidateSample.ts similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersValidateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersValidateSample.ts index 6262cea8e5a0..4cfcaed281d7 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configServersValidateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configServersValidateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Check if the config server settings are valid. * * @summary Check if the config server settings are valid. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigServers_Validate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigServers_Validate.json */ async function configServersValidate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesCreateOrUpdateSample.ts similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesCreateOrUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesCreateOrUpdateSample.ts index f116ea415312..bca8a374a3db 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create the default Application Configuration Service or update the existing Application Configuration Service. * * @summary Create the default Application Configuration Service or update the existing Application Configuration Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_CreateOrUpdate.json */ async function configurationServicesCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesDeleteSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesDeleteSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesDeleteSample.ts index 8d65fa2afdb8..a36338316ed7 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Disable the default Application Configuration Service. * * @summary Disable the default Application Configuration Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Delete.json */ async function configurationServicesDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesGetSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesGetSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesGetSample.ts index e66b0136e79f..ab01d941984a 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the Application Configuration Service and its properties. * * @summary Get the Application Configuration Service and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Get.json */ async function configurationServicesGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesListSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesListSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesListSample.ts index 7f2ddb25d9c2..6659336b7bfb 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/configurationServicesListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all resources in a Service. * * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_List.json */ async function configurationServicesList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesValidateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesValidateSample.ts similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesValidateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesValidateSample.ts index 5b2328e2ed29..944afb59108e 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/configurationServicesValidateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/configurationServicesValidateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Check if the Application Configuration Service settings are valid. * * @summary Check if the Application Configuration Service settings are valid. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ConfigurationServices_Validate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ConfigurationServices_Validate.json */ async function configurationServicesValidate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsCreateOrUpdateSample.ts similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsCreateOrUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsCreateOrUpdateSample.ts index 7eed0cd3c7fe..413efcc50d26 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create or update custom domain of one lifecycle application. * * @summary Create or update custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_CreateOrUpdate.json */ async function customDomainsCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsDeleteSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsDeleteSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsDeleteSample.ts index cba07e81cbcd..a98c5c684d8d 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Delete the custom domain of one lifecycle application. * * @summary Delete the custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Delete.json */ async function customDomainsDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsGetSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsGetSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsGetSample.ts index d244db1582bc..88558ee6c458 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/customDomainsGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the custom domain of one lifecycle application. * * @summary Get the custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Get.json */ async function customDomainsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsListSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsListSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsListSample.ts index c950368ef7c8..9f5dedf9b0f3 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List the custom domains of one lifecycle application. * * @summary List the custom domains of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_List.json */ async function customDomainsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsUpdateSample.ts similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsUpdateSample.ts index f4fbc2f6dbfe..9f7ad8cc03dd 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/customDomainsUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/customDomainsUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Update custom domain of one lifecycle application. * * @summary Update custom domain of one lifecycle application. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/CustomDomains_Update.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/CustomDomains_Update.json */ async function customDomainsUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsCreateOrUpdateSample.ts similarity index 52% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsCreateOrUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsCreateOrUpdateSample.ts index 3df4eba418da..ece4b288a4c2 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create a new Deployment or update an exiting Deployment. * * @summary Create a new Deployment or update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_CreateOrUpdate.json */ async function deploymentsCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; @@ -59,52 +59,3 @@ async function deploymentsCreateOrUpdate() { } deploymentsCreateOrUpdate().catch(console.error); - -/** - * This sample demonstrates how to Create a new Deployment or update an exiting Deployment. - * - * @summary Create a new Deployment or update an exiting Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_CreateOrUpdate_CustomContainer.json - */ -async function deploymentsCreateOrUpdateCustomContainer() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "myResourceGroup"; - const serviceName = "myservice"; - const appName = "myapp"; - const deploymentName = "mydeployment"; - const deploymentResource: DeploymentResource = { - properties: { - deploymentSettings: { - environmentVariables: { env: "test" }, - resourceRequests: { cpu: "1000m", memory: "3Gi" } - }, - instances: [], - source: { - type: "Container", - customContainer: { - args: ["-c", "while true; do echo hello; sleep 10;done"], - command: ["/bin/sh"], - containerImage: "myContainerImage:v1", - imageRegistryCredential: { - password: "myPassword", - username: "myUsername" - }, - languageFramework: "springboot", - server: "myacr.azurecr.io" - } - } - } - }; - const credential = new DefaultAzureCredential(); - const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginCreateOrUpdateAndWait( - resourceGroupName, - serviceName, - appName, - deploymentName, - deploymentResource - ); - console.log(result); -} - -deploymentsCreateOrUpdateCustomContainer().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsDeleteSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsDeleteSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsDeleteSample.ts index f39c17972300..829fb90b7223 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to delete a Deployment. * * @summary Operation to delete a Deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Delete.json */ async function deploymentsDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGenerateHeapDumpSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGenerateHeapDumpSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGenerateHeapDumpSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGenerateHeapDumpSample.ts index c759bbbe0cc9..8d6b0dc654ba 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGenerateHeapDumpSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGenerateHeapDumpSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Generate Heap Dump * * @summary Generate Heap Dump - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateHeapDump.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GenerateHeapDump.json */ async function deploymentsGenerateHeapDump() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGenerateThreadDumpSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGenerateThreadDumpSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGenerateThreadDumpSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGenerateThreadDumpSample.ts index 57fc3c7ae66b..d07a7b8a283b 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsGenerateThreadDumpSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGenerateThreadDumpSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Generate Thread Dump * * @summary Generate Thread Dump - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GenerateThreadDump.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GenerateThreadDump.json */ async function deploymentsGenerateHeapDump() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGetLogFileUrlSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGetLogFileUrlSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGetLogFileUrlSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGetLogFileUrlSample.ts index bfce5700d2dd..742fa3dc17fe 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsGetLogFileUrlSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGetLogFileUrlSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get deployment log file URL * * @summary Get deployment log file URL - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_GetLogFileUrl.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_GetLogFileUrl.json */ async function deploymentsGetLogFileUrl() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsStartSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGetSample.ts similarity index 75% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsStartSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGetSample.ts index ec8f56ffe3ff..31ddc190ec62 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsStartSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsGetSample.ts @@ -12,12 +12,12 @@ import { AppPlatformManagementClient } from "@azure/arm-appplatform"; import { DefaultAzureCredential } from "@azure/identity"; /** - * This sample demonstrates how to Start the deployment. + * This sample demonstrates how to Get a Deployment and its properties. * - * @summary Start the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Start.json + * @summary Get a Deployment and its properties. + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Get.json */ -async function deploymentsStart() { +async function deploymentsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const resourceGroupName = "myResourceGroup"; const serviceName = "myservice"; @@ -25,7 +25,7 @@ async function deploymentsStart() { const deploymentName = "mydeployment"; const credential = new DefaultAzureCredential(); const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.deployments.beginStartAndWait( + const result = await client.deployments.get( resourceGroupName, serviceName, appName, @@ -34,4 +34,4 @@ async function deploymentsStart() { console.log(result); } -deploymentsStart().catch(console.error); +deploymentsGet().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsListForClusterSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsListForClusterSample.ts similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsListForClusterSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsListForClusterSample.ts index bb04c2847be5..40c53c5d5006 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsListForClusterSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsListForClusterSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List deployments for a certain service * * @summary List deployments for a certain service - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_ListForCluster.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_ListForCluster.json */ async function deploymentsListForCluster() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsListSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsListSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsListSample.ts index aa950eed396f..6941af9ff227 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all resources in an App. * * @summary Handles requests to list all resources in an App. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_List.json */ async function deploymentsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsRestartSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsRestartSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsRestartSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsRestartSample.ts index 07493d014386..2e2b1d2af54c 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsRestartSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsRestartSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Restart the deployment. * * @summary Restart the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Restart.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Restart.json */ async function deploymentsRestart() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsStartJfrSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsStartJfrSample.ts similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsStartJfrSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsStartJfrSample.ts index 35e6b3e2f8ab..ee44be2ec805 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsStartJfrSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsStartJfrSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Start JFR * * @summary Start JFR - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_StartJFR.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_StartJFR.json */ async function deploymentsStartJfr() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsStartSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsStartSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsStartSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsStartSample.ts index ec8f56ffe3ff..1335e9865b29 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/deploymentsStartSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsStartSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Start the deployment. * * @summary Start the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Start.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Start.json */ async function deploymentsStart() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsStopSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsStopSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsStopSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsStopSample.ts index 24a9fd9a03c1..25da9a1ce07a 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/deploymentsStopSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsStopSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Stop the deployment. * * @summary Stop the deployment. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Deployments_Stop.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Stop.json */ async function deploymentsStop() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsUpdateSample.ts similarity index 57% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsUpdateSample.ts index b28afb7c3c9d..19dd26952b2f 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/bindingsUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/deploymentsUpdateSample.ts @@ -9,42 +9,45 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { - BindingResource, + DeploymentResource, AppPlatformManagementClient } from "@azure/arm-appplatform"; import { DefaultAzureCredential } from "@azure/identity"; /** - * This sample demonstrates how to Operation to update an exiting Binding. + * This sample demonstrates how to Operation to update an exiting Deployment. * - * @summary Operation to update an exiting Binding. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Bindings_Update.json + * @summary Operation to update an exiting Deployment. + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Deployments_Update.json */ -async function bindingsUpdate() { +async function deploymentsUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; const resourceGroupName = "myResourceGroup"; const serviceName = "myservice"; const appName = "myapp"; - const bindingName = "mybinding"; - const bindingResource: BindingResource = { + const deploymentName = "mydeployment"; + const deploymentResource: DeploymentResource = { properties: { - bindingParameters: { apiType: "SQL", databaseName: "db1" }, - createdAt: undefined, - generatedProperties: undefined, - key: "xxxx", - updatedAt: undefined + instances: [], + source: { + type: "Source", + artifactSelector: "sub-module-1", + relativePath: + "resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc", + version: "1.0" + } } }; const credential = new DefaultAzureCredential(); const client = new AppPlatformManagementClient(credential, subscriptionId); - const result = await client.bindings.beginUpdateAndWait( + const result = await client.deployments.beginUpdateAndWait( resourceGroupName, serviceName, appName, - bindingName, - bindingResource + deploymentName, + deploymentResource ); console.log(result); } -bindingsUpdate().catch(console.error); +deploymentsUpdate().catch(console.error); diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/monitoringSettingsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/monitoringSettingsGetSample.ts similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/monitoringSettingsGetSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/monitoringSettingsGetSample.ts index 6e1e97242b05..f0c25f4628e8 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/monitoringSettingsGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/monitoringSettingsGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the Monitoring Setting and its properties. * * @summary Get the Monitoring Setting and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_Get.json */ async function monitoringSettingsGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/monitoringSettingsUpdatePatchSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/monitoringSettingsUpdatePatchSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/monitoringSettingsUpdatePatchSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/monitoringSettingsUpdatePatchSample.ts index a0e8ec0e5c37..740ba963d5d2 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/monitoringSettingsUpdatePatchSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/monitoringSettingsUpdatePatchSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Update the Monitoring Setting. * * @summary Update the Monitoring Setting. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePatch.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_UpdatePatch.json */ async function monitoringSettingsUpdatePatch() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/monitoringSettingsUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/monitoringSettingsUpdatePutSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/monitoringSettingsUpdatePutSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/monitoringSettingsUpdatePutSample.ts index da94a4ed4bef..df2cf8ca9c37 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/monitoringSettingsUpdatePutSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/monitoringSettingsUpdatePutSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Update the Monitoring Setting. * * @summary Update the Monitoring Setting. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/MonitoringSettings_UpdatePut.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/MonitoringSettings_UpdatePut.json */ async function monitoringSettingsUpdatePut() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/operationsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/operationsListSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/operationsListSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/operationsListSample.ts index cb8183f68b16..736586c55c61 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/operationsListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/operationsListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.AppPlatform provider. * * @summary Lists all of the available REST API operations of the Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Operations_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Operations_List.json */ async function operationsList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts similarity index 91% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts index 232decc28d89..0d0997c2d317 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. * * @summary Lists all of the available runtime versions supported by Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/RuntimeVersions_ListRuntimeVersions.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/RuntimeVersions_ListRuntimeVersions.json */ async function runtimeVersionsListRuntimeVersions() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesCreateOrUpdateSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesCreateOrUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesCreateOrUpdateSample.ts index 89cfc1eb1289..fdf1d5a0f525 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesCreateOrUpdateSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create the default Service Registry or update the existing Service Registry. * * @summary Create the default Service Registry or update the existing Service Registry. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_CreateOrUpdate.json */ async function serviceRegistriesCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesDeleteSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesDeleteSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesDeleteSample.ts index 7777e2649892..13e1a8683afa 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/serviceRegistriesDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Disable the default Service Registry. * * @summary Disable the default Service Registry. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_Delete.json */ async function serviceRegistriesDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesGetSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesGetSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesGetSample.ts index 8e2c5b28bdc9..b027f7bfac5e 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get the Service Registry and its properties. * * @summary Get the Service Registry and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_Get.json */ async function serviceRegistriesGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesListSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesListSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesListSample.ts index 3194e4603279..c220d718c6e4 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/serviceRegistriesListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/serviceRegistriesListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all resources in a Service. * * @summary Handles requests to list all resources in a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ServiceRegistries_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/ServiceRegistries_List.json */ async function serviceRegistriesList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesCheckNameAvailabilitySample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesCheckNameAvailabilitySample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesCheckNameAvailabilitySample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesCheckNameAvailabilitySample.ts index e5a0b6d4d875..016bb7607f1c 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesCheckNameAvailabilitySample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesCheckNameAvailabilitySample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Checks that the resource name is valid and is not already in use. * * @summary Checks that the resource name is valid and is not already in use. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CheckNameAvailability.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_CheckNameAvailability.json */ async function servicesCheckNameAvailability() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesCreateOrUpdateSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesCreateOrUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesCreateOrUpdateSample.ts index ba959e2e0685..55e414ac678d 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesCreateOrUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Create a new Service or update an exiting Service. * * @summary Create a new Service or update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CreateOrUpdate.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_CreateOrUpdate.json */ async function servicesCreateOrUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; @@ -46,7 +46,7 @@ servicesCreateOrUpdate().catch(console.error); * This sample demonstrates how to Create a new Service or update an exiting Service. * * @summary Create a new Service or update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_CreateOrUpdate_VNetInjection.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_CreateOrUpdate_VNetInjection.json */ async function servicesCreateOrUpdateVNetInjection() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesDeleteSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesDeleteSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesDeleteSample.ts index cec8f52a524e..f1a06f50bde6 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesDeleteSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesDeleteSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to delete a Service. * * @summary Operation to delete a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Delete.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Delete.json */ async function servicesDelete() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesDisableTestEndpointSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesDisableTestEndpointSample.ts similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesDisableTestEndpointSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesDisableTestEndpointSample.ts index 85ac01c403fc..c4c62b508e97 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesDisableTestEndpointSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesDisableTestEndpointSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Disable test endpoint functionality for a Service. * * @summary Disable test endpoint functionality for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_DisableTestEndpoint.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_DisableTestEndpoint.json */ async function servicesDisableTestEndpoint() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesEnableTestEndpointSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesEnableTestEndpointSample.ts similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesEnableTestEndpointSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesEnableTestEndpointSample.ts index f00ea74e8464..b867b9ecdaa1 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesEnableTestEndpointSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesEnableTestEndpointSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Enable test endpoint functionality for a Service. * * @summary Enable test endpoint functionality for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_EnableTestEndpoint.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_EnableTestEndpoint.json */ async function servicesEnableTestEndpoint() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesGetSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesGetSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesGetSample.ts index 5dbe592a0ecd..07d61fc1f5d5 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesGetSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesGetSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Get a Service and its properties. * * @summary Get a Service and its properties. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Get.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Get.json */ async function servicesGet() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesListBySubscriptionSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesListBySubscriptionSample.ts similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesListBySubscriptionSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesListBySubscriptionSample.ts index 994fda4e5fa4..a5e5ad3f18c9 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesListBySubscriptionSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesListBySubscriptionSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all resources in a subscription. * * @summary Handles requests to list all resources in a subscription. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListBySubscription.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_ListBySubscription.json */ async function servicesListBySubscription() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesListSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesListSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesListSample.ts index b1dfae56602c..624fedb74143 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Handles requests to list all resources in a resource group. * * @summary Handles requests to list all resources in a resource group. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_List.json */ async function servicesList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesListTestKeysSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesListTestKeysSample.ts similarity index 92% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesListTestKeysSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesListTestKeysSample.ts index 9ab4ed1af0f2..86a57f1c8b09 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesListTestKeysSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesListTestKeysSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to List test keys for a Service. * * @summary List test keys for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_ListTestKeys.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_ListTestKeys.json */ async function servicesListTestKeys() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesRegenerateTestKeySample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesRegenerateTestKeySample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesRegenerateTestKeySample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesRegenerateTestKeySample.ts index 7cefb695c7bc..ca7f78ad12f9 100644 --- a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/src/servicesRegenerateTestKeySample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesRegenerateTestKeySample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Regenerate a test key for a Service. * * @summary Regenerate a test key for a Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_RegenerateTestKey.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_RegenerateTestKey.json */ async function servicesRegenerateTestKey() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesUpdateSample.ts similarity index 94% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesUpdateSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesUpdateSample.ts index d989c2a742ef..edfe7b46933d 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/servicesUpdateSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/servicesUpdateSample.ts @@ -18,7 +18,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Operation to update an exiting Service. * * @summary Operation to update an exiting Service. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Services_Update.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Services_Update.json */ async function servicesUpdate() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/skusListSample.ts b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/skusListSample.ts similarity index 93% rename from sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/skusListSample.ts rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/src/skusListSample.ts index 8eb9edda85db..f60542cf7951 100644 --- a/sdk/appplatform/arm-appplatform/samples/v2-beta/typescript/src/skusListSample.ts +++ b/sdk/appplatform/arm-appplatform/samples/v2/typescript/src/skusListSample.ts @@ -15,7 +15,7 @@ import { DefaultAzureCredential } from "@azure/identity"; * This sample demonstrates how to Lists all of the available skus of the Microsoft.AppPlatform provider. * * @summary Lists all of the available skus of the Microsoft.AppPlatform provider. - * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/Skus_List.json + * x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2022-04-01/examples/Skus_List.json */ async function skusList() { const subscriptionId = "00000000-0000-0000-0000-000000000000"; diff --git a/sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/tsconfig.json b/sdk/appplatform/arm-appplatform/samples/v2/typescript/tsconfig.json similarity index 100% rename from sdk/appplatform/arm-appplatform/samples/v1-beta/typescript/tsconfig.json rename to sdk/appplatform/arm-appplatform/samples/v2/typescript/tsconfig.json diff --git a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts index a8a86c2c5be9..7f7fca3252ac 100644 --- a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts +++ b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts @@ -7,6 +7,7 @@ */ import * as coreClient from "@azure/core-client"; +import * as coreRestPipeline from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { ServicesImpl, @@ -20,18 +21,12 @@ import { MonitoringSettingsImpl, AppsImpl, BindingsImpl, - StoragesImpl, CertificatesImpl, CustomDomainsImpl, DeploymentsImpl, OperationsImpl, RuntimeVersionsImpl, - SkusImpl, - GatewaysImpl, - GatewayRouteConfigsImpl, - GatewayCustomDomainsImpl, - ApiPortalsImpl, - ApiPortalCustomDomainsImpl + SkusImpl } from "./operations"; import { Services, @@ -45,18 +40,12 @@ import { MonitoringSettings, Apps, Bindings, - Storages, Certificates, CustomDomains, Deployments, Operations, RuntimeVersions, - Skus, - Gateways, - GatewayRouteConfigs, - GatewayCustomDomains, - ApiPortals, - ApiPortalCustomDomains + Skus } from "./operationsInterfaces"; import { AppPlatformManagementClientOptionalParams } from "./models"; @@ -93,7 +82,7 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-appplatform/2.0.0-beta.6`; + const packageDetails = `azsdk-js-arm-appplatform/2.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -112,12 +101,35 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { options.endpoint ?? options.baseUri ?? "https://management.azure.com" }; super(optionsWithDefaults); + + if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + (pipelinePolicy) => + pipelinePolicy.name === + coreRestPipeline.bearerTokenAuthenticationPolicyName + ); + if (!bearerTokenAuthenticationPolicyFound) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + scopes: `${optionsWithDefaults.baseUri}/.default`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); + } + } // Parameter assignments this.subscriptionId = subscriptionId; // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-03-01-preview"; + this.apiVersion = options.apiVersion || "2022-04-01"; this.services = new ServicesImpl(this); this.configServers = new ConfigServersImpl(this); this.configurationServices = new ConfigurationServicesImpl(this); @@ -129,18 +141,12 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { this.monitoringSettings = new MonitoringSettingsImpl(this); this.apps = new AppsImpl(this); this.bindings = new BindingsImpl(this); - this.storages = new StoragesImpl(this); this.certificates = new CertificatesImpl(this); this.customDomains = new CustomDomainsImpl(this); this.deployments = new DeploymentsImpl(this); this.operations = new OperationsImpl(this); this.runtimeVersions = new RuntimeVersionsImpl(this); this.skus = new SkusImpl(this); - this.gateways = new GatewaysImpl(this); - this.gatewayRouteConfigs = new GatewayRouteConfigsImpl(this); - this.gatewayCustomDomains = new GatewayCustomDomainsImpl(this); - this.apiPortals = new ApiPortalsImpl(this); - this.apiPortalCustomDomains = new ApiPortalCustomDomainsImpl(this); } services: Services; @@ -154,16 +160,10 @@ export class AppPlatformManagementClient extends coreClient.ServiceClient { monitoringSettings: MonitoringSettings; apps: Apps; bindings: Bindings; - storages: Storages; certificates: Certificates; customDomains: CustomDomains; deployments: Deployments; operations: Operations; runtimeVersions: RuntimeVersions; skus: Skus; - gateways: Gateways; - gatewayRouteConfigs: GatewayRouteConfigs; - gatewayCustomDomains: GatewayCustomDomains; - apiPortals: ApiPortals; - apiPortalCustomDomains: ApiPortalCustomDomains; } diff --git a/sdk/appplatform/arm-appplatform/src/models/index.ts b/sdk/appplatform/arm-appplatform/src/models/index.ts index 448f414ea767..d53aee28981a 100644 --- a/sdk/appplatform/arm-appplatform/src/models/index.ts +++ b/sdk/appplatform/arm-appplatform/src/models/index.ts @@ -8,10 +8,6 @@ import * as coreClient from "@azure/core-client"; -export type CustomPersistentDiskPropertiesUnion = - | CustomPersistentDiskProperties - | AzureFileVolume; -export type StoragePropertiesUnion = StorageProperties | StorageAccount; export type CertificatePropertiesUnion = | CertificateProperties | KeyVaultCertificateProperties @@ -19,8 +15,7 @@ export type CertificatePropertiesUnion = export type UserSourceInfoUnion = | UserSourceInfo | UploadedUserSourceInfoUnion - | BuildResultUserSourceInfo - | CustomContainerUserSourceInfo; + | BuildResultUserSourceInfo; export type UploadedUserSourceInfoUnion = | UploadedUserSourceInfo | JarUploadedUserSourceInfo @@ -46,11 +41,6 @@ export interface ClusterResourceProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly serviceId?: string; - /** - * Power state of the Service - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly powerState?: PowerState; zoneRedundant?: boolean; /** * Fully qualified dns name of the service instance @@ -61,29 +51,29 @@ export interface ClusterResourceProperties { /** Service network profile payload */ export interface NetworkProfile { - /** Fully qualified resource Id of the subnet to host Azure Spring Cloud Service Runtime */ + /** Fully qualified resource Id of the subnet to host Azure Spring Apps Service Runtime */ serviceRuntimeSubnetId?: string; - /** Fully qualified resource Id of the subnet to host Azure Spring Cloud Apps */ + /** Fully qualified resource Id of the subnet to host customer apps in Azure Spring Apps */ appSubnetId?: string; - /** Azure Spring Cloud service reserved CIDR */ + /** Azure Spring Apps service reserved CIDR */ serviceCidr?: string; - /** Name of the resource group containing network resources of Azure Spring Cloud Service Runtime */ + /** Name of the resource group containing network resources of Azure Spring Apps Service Runtime */ serviceRuntimeNetworkResourceGroup?: string; - /** Name of the resource group containing network resources of Azure Spring Cloud Apps */ + /** Name of the resource group containing network resources for customer apps in Azure Spring Apps */ appNetworkResourceGroup?: string; /** - * Desired outbound IP resources for Azure Spring Cloud instance. + * Desired outbound IP resources for Azure Spring Apps resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly outboundIPs?: NetworkProfileOutboundIPs; /** - * Required inbound or outbound traffics for Azure Spring Cloud instance. + * Required inbound or outbound traffics for Azure Spring Apps resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly requiredTraffics?: RequiredTraffic[]; } -/** Desired outbound IP resources for Azure Spring Cloud instance. */ +/** Desired outbound IP resources for Azure Spring Apps resource. */ export interface NetworkProfileOutboundIPs { /** * A list of public IP addresses. @@ -92,7 +82,7 @@ export interface NetworkProfileOutboundIPs { readonly publicIPs?: string[]; } -/** Required inbound or outbound traffic for Azure Spring Cloud instance. */ +/** Required inbound or outbound traffic for Azure Spring Apps resource. */ export interface RequiredTraffic { /** * The protocol of required traffic @@ -121,7 +111,7 @@ export interface RequiredTraffic { readonly direction?: TrafficDirection; } -/** Sku of Azure Spring Cloud */ +/** Sku of Azure Spring Apps */ export interface Sku { /** Name of the Sku */ name?: string; @@ -832,8 +822,6 @@ export interface AppResourceProperties { temporaryDisk?: TemporaryDisk; /** Persistent disk settings */ persistentDisk?: PersistentDisk; - /** List of custom persistent disks */ - customPersistentDisks?: CustomPersistentDiskResource[]; /** Indicate if end to end TLS is enabled. */ enableEndToEndTLS?: boolean; /** Collection of loaded certificates */ @@ -861,26 +849,6 @@ export interface PersistentDisk { mountPath?: string; } -/** Custom persistent disk resource payload. */ -export interface CustomPersistentDiskResource { - /** Properties of the custom persistent disk resource payload. */ - customPersistentDiskProperties?: CustomPersistentDiskPropertiesUnion; - /** The resource id of Azure Spring Cloud Storage resource. */ - storageId: string; -} - -/** Custom persistent disk resource payload. */ -export interface CustomPersistentDiskProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "AzureFileVolume"; - /** The mount path of the persistent disk. */ - mountPath: string; - /** Indicates whether the persistent disk is a readOnly one. */ - readOnly?: boolean; - /** These are the mount options for a persistent disk. */ - mountOptions?: string[]; -} - /** Loaded certificate payload */ export interface LoadedCertificate { /** Resource Id of loaded certificate */ @@ -897,24 +865,6 @@ export interface ManagedIdentityProperties { principalId?: string; /** Tenant Id of system-assigned managed identity. */ tenantId?: string; - /** Properties of user-assigned managed identities */ - userAssignedIdentities?: { - [propertyName: string]: UserAssignedManagedIdentity; - }; -} - -/** The details of the user-assigned managed identity assigned to an App. */ -export interface UserAssignedManagedIdentity { - /** - * Principal Id of user-assigned managed identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly principalId?: string; - /** - * Client Id of user-assigned managed identity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly clientId?: string; } /** Object that includes an array of App resources and a possible link for next set */ @@ -980,20 +930,6 @@ export interface BindingResourceCollection { nextLink?: string; } -/** Storage resource payload. */ -export interface StorageProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - storageType: "StorageAccount"; -} - -/** Collection compose of storage resources list and a possible link for next page. */ -export interface StorageResourceCollection { - /** The storage resources list. */ - value?: StorageResource[]; - /** The link to next page of storage list. */ - nextLink?: string; -} - /** Certificate resource payload. */ export interface CertificateProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -1129,8 +1065,7 @@ export interface UserSourceInfo { | "Jar" | "Source" | "NetCoreZip" - | "BuildResult" - | "Container"; + | "BuildResult"; /** Version of the source */ version?: string; } @@ -1145,8 +1080,6 @@ export interface DeploymentSettings { addonConfigs?: { [propertyName: string]: { [propertyName: string]: Record }; }; - /** Container liveness and readiness probe settings */ - containerProbeSettings?: ContainerProbeSettings; } /** Deployment resource request payload */ @@ -1157,12 +1090,6 @@ export interface ResourceRequests { memory?: string; } -/** Container liveness and readiness probe settings */ -export interface ContainerProbeSettings { - /** Indicates whether disable the liveness and readiness probe */ - disableProbe?: boolean; -} - /** Deployment instance payload */ export interface DeploymentInstance { /** @@ -1355,7 +1282,7 @@ export interface SupportedRuntimeVersion { version?: string; } -/** Object that includes an array of Azure Spring Cloud SKU and a possible link for next set */ +/** Object that includes an array of Azure Spring Apps SKU and a possible link for next set */ export interface ResourceSkuCollection { /** Collection of resource SKU */ value?: ResourceSku[]; @@ -1366,7 +1293,7 @@ export interface ResourceSkuCollection { nextLink?: string; } -/** Describes an available Azure Spring Cloud SKU. */ +/** Describes an available Azure Spring Apps SKU. */ export interface ResourceSku { /** Gets the type of resource the SKU applies to. */ resourceType?: string; @@ -1453,327 +1380,6 @@ export interface ResourceSkuRestrictionInfo { zones?: string[]; } -/** Spring Cloud Gateway properties payload */ -export interface GatewayProperties { - /** - * State of the Spring Cloud Gateway. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: GatewayProvisioningState; - /** Indicates whether the Spring Cloud Gateway exposes endpoint. */ - public?: boolean; - /** - * URL of the Spring Cloud Gateway, exposed when 'public' is true. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly url?: string; - /** Indicate if only https is allowed. */ - httpsOnly?: boolean; - /** Single sign-on related configuration */ - ssoProperties?: SsoProperties; - /** API metadata property for Spring Cloud Gateway */ - apiMetadataProperties?: GatewayApiMetadataProperties; - /** Cross-Origin Resource Sharing property */ - corsProperties?: GatewayCorsProperties; - /** The requested resource quantity for required CPU and Memory. */ - resourceRequests?: GatewayResourceRequests; - /** - * Collection of instances belong to Spring Cloud Gateway. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instances?: GatewayInstance[]; - /** - * Properties of the Spring Cloud Gateway Operator. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operatorProperties?: GatewayOperatorProperties; -} - -/** Single sign-on related configuration */ -export interface SsoProperties { - /** It defines the specific actions applications can be allowed to do on a user's behalf */ - scope?: string[]; - /** The public identifier for the application */ - clientId?: string; - /** The secret known only to the application and the authorization server */ - clientSecret?: string; - /** The URI of Issuer Identifier */ - issuerUri?: string; -} - -/** API metadata property for Spring Cloud Gateway */ -export interface GatewayApiMetadataProperties { - /** Title describing the context of the APIs available on the Gateway instance (default: `Spring Cloud Gateway for K8S`) */ - title?: string; - /** Detailed description of the APIs available on the Gateway instance (default: `Generated OpenAPI 3 document that describes the API routes configured.`) */ - description?: string; - /** Location of additional documentation for the APIs available on the Gateway instance */ - documentation?: string; - /** Version of APIs available on this Gateway instance (default: `unspecified`). */ - version?: string; - /** Base URL that API consumers will use to access APIs on the Gateway instance. */ - serverUrl?: string; -} - -/** Cross-Origin Resource Sharing property */ -export interface GatewayCorsProperties { - /** Allowed origins to make cross-site requests. The special value `*` allows all domains. */ - allowedOrigins?: string[]; - /** Allowed HTTP methods on cross-site requests. The special value `*` allows all methods. If not set, `GET` and `HEAD` are allowed by default. */ - allowedMethods?: string[]; - /** Allowed headers in cross-site requests. The special value `*` allows actual requests to send any header. */ - allowedHeaders?: string[]; - /** How long, in seconds, the response from a pre-flight request can be cached by clients. */ - maxAge?: number; - /** Whether user credentials are supported on cross-site requests. Valid values: `true`, `false`. */ - allowCredentials?: boolean; - /** HTTP response headers to expose for cross-site requests. */ - exposedHeaders?: string[]; -} - -/** Resource request payload of Spring Cloud Gateway. */ -export interface GatewayResourceRequests { - /** Cpu allocated to each Spring Cloud Gateway instance. */ - cpu?: string; - /** Memory allocated to each Spring Cloud Gateway instance. */ - memory?: string; -} - -/** Collection of instances belong to the Spring Cloud Gateway */ -export interface GatewayInstance { - /** - * Name of the Spring Cloud Gateway instance - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Status of the Spring Cloud Gateway instance - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; -} - -/** Properties of the Spring Cloud Gateway Operator. */ -export interface GatewayOperatorProperties { - /** - * The requested resource quantity for required CPU and Memory. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceRequests?: GatewayOperatorResourceRequests; - /** - * Collection of instances belong to Spring Cloud Gateway operator. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instances?: GatewayInstance[]; -} - -/** Properties of the Spring Cloud Gateway Operator. */ -export interface GatewayOperatorResourceRequests { - /** - * Cpu allocated to each Spring Cloud Gateway Operator instance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly cpu?: string; - /** - * Memory allocated to each Spring Cloud Gateway Operator instance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly memory?: string; - /** - * Instance count of the Spring Cloud Gateway Operator. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instanceCount?: number; -} - -/** Object that includes an array of gateway resources and a possible link for next set */ -export interface GatewayResourceCollection { - /** Collection of gateway resources */ - value?: GatewayResource[]; - /** - * URL client should use to fetch the next page (per server side paging). - * It's null for now, added for future use. - */ - nextLink?: string; -} - -/** API route config of the Spring Cloud Gateway */ -export interface GatewayRouteConfigProperties { - /** - * State of the Spring Cloud Gateway route config. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: GatewayProvisioningState; - /** The resource Id of the Azure Spring Cloud app, required unless route defines `uri`. */ - appResourceId?: string; - /** Array of API routes, each route contains properties such as `title`, `uri`, `ssoEnabled`, `predicates`, `filters`. */ - routes?: GatewayApiRoute[]; -} - -/** API route config of the Spring Cloud Gateway */ -export interface GatewayApiRoute { - /** A title, will be applied to methods in the generated OpenAPI documentation. */ - title?: string; - /** A description, will be applied to methods in the generated OpenAPI documentation. */ - description?: string; - /** Full uri, will override `appName`. */ - uri?: string; - /** Enable sso validation. */ - ssoEnabled?: boolean; - /** Pass currently-authenticated user's identity token to application service, default is 'false' */ - tokenRelay?: boolean; - /** A number of conditions to evaluate a route for each request. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request. */ - predicates?: string[]; - /** To modify the request before sending it to the target endpoint, or the received response. */ - filters?: string[]; - /** Route processing order. */ - order?: number; - /** Classification tags, will be applied to methods in the generated OpenAPI documentation. */ - tags?: string[]; -} - -/** Object that includes an array of Spring Cloud Gateway route config resources and a possible link for next set */ -export interface GatewayRouteConfigResourceCollection { - /** Collection of Spring Cloud Gateway route config resources */ - value?: GatewayRouteConfigResource[]; - /** - * URL client should use to fetch the next page (per server side paging). - * It's null for now, added for future use. - */ - nextLink?: string; -} - -/** The properties of custom domain for Spring Cloud Gateway */ -export interface GatewayCustomDomainProperties { - /** The thumbprint of bound certificate. */ - thumbprint?: string; -} - -/** Object that includes an array of Spring Cloud Gateway custom domain resources and a possible link for next set */ -export interface GatewayCustomDomainResourceCollection { - /** Collection of Spring Cloud Gateway custom domain resources */ - value?: GatewayCustomDomainResource[]; - /** - * URL client should use to fetch the next page (per server side paging). - * It's null for now, added for future use. - */ - nextLink?: string; -} - -/** API portal properties payload */ -export interface ApiPortalProperties { - /** - * State of the API portal. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ApiPortalProvisioningState; - /** Indicates whether the API portal exposes endpoint. */ - public?: boolean; - /** - * URL of the API portal, exposed when 'public' is true. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly url?: string; - /** Indicate if only https is allowed. */ - httpsOnly?: boolean; - /** The array of resource Ids of gateway to integrate with API portal. */ - gatewayIds?: string[]; - /** Collection of OpenAPI source URL locations. */ - sourceUrls?: string[]; - /** Single sign-on related configuration */ - ssoProperties?: SsoProperties; - /** - * The requested resource quantity for required CPU and Memory. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceRequests?: ApiPortalResourceRequests; - /** - * Collection of instances belong to API portal. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly instances?: ApiPortalInstance[]; -} - -/** Resource requests of the API portal */ -export interface ApiPortalResourceRequests { - /** - * Cpu allocated to each API portal instance - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly cpu?: string; - /** - * Memory allocated to each API portal instance - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly memory?: string; -} - -/** Collection of instances belong to the API portal */ -export interface ApiPortalInstance { - /** - * Name of the API portal instance - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Status of the API portal instance - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; -} - -/** Object that includes an array of API portal resources and a possible link for next set */ -export interface ApiPortalResourceCollection { - /** Collection of API portal resources */ - value?: ApiPortalResource[]; - /** - * URL client should use to fetch the next page (per server side paging). - * It's null for now, added for future use. - */ - nextLink?: string; -} - -/** The properties of custom domain for API portal */ -export interface ApiPortalCustomDomainProperties { - /** The thumbprint of bound certificate. */ - thumbprint?: string; -} - -/** Object that includes an array of API portal custom domain resources and a possible link for next set */ -export interface ApiPortalCustomDomainResourceCollection { - /** Collection of API portal custom domain resources */ - value?: ApiPortalCustomDomainResource[]; - /** - * URL client should use to fetch the next page (per server side paging). - * It's null for now, added for future use. - */ - nextLink?: string; -} - -/** Custom container payload */ -export interface CustomContainer { - /** The name of the registry that contains the container image */ - server?: string; - /** Container image of the custom container. This should be in the form of : without the server name of the registry */ - containerImage?: string; - /** Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. */ - command?: string[]; - /** Arguments to the entrypoint. The docker image's CMD is used if this is not provided. */ - args?: string[]; - /** Credential of the image registry */ - imageRegistryCredential?: ImageRegistryCredential; - /** Language framework of the container image uploaded */ - languageFramework?: string; -} - -/** Credential of the image registry */ -export interface ImageRegistryCredential { - /** The username of the image registry credential */ - username?: string; - /** The password of the image registry credential */ - password?: string; -} - /** The resource model definition for a ARM tracked top level resource. */ export type TrackedResource = Resource & { /** The GEO location of the resource. */ @@ -1785,24 +1391,6 @@ export type TrackedResource = Resource & { /** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags. */ export type ProxyResource = Resource & {}; -/** The properties of the Azure File volume. Azure File shares are mounted as volumes. */ -export type AzureFileVolume = CustomPersistentDiskProperties & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "AzureFileVolume"; - /** The share name of the Azure File share. */ - shareName: string; -}; - -/** storage resource of type Azure Storage Account. */ -export type StorageAccount = StorageProperties & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - storageType: "StorageAccount"; - /** The account name of the Azure Storage Account. */ - accountName: string; - /** The account key of the Azure Storage Account. */ - accountKey: string; -}; - /** Properties of certificate imported from key vault. */ export type KeyVaultCertificateProperties = CertificateProperties & { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -1841,14 +1429,6 @@ export type BuildResultUserSourceInfo = UserSourceInfo & { buildResultId?: string; }; -/** Custom container user source info */ -export type CustomContainerUserSourceInfo = UserSourceInfo & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "Container"; - /** Custom container payload */ - customContainer?: CustomContainer; -}; - /** Service resource */ export type ServiceResource = TrackedResource & { /** Properties of the Service resource */ @@ -1945,12 +1525,6 @@ export type BindingResource = ProxyResource & { properties?: BindingResourceProperties; }; -/** Storage resource payload. */ -export type StorageResource = ProxyResource & { - /** Properties of the storage resource payload. */ - properties?: StoragePropertiesUnion; -}; - /** Certificate resource payload. */ export type CertificateResource = ProxyResource & { /** Properties of the certificate resource payload. */ @@ -1971,40 +1545,6 @@ export type DeploymentResource = ProxyResource & { sku?: Sku; }; -/** Spring Cloud Gateway resource */ -export type GatewayResource = ProxyResource & { - /** Spring Cloud Gateway properties payload */ - properties?: GatewayProperties; - /** Sku of the Spring Cloud Gateway resource */ - sku?: Sku; -}; - -/** Spring Cloud Gateway route config resource */ -export type GatewayRouteConfigResource = ProxyResource & { - /** API route config of the Spring Cloud Gateway */ - properties?: GatewayRouteConfigProperties; -}; - -/** Custom domain of the Spring Cloud Gateway */ -export type GatewayCustomDomainResource = ProxyResource & { - /** The properties of custom domain for Spring Cloud Gateway */ - properties?: GatewayCustomDomainProperties; -}; - -/** API portal resource */ -export type ApiPortalResource = ProxyResource & { - /** API portal properties payload */ - properties?: ApiPortalProperties; - /** Sku of the API portal resource */ - sku?: Sku; -}; - -/** Custom domain of the API portal */ -export type ApiPortalCustomDomainResource = ProxyResource & { - /** The properties of custom domain for API portal */ - properties?: ApiPortalCustomDomainProperties; -}; - /** Uploaded Jar binary for a deployment */ export type JarUploadedUserSourceInfo = UploadedUserSourceInfo & { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2088,22 +1628,6 @@ export enum KnownTrafficDirection { */ export type TrafficDirection = string; -/** Known values of {@link PowerState} that the service accepts. */ -export enum KnownPowerState { - Running = "Running", - Stopped = "Stopped" -} - -/** - * Defines values for PowerState. \ - * {@link KnownPowerState} can be used interchangeably with PowerState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Running** \ - * **Stopped** - */ -export type PowerState = string; - /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { User = "User", @@ -2578,50 +2102,6 @@ export enum KnownResourceSkuRestrictionsReasonCode { */ export type ResourceSkuRestrictionsReasonCode = string; -/** Known values of {@link GatewayProvisioningState} that the service accepts. */ -export enum KnownGatewayProvisioningState { - Creating = "Creating", - Updating = "Updating", - Succeeded = "Succeeded", - Failed = "Failed", - Deleting = "Deleting" -} - -/** - * Defines values for GatewayProvisioningState. \ - * {@link KnownGatewayProvisioningState} can be used interchangeably with GatewayProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Updating** \ - * **Succeeded** \ - * **Failed** \ - * **Deleting** - */ -export type GatewayProvisioningState = string; - -/** Known values of {@link ApiPortalProvisioningState} that the service accepts. */ -export enum KnownApiPortalProvisioningState { - Creating = "Creating", - Updating = "Updating", - Succeeded = "Succeeded", - Failed = "Failed", - Deleting = "Deleting" -} - -/** - * Defines values for ApiPortalProvisioningState. \ - * {@link KnownApiPortalProvisioningState} can be used interchangeably with ApiPortalProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating** \ - * **Updating** \ - * **Succeeded** \ - * **Failed** \ - * **Deleting** - */ -export type ApiPortalProvisioningState = string; - /** Optional parameters. */ export interface ServicesGetOptionalParams extends coreClient.OperationOptions {} @@ -2687,24 +2167,6 @@ export interface ServicesEnableTestEndpointOptionalParams /** Contains response data for the enableTestEndpoint operation. */ export type ServicesEnableTestEndpointResponse = TestKeys; -/** Optional parameters. */ -export interface ServicesStopOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface ServicesStartOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - /** Optional parameters. */ export interface ServicesCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} @@ -3272,48 +2734,6 @@ export interface BindingsListNextOptionalParams /** Contains response data for the listNext operation. */ export type BindingsListNextResponse = BindingResourceCollection; -/** Optional parameters. */ -export interface StoragesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type StoragesGetResponse = StorageResource; - -/** Optional parameters. */ -export interface StoragesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type StoragesCreateOrUpdateResponse = StorageResource; - -/** Optional parameters. */ -export interface StoragesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface StoragesListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type StoragesListResponse = StorageResourceCollection; - -/** Optional parameters. */ -export interface StoragesListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type StoragesListNextResponse = StorageResourceCollection; - /** Optional parameters. */ export interface CertificatesGetOptionalParams extends coreClient.OperationOptions {} @@ -3585,230 +3005,6 @@ export interface SkusListNextOptionalParams /** Contains response data for the listNext operation. */ export type SkusListNextResponse = ResourceSkuCollection; -/** Optional parameters. */ -export interface GatewaysGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type GatewaysGetResponse = GatewayResource; - -/** Optional parameters. */ -export interface GatewaysCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type GatewaysCreateOrUpdateResponse = GatewayResource; - -/** Optional parameters. */ -export interface GatewaysDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface GatewaysListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type GatewaysListResponse = GatewayResourceCollection; - -/** Optional parameters. */ -export interface GatewaysValidateDomainOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the validateDomain operation. */ -export type GatewaysValidateDomainResponse = CustomDomainValidateResult; - -/** Optional parameters. */ -export interface GatewaysListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type GatewaysListNextResponse = GatewayResourceCollection; - -/** Optional parameters. */ -export interface GatewayRouteConfigsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type GatewayRouteConfigsGetResponse = GatewayRouteConfigResource; - -/** Optional parameters. */ -export interface GatewayRouteConfigsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type GatewayRouteConfigsCreateOrUpdateResponse = GatewayRouteConfigResource; - -/** Optional parameters. */ -export interface GatewayRouteConfigsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface GatewayRouteConfigsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type GatewayRouteConfigsListResponse = GatewayRouteConfigResourceCollection; - -/** Optional parameters. */ -export interface GatewayRouteConfigsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type GatewayRouteConfigsListNextResponse = GatewayRouteConfigResourceCollection; - -/** Optional parameters. */ -export interface GatewayCustomDomainsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type GatewayCustomDomainsGetResponse = GatewayCustomDomainResource; - -/** Optional parameters. */ -export interface GatewayCustomDomainsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type GatewayCustomDomainsCreateOrUpdateResponse = GatewayCustomDomainResource; - -/** Optional parameters. */ -export interface GatewayCustomDomainsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface GatewayCustomDomainsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type GatewayCustomDomainsListResponse = GatewayCustomDomainResourceCollection; - -/** Optional parameters. */ -export interface GatewayCustomDomainsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type GatewayCustomDomainsListNextResponse = GatewayCustomDomainResourceCollection; - -/** Optional parameters. */ -export interface ApiPortalsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ApiPortalsGetResponse = ApiPortalResource; - -/** Optional parameters. */ -export interface ApiPortalsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ApiPortalsCreateOrUpdateResponse = ApiPortalResource; - -/** Optional parameters. */ -export interface ApiPortalsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface ApiPortalsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ApiPortalsListResponse = ApiPortalResourceCollection; - -/** Optional parameters. */ -export interface ApiPortalsValidateDomainOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the validateDomain operation. */ -export type ApiPortalsValidateDomainResponse = CustomDomainValidateResult; - -/** Optional parameters. */ -export interface ApiPortalsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ApiPortalsListNextResponse = ApiPortalResourceCollection; - -/** Optional parameters. */ -export interface ApiPortalCustomDomainsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ApiPortalCustomDomainsGetResponse = ApiPortalCustomDomainResource; - -/** Optional parameters. */ -export interface ApiPortalCustomDomainsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ApiPortalCustomDomainsCreateOrUpdateResponse = ApiPortalCustomDomainResource; - -/** Optional parameters. */ -export interface ApiPortalCustomDomainsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface ApiPortalCustomDomainsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type ApiPortalCustomDomainsListResponse = ApiPortalCustomDomainResourceCollection; - -/** Optional parameters. */ -export interface ApiPortalCustomDomainsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ApiPortalCustomDomainsListNextResponse = ApiPortalCustomDomainResourceCollection; - /** Optional parameters. */ export interface AppPlatformManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/appplatform/arm-appplatform/src/models/mappers.ts b/sdk/appplatform/arm-appplatform/src/models/mappers.ts index 9d094157b76d..005aa2b39b36 100644 --- a/sdk/appplatform/arm-appplatform/src/models/mappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/mappers.ts @@ -41,13 +41,6 @@ export const ClusterResourceProperties: coreClient.CompositeMapper = { name: "String" } }, - powerState: { - serializedName: "powerState", - readOnly: true, - type: { - name: "String" - } - }, zoneRedundant: { defaultValue: false, serializedName: "zoneRedundant", @@ -1952,18 +1945,6 @@ export const AppResourceProperties: coreClient.CompositeMapper = { className: "PersistentDisk" } }, - customPersistentDisks: { - serializedName: "customPersistentDisks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomPersistentDiskResource" - } - } - } - }, enableEndToEndTLS: { defaultValue: false, serializedName: "enableEndToEndTLS", @@ -2049,75 +2030,6 @@ export const PersistentDisk: coreClient.CompositeMapper = { } }; -export const CustomPersistentDiskResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomPersistentDiskResource", - modelProperties: { - customPersistentDiskProperties: { - serializedName: "customPersistentDiskProperties", - type: { - name: "Composite", - className: "CustomPersistentDiskProperties" - } - }, - storageId: { - serializedName: "storageId", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const CustomPersistentDiskProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomPersistentDiskProperties", - uberParent: "CustomPersistentDiskProperties", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - modelProperties: { - type: { - defaultValue: "AzureFileVolume", - isConstant: true, - serializedName: "type", - type: { - name: "String" - } - }, - mountPath: { - serializedName: "mountPath", - required: true, - type: { - name: "String" - } - }, - readOnly: { - serializedName: "readOnly", - type: { - name: "Boolean" - } - }, - mountOptions: { - serializedName: "mountOptions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - export const LoadedCertificate: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2163,41 +2075,6 @@ export const ManagedIdentityProperties: coreClient.CompositeMapper = { type: { name: "String" } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "UserAssignedManagedIdentity" - } - } - } - } - } - } -}; - -export const UserAssignedManagedIdentity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserAssignedManagedIdentity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", - readOnly: true, - type: { - name: "String" - } } } } @@ -2342,55 +2219,6 @@ export const BindingResourceCollection: coreClient.CompositeMapper = { } }; -export const StorageProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageProperties", - uberParent: "StorageProperties", - polymorphicDiscriminator: { - serializedName: "storageType", - clientName: "storageType" - }, - modelProperties: { - storageType: { - defaultValue: "StorageAccount", - isConstant: true, - serializedName: "storageType", - type: { - name: "String" - } - } - } - } -}; - -export const StorageResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StorageResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const CertificateProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2750,13 +2578,6 @@ export const DeploymentSettings: coreClient.CompositeMapper = { } } } - }, - containerProbeSettings: { - serializedName: "containerProbeSettings", - type: { - name: "Composite", - className: "ContainerProbeSettings" - } } } } @@ -2783,21 +2604,6 @@ export const ResourceRequests: coreClient.CompositeMapper = { } }; -export const ContainerProbeSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ContainerProbeSettings", - modelProperties: { - disableProbe: { - serializedName: "disableProbe", - type: { - name: "Boolean" - } - } - } - } -}; - export const DeploymentInstance: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3588,952 +3394,92 @@ export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { } }; -export const GatewayProperties: coreClient.CompositeMapper = { +export const TrackedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GatewayProperties", + className: "TrackedResource", modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - public: { - serializedName: "public", - type: { - name: "Boolean" - } - }, - url: { - serializedName: "url", - readOnly: true, + ...Resource.type.modelProperties, + location: { + serializedName: "location", type: { name: "String" } }, - httpsOnly: { - serializedName: "httpsOnly", - type: { - name: "Boolean" - } - }, - ssoProperties: { - serializedName: "ssoProperties", - type: { - name: "Composite", - className: "SsoProperties" - } - }, - apiMetadataProperties: { - serializedName: "apiMetadataProperties", - type: { - name: "Composite", - className: "GatewayApiMetadataProperties" - } - }, - corsProperties: { - serializedName: "corsProperties", - type: { - name: "Composite", - className: "GatewayCorsProperties" - } - }, - resourceRequests: { - serializedName: "resourceRequests", - type: { - name: "Composite", - className: "GatewayResourceRequests" - } - }, - instances: { - serializedName: "instances", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayInstance" - } - } - } - }, - operatorProperties: { - serializedName: "operatorProperties", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "GatewayOperatorProperties" + name: "Dictionary", + value: { type: { name: "String" } } } } } } }; -export const SsoProperties: coreClient.CompositeMapper = { +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const KeyVaultCertificateProperties: coreClient.CompositeMapper = { + serializedName: "KeyVaultCertificate", type: { name: "Composite", - className: "SsoProperties", + className: "KeyVaultCertificateProperties", + uberParent: "CertificateProperties", + polymorphicDiscriminator: + CertificateProperties.type.polymorphicDiscriminator, modelProperties: { - scope: { - serializedName: "scope", + ...CertificateProperties.type.modelProperties, + vaultUri: { + serializedName: "vaultUri", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - clientId: { - serializedName: "clientId", + keyVaultCertName: { + serializedName: "keyVaultCertName", + required: true, type: { name: "String" } }, - clientSecret: { - serializedName: "clientSecret", + certVersion: { + serializedName: "certVersion", type: { name: "String" } }, - issuerUri: { - serializedName: "issuerUri", + excludePrivateKey: { + defaultValue: false, + serializedName: "excludePrivateKey", type: { - name: "String" + name: "Boolean" } } } } }; -export const GatewayApiMetadataProperties: coreClient.CompositeMapper = { +export const ContentCertificateProperties: coreClient.CompositeMapper = { + serializedName: "ContentCertificate", type: { name: "Composite", - className: "GatewayApiMetadataProperties", + className: "ContentCertificateProperties", + uberParent: "CertificateProperties", + polymorphicDiscriminator: + CertificateProperties.type.polymorphicDiscriminator, modelProperties: { - title: { - serializedName: "title", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - type: { - name: "String" - } - }, - documentation: { - serializedName: "documentation", - type: { - name: "String" - } - }, - version: { - serializedName: "version", - type: { - name: "String" - } - }, - serverUrl: { - serializedName: "serverUrl", - type: { - name: "String" - } - } - } - } -}; - -export const GatewayCorsProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayCorsProperties", - modelProperties: { - allowedOrigins: { - serializedName: "allowedOrigins", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - allowedMethods: { - serializedName: "allowedMethods", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - allowedHeaders: { - serializedName: "allowedHeaders", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - maxAge: { - serializedName: "maxAge", - type: { - name: "Number" - } - }, - allowCredentials: { - serializedName: "allowCredentials", - type: { - name: "Boolean" - } - }, - exposedHeaders: { - serializedName: "exposedHeaders", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const GatewayResourceRequests: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayResourceRequests", - modelProperties: { - cpu: { - serializedName: "cpu", - type: { - name: "String" - } - }, - memory: { - serializedName: "memory", - type: { - name: "String" - } - } - } - } -}; - -export const GatewayInstance: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayInstance", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const GatewayOperatorProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayOperatorProperties", - modelProperties: { - resourceRequests: { - serializedName: "resourceRequests", - type: { - name: "Composite", - className: "GatewayOperatorResourceRequests" - } - }, - instances: { - serializedName: "instances", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayInstance" - } - } - } - } - } - } -}; - -export const GatewayOperatorResourceRequests: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayOperatorResourceRequests", - modelProperties: { - cpu: { - serializedName: "cpu", - readOnly: true, - type: { - name: "String" - } - }, - memory: { - serializedName: "memory", - readOnly: true, - type: { - name: "String" - } - }, - instanceCount: { - serializedName: "instanceCount", - readOnly: true, - type: { - name: "Number" - } - } - } - } -}; - -export const GatewayResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const GatewayRouteConfigProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayRouteConfigProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - appResourceId: { - serializedName: "appResourceId", - type: { - name: "String" - } - }, - routes: { - serializedName: "routes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayApiRoute" - } - } - } - } - } - } -}; - -export const GatewayApiRoute: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayApiRoute", - modelProperties: { - title: { - serializedName: "title", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - type: { - name: "String" - } - }, - uri: { - serializedName: "uri", - type: { - name: "String" - } - }, - ssoEnabled: { - serializedName: "ssoEnabled", - type: { - name: "Boolean" - } - }, - tokenRelay: { - serializedName: "tokenRelay", - type: { - name: "Boolean" - } - }, - predicates: { - serializedName: "predicates", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - filters: { - serializedName: "filters", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - order: { - serializedName: "order", - type: { - name: "Number" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const GatewayRouteConfigResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayRouteConfigResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayRouteConfigResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const GatewayCustomDomainProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayCustomDomainProperties", - modelProperties: { - thumbprint: { - serializedName: "thumbprint", - type: { - name: "String" - } - } - } - } -}; - -export const GatewayCustomDomainResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayCustomDomainResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GatewayCustomDomainResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ApiPortalProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApiPortalProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - public: { - serializedName: "public", - type: { - name: "Boolean" - } - }, - url: { - serializedName: "url", - readOnly: true, - type: { - name: "String" - } - }, - httpsOnly: { - serializedName: "httpsOnly", - type: { - name: "Boolean" - } - }, - gatewayIds: { - serializedName: "gatewayIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - sourceUrls: { - serializedName: "sourceUrls", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - ssoProperties: { - serializedName: "ssoProperties", - type: { - name: "Composite", - className: "SsoProperties" - } - }, - resourceRequests: { - serializedName: "resourceRequests", - type: { - name: "Composite", - className: "ApiPortalResourceRequests" - } - }, - instances: { - serializedName: "instances", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApiPortalInstance" - } - } - } - } - } - } -}; - -export const ApiPortalResourceRequests: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApiPortalResourceRequests", - modelProperties: { - cpu: { - serializedName: "cpu", - readOnly: true, - type: { - name: "String" - } - }, - memory: { - serializedName: "memory", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ApiPortalInstance: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApiPortalInstance", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ApiPortalResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApiPortalResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApiPortalResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ApiPortalCustomDomainProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApiPortalCustomDomainProperties", - modelProperties: { - thumbprint: { - serializedName: "thumbprint", - type: { - name: "String" - } - } - } - } -}; - -export const ApiPortalCustomDomainResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApiPortalCustomDomainResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApiPortalCustomDomainResource" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const CustomContainer: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomContainer", - modelProperties: { - server: { - serializedName: "server", - type: { - name: "String" - } - }, - containerImage: { - serializedName: "containerImage", - type: { - name: "String" - } - }, - command: { - serializedName: "command", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - args: { - serializedName: "args", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - imageRegistryCredential: { - serializedName: "imageRegistryCredential", - type: { - name: "Composite", - className: "ImageRegistryCredential" - } - }, - languageFramework: { - serializedName: "languageFramework", - type: { - name: "String" - } - } - } - } -}; - -export const ImageRegistryCredential: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ImageRegistryCredential", - modelProperties: { - username: { - serializedName: "username", - type: { - name: "String" - } - }, - password: { - serializedName: "password", - type: { - name: "String" - } - } - } - } -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - location: { - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - -export const AzureFileVolume: coreClient.CompositeMapper = { - serializedName: "AzureFileVolume", - type: { - name: "Composite", - className: "AzureFileVolume", - uberParent: "CustomPersistentDiskProperties", - polymorphicDiscriminator: - CustomPersistentDiskProperties.type.polymorphicDiscriminator, - modelProperties: { - ...CustomPersistentDiskProperties.type.modelProperties, - shareName: { - serializedName: "shareName", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const StorageAccount: coreClient.CompositeMapper = { - serializedName: "StorageAccount", - type: { - name: "Composite", - className: "StorageAccount", - uberParent: "StorageProperties", - polymorphicDiscriminator: StorageProperties.type.polymorphicDiscriminator, - modelProperties: { - ...StorageProperties.type.modelProperties, - accountName: { - serializedName: "accountName", - required: true, - type: { - name: "String" - } - }, - accountKey: { - serializedName: "accountKey", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const KeyVaultCertificateProperties: coreClient.CompositeMapper = { - serializedName: "KeyVaultCertificate", - type: { - name: "Composite", - className: "KeyVaultCertificateProperties", - uberParent: "CertificateProperties", - polymorphicDiscriminator: - CertificateProperties.type.polymorphicDiscriminator, - modelProperties: { - ...CertificateProperties.type.modelProperties, - vaultUri: { - serializedName: "vaultUri", - required: true, - type: { - name: "String" - } - }, - keyVaultCertName: { - serializedName: "keyVaultCertName", - required: true, - type: { - name: "String" - } - }, - certVersion: { - serializedName: "certVersion", - type: { - name: "String" - } - }, - excludePrivateKey: { - defaultValue: false, - serializedName: "excludePrivateKey", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ContentCertificateProperties: coreClient.CompositeMapper = { - serializedName: "ContentCertificate", - type: { - name: "Composite", - className: "ContentCertificateProperties", - uberParent: "CertificateProperties", - polymorphicDiscriminator: - CertificateProperties.type.polymorphicDiscriminator, - modelProperties: { - ...CertificateProperties.type.modelProperties, - content: { - serializedName: "content", + ...CertificateProperties.type.modelProperties, + content: { + serializedName: "content", type: { name: "String" } @@ -4583,26 +3529,6 @@ export const BuildResultUserSourceInfo: coreClient.CompositeMapper = { } }; -export const CustomContainerUserSourceInfo: coreClient.CompositeMapper = { - serializedName: "Container", - type: { - name: "Composite", - className: "CustomContainerUserSourceInfo", - uberParent: "UserSourceInfo", - polymorphicDiscriminator: UserSourceInfo.type.polymorphicDiscriminator, - modelProperties: { - ...UserSourceInfo.type.modelProperties, - customContainer: { - serializedName: "customContainer", - type: { - name: "Composite", - className: "CustomContainer" - } - } - } - } -}; - export const ServiceResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4878,23 +3804,6 @@ export const BindingResource: coreClient.CompositeMapper = { } }; -export const StorageResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StorageResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "StorageProperties" - } - } - } - } -}; - export const CertificateResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4953,105 +3862,6 @@ export const DeploymentResource: coreClient.CompositeMapper = { } }; -export const GatewayResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "GatewayProperties" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - } - } - } -}; - -export const GatewayRouteConfigResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayRouteConfigResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "GatewayRouteConfigProperties" - } - } - } - } -}; - -export const GatewayCustomDomainResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GatewayCustomDomainResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "GatewayCustomDomainProperties" - } - } - } - } -}; - -export const ApiPortalResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApiPortalResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ApiPortalProperties" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - } - } - } -}; - -export const ApiPortalCustomDomainResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApiPortalCustomDomainResource", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "ApiPortalCustomDomainProperties" - } - } - } - } -}; - export const JarUploadedUserSourceInfo: coreClient.CompositeMapper = { serializedName: "Jar", type: { @@ -5128,17 +3938,12 @@ export const NetCoreZipUploadedUserSourceInfo: coreClient.CompositeMapper = { }; export let discriminators = { - CustomPersistentDiskProperties: CustomPersistentDiskProperties, - StorageProperties: StorageProperties, CertificateProperties: CertificateProperties, UserSourceInfo: UserSourceInfo, - "CustomPersistentDiskProperties.AzureFileVolume": AzureFileVolume, - "StorageProperties.StorageAccount": StorageAccount, "CertificateProperties.KeyVaultCertificate": KeyVaultCertificateProperties, "CertificateProperties.ContentCertificate": ContentCertificateProperties, "UserSourceInfo.UploadedUserSourceInfo": UploadedUserSourceInfo, "UserSourceInfo.BuildResult": BuildResultUserSourceInfo, - "UserSourceInfo.Container": CustomContainerUserSourceInfo, "UserSourceInfo.Jar": JarUploadedUserSourceInfo, "UserSourceInfo.Source": SourceUploadedUserSourceInfo, "UserSourceInfo.NetCoreZip": NetCoreZipUploadedUserSourceInfo diff --git a/sdk/appplatform/arm-appplatform/src/models/parameters.ts b/sdk/appplatform/arm-appplatform/src/models/parameters.ts index 3aa840e05696..e4f039e76a4f 100644 --- a/sdk/appplatform/arm-appplatform/src/models/parameters.ts +++ b/sdk/appplatform/arm-appplatform/src/models/parameters.ts @@ -28,16 +28,10 @@ import { ActiveDeploymentCollection as ActiveDeploymentCollectionMapper, CustomDomainValidatePayload as CustomDomainValidatePayloadMapper, BindingResource as BindingResourceMapper, - StorageResource as StorageResourceMapper, CertificateResource as CertificateResourceMapper, CustomDomainResource as CustomDomainResourceMapper, DeploymentResource as DeploymentResourceMapper, - DiagnosticParameters as DiagnosticParametersMapper, - GatewayResource as GatewayResourceMapper, - GatewayRouteConfigResource as GatewayRouteConfigResourceMapper, - GatewayCustomDomainResource as GatewayCustomDomainResourceMapper, - ApiPortalResource as ApiPortalResourceMapper, - ApiPortalCustomDomainResource as ApiPortalCustomDomainResourceMapper + DiagnosticParameters as DiagnosticParametersMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -67,7 +61,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-03-01-preview", + defaultValue: "2022-04-01", isConstant: true, serializedName: "api-version", type: { @@ -366,22 +360,6 @@ export const bindingResource: OperationParameter = { mapper: BindingResourceMapper }; -export const storageName: OperationURLParameter = { - parameterPath: "storageName", - mapper: { - serializedName: "storageName", - required: true, - type: { - name: "String" - } - } -}; - -export const storageResource: OperationParameter = { - parameterPath: "storageResource", - mapper: StorageResourceMapper -}; - export const certificateName: OperationURLParameter = { parameterPath: "certificateName", mapper: { @@ -450,61 +428,3 @@ export const diagnosticParameters: OperationParameter = { parameterPath: "diagnosticParameters", mapper: DiagnosticParametersMapper }; - -export const gatewayName: OperationURLParameter = { - parameterPath: "gatewayName", - mapper: { - serializedName: "gatewayName", - required: true, - type: { - name: "String" - } - } -}; - -export const gatewayResource: OperationParameter = { - parameterPath: "gatewayResource", - mapper: GatewayResourceMapper -}; - -export const routeConfigName: OperationURLParameter = { - parameterPath: "routeConfigName", - mapper: { - serializedName: "routeConfigName", - required: true, - type: { - name: "String" - } - } -}; - -export const gatewayRouteConfigResource: OperationParameter = { - parameterPath: "gatewayRouteConfigResource", - mapper: GatewayRouteConfigResourceMapper -}; - -export const gatewayCustomDomainResource: OperationParameter = { - parameterPath: "gatewayCustomDomainResource", - mapper: GatewayCustomDomainResourceMapper -}; - -export const apiPortalName: OperationURLParameter = { - parameterPath: "apiPortalName", - mapper: { - serializedName: "apiPortalName", - required: true, - type: { - name: "String" - } - } -}; - -export const apiPortalResource: OperationParameter = { - parameterPath: "apiPortalResource", - mapper: ApiPortalResourceMapper -}; - -export const apiPortalCustomDomainResource: OperationParameter = { - parameterPath: "apiPortalCustomDomainResource", - mapper: ApiPortalCustomDomainResourceMapper -}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts deleted file mode 100644 index 85dc28a1f5bc..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts +++ /dev/null @@ -1,527 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { ApiPortalCustomDomains } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AppPlatformManagementClient } from "../appPlatformManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - ApiPortalCustomDomainResource, - ApiPortalCustomDomainsListNextOptionalParams, - ApiPortalCustomDomainsListOptionalParams, - ApiPortalCustomDomainsGetOptionalParams, - ApiPortalCustomDomainsGetResponse, - ApiPortalCustomDomainsCreateOrUpdateOptionalParams, - ApiPortalCustomDomainsCreateOrUpdateResponse, - ApiPortalCustomDomainsDeleteOptionalParams, - ApiPortalCustomDomainsListResponse, - ApiPortalCustomDomainsListNextResponse -} from "../models"; - -/// -/** Class containing ApiPortalCustomDomains operations. */ -export class ApiPortalCustomDomainsImpl implements ApiPortalCustomDomains { - private readonly client: AppPlatformManagementClient; - - /** - * Initialize a new instance of the class ApiPortalCustomDomains class. - * @param client Reference to the service client - */ - constructor(client: AppPlatformManagementClient) { - this.client = client; - } - - /** - * Handle requests to list all API portal custom domains. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - options?: ApiPortalCustomDomainsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - serviceName, - apiPortalName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage( - resourceGroupName, - serviceName, - apiPortalName, - options - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - options?: ApiPortalCustomDomainsListOptionalParams - ): AsyncIterableIterator { - let result = await this._list( - resourceGroupName, - serviceName, - apiPortalName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - serviceName, - apiPortalName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listPagingAll( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - options?: ApiPortalCustomDomainsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - serviceName, - apiPortalName, - options - )) { - yield* page; - } - } - - /** - * Get the API portal custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param domainName The name of the API portal custom domain. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - domainName: string, - options?: ApiPortalCustomDomainsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, apiPortalName, domainName, options }, - getOperationSpec - ); - } - - /** - * Create or update the API portal custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param domainName The name of the API portal custom domain. - * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - domainName: string, - apiPortalCustomDomainResource: ApiPortalCustomDomainResource, - options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - ApiPortalCustomDomainsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { - resourceGroupName, - serviceName, - apiPortalName, - domainName, - apiPortalCustomDomainResource, - options - }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create or update the API portal custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param domainName The name of the API portal custom domain. - * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - domainName: string, - apiPortalCustomDomainResource: ApiPortalCustomDomainResource, - options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - serviceName, - apiPortalName, - domainName, - apiPortalCustomDomainResource, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete the API portal custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param domainName The name of the API portal custom domain. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - domainName: string, - options?: ApiPortalCustomDomainsDeleteOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, apiPortalName, domainName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Delete the API portal custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param domainName The name of the API portal custom domain. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - domainName: string, - options?: ApiPortalCustomDomainsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - serviceName, - apiPortalName, - domainName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Handle requests to list all API portal custom domains. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - options?: ApiPortalCustomDomainsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, apiPortalName, options }, - listOperationSpec - ); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - nextLink: string, - options?: ApiPortalCustomDomainsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, apiPortalName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApiPortalCustomDomainResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.domainName, - Parameters.apiPortalName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.ApiPortalCustomDomainResource - }, - 201: { - bodyMapper: Mappers.ApiPortalCustomDomainResource - }, - 202: { - bodyMapper: Mappers.ApiPortalCustomDomainResource - }, - 204: { - bodyMapper: Mappers.ApiPortalCustomDomainResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.apiPortalCustomDomainResource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.domainName, - Parameters.apiPortalName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains/{domainName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.domainName, - Parameters.apiPortalName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/domains", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApiPortalCustomDomainResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.apiPortalName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApiPortalCustomDomainResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.nextLink, - Parameters.apiPortalName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts b/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts deleted file mode 100644 index 8f744ad36c86..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts +++ /dev/null @@ -1,540 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { ApiPortals } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AppPlatformManagementClient } from "../appPlatformManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - ApiPortalResource, - ApiPortalsListNextOptionalParams, - ApiPortalsListOptionalParams, - ApiPortalsGetOptionalParams, - ApiPortalsGetResponse, - ApiPortalsCreateOrUpdateOptionalParams, - ApiPortalsCreateOrUpdateResponse, - ApiPortalsDeleteOptionalParams, - ApiPortalsListResponse, - CustomDomainValidatePayload, - ApiPortalsValidateDomainOptionalParams, - ApiPortalsValidateDomainResponse, - ApiPortalsListNextResponse -} from "../models"; - -/// -/** Class containing ApiPortals operations. */ -export class ApiPortalsImpl implements ApiPortals { - private readonly client: AppPlatformManagementClient; - - /** - * Initialize a new instance of the class ApiPortals class. - * @param client Reference to the service client - */ - constructor(client: AppPlatformManagementClient) { - this.client = client; - } - - /** - * Handles requests to list all resources in a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - serviceName: string, - options?: ApiPortalsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, serviceName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage(resourceGroupName, serviceName, options); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - serviceName: string, - options?: ApiPortalsListOptionalParams - ): AsyncIterableIterator { - let result = await this._list(resourceGroupName, serviceName, options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - serviceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listPagingAll( - resourceGroupName: string, - serviceName: string, - options?: ApiPortalsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - serviceName, - options - )) { - yield* page; - } - } - - /** - * Get the API portal and its properties. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - options?: ApiPortalsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, apiPortalName, options }, - getOperationSpec - ); - } - - /** - * Create the default API portal or update the existing API portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param apiPortalResource The API portal for the create or update operation - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - apiPortalResource: ApiPortalResource, - options?: ApiPortalsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - ApiPortalsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { - resourceGroupName, - serviceName, - apiPortalName, - apiPortalResource, - options - }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create the default API portal or update the existing API portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param apiPortalResource The API portal for the create or update operation - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - apiPortalResource: ApiPortalResource, - options?: ApiPortalsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - serviceName, - apiPortalName, - apiPortalResource, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete the default API portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - options?: ApiPortalsDeleteOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, apiPortalName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Delete the default API portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - options?: ApiPortalsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - serviceName, - apiPortalName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Handles requests to list all resources in a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - serviceName: string, - options?: ApiPortalsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, options }, - listOperationSpec - ); - } - - /** - * Check the domains are valid as well as not in use. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param validatePayload Custom domain payload to be validated - * @param options The options parameters. - */ - validateDomain( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - validatePayload: CustomDomainValidatePayload, - options?: ApiPortalsValidateDomainOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serviceName, - apiPortalName, - validatePayload, - options - }, - validateDomainOperationSpec - ); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - serviceName: string, - nextLink: string, - options?: ApiPortalsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApiPortalResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.apiPortalName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.ApiPortalResource - }, - 201: { - bodyMapper: Mappers.ApiPortalResource - }, - 202: { - bodyMapper: Mappers.ApiPortalResource - }, - 204: { - bodyMapper: Mappers.ApiPortalResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.apiPortalResource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.apiPortalName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.apiPortalName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApiPortalResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const validateDomainOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apiPortals/{apiPortalName}/validateDomain", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CustomDomainValidateResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.validatePayload, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.apiPortalName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApiPortalResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/apps.ts b/sdk/appplatform/arm-appplatform/src/operations/apps.ts index 3724990f101d..72df5297b6ae 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/apps.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/apps.ts @@ -197,8 +197,7 @@ export class AppsImpl implements Apps { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -290,8 +289,7 @@ export class AppsImpl implements Apps { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -384,8 +382,7 @@ export class AppsImpl implements Apps { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -528,8 +525,7 @@ export class AppsImpl implements Apps { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; diff --git a/sdk/appplatform/arm-appplatform/src/operations/bindings.ts b/sdk/appplatform/arm-appplatform/src/operations/bindings.ts index 0e1aad3255a0..b66f73411e7e 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/bindings.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/bindings.ts @@ -221,8 +221,7 @@ export class BindingsImpl implements Bindings { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -319,8 +318,7 @@ export class BindingsImpl implements Bindings { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -428,8 +426,7 @@ export class BindingsImpl implements Bindings { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts b/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts index e3a6613fd829..68f12b529947 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts @@ -244,8 +244,7 @@ export class BuildServiceAgentPoolImpl implements BuildServiceAgentPool { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts b/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts index 7f661eb99d97..2fd011ac05aa 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts @@ -225,8 +225,7 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -329,8 +328,7 @@ export class BuildServiceBuilderImpl implements BuildServiceBuilder { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts b/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts index 3971606d4f2d..ffeda11f9c3f 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts @@ -240,8 +240,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -350,8 +349,7 @@ export class BuildpackBindingImpl implements BuildpackBinding { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; diff --git a/sdk/appplatform/arm-appplatform/src/operations/certificates.ts b/sdk/appplatform/arm-appplatform/src/operations/certificates.ts index e6b23ad59406..ad03977b20bd 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/certificates.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/certificates.ts @@ -193,8 +193,7 @@ export class CertificatesImpl implements Certificates { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -286,8 +285,7 @@ export class CertificatesImpl implements Certificates { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; diff --git a/sdk/appplatform/arm-appplatform/src/operations/configServers.ts b/sdk/appplatform/arm-appplatform/src/operations/configServers.ts index 8a854f018855..e8680612e46b 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/configServers.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/configServers.ts @@ -121,8 +121,7 @@ export class ConfigServersImpl implements ConfigServers { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -216,8 +215,7 @@ export class ConfigServersImpl implements ConfigServers { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; diff --git a/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts b/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts index 34929d63ab28..973337b87c93 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts @@ -197,8 +197,7 @@ export class ConfigurationServicesImpl implements ConfigurationServices { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -291,8 +290,7 @@ export class ConfigurationServicesImpl implements ConfigurationServices { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; diff --git a/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts index bd9b10f5a902..3710cfe8ff93 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts @@ -221,8 +221,7 @@ export class CustomDomainsImpl implements CustomDomains { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -319,8 +318,7 @@ export class CustomDomainsImpl implements CustomDomains { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -428,8 +426,7 @@ export class CustomDomainsImpl implements CustomDomains { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; diff --git a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts index f694189427d0..692478d2c7a7 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts @@ -306,8 +306,7 @@ export class DeploymentsImpl implements Deployments { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -404,8 +403,7 @@ export class DeploymentsImpl implements Deployments { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -513,8 +511,7 @@ export class DeploymentsImpl implements Deployments { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -649,8 +646,7 @@ export class DeploymentsImpl implements Deployments { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -744,8 +740,7 @@ export class DeploymentsImpl implements Deployments { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -839,8 +834,7 @@ export class DeploymentsImpl implements Deployments { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -965,8 +959,7 @@ export class DeploymentsImpl implements Deployments { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -1072,8 +1065,7 @@ export class DeploymentsImpl implements Deployments { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -1179,8 +1171,7 @@ export class DeploymentsImpl implements Deployments { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; diff --git a/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts deleted file mode 100644 index cdae01b6f122..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts +++ /dev/null @@ -1,529 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { GatewayCustomDomains } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AppPlatformManagementClient } from "../appPlatformManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - GatewayCustomDomainResource, - GatewayCustomDomainsListNextOptionalParams, - GatewayCustomDomainsListOptionalParams, - GatewayCustomDomainsGetOptionalParams, - GatewayCustomDomainsGetResponse, - GatewayCustomDomainsCreateOrUpdateOptionalParams, - GatewayCustomDomainsCreateOrUpdateResponse, - GatewayCustomDomainsDeleteOptionalParams, - GatewayCustomDomainsListResponse, - GatewayCustomDomainsListNextResponse -} from "../models"; - -/// -/** Class containing GatewayCustomDomains operations. */ -export class GatewayCustomDomainsImpl implements GatewayCustomDomains { - private readonly client: AppPlatformManagementClient; - - /** - * Initialize a new instance of the class GatewayCustomDomains class. - * @param client Reference to the service client - */ - constructor(client: AppPlatformManagementClient) { - this.client = client; - } - - /** - * Handle requests to list all Spring Cloud Gateway custom domains. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewayCustomDomainsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - serviceName, - gatewayName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage( - resourceGroupName, - serviceName, - gatewayName, - options - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewayCustomDomainsListOptionalParams - ): AsyncIterableIterator { - let result = await this._list( - resourceGroupName, - serviceName, - gatewayName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - serviceName, - gatewayName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listPagingAll( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewayCustomDomainsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - serviceName, - gatewayName, - options - )) { - yield* page; - } - } - - /** - * Get the Spring Cloud Gateway custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param domainName The name of the Spring Cloud Gateway custom domain. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - domainName: string, - options?: GatewayCustomDomainsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, gatewayName, domainName, options }, - getOperationSpec - ); - } - - /** - * Create or update the Spring Cloud Gateway custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param domainName The name of the Spring Cloud Gateway custom domain. - * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update - * operation - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - domainName: string, - gatewayCustomDomainResource: GatewayCustomDomainResource, - options?: GatewayCustomDomainsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - GatewayCustomDomainsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { - resourceGroupName, - serviceName, - gatewayName, - domainName, - gatewayCustomDomainResource, - options - }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create or update the Spring Cloud Gateway custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param domainName The name of the Spring Cloud Gateway custom domain. - * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update - * operation - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - domainName: string, - gatewayCustomDomainResource: GatewayCustomDomainResource, - options?: GatewayCustomDomainsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - serviceName, - gatewayName, - domainName, - gatewayCustomDomainResource, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete the Spring Cloud Gateway custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param domainName The name of the Spring Cloud Gateway custom domain. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - domainName: string, - options?: GatewayCustomDomainsDeleteOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, gatewayName, domainName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Delete the Spring Cloud Gateway custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param domainName The name of the Spring Cloud Gateway custom domain. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - domainName: string, - options?: GatewayCustomDomainsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - serviceName, - gatewayName, - domainName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Handle requests to list all Spring Cloud Gateway custom domains. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewayCustomDomainsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, gatewayName, options }, - listOperationSpec - ); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - nextLink: string, - options?: GatewayCustomDomainsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, gatewayName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GatewayCustomDomainResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.domainName, - Parameters.gatewayName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.GatewayCustomDomainResource - }, - 201: { - bodyMapper: Mappers.GatewayCustomDomainResource - }, - 202: { - bodyMapper: Mappers.GatewayCustomDomainResource - }, - 204: { - bodyMapper: Mappers.GatewayCustomDomainResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.gatewayCustomDomainResource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.domainName, - Parameters.gatewayName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains/{domainName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.domainName, - Parameters.gatewayName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/domains", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GatewayCustomDomainResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.gatewayName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GatewayCustomDomainResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.nextLink, - Parameters.gatewayName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts b/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts deleted file mode 100644 index 9b9e53cf5e52..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts +++ /dev/null @@ -1,531 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { GatewayRouteConfigs } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AppPlatformManagementClient } from "../appPlatformManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - GatewayRouteConfigResource, - GatewayRouteConfigsListNextOptionalParams, - GatewayRouteConfigsListOptionalParams, - GatewayRouteConfigsGetOptionalParams, - GatewayRouteConfigsGetResponse, - GatewayRouteConfigsCreateOrUpdateOptionalParams, - GatewayRouteConfigsCreateOrUpdateResponse, - GatewayRouteConfigsDeleteOptionalParams, - GatewayRouteConfigsListResponse, - GatewayRouteConfigsListNextResponse -} from "../models"; - -/// -/** Class containing GatewayRouteConfigs operations. */ -export class GatewayRouteConfigsImpl implements GatewayRouteConfigs { - private readonly client: AppPlatformManagementClient; - - /** - * Initialize a new instance of the class GatewayRouteConfigs class. - * @param client Reference to the service client - */ - constructor(client: AppPlatformManagementClient) { - this.client = client; - } - - /** - * Handle requests to list all Spring Cloud Gateway route configs. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewayRouteConfigsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - serviceName, - gatewayName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage( - resourceGroupName, - serviceName, - gatewayName, - options - ); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewayRouteConfigsListOptionalParams - ): AsyncIterableIterator { - let result = await this._list( - resourceGroupName, - serviceName, - gatewayName, - options - ); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - serviceName, - gatewayName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listPagingAll( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewayRouteConfigsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - serviceName, - gatewayName, - options - )) { - yield* page; - } - } - - /** - * Get the Spring Cloud Gateway route configs. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param routeConfigName The name of the Spring Cloud Gateway route config. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - routeConfigName: string, - options?: GatewayRouteConfigsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, gatewayName, routeConfigName, options }, - getOperationSpec - ); - } - - /** - * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway - * route configs. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param routeConfigName The name of the Spring Cloud Gateway route config. - * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update - * operation - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - routeConfigName: string, - gatewayRouteConfigResource: GatewayRouteConfigResource, - options?: GatewayRouteConfigsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - GatewayRouteConfigsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { - resourceGroupName, - serviceName, - gatewayName, - routeConfigName, - gatewayRouteConfigResource, - options - }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway - * route configs. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param routeConfigName The name of the Spring Cloud Gateway route config. - * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update - * operation - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - routeConfigName: string, - gatewayRouteConfigResource: GatewayRouteConfigResource, - options?: GatewayRouteConfigsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName, - gatewayRouteConfigResource, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete the Spring Cloud Gateway route config. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param routeConfigName The name of the Spring Cloud Gateway route config. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - routeConfigName: string, - options?: GatewayRouteConfigsDeleteOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, gatewayName, routeConfigName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Delete the Spring Cloud Gateway route config. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param routeConfigName The name of the Spring Cloud Gateway route config. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - routeConfigName: string, - options?: GatewayRouteConfigsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - serviceName, - gatewayName, - routeConfigName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Handle requests to list all Spring Cloud Gateway route configs. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewayRouteConfigsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, gatewayName, options }, - listOperationSpec - ); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - nextLink: string, - options?: GatewayRouteConfigsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, gatewayName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GatewayRouteConfigResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.gatewayName, - Parameters.routeConfigName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.GatewayRouteConfigResource - }, - 201: { - bodyMapper: Mappers.GatewayRouteConfigResource - }, - 202: { - bodyMapper: Mappers.GatewayRouteConfigResource - }, - 204: { - bodyMapper: Mappers.GatewayRouteConfigResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.gatewayRouteConfigResource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.gatewayName, - Parameters.routeConfigName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs/{routeConfigName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.gatewayName, - Parameters.routeConfigName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/routeConfigs", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GatewayRouteConfigResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.gatewayName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GatewayRouteConfigResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.nextLink, - Parameters.gatewayName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/gateways.ts b/sdk/appplatform/arm-appplatform/src/operations/gateways.ts deleted file mode 100644 index 2057d727f2c7..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operations/gateways.ts +++ /dev/null @@ -1,528 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Gateways } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AppPlatformManagementClient } from "../appPlatformManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - GatewayResource, - GatewaysListNextOptionalParams, - GatewaysListOptionalParams, - GatewaysGetOptionalParams, - GatewaysGetResponse, - GatewaysCreateOrUpdateOptionalParams, - GatewaysCreateOrUpdateResponse, - GatewaysDeleteOptionalParams, - GatewaysListResponse, - CustomDomainValidatePayload, - GatewaysValidateDomainOptionalParams, - GatewaysValidateDomainResponse, - GatewaysListNextResponse -} from "../models"; - -/// -/** Class containing Gateways operations. */ -export class GatewaysImpl implements Gateways { - private readonly client: AppPlatformManagementClient; - - /** - * Initialize a new instance of the class Gateways class. - * @param client Reference to the service client - */ - constructor(client: AppPlatformManagementClient) { - this.client = client; - } - - /** - * Handles requests to list all resources in a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - serviceName: string, - options?: GatewaysListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, serviceName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage(resourceGroupName, serviceName, options); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - serviceName: string, - options?: GatewaysListOptionalParams - ): AsyncIterableIterator { - let result = await this._list(resourceGroupName, serviceName, options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - serviceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listPagingAll( - resourceGroupName: string, - serviceName: string, - options?: GatewaysListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - serviceName, - options - )) { - yield* page; - } - } - - /** - * Get the Spring Cloud Gateway and its properties. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewaysGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, gatewayName, options }, - getOperationSpec - ); - } - - /** - * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param gatewayResource The gateway for the create or update operation - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - gatewayResource: GatewayResource, - options?: GatewaysCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - GatewaysCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, gatewayName, gatewayResource, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param gatewayResource The gateway for the create or update operation - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - gatewayResource: GatewayResource, - options?: GatewaysCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - serviceName, - gatewayName, - gatewayResource, - options - ); - return poller.pollUntilDone(); - } - - /** - * Disable the default Spring Cloud Gateway. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewaysDeleteOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, gatewayName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Disable the default Spring Cloud Gateway. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewaysDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - serviceName, - gatewayName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Handles requests to list all resources in a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - serviceName: string, - options?: GatewaysListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, options }, - listOperationSpec - ); - } - - /** - * Check the domains are valid as well as not in use. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param validatePayload Custom domain payload to be validated - * @param options The options parameters. - */ - validateDomain( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - validatePayload: CustomDomainValidatePayload, - options?: GatewaysValidateDomainOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, gatewayName, validatePayload, options }, - validateDomainOperationSpec - ); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - serviceName: string, - nextLink: string, - options?: GatewaysListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GatewayResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.gatewayName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.GatewayResource - }, - 201: { - bodyMapper: Mappers.GatewayResource - }, - 202: { - bodyMapper: Mappers.GatewayResource - }, - 204: { - bodyMapper: Mappers.GatewayResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.gatewayResource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.gatewayName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.gatewayName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GatewayResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const validateDomainOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/gateways/{gatewayName}/validateDomain", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CustomDomainValidateResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.validatePayload, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.gatewayName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GatewayResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/index.ts b/sdk/appplatform/arm-appplatform/src/operations/index.ts index 74a7d0c1f6fa..a53d4bef767a 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/index.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/index.ts @@ -17,15 +17,9 @@ export * from "./buildServiceAgentPool"; export * from "./monitoringSettings"; export * from "./apps"; export * from "./bindings"; -export * from "./storages"; export * from "./certificates"; export * from "./customDomains"; export * from "./deployments"; export * from "./operations"; export * from "./runtimeVersions"; export * from "./skus"; -export * from "./gateways"; -export * from "./gatewayRouteConfigs"; -export * from "./gatewayCustomDomains"; -export * from "./apiPortals"; -export * from "./apiPortalCustomDomains"; diff --git a/sdk/appplatform/arm-appplatform/src/operations/monitoringSettings.ts b/sdk/appplatform/arm-appplatform/src/operations/monitoringSettings.ts index f4790f02aa83..3d0a32ba97a1 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/monitoringSettings.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/monitoringSettings.ts @@ -118,8 +118,7 @@ export class MonitoringSettingsImpl implements MonitoringSettings { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -213,8 +212,7 @@ export class MonitoringSettingsImpl implements MonitoringSettings { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; diff --git a/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts b/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts index 9d8d85d1f7da..52238f4a3522 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts @@ -185,8 +185,7 @@ export class ServiceRegistriesImpl implements ServiceRegistries { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -275,8 +274,7 @@ export class ServiceRegistriesImpl implements ServiceRegistries { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; diff --git a/sdk/appplatform/arm-appplatform/src/operations/services.ts b/sdk/appplatform/arm-appplatform/src/operations/services.ts index 89c7e63e47c5..13136521c513 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/services.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/services.ts @@ -35,8 +35,6 @@ import { ServicesDisableTestEndpointOptionalParams, ServicesEnableTestEndpointOptionalParams, ServicesEnableTestEndpointResponse, - ServicesStopOptionalParams, - ServicesStartOptionalParams, NameAvailabilityParameters, ServicesCheckNameAvailabilityOptionalParams, ServicesCheckNameAvailabilityResponse, @@ -235,8 +233,7 @@ export class ServicesImpl implements Services { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -323,8 +320,7 @@ export class ServicesImpl implements Services { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -415,8 +411,7 @@ export class ServicesImpl implements Services { ); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + intervalInMs: options?.updateIntervalInMs }); await poller.poll(); return poller; @@ -519,176 +514,6 @@ export class ServicesImpl implements Services { ); } - /** - * Stop a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - async beginStop( - resourceGroupName: string, - serviceName: string, - options?: ServicesStopOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, options }, - stopOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Stop a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - async beginStopAndWait( - resourceGroupName: string, - serviceName: string, - options?: ServicesStopOptionalParams - ): Promise { - const poller = await this.beginStop( - resourceGroupName, - serviceName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Start a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - async beginStart( - resourceGroupName: string, - serviceName: string, - options?: ServicesStartOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, options }, - startOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Start a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - async beginStartAndWait( - resourceGroupName: string, - serviceName: string, - options?: ServicesStartOptionalParams - ): Promise { - const poller = await this.beginStart( - resourceGroupName, - serviceName, - options - ); - return poller.pollUntilDone(); - } - /** * Checks that the resource name is valid and is not already in use. * @param location the region @@ -970,64 +795,6 @@ const enableTestEndpointOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const stopOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/stop", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - 404: { - isError: true - }, - 409: { - isError: true - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/start", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - 404: { - isError: true - }, - 409: { - isError: true - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName - ], - headerParameters: [Parameters.accept], - serializer -}; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/locations/{location}/checkNameAvailability", diff --git a/sdk/appplatform/arm-appplatform/src/operations/storages.ts b/sdk/appplatform/arm-appplatform/src/operations/storages.ts deleted file mode 100644 index d2bcac9057a5..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operations/storages.ts +++ /dev/null @@ -1,478 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Storages } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AppPlatformManagementClient } from "../appPlatformManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - StorageResource, - StoragesListNextOptionalParams, - StoragesListOptionalParams, - StoragesGetOptionalParams, - StoragesGetResponse, - StoragesCreateOrUpdateOptionalParams, - StoragesCreateOrUpdateResponse, - StoragesDeleteOptionalParams, - StoragesListResponse, - StoragesListNextResponse -} from "../models"; - -/// -/** Class containing Storages operations. */ -export class StoragesImpl implements Storages { - private readonly client: AppPlatformManagementClient; - - /** - * Initialize a new instance of the class Storages class. - * @param client Reference to the service client - */ - constructor(client: AppPlatformManagementClient) { - this.client = client; - } - - /** - * List all the storages of one Azure Spring Cloud instance. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - serviceName: string, - options?: StoragesListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, serviceName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage(resourceGroupName, serviceName, options); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - serviceName: string, - options?: StoragesListOptionalParams - ): AsyncIterableIterator { - let result = await this._list(resourceGroupName, serviceName, options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - serviceName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listPagingAll( - resourceGroupName: string, - serviceName: string, - options?: StoragesListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - serviceName, - options - )) { - yield* page; - } - } - - /** - * Get the storage resource. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param storageName The name of the storage resource. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - storageName: string, - options?: StoragesGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, storageName, options }, - getOperationSpec - ); - } - - /** - * Create or update storage resource. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param storageName The name of the storage resource. - * @param storageResource Parameters for the create or update operation - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - storageName: string, - storageResource: StorageResource, - options?: StoragesCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - StoragesCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, storageName, storageResource, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Create or update storage resource. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param storageName The name of the storage resource. - * @param storageResource Parameters for the create or update operation - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - storageName: string, - storageResource: StorageResource, - options?: StoragesCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - serviceName, - storageName, - storageResource, - options - ); - return poller.pollUntilDone(); - } - - /** - * Delete the storage resource. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param storageName The name of the storage resource. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - serviceName: string, - storageName: string, - options?: StoragesDeleteOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, serviceName, storageName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Delete the storage resource. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param storageName The name of the storage resource. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - storageName: string, - options?: StoragesDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - serviceName, - storageName, - options - ); - return poller.pollUntilDone(); - } - - /** - * List all the storages of one Azure Spring Cloud instance. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - serviceName: string, - options?: StoragesListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, options }, - listOperationSpec - ); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - serviceName: string, - nextLink: string, - options?: StoragesListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, serviceName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.StorageResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.storageName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.StorageResource - }, - 201: { - bodyMapper: Mappers.StorageResource - }, - 202: { - bodyMapper: Mappers.StorageResource - }, - 204: { - bodyMapper: Mappers.StorageResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.storageResource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.storageName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages/{storageName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.storageName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/storages", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.StorageResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.StorageResourceCollection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortalCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortalCustomDomains.ts deleted file mode 100644 index 28a46086f61a..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortalCustomDomains.ts +++ /dev/null @@ -1,127 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - ApiPortalCustomDomainResource, - ApiPortalCustomDomainsListOptionalParams, - ApiPortalCustomDomainsGetOptionalParams, - ApiPortalCustomDomainsGetResponse, - ApiPortalCustomDomainsCreateOrUpdateOptionalParams, - ApiPortalCustomDomainsCreateOrUpdateResponse, - ApiPortalCustomDomainsDeleteOptionalParams -} from "../models"; - -/// -/** Interface representing a ApiPortalCustomDomains. */ -export interface ApiPortalCustomDomains { - /** - * Handle requests to list all API portal custom domains. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - options?: ApiPortalCustomDomainsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the API portal custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param domainName The name of the API portal custom domain. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - domainName: string, - options?: ApiPortalCustomDomainsGetOptionalParams - ): Promise; - /** - * Create or update the API portal custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param domainName The name of the API portal custom domain. - * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - domainName: string, - apiPortalCustomDomainResource: ApiPortalCustomDomainResource, - options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - ApiPortalCustomDomainsCreateOrUpdateResponse - > - >; - /** - * Create or update the API portal custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param domainName The name of the API portal custom domain. - * @param apiPortalCustomDomainResource The API portal custom domain for the create or update operation - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - domainName: string, - apiPortalCustomDomainResource: ApiPortalCustomDomainResource, - options?: ApiPortalCustomDomainsCreateOrUpdateOptionalParams - ): Promise; - /** - * Delete the API portal custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param domainName The name of the API portal custom domain. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - domainName: string, - options?: ApiPortalCustomDomainsDeleteOptionalParams - ): Promise, void>>; - /** - * Delete the API portal custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param domainName The name of the API portal custom domain. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - domainName: string, - options?: ApiPortalCustomDomainsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortals.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortals.ts deleted file mode 100644 index 0f5edd60121f..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortals.ts +++ /dev/null @@ -1,134 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - ApiPortalResource, - ApiPortalsListOptionalParams, - ApiPortalsGetOptionalParams, - ApiPortalsGetResponse, - ApiPortalsCreateOrUpdateOptionalParams, - ApiPortalsCreateOrUpdateResponse, - ApiPortalsDeleteOptionalParams, - CustomDomainValidatePayload, - ApiPortalsValidateDomainOptionalParams, - ApiPortalsValidateDomainResponse -} from "../models"; - -/// -/** Interface representing a ApiPortals. */ -export interface ApiPortals { - /** - * Handles requests to list all resources in a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - serviceName: string, - options?: ApiPortalsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the API portal and its properties. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - options?: ApiPortalsGetOptionalParams - ): Promise; - /** - * Create the default API portal or update the existing API portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param apiPortalResource The API portal for the create or update operation - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - apiPortalResource: ApiPortalResource, - options?: ApiPortalsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - ApiPortalsCreateOrUpdateResponse - > - >; - /** - * Create the default API portal or update the existing API portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param apiPortalResource The API portal for the create or update operation - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - apiPortalResource: ApiPortalResource, - options?: ApiPortalsCreateOrUpdateOptionalParams - ): Promise; - /** - * Delete the default API portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - options?: ApiPortalsDeleteOptionalParams - ): Promise, void>>; - /** - * Delete the default API portal. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - options?: ApiPortalsDeleteOptionalParams - ): Promise; - /** - * Check the domains are valid as well as not in use. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param apiPortalName The name of API portal. - * @param validatePayload Custom domain payload to be validated - * @param options The options parameters. - */ - validateDomain( - resourceGroupName: string, - serviceName: string, - apiPortalName: string, - validatePayload: CustomDomainValidatePayload, - options?: ApiPortalsValidateDomainOptionalParams - ): Promise; -} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayCustomDomains.ts deleted file mode 100644 index fd8cfb52a05f..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayCustomDomains.ts +++ /dev/null @@ -1,129 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - GatewayCustomDomainResource, - GatewayCustomDomainsListOptionalParams, - GatewayCustomDomainsGetOptionalParams, - GatewayCustomDomainsGetResponse, - GatewayCustomDomainsCreateOrUpdateOptionalParams, - GatewayCustomDomainsCreateOrUpdateResponse, - GatewayCustomDomainsDeleteOptionalParams -} from "../models"; - -/// -/** Interface representing a GatewayCustomDomains. */ -export interface GatewayCustomDomains { - /** - * Handle requests to list all Spring Cloud Gateway custom domains. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewayCustomDomainsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the Spring Cloud Gateway custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param domainName The name of the Spring Cloud Gateway custom domain. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - domainName: string, - options?: GatewayCustomDomainsGetOptionalParams - ): Promise; - /** - * Create or update the Spring Cloud Gateway custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param domainName The name of the Spring Cloud Gateway custom domain. - * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update - * operation - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - domainName: string, - gatewayCustomDomainResource: GatewayCustomDomainResource, - options?: GatewayCustomDomainsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - GatewayCustomDomainsCreateOrUpdateResponse - > - >; - /** - * Create or update the Spring Cloud Gateway custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param domainName The name of the Spring Cloud Gateway custom domain. - * @param gatewayCustomDomainResource The gateway custom domain resource for the create or update - * operation - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - domainName: string, - gatewayCustomDomainResource: GatewayCustomDomainResource, - options?: GatewayCustomDomainsCreateOrUpdateOptionalParams - ): Promise; - /** - * Delete the Spring Cloud Gateway custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param domainName The name of the Spring Cloud Gateway custom domain. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - domainName: string, - options?: GatewayCustomDomainsDeleteOptionalParams - ): Promise, void>>; - /** - * Delete the Spring Cloud Gateway custom domain. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param domainName The name of the Spring Cloud Gateway custom domain. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - domainName: string, - options?: GatewayCustomDomainsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayRouteConfigs.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayRouteConfigs.ts deleted file mode 100644 index a687db447dd2..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayRouteConfigs.ts +++ /dev/null @@ -1,131 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - GatewayRouteConfigResource, - GatewayRouteConfigsListOptionalParams, - GatewayRouteConfigsGetOptionalParams, - GatewayRouteConfigsGetResponse, - GatewayRouteConfigsCreateOrUpdateOptionalParams, - GatewayRouteConfigsCreateOrUpdateResponse, - GatewayRouteConfigsDeleteOptionalParams -} from "../models"; - -/// -/** Interface representing a GatewayRouteConfigs. */ -export interface GatewayRouteConfigs { - /** - * Handle requests to list all Spring Cloud Gateway route configs. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewayRouteConfigsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the Spring Cloud Gateway route configs. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param routeConfigName The name of the Spring Cloud Gateway route config. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - routeConfigName: string, - options?: GatewayRouteConfigsGetOptionalParams - ): Promise; - /** - * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway - * route configs. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param routeConfigName The name of the Spring Cloud Gateway route config. - * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update - * operation - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - routeConfigName: string, - gatewayRouteConfigResource: GatewayRouteConfigResource, - options?: GatewayRouteConfigsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - GatewayRouteConfigsCreateOrUpdateResponse - > - >; - /** - * Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway - * route configs. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param routeConfigName The name of the Spring Cloud Gateway route config. - * @param gatewayRouteConfigResource The Spring Cloud Gateway route config for the create or update - * operation - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - routeConfigName: string, - gatewayRouteConfigResource: GatewayRouteConfigResource, - options?: GatewayRouteConfigsCreateOrUpdateOptionalParams - ): Promise; - /** - * Delete the Spring Cloud Gateway route config. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param routeConfigName The name of the Spring Cloud Gateway route config. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - routeConfigName: string, - options?: GatewayRouteConfigsDeleteOptionalParams - ): Promise, void>>; - /** - * Delete the Spring Cloud Gateway route config. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param routeConfigName The name of the Spring Cloud Gateway route config. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - routeConfigName: string, - options?: GatewayRouteConfigsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts deleted file mode 100644 index 9f95eea1bc7a..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts +++ /dev/null @@ -1,134 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - GatewayResource, - GatewaysListOptionalParams, - GatewaysGetOptionalParams, - GatewaysGetResponse, - GatewaysCreateOrUpdateOptionalParams, - GatewaysCreateOrUpdateResponse, - GatewaysDeleteOptionalParams, - CustomDomainValidatePayload, - GatewaysValidateDomainOptionalParams, - GatewaysValidateDomainResponse -} from "../models"; - -/// -/** Interface representing a Gateways. */ -export interface Gateways { - /** - * Handles requests to list all resources in a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - serviceName: string, - options?: GatewaysListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the Spring Cloud Gateway and its properties. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewaysGetOptionalParams - ): Promise; - /** - * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param gatewayResource The gateway for the create or update operation - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - gatewayResource: GatewayResource, - options?: GatewaysCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - GatewaysCreateOrUpdateResponse - > - >; - /** - * Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param gatewayResource The gateway for the create or update operation - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - gatewayResource: GatewayResource, - options?: GatewaysCreateOrUpdateOptionalParams - ): Promise; - /** - * Disable the default Spring Cloud Gateway. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewaysDeleteOptionalParams - ): Promise, void>>; - /** - * Disable the default Spring Cloud Gateway. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - options?: GatewaysDeleteOptionalParams - ): Promise; - /** - * Check the domains are valid as well as not in use. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param gatewayName The name of Spring Cloud Gateway. - * @param validatePayload Custom domain payload to be validated - * @param options The options parameters. - */ - validateDomain( - resourceGroupName: string, - serviceName: string, - gatewayName: string, - validatePayload: CustomDomainValidatePayload, - options?: GatewaysValidateDomainOptionalParams - ): Promise; -} diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts index 74a7d0c1f6fa..a53d4bef767a 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts @@ -17,15 +17,9 @@ export * from "./buildServiceAgentPool"; export * from "./monitoringSettings"; export * from "./apps"; export * from "./bindings"; -export * from "./storages"; export * from "./certificates"; export * from "./customDomains"; export * from "./deployments"; export * from "./operations"; export * from "./runtimeVersions"; export * from "./skus"; -export * from "./gateways"; -export * from "./gatewayRouteConfigs"; -export * from "./gatewayCustomDomains"; -export * from "./apiPortals"; -export * from "./apiPortalCustomDomains"; diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts index 39217aa14f9c..a126d70ac300 100644 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts +++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts @@ -27,8 +27,6 @@ import { ServicesDisableTestEndpointOptionalParams, ServicesEnableTestEndpointOptionalParams, ServicesEnableTestEndpointResponse, - ServicesStopOptionalParams, - ServicesStartOptionalParams, NameAvailabilityParameters, ServicesCheckNameAvailabilityOptionalParams, ServicesCheckNameAvailabilityResponse @@ -206,54 +204,6 @@ export interface Services { serviceName: string, options?: ServicesEnableTestEndpointOptionalParams ): Promise; - /** - * Stop a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - beginStop( - resourceGroupName: string, - serviceName: string, - options?: ServicesStopOptionalParams - ): Promise, void>>; - /** - * Stop a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - beginStopAndWait( - resourceGroupName: string, - serviceName: string, - options?: ServicesStopOptionalParams - ): Promise; - /** - * Start a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - beginStart( - resourceGroupName: string, - serviceName: string, - options?: ServicesStartOptionalParams - ): Promise, void>>; - /** - * Start a Service. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - beginStartAndWait( - resourceGroupName: string, - serviceName: string, - options?: ServicesStartOptionalParams - ): Promise; /** * Checks that the resource name is valid and is not already in use. * @param location the region diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/storages.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/storages.ts deleted file mode 100644 index 281e6bc25129..000000000000 --- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/storages.ts +++ /dev/null @@ -1,115 +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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - StorageResource, - StoragesListOptionalParams, - StoragesGetOptionalParams, - StoragesGetResponse, - StoragesCreateOrUpdateOptionalParams, - StoragesCreateOrUpdateResponse, - StoragesDeleteOptionalParams -} from "../models"; - -/// -/** Interface representing a Storages. */ -export interface Storages { - /** - * List all the storages of one Azure Spring Cloud instance. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - serviceName: string, - options?: StoragesListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get the storage resource. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param storageName The name of the storage resource. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - serviceName: string, - storageName: string, - options?: StoragesGetOptionalParams - ): Promise; - /** - * Create or update storage resource. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param storageName The name of the storage resource. - * @param storageResource Parameters for the create or update operation - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - serviceName: string, - storageName: string, - storageResource: StorageResource, - options?: StoragesCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - StoragesCreateOrUpdateResponse - > - >; - /** - * Create or update storage resource. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param storageName The name of the storage resource. - * @param storageResource Parameters for the create or update operation - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - serviceName: string, - storageName: string, - storageResource: StorageResource, - options?: StoragesCreateOrUpdateOptionalParams - ): Promise; - /** - * Delete the storage resource. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param storageName The name of the storage resource. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - serviceName: string, - storageName: string, - options?: StoragesDeleteOptionalParams - ): Promise, void>>; - /** - * Delete the storage resource. - * @param resourceGroupName The name of the resource group that contains the resource. You can obtain - * this value from the Azure Resource Manager API or the portal. - * @param serviceName The name of the Service resource. - * @param storageName The name of the storage resource. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - serviceName: string, - storageName: string, - options?: StoragesDeleteOptionalParams - ): Promise; -}