From cd8897dd2bc6aea203a47b3c20cc92b9a20aae64 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 10 Dec 2021 08:52:12 +0000 Subject: [PATCH] CodeGen from PR 16997 in Azure/azure-rest-api-specs Adding missing advanced filters (#16997) --- sdk/eventgrid/arm-eventgrid/CHANGELOG.md | 32 ++- sdk/eventgrid/arm-eventgrid/_meta.json | 4 +- sdk/eventgrid/arm-eventgrid/package.json | 18 +- .../recording_domains_create_test.js | 255 ------------------ .../recording_domains_delete_test.js | 255 ------------------ .../recording_domains_get_test.js | 147 ---------- ...ording_domains_listbyresourcegroup_test.js | 147 ---------- .../recording_domains_update_test.js | 183 ------------- .../recording_topics_create_test.js | 255 ------------------ .../recording_topics_delete_test.js | 255 ------------------ ...cording_topics_listbyresourcegroup_test.js | 147 ---------- .../arm-eventgrid/review/arm-eventgrid.api.md | 58 +++- .../src/eventGridManagementClient.ts | 2 +- .../arm-eventgrid/src/models/index.ts | 88 +++++- .../arm-eventgrid/src/models/mappers.ts | 163 +++++++++++ .../arm-eventgrid/test/eventgrid_examples.ts | 129 --------- .../arm-eventgrid/test/sampleTest.ts | 48 ++++ 17 files changed, 379 insertions(+), 1807 deletions(-) delete mode 100644 sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_create_test.js delete mode 100644 sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_delete_test.js delete mode 100644 sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_get_test.js delete mode 100644 sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_listbyresourcegroup_test.js delete mode 100644 sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_update_test.js delete mode 100644 sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_topics_create_test.js delete mode 100644 sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_topics_delete_test.js delete mode 100644 sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_topics_listbyresourcegroup_test.js delete mode 100644 sdk/eventgrid/arm-eventgrid/test/eventgrid_examples.ts create mode 100644 sdk/eventgrid/arm-eventgrid/test/sampleTest.ts diff --git a/sdk/eventgrid/arm-eventgrid/CHANGELOG.md b/sdk/eventgrid/arm-eventgrid/CHANGELOG.md index ea1c24031e9f..482120bd44eb 100644 --- a/sdk/eventgrid/arm-eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/arm-eventgrid/CHANGELOG.md @@ -1,15 +1,25 @@ # Release History - -## 13.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + +## 13.1.0 (2021-12-10) + +**Features** + + - Added Type Alias IsNotNullAdvancedFilter + - Added Type Alias IsNullOrUndefinedAdvancedFilter + - Added Type Alias NumberInRangeAdvancedFilter + - Added Type Alias NumberNotInRangeAdvancedFilter + - Added Type Alias StringNotBeginsWithAdvancedFilter + - Added Type Alias StringNotContainsAdvancedFilter + - Added Type Alias StringNotEndsWithAdvancedFilter + - Enum KnownAdvancedFilterOperatorType has a new value IsNotNull + - Enum KnownAdvancedFilterOperatorType has a new value IsNullOrUndefined + - Enum KnownAdvancedFilterOperatorType has a new value NumberInRange + - Enum KnownAdvancedFilterOperatorType has a new value NumberNotInRange + - Enum KnownAdvancedFilterOperatorType has a new value StringNotBeginsWith + - Enum KnownAdvancedFilterOperatorType has a new value StringNotContains + - Enum KnownAdvancedFilterOperatorType has a new value StringNotEndsWith + + ## 13.0.0 (2021-12-09) The package of @azure/arm-eventgrid is using our next generation design principles since version 13.0.0, which contains breaking changes. diff --git a/sdk/eventgrid/arm-eventgrid/_meta.json b/sdk/eventgrid/arm-eventgrid/_meta.json index efa3ddd1ba16..af3f99817949 100644 --- a/sdk/eventgrid/arm-eventgrid/_meta.json +++ b/sdk/eventgrid/arm-eventgrid/_meta.json @@ -1,7 +1,7 @@ { - "commit": "d710fb7f40338ca6ef00e0a9680be0a3d4cf5059", + "commit": "f3477bd0a7b6101f9c0af243cc0106c7a8e24c71", "readme": "specification/eventgrid/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1", + "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/eventgrid/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1" } \ No newline at end of file diff --git a/sdk/eventgrid/arm-eventgrid/package.json b/sdk/eventgrid/arm-eventgrid/package.json index db06ace63ec7..6d4e7c276202 100644 --- a/sdk/eventgrid/arm-eventgrid/package.json +++ b/sdk/eventgrid/arm-eventgrid/package.json @@ -3,10 +3,8 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for EventGridManagementClient.", - "version": "13.0.1", - "engines": { - "node": ">=12.0.0" - }, + "version": "13.1.0", + "engines": { "node": ">=12.0.0" }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", @@ -16,13 +14,7 @@ "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], + "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], "license": "MIT", "main": "./dist/index.js", "module": "./dist-esm/src/index.js", @@ -49,9 +41,7 @@ "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, + "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", "dist/**/*.js.map", diff --git a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_create_test.js b/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_create_test.js deleted file mode 100644 index 3aeb9040d96e..000000000000 --- a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_create_test.js +++ /dev/null @@ -1,255 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "38772da467459be8c637a77f1b795834"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'e407fa4b-b48e-461f-b002-2dafa0d40300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=Al6DMB-0jstCpcyrdDIsvZc; expires=Sat, 08-Jan-2022 07:29:09 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrD1d9WgwyOlQ8VpxDOh5dLSoUnIQ3CeRed5slP-8uqhqkOFq23RvCgXvtBgjN9IIIKH-D6Co8I3XaqdIUl2uoAT6OCcomF_2xNk6Jr4B492fMbuUWso6lzivuKuLBrQflfiMbYEqOLOqq4A78YnBGJUr-kbi_rcsL9MmULCBUNE8gAA; 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', - 'Thu, 09 Dec 2021 07:29:09 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '25e1b200-ca8c-4386-a214-6e12e1b90200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=As3QSCemWOhMoKQHIwJLPnw; expires=Sat, 08-Jan-2022 07:29:09 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrS4M0rG8nWqOsLOxicGCgDcLkg8BXLsbeDHyg8Yn576q73lG4ZAfE2S7dIlZm_ln1s5WLA5SPGOittX82UbgeBzISJvEv_IrHyOZ2P2de_j-roN1oG6Ryp84wBqORznGQXcJt3mkURNhREPnbZjAYhY0vyFLE1C8sXzJ3hfanWhIgAA; 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', - 'Thu, 09 Dec 2021 07:29:09 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=9e21342e-9219-483b-b754-eee8665da8ac&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '515b7f7a-a6ec-4d9d-a61d-90fdb4fd0300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AqLIJWxWw4pBnsj9RZqazeUWPr5BAQAAAEWnQ9kOAAAA; expires=Sat, 08-Jan-2022 07:29:10 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', - 'Thu, 09 Dec 2021 07:29:09 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/domains/mydomainxxx', {"location":"eastus","properties":{}}) - .query(true) - .reply(201, {"properties":{"provisioningState":"Creating","endpoint":null},"location":"eastus","tags":null,"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/domains/mydomainxxx","name":"mydomainxxx","type":"Microsoft.EventGrid/domains"}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '286', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Retry-After', - '10', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Azure-AsyncOperation', - 'https://management.azure.com:443/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/00F117EB-B005-4F7D-8D5F-46A50AA114A4?api-version=2021-12-01', - 'x-ms-request-id', - 'aca66fd2-b27f-4c27-89bf-df30ed8683ef', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes', - '1198', - 'x-ms-correlation-request-id', - '7c50dbeb-da8d-4a1f-a01f-84c247ed8df7', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072914Z:7c50dbeb-da8d-4a1f-a01f-84c247ed8df7', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:14 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/00F117EB-B005-4F7D-8D5F-46A50AA114A4') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fcddb76d53cba7b77912db38b7c912fdb71f683759d8fa7d5e26eb39e34d3ba58b545b56cee3edc3b7f787f7670be7d6ffae983edfdddbdfded87bbd307db07d3f39d07d3d9e47c6f7ff7eeaaae2e8b595e3777bf28a675d554e7edf8f492c07e5e17b3bb6535cd04589e35edbab95badf25a3e79dd66f86067e7d9eeee83d327db4f7676ee6fef3f7bf074fbe0e9fd67dbfb9f1edfdf393ededddd3fdeff3db255b17d497dd07b9fededeced6eefee6defec7e34fa68992d721ad4cece3901c927db130672fe60b67d30bb7f4e40b2fb3b594640b27d6add7097d4fe6cf9b2ae2eeabc693efa25","ff0f0363930518010000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - 'f87aa55d-f6e1-4d7a-9f77-a5d145ac85ca', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11992', - 'x-ms-correlation-request-id', - '28f743f9-568f-4ab1-a321-22f665319a5a', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072915Z:28f743f9-568f-4ab1-a321-22f665319a5a', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:14 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/00F117EB-B005-4F7D-8D5F-46A50AA114A4') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fcddb76d53cba7b77912db38b7c912fdb71f683759d8fa7d5e26eb39e34d3ba58b545b56cee3edc3b7f787f7670be7d6ffae983edfdddbdfded87bbd307db07d3f39d07d3d9e47c6f7ff7eeaaae2e8b595e3777bf28a675d554e7edf8f492c07e5e17b3bb6535cd04589e35edbab95badf25a3e79dd66f86067e7d9eeee83d327db4f7676ee6fef3f7bf074fbe0e9fd67dbfb9f1edfdf393ededddd3fdeff3db255b17d497dd07b9fededeced6eefee6defec7e34fa68992d721ad4cece3901c927db130672fe60b67d30bb7f4e40b2fb3b594640b27d6add7097d4fef57a3acdf3593efbe8","97fc3f8c42e1ef17010000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - 'f2ae552a-ffd9-473c-8a58-baa291a8dcb1', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11991', - 'x-ms-correlation-request-id', - '4170a438-1906-4493-be40-e2080d25e8c1', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072917Z:4170a438-1906-4493-be40-e2080d25e8c1', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:17 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/domains/mydomainxxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147abba5ae5755be4cd478ff8afcba229aa65b1bc78dd666dfed1a38f5eafa7d33c9fe5b38f461fe5cbd9aa2a962d7d3c6fdb55f3e8eeddc5f5ac5a64c5f2ddbb77e33c6bda75b3bd3bce2ff3657b5117b371f683759d8f97797b375b1577f9f3860015cbd5ba7d3d9de78b8c609de2e3cfa9b97e32fa6891b775317d9537d5ba9ee667336ab4bbbb97dfbfff707ffb61fe60babd7f307db83df9f47cba7d9ecda60f1fd2bfbb93fbf4e66a3d298be98bbcbdaaeab7c7847a4323fbe874994d4a1ac22f197d5456d3aca521d2a7822fbdd46617d46ab92e4b420d9ddd6dd693665a172bb46cee3edc3b7f787f7670be7d6ffae983edfddd3dc26277fa60fb607abef3603a9b9cefedefdead15dbcfeb6abd6a88303fddb479d3de65a2cef2bab9fb4531adaba63a6fc776c477857a682ebf111d09a165b600edc30fdbeb153edc00e5a3","5ff2ff001194ef05d2010000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - '28d0059a-bb5e-4e12-bf5d-3766d72ca8de', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11990', - 'x-ms-correlation-request-id', - '3146ddda-c8bd-4609-86d6-abb199139141', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072920Z:3146ddda-c8bd-4609-86d6-abb199139141', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:19 GMT' -]); diff --git a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_delete_test.js b/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_delete_test.js deleted file mode 100644 index 3412cda2d9c3..000000000000 --- a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_delete_test.js +++ /dev/null @@ -1,255 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "61083d5ebd3871bf802b8843593506a5"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '7ecc1bd0-d9b5-4967-95f8-4a44f93d0300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Ar3cWM5v2nJIgpaXgZpSwAE; expires=Sat, 08-Jan-2022 07:29:29 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrpubpOsb-88mjKYB7b7-rZPSQqSApz4MgHdzXwFV4_JbBrw0PP_Yi8Vwsf5rCnui4op3hQ-yFYk5D5OelqRi4HHta6E4cElWicbxQI802SLfDhVtatKun_zGsIbzyrVGd4CRrtzVRDXNhUfKDBDaSgSF1OQPBqmYucOZxJ5DOaTsgAA; 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', - 'Thu, 09 Dec 2021 07:29:28 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '41c02d2e-ea5c-4c6b-b8a9-d86821240300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AmK78at1KbhDsbntXHaQpOc; expires=Sat, 08-Jan-2022 07:29:29 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrGD9r15hjWJfLEAdyTbMhdwcBdK46zQ2wIFZZYSHZtEouPGwrCbWgjqQLKes8_RQW-36ZwdnLdTskYqckfLlrZrQNqxBpymxcWbT4BD7h8O7lv1Lo7XXgbMv93kycj-sko85CJor2Xck8y6ZzR2ny8TK3vZiUvbAxpsxZSqI1ohUgAA; 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', - 'Thu, 09 Dec 2021 07:29:28 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=b74449c1-3ece-44be-a4d4-e93569f8d9ee&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '8072c932-7798-47de-b5c9-945716c70200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AjcdXJPO5mBGgsK0G6gs2wsWPr5BAQAAAFmnQ9kOAAAA; expires=Sat, 08-Jan-2022 07:29:29 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', - 'Thu, 09 Dec 2021 07:29:29 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/domains/mydomainxxx') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/eastus/operationResults/459080F4-DAA3-4C95-AFAF-027154DC2973?api-version=2021-12-01', - 'Retry-After', - '10', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Azure-AsyncOperation', - 'https://management.azure.com:443/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/459080F4-DAA3-4C95-AFAF-027154DC2973?api-version=2021-12-01', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-deletes', - '14998', - 'x-ms-request-id', - '15716efb-4e0b-40cc-905d-a2a26cbca3f4', - 'x-ms-correlation-request-id', - '15716efb-4e0b-40cc-905d-a2a26cbca3f4', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072931Z:15716efb-4e0b-40cc-905d-a2a26cbca3f4', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:30 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/459080F4-DAA3-4C95-AFAF-027154DC2973') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fcddb76d53cba7b77912db38b7c912fdb71f683759d8fa7d5e26eb39e34d3ba58b545b56cee3edc3b7f787f7670be7d6ffae983edfdddbdfded87bbd307db07d3f39d07d3d9e47c6f7ff7eeaaae2e8b595e3777bf28a675d554e7edf8f492c07e5e17b3bb6535cd04589e35edbab95badf25a3e79dd66f860fffec39d839d67fbdb4f8f8fef6def9f3cbcbf7dfcecf8d9f6cede83ddfbfb4f4ff61e3eb8f77b64ab62fb92faa0f73edbdbd9dbdddedddbded9fd68f4d1325be434280172bebf3dcb3202322520d97976ae40665300a1d60d7749ed8fa76d71997ff4","4bfe1f6eb14f3a14010000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - '213ebb60-21db-48ae-8d0f-4580855fe751', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11986', - 'x-ms-correlation-request-id', - '29644618-8881-4fc7-aa52-9f1d5b2e7c4f', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072931Z:29644618-8881-4fc7-aa52-9f1d5b2e7c4f', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:30 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/459080F4-DAA3-4C95-AFAF-027154DC2973') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fcddb76d53cba7b77912db38b7c912fdb71f683759d8fa7d5e26eb39e34d3ba58b545b56cee3edc3b7f787f7670be7d6ffae983edfdddbdfded87bbd307db07d3f39d07d3d9e47c6f7ff7eeaaae2e8b595e3777bf28a675d554e7edf8f492c07e5e17b3bb6535cd04589e35edbab95badf25a3e79dd66f860fffec39d839d67fbdb4f8f8fef6def9f3cbcbf7dfcecf8d9f6cede83ddfbfb4f4ff61e3eb8f77b64ab62fb92faa0f73edbdbd9dbdddedddbded9fd68f4d1325be434280172bebf3dcb3202322520d97976ae40665300a1d60d7749ed5fafa7d33c9fe5b38f","7ec9ff03b83f0ef117010000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - '19d75998-dd39-43df-9f0a-ebbe59f50a68', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11985', - 'x-ms-correlation-request-id', - '16e52603-3850-4d1e-b038-ddb0b55f4d82', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072933Z:16e52603-3850-4d1e-b038-ddb0b55f4d82', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:33 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/domains') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff","92ff0742ea40440c000000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - '2095878b-b52b-43c6-832a-1481593d978b', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11984', - 'x-ms-correlation-request-id', - '112257e1-da57-474b-a91f-1623e97aef13', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072934Z:112257e1-da57-474b-a91f-1623e97aef13', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:33 GMT' -]); diff --git a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_get_test.js b/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_get_test.js deleted file mode 100644 index 9a5bc7f37fe6..000000000000 --- a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_get_test.js +++ /dev/null @@ -1,147 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "c8f7235c631e0760cbb898ad5926119c"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'e64ab049-807d-4477-81d6-ab3828d30200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=Aju2BXEdpNNMltvM5y1HAeY; expires=Sat, 08-Jan-2022 07:29:27 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevratw9mU7fAe_Ba6f6nWeHd4oVXXnzt0cb-Vu_lE1-XBIUaLV0ojU_Mh3SsUY9k1novlkSdE4S1pBBIgnaOyVAszVSdgIPzG7vb1f3SDhifGr_qoXlzT5bnrLEaiM_VAGbRpyEzVLAULTszt7RQI_uIXvyUmXciV_l5xX8fptHC14gAA; 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', - 'Thu, 09 Dec 2021 07:29:26 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '41c02d2e-ea5c-4c6b-b8a9-d86810240300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Ah0ryRdf-7ZPlSNKuxXIbWw; expires=Sat, 08-Jan-2022 07:29:27 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrl6SGzhRWScMhgkA3IXRWXsC_icn2PVfTlxIfLr3XUKhuvWsqW3ioClfE9e291xK1qhfpZb9jFvGLHWVGh0q3Wte9vNtkK2WSlTrqT7iFbILql0R-QFhr76GScSdPDTaQu3Aht7nUKoZKaNSgcsq6AmBG479HZu8G-eMv_KKEHOwgAA; 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', - 'Thu, 09 Dec 2021 07:29:26 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=82418cdb-84cc-44b4-b831-bff23facb3cb&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '9e4deb1d-59f9-4f91-a0fa-cb1e3e1d0300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AseR7OvzooJGiWBmsF_aiUUWPr5BAQAAAFenQ9kOAAAA; expires=Sat, 08-Jan-2022 07:29:27 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 07:29:27 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/domains/mydomainxxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147abba5ae5755be4cd478ff8afcba229aa65b1bc78dd666dfed1a38f5eafa7d33c9fe5b38f461fe5cbd9aa2a962d7d3c6fdb55f3e8eeddc5f5ac5a64c5f2ddbb77e33c6bda75b3bd3bce2ff3657b5117b371f683759d8f97797b375b1577f9f3860015cbd5ba7d3d9de78b8c609de2e3cfa9b97e32fa6891b775317d9537d5ba9ee667336ab4bbbb97dfbfff707ffb61fe60babd7f307db83df9f47cba7d9ecda60f1fd2bfbb93fbf4e66a3d298be98bbcbdaaeab7c7847a4323fbe874994d4a1ac22f197d5456d3aca521d2a7822fbdd46617d4ea17e3e72e7d7e9995eb7c573edf337fefe1e50298dc6dd693665a172b8069ee3edc3b7f787f7670be7d6ffae983edfddd3d427177fa60fb607abef3603a9b9cefedefdead75289fd7d57ad510d57eba69f3a6bdcb149fe57573f78b625a574d75de8e2d39ee0a69d15c7e23221356cb6c8189093f6caf57f87003948f","7ec9ff03aa71aecfef010000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - '624f86e4-6a6e-4267-aaf9-b9f33883f0be', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11988', - 'x-ms-correlation-request-id', - '4ac892f2-b6be-4794-a768-c126590d2a7e', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072927Z:4ac892f2-b6be-4794-a768-c126590d2a7e', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:27 GMT' -]); diff --git a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_listbyresourcegroup_test.js b/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_listbyresourcegroup_test.js deleted file mode 100644 index 013edfbfeecf..000000000000 --- a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_listbyresourcegroup_test.js +++ /dev/null @@ -1,147 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "caf1342e0ed8a276a14cccf266d9c347"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '25e1b200-ca8c-4386-a214-6e12a2ba0200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AjljwfUldNNPts_L9BLOki4; expires=Sat, 08-Jan-2022 07:29:28 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrC9mVFj4WkNkbjfhUk3_FJQfbB_DPfAc5-zz60cvJCJsCagQwIXYCtpdz8ZinEqXG11E_xVwp7iS7CXKzI8-ngdL_GmE4r8mqrCAdwIqCOeCwmgaJsgGG-mOJDIm7tXjUtwea-ubbeH10jdoWi19b6dYTzCMaQ7OKQpeFwgzE-KogAA; 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', - 'Thu, 09 Dec 2021 07:29:27 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '84e10da0-7734-4177-95ed-c343eee20300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AkHZcesm9JVBofMEWV5wp1k; expires=Sat, 08-Jan-2022 07:29:28 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrzo741IDCYVHyNN4FTiLQmAyIwniYL6NlVvhNkX7usATf7htmYmwMk2AeEGT8tAGnBK35T_PNMsQXD-9MnTWouBdd8S9jtuB7rJFPL59CUA9dwGIh0aQuYNe6x3R1R3HhoWlEBFPcRJlVbDpp9gBgA3HKqWJmPvdelfDDCz52iv0gAA; 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', - 'Thu, 09 Dec 2021 07:29:27 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=01fcb338-69c7-4d2e-b7af-2fa5d45c0e1b&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'e64ab049-807d-4477-81d6-ab3836d30200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Aua8FeBnX61EqvnnYYBwSNkWPr5BAQAAAFinQ9kOAAAA; expires=Sat, 08-Jan-2022 07:29:28 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Thu, 09 Dec 2021 07:29:28 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/domains') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1aaae5679dd1679f3d123feebb2688a6a592c2f5eb7594b6d3e7abd9e4ef37c96cf3e1a7d942f67abaa58b6f4f1bc6d57cda3bb7717d7b36a9115cb77efde8df3ac69d7cdf6ee38bfcc97ed455dccc6d90fd6753e5ee6eddd6c55dce5cf1b02542c57ebf6f5749e2f3282758a8f3fa7e6fac9e8a345ded6c5f455de54eb7a9a9fcda8d1eeee5e7efffec3fded87f983e9f6fec1f4e1f6e4d3f3e9f679369b3e7c48ffee4eeed39babf5a42ca62ff2f6aaaadf1e13ea0d8deca3d36536296908bf64f451594db39686489f0abef4529b5d50ab5f8c9fbbf4399367573edf337fefe1e50298dc6dd693665a172b8069ee3edc3b7f787f7670be7d6ffae983edfddd3d427177fa60fb607abef3603a9b9cefedefdead75289fd7d57ad510d57eba69f3a6bdcb149fe57573f78b625a574d75de8e2d39ee0a69d15c7e23221356cb6c8189093f6caf57f87003948f7ec9f7","7fc9ff0325c3778afb010000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - 'c67de72c-7049-4aa3-9dc7-c5291762387b', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11987', - 'x-ms-correlation-request-id', - '632f8666-84f3-4b6e-9f8b-5161e12fcb6d', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072929Z:632f8666-84f3-4b6e-9f8b-5161e12fcb6d', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:28 GMT' -]); diff --git a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_update_test.js b/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_update_test.js deleted file mode 100644 index 816801e144a6..000000000000 --- a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_domains_update_test.js +++ /dev/null @@ -1,183 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "0355e0761144ef4ee0d2fb3da24f08c8"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '8072c932-7798-47de-b5c9-9457c4c60200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Arb7niKmgUNJnsWoXKLtaWU; expires=Sat, 08-Jan-2022 07:29:20 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOf_KpvL3Cq8eI30hKXi_tbWi2hs2z1lPyBqw8qXvvotpe6xSx8PZIwVqDuhZ7KZDJMIdCfbW1VxV_YK0PmBlabEhwWAfJ0Uj6dGf4ARfRQP5XeDPlQALxxrLqpj_tfEPzaEy0zAV6TFecBAmJxXQd664Q5isyJA5pMJSrQozvaQgAA; 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', - 'Thu, 09 Dec 2021 07:29:19 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'e407fa4b-b48e-461f-b002-2daf05d50300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AufsQgVpLqhDiHDrogmgQJU; expires=Sat, 08-Jan-2022 07:29:20 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYv_b9yCuQBHmSUai5JyOWOG0r9NZ76QoKADGU3JN30yfLmxGgDVUMbfXmAUYheoPlfHtivBkFC0-pZy7lUdjx9MXUCR0nqZGsc1bPR09jD1C9bQKuvzIClDA2K8DVVyYbHbfeAAM2CFvPTK9EMGBWcdESS4TxCpQJ2VfHfn3lZQgAA; 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', - 'Thu, 09 Dec 2021 07:29:20 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=5016bb89-b92b-499b-aea8-e0e1c2f66f8f&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - 'e64ab049-807d-4477-81d6-ab38f2d20200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AqD9Zf7_FnNJvblhnzc7tmUWPr5BAQAAAFCnQ9kOAAAA; expires=Sat, 08-Jan-2022 07:29:20 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', - 'Thu, 09 Dec 2021 07:29:20 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .patch('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/domains/mydomainxxx', {"tags":{"tag1":"value1","tag2":"value2"}}) - .query(true) - .reply(201, {"properties":{"provisioningState":"Updating","endpoint":"https://mydomainxxx.eastus-1.eventgrid.azure.net/api/events","inputSchema":"EventGridSchema","metricResourceId":"112e5594-9e7c-48c9-b6fc-fadc99fad1b5","publicNetworkAccess":"Enabled"},"location":"eastus","tags":{"tag1":"value1","tag2":"value2"},"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/domains/mydomainxxx","name":"mydomainxxx","type":"Microsoft.EventGrid/domains"}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '494', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Retry-After', - '10', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Azure-AsyncOperation', - 'https://management.azure.com:443/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/DF59CA8F-7369-41AB-B2D0-6DDD72EF004D?api-version=2021-12-01', - 'x-ms-request-id', - '3b2c374e-97c7-461f-b38b-c3cf39c7dc6f', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes', - '1197', - 'x-ms-correlation-request-id', - 'f04e477e-f42d-4f1c-be50-cff9d71ecfd2', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072926Z:f04e477e-f42d-4f1c-be50-cff9d71ecfd2', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:25 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/DF59CA8F-7369-41AB-B2D0-6DDD72EF004D') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fcddb76d53cba7b77912db38b7c912fdb71f683759d8fa7d5e26eb39e34d3ba58b545b56cee3edc3b7f787f7670be7d6ffae983edfdddbdfded87bbd307db07d3f39d07d3d9e47c6f7ff7eeaaae2e8b595e3777bf28a675d554e7edf8f492c07e5e17b3bb6535cd04589e35edbab95badf25a3e79dd66f8e0e9b3fb0f4f8e0f9e6d3fb8f7e943eae4f8c9f693bda73bdb9f3e7dfaf4c1dee9b39d9dfda7bf47b62ab62fa90f7aefb3bd9dbdddedddbded9ddd8f461f2db3454e839a9ddf7f38cd085305924db6277b3302329bcd1eece5e7046446ad1bee92dabf5e4fa7793ecb671ffd","92ff0786eb867517010000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - '06152eae-8953-417b-a732-b8e80cc3cce3', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11989', - 'x-ms-correlation-request-id', - 'f04278e7-2c30-4388-a4d2-2e61af14e6bf', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072926Z:f04278e7-2c30-4388-a4d2-2e61af14e6bf', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:26 GMT' -]); diff --git a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_topics_create_test.js b/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_topics_create_test.js deleted file mode 100644 index 18bc770bae08..000000000000 --- a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_topics_create_test.js +++ /dev/null @@ -1,255 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "0c13adf3d0c896548bd80fcca090d89e"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '20616d55-2ea3-43e7-9507-b18d9af80200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AoUd9hXnm9xEqy6Vu49184s; expires=Sat, 08-Jan-2022 07:28:48 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0Ze0Erc6CeXJMccPkFojJXQWhmRF-mWzMMeMUJ-9cjX9_e4-H4V_2xd3sSJOtkT6wOwyZ-TfTkQb7jMlNNReT5gfSowqlZqCqg5HqE65h8olQhsjCdklDzIMz4yloisKCaUvXkgvrvxYt1gKqUdP-sAHxN5xgOxRt2qnTCg0phggAA; 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', - 'Thu, 09 Dec 2021 07:28:48 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '9e4deb1d-59f9-4f91-a0fa-cb1edc1b0300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AvGZhtlqPDpEg6d5QSt5o4c; expires=Sat, 08-Jan-2022 07:28:48 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrxMOeXgii3tNscO6R_2HtYcZrcxmVkR1n43ceDRwQdGqJK5rMeLRwC_SBUpxYSrkuxAasTXQ6qsxNC2pZPM6eO0PO1lZihjFA68HyWw9za4m3xEAhF93fza_VF0P_9_4o8oOlfHJuYvYD5Pwf23arKUXXeRa8v8-xVejLmyVYkyMgAA; 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', - 'Thu, 09 Dec 2021 07:28:48 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=6e197b2e-925a-4598-89ba-267fe50ae23a&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '20616d55-2ea3-43e7-9507-b18d9df80200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=ApaZGqPtASRJl_sd8NJSCNEWPr5BAQAAADCnQ9kOAAAA; expires=Sat, 08-Jan-2022 07:28:49 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', - 'Thu, 09 Dec 2021 07:28:48 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/topics/mytopicxxx', {"location":"westcentralus","properties":{}}) - .query(true) - .reply(201, {"properties":{"provisioningState":"Creating","endpoint":null},"location":"westcentralus","tags":null,"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/topics/mytopicxxx","name":"mytopicxxx","type":"Microsoft.EventGrid/topics"}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '289', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Retry-After', - '10', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Azure-AsyncOperation', - 'https://management.azure.com:443/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/B00A871B-F008-4223-AAF3-EDA8AB857F49?api-version=2021-12-01', - 'x-ms-request-id', - '4b231447-de92-46b3-bbae-3e9c31a046bb', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-writes', - '1199', - 'x-ms-correlation-request-id', - '3502a6ef-978c-47f0-9263-9ca303de0041', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072858Z:3502a6ef-978c-47f0-9263-9ca303de0041', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:28:58 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/B00A871B-F008-4223-AAF3-EDA8AB857F49') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fcddb76d53cba7b77912db38b7c912fdb71f683759d8fa7d5e26eb39e34d3ba58b545b56cee3edc3b7f787f7670be7d6ffae983edfdddbdfded87bbd307db07d3f39d07d3d9e47c6f7ff7eeaaae2e8b595e3777bf28a675d554e7edf8f492c07e5e17b3bb6535cd04d855deb453fab8ceca7573b75ae5b57cf1bacd5afae0c9cecef1c183dd27dbcf76760eb6f7f7f6ee6d1f1f3fbbb77dfaf4f8e0f8c9c1fd07cff61ffe1ed9aad8bea4aee8bdcff676f676b777f7b677763f1a7db4cc16398d6db2b3931190c9f6b9059265e7f7b6f35976904d08c8f9fe436add7097d4fe6cf9b2ae2eeabc693efa","25ff0f958256881f010000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - 'da43ac88-647e-4cc2-8e29-24dee111cd05', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11999', - 'x-ms-correlation-request-id', - '713ca453-d4b1-4297-be53-a75d23600b6c', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072859Z:713ca453-d4b1-4297-be53-a75d23600b6c', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:28:58 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/B00A871B-F008-4223-AAF3-EDA8AB857F49') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fcddb76d53cba7b77912db38b7c912fdb71f683759d8fa7d5e26eb39e34d3ba58b545b56cee3edc3b7f787f7670be7d6ffae983edfdddbdfded87bbd307db07d3f39d07d3d9e47c6f7ff7eeaaae2e8b595e3777bf28a675d554e7edf8f492c07e5e17b3bb6535cd04d855deb453fab8ceca7573b75ae5b57cf1bacd5afae0c9cecef1c183dd27dbcf76760eb6f7f7f6ee6d1f1f3fbbb77dfaf4f8e0f8c9c1fd07cff61ffe1ed9aad8bea4aee8bdcff676f676b777f7b677763f1a7db4cc16398d6db2b3931190c9f6b9059265e7f7b6f35976904d08c8f9fe436add7097d4fef57a3acdf3593efbe897","fc3f93210d221e010000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - '977afed9-0166-45cc-8034-b5ae18a9dc7a', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11998', - 'x-ms-correlation-request-id', - 'ed1a80f5-3cb1-4bb2-9101-502fbea5c47c', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072901Z:ed1a80f5-3cb1-4bb2-9101-502fbea5c47c', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:01 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/topics/mytopicxxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147abba5ae5755be4cd478ff8afcba229aa65b1bc78dd666dfed1a38f5eafa7d33c9fe5b38f461fe5cbd9aa2a962d7d3c6fdb55f3e8eeddc5755bad8ae9bb77efc65779d34ef3655b67e5bad9de1de797f4c7455dccc6d90fd6753e5ee6eddd6c55dce5cf1b02572c57ebf6f5749e2f3282788a8f3fa7e6fac9e8a345ded6c5f455de54eb7a9a9fcda8d1ece0e1f9bd9d0793edf3c9f4def6fe74677ffb61f6e0c1f6a7f7efdfbb7f7e6f77363b7f486faed693b298bec8dbabaa7e7b4c0368687c1f9d2eb3494903f925a38fca6a9ab53450fa34409bde6db30b6abc5c972561883eef36eb4933ad8b155e68ee3edc3b7f787f7670be7d6ffae983edfddd3d426177fa60fb607abef3603a9b9cefedefdead15e9cfeb6abd6a884a3fddb4d4cf5da6f02caf9bbb5f14d3ba6aaaf3766c077e974989d6fc0bd194d059660b4c43f0597bbdc267c3203efa25","ff0fd3b43cafdb010000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - '0d102274-0bae-4bca-81e4-9731002d977b', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11997', - 'x-ms-correlation-request-id', - '58a6c6cf-7b2a-4c74-9529-d05d98edd749', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072903Z:58a6c6cf-7b2a-4c74-9529-d05d98edd749', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:03 GMT' -]); diff --git a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_topics_delete_test.js b/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_topics_delete_test.js deleted file mode 100644 index 3d80850373b1..000000000000 --- a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_topics_delete_test.js +++ /dev/null @@ -1,255 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "98527b900fdfd74d5ab9f81293de65c8"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '515b7f7a-a6ec-4d9d-a61d-90fd7efd0300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=ArJ0YropiylGl2_yxsPwVdg; expires=Sat, 08-Jan-2022 07:29:04 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrC7wm_PDbAJcJm0-wlE3AOGKI5T81qCkavWiY_V2ql4rwSu7qSuJFlsMHcqkAr2jAAA8eEPacFDzMhzP71I5sh0hcfFRn8d0wE-l2L5f0FWCnSKWcNGRExIIgIY-FjldT9ozmbr_l0dp-RhAyj-owDSoWShJ9MPCPZKB0vc3YhfQgAA; 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', - 'Thu, 09 Dec 2021 07:29:04 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '8072c932-7798-47de-b5c9-94574ac60200', - 'x-ms-ests-server', - '2.1.12261.14 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AjGsYn7LIdRCoOd6zUB_Pro; expires=Sat, 08-Jan-2022 07:29:05 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrRIK_uuzz9gP9F8PzW_qe4spzij_HqlDngzDVKmX0O9MV16sS555c4KsNRhKg_fG5qlVYssxbGkZZIMznXapQa6bviXPD55v5-3xyF9mQ1M9Wkz41FtTXN36CQA8axWqnjAJ8IjUr2jBmvfHzN7naleHTRpToHan1cdrfUXl2DvggAA; 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', - 'Thu, 09 Dec 2021 07:29:04 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=5e5b18fd-8331-4479-a89c-d0527679aab3&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '9e4deb1d-59f9-4f91-a0fa-cb1e781c0300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AuCy4InSS5BCjJ0r22JBxwwWPr5BAQAAAEGnQ9kOAAAA; expires=Sat, 08-Jan-2022 07:29:05 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', - 'Thu, 09 Dec 2021 07:29:05 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/topics/mytopicxxx') - .query(true) - .reply(202, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'Location', - 'https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/westcentralus/operationResults/2DAC6D48-30D9-44C8-BF3D-ABEDB56D6DD4?api-version=2021-12-01', - 'Retry-After', - '10', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Azure-AsyncOperation', - 'https://management.azure.com:443/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/2DAC6D48-30D9-44C8-BF3D-ABEDB56D6DD4?api-version=2021-12-01', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-deletes', - '14999', - 'x-ms-request-id', - 'efee1227-f7ae-4153-acec-b79a33190ccf', - 'x-ms-correlation-request-id', - 'efee1227-f7ae-4153-acec-b79a33190ccf', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072906Z:efee1227-f7ae-4153-acec-b79a33190ccf', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:06 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/2DAC6D48-30D9-44C8-BF3D-ABEDB56D6DD4') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fcddb76d53cba7b77912db38b7c912fdb71f683759d8fa7d5e26eb39e34d3ba58b545b56cee3edc3b7f787f7670be7d6ffae983edfdddbdfded87bbd307db07d3f39d07d3d9e47c6f7ff7eeaaae2e8b595e3777bf28a675d554e7edf8f492c07e5e17b3bb6535cd04d855deb453fab8ceca7573b75ae5b57cf1bacd5afa60efe9f1c9a74ff70fb6efed3c7db8bdbf7f72b0fde4d9bda7dbc74f4e9f3eb9ffe9d34f9f3eddff3db255b17d495dd17b9fededeced6eefee6defec7e34fa68992d721adbde2c9b7e3a63203300991e6c4fceefcdb6b3493e9bdcff74f6e96cb64fad1bee92da1f4fdbe232ffe8","97fc3fbf93f97e1b010000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - '8a0331b5-2173-477c-954c-31e5ea9b6419', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11995', - 'x-ms-correlation-request-id', - 'ebf774df-761d-4590-bac6-0d66473db64c', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072906Z:ebf774df-761d-4590-bac6-0d66473db64c', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:06 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/providers/Microsoft.EventGrid/locations/westcentralus/operationsStatus/2DAC6D48-30D9-44C8-BF3D-ABEDB56D6DD4') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fcddb76d53cba7b77912db38b7c912fdb71f683759d8fa7d5e26eb39e34d3ba58b545b56cee3edc3b7f787f7670be7d6ffae983edfdddbdfded87bbd307db07d3f39d07d3d9e47c6f7ff7eeaaae2e8b595e3777bf28a675d554e7edf8f492c07e5e17b3bb6535cd04d855deb453fab8ceca7573b75ae5b57cf1bacd5afa60efe9f1c9a74ff70fb6efed3c7db8bdbf7f72b0fde4d9bda7dbc74f4e9f3eb9ffe9d34f9f3eddff3db255b17d495dd17b9fededeced6eefee6defec7e34fa68992d721adbde2c9b7e3a63203300991e6c4fceefcdb6b3493e9bdcff74f6e96cb64fad1bee92dabf5e4fa7793ecb671f","fd92ff076230f5f81e010000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - 'ccb2720f-f502-4712-be18-6c96b5a6c7e4', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11994', - 'x-ms-correlation-request-id', - '7670c4a8-27ce-4e7c-bb5c-04d1faa5ed0b', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072909Z:7670c4a8-27ce-4e7c-bb5c-04d1faa5ed0b', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:08 GMT' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/topics') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff","92ff0742ea40440c000000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - 'c395e196-bdbf-486f-83c1-500153a2c18b', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11993', - 'x-ms-correlation-request-id', - '67368fce-0705-4743-adf1-0042c11c0fd5', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072909Z:67368fce-0705-4743-adf1-0042c11c0fd5', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:09 GMT' -]); diff --git a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_topics_listbyresourcegroup_test.js b/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_topics_listbyresourcegroup_test.js deleted file mode 100644 index 528e5c2ca0ae..000000000000 --- a/sdk/eventgrid/arm-eventgrid/recordings/node/eventgrid_test/recording_topics_listbyresourcegroup_test.js +++ /dev/null @@ -1,147 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "0ff60fd9726b998d94cf2e9a6306e253"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration","api-version":"1.1","metadata":[{"preferred_network":"login.microsoftonline.com","preferred_cache":"login.windows.net","aliases":["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{"preferred_network":"login.partner.microsoftonline.cn","preferred_cache":"login.partner.microsoftonline.cn","aliases":["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{"preferred_network":"login.microsoftonline.de","preferred_cache":"login.microsoftonline.de","aliases":["login.microsoftonline.de"]},{"preferred_network":"login.microsoftonline.us","preferred_cache":"login.microsoftonline.us","aliases":["login.microsoftonline.us","login.usgovcloudapi.net"]},{"preferred_network":"login-us.microsoftonline.com","preferred_cache":"login-us.microsoftonline.com","aliases":["login-us.microsoftonline.com"]}]}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '9e4deb1d-59f9-4f91-a0fa-cb1e6f1c0300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Al7j7QcNErZOkAF9cHPA1O8; expires=Sat, 08-Jan-2022 07:29:03 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrNG5J8tvEAPt4jiToadkD3z1YUcMbMy2LSl3h5qcLiKa_LkLAqa_S5KyyOEOzOXtwjXJkfBFVHGUtadJXBql5_f5aCelP-0sZ0hRBwFmIQD8D9Ns2BbFW_yzJta13XQJM0pA_mYVkOll7atS43hkYrrl8v_kAI-9AVHVvCtQdZ8UgAA; 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', - 'Thu, 09 Dec 2021 07:29:03 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/88888888-8888-8888-8888-888888888888/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/discovery/v2.0/keys","response_modes_supported":["query","fragment","form_post"],"subject_types_supported":["pairwise"],"id_token_signing_alg_values_supported":["RS256"],"response_types_supported":["code","id_token","code id_token","id_token token"],"scopes_supported":["openid","profile","email","offline_access"],"issuer":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/logout","claims_supported":["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],"kerberos_endpoint":"https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/kerberos","tenant_region_scope":"WW","cloud_instance_name":"microsoftonline.com","cloud_graph_host_name":"graph.windows.net","msgraph_host":"graph.microsoft.com","rbac_url":"https://pas.windows.net"}, [ - 'Cache-Control', - 'max-age=86400, private', - 'Content-Type', - 'application/json; charset=utf-8', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Access-Control-Allow-Origin', - '*', - 'Access-Control-Allow-Methods', - 'GET, OPTIONS', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '7ecc1bd0-d9b5-4967-95f8-4a440d3d0300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AiOUD3lW-ytBj7TxYxXesa0; expires=Sat, 08-Jan-2022 07:29:04 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCXORfjzoYoPQyIKaUEGu041rRoW_9HvrI0O3SW4Ry9AuX_smCfdl6iYIj4on2spa-f9RPGnpTj3vv3P1mZ0oZl12xonRkq8dKkLKMt83C26ow6wxM36oaI_Vk1kJLBWak1J5CNFbZLDx3Eq2HcbSdIKgk_MFGuIf-UStIPt4YIYgAA; 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', - 'Thu, 09 Dec 2021 07:29:03 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.3.3&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=3fb5ba53-f49e-4d81-9ffa-e734f9f29ca0&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22cp1%22%5D%7D%7D%7D") - .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ - 'Cache-Control', - 'no-store, no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'P3P', - 'CP="DSP CUR OTPi IND OTRi ONL FIN"', - 'x-ms-request-id', - '9e4deb1d-59f9-4f91-a0fa-cb1e711c0300', - 'x-ms-ests-server', - '2.1.12261.14 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AlMNVHlBjb5FiT18Dzo0A34WPr5BAQAAAECnQ9kOAAAA; expires=Sat, 08-Jan-2022 07:29:04 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', - 'Thu, 09 Dec 2021 07:29:04 GMT', - 'Content-Length', - '1374' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.EventGrid/topics') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1aaae5679dd1679f3d123feebb2688a6a592c2f5eb7594b6d3e7abd9e4ef37c96cf3e1a7d942f67abaa58b6f4f1bc6d57cda3bb7717d76db52aa6efdebd1b5fe54d3bcd976d4dd09beddd717e497f5cd4c56c9cfd605de7e365dedecd56c55dfebc2170c572b56e5f4fe7f9222388a7f8f8736aae9f8c3e5ae46d5d4c5fe54db5aea7f9d98c1acd0e1e9edfdb7930d93e9f4cef6def4f77f6b71f660f1e6c7f7afffebdfbe7f77667b3f387f4e66a3d298be98bbcbdaaeab7c7348086c6f7d1e9329b9434905f32faa8aca6594b03a54f03b4e9dd36bba0c6cb75591286e8f36eb39e34d3ba58e185e6eec3bdf387f76707e7dbf7a69f3ed8dedfdd231476a70fb60fa6e73b0fa6b3c9f9defeeedd5a91febcaed6ab86a8f4d34d4bfddc650acff2bab9fb4531adaba63a6fc776e077999468cdbf104d099d65b6c034049fb5d72b7c360ce2a35ff2fd","5ff2ff001f323672e7010000"], [ - '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', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'x-ms-request-id', - '933f5ccf-25d4-4f8b-ba51-07ca80085cdc', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'x-ms-ratelimit-remaining-subscription-reads', - '11996', - 'x-ms-correlation-request-id', - '6056ed1d-400c-4fd0-a376-59b5565fc4bd', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211209T072904Z:6056ed1d-400c-4fd0-a376-59b5565fc4bd', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Thu, 09 Dec 2021 07:29:04 GMT' -]); diff --git a/sdk/eventgrid/arm-eventgrid/review/arm-eventgrid.api.md b/sdk/eventgrid/arm-eventgrid/review/arm-eventgrid.api.md index b9ed49408f9c..c0e65d01a875 100644 --- a/sdk/eventgrid/arm-eventgrid/review/arm-eventgrid.api.md +++ b/sdk/eventgrid/arm-eventgrid/review/arm-eventgrid.api.md @@ -13,14 +13,14 @@ import { PollOperationState } from '@azure/core-lro'; // @public export interface AdvancedFilter { key?: string; - operatorType: "NumberIn" | "NumberNotIn" | "NumberLessThan" | "NumberGreaterThan" | "NumberLessThanOrEquals" | "NumberGreaterThanOrEquals" | "BoolEquals" | "StringIn" | "StringNotIn" | "StringBeginsWith" | "StringEndsWith" | "StringContains"; + operatorType: "NumberIn" | "NumberNotIn" | "NumberLessThan" | "NumberGreaterThan" | "NumberLessThanOrEquals" | "NumberGreaterThanOrEquals" | "BoolEquals" | "StringIn" | "StringNotIn" | "StringBeginsWith" | "StringEndsWith" | "StringContains" | "NumberInRange" | "NumberNotInRange" | "StringNotBeginsWith" | "StringNotEndsWith" | "StringNotContains" | "IsNullOrUndefined" | "IsNotNull"; } // @public export type AdvancedFilterOperatorType = string; // @public (undocumented) -export type AdvancedFilterUnion = AdvancedFilter | NumberInAdvancedFilter | NumberNotInAdvancedFilter | NumberLessThanAdvancedFilter | NumberGreaterThanAdvancedFilter | NumberLessThanOrEqualsAdvancedFilter | NumberGreaterThanOrEqualsAdvancedFilter | BoolEqualsAdvancedFilter | StringInAdvancedFilter | StringNotInAdvancedFilter | StringBeginsWithAdvancedFilter | StringEndsWithAdvancedFilter | StringContainsAdvancedFilter; +export type AdvancedFilterUnion = AdvancedFilter | NumberInAdvancedFilter | NumberNotInAdvancedFilter | NumberLessThanAdvancedFilter | NumberGreaterThanAdvancedFilter | NumberLessThanOrEqualsAdvancedFilter | NumberGreaterThanOrEqualsAdvancedFilter | BoolEqualsAdvancedFilter | StringInAdvancedFilter | StringNotInAdvancedFilter | StringBeginsWithAdvancedFilter | StringEndsWithAdvancedFilter | StringContainsAdvancedFilter | NumberInRangeAdvancedFilter | NumberNotInRangeAdvancedFilter | StringNotBeginsWithAdvancedFilter | StringNotEndsWithAdvancedFilter | StringNotContainsAdvancedFilter | IsNullOrUndefinedAdvancedFilter | IsNotNullAdvancedFilter; // @public export type AzureFunctionEventSubscriptionDestination = EventSubscriptionDestination & { @@ -759,6 +759,16 @@ export type InputSchemaMappingUnion = InputSchemaMapping | JsonInputSchemaMappin // @public export type IpActionType = string; +// @public +export type IsNotNullAdvancedFilter = AdvancedFilter & { + operatorType: "IsNotNull"; +}; + +// @public +export type IsNullOrUndefinedAdvancedFilter = AdvancedFilter & { + operatorType: "IsNullOrUndefined"; +}; + // @public export interface JsonField { sourceField?: string; @@ -786,18 +796,26 @@ export enum KnownAdvancedFilterOperatorType { // (undocumented) BoolEquals = "BoolEquals", // (undocumented) + IsNotNull = "IsNotNull", + // (undocumented) + IsNullOrUndefined = "IsNullOrUndefined", + // (undocumented) NumberGreaterThan = "NumberGreaterThan", // (undocumented) NumberGreaterThanOrEquals = "NumberGreaterThanOrEquals", // (undocumented) NumberIn = "NumberIn", // (undocumented) + NumberInRange = "NumberInRange", + // (undocumented) NumberLessThan = "NumberLessThan", // (undocumented) NumberLessThanOrEquals = "NumberLessThanOrEquals", // (undocumented) NumberNotIn = "NumberNotIn", // (undocumented) + NumberNotInRange = "NumberNotInRange", + // (undocumented) StringBeginsWith = "StringBeginsWith", // (undocumented) StringContains = "StringContains", @@ -806,6 +824,12 @@ export enum KnownAdvancedFilterOperatorType { // (undocumented) StringIn = "StringIn", // (undocumented) + StringNotBeginsWith = "StringNotBeginsWith", + // (undocumented) + StringNotContains = "StringNotContains", + // (undocumented) + StringNotEndsWith = "StringNotEndsWith", + // (undocumented) StringNotIn = "StringNotIn" } @@ -1091,6 +1115,12 @@ export type NumberInAdvancedFilter = AdvancedFilter & { values?: number[]; }; +// @public +export type NumberInRangeAdvancedFilter = AdvancedFilter & { + operatorType: "NumberInRange"; + values?: number[][]; +}; + // @public export type NumberLessThanAdvancedFilter = AdvancedFilter & { operatorType: "NumberLessThan"; @@ -1109,6 +1139,12 @@ export type NumberNotInAdvancedFilter = AdvancedFilter & { values?: number[]; }; +// @public +export type NumberNotInRangeAdvancedFilter = AdvancedFilter & { + operatorType: "NumberNotInRange"; + values?: number[][]; +}; + // @public export interface Operation { display?: OperationInfo; @@ -1348,6 +1384,24 @@ export type StringInAdvancedFilter = AdvancedFilter & { values?: string[]; }; +// @public +export type StringNotBeginsWithAdvancedFilter = AdvancedFilter & { + operatorType: "StringNotBeginsWith"; + values?: string[]; +}; + +// @public +export type StringNotContainsAdvancedFilter = AdvancedFilter & { + operatorType: "StringNotContains"; + values?: string[]; +}; + +// @public +export type StringNotEndsWithAdvancedFilter = AdvancedFilter & { + operatorType: "StringNotEndsWith"; + values?: string[]; +}; + // @public export type StringNotInAdvancedFilter = AdvancedFilter & { operatorType: "StringNotIn"; diff --git a/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClient.ts b/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClient.ts index 9daf114cbd8c..cb3dcc628139 100644 --- a/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClient.ts +++ b/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClient.ts @@ -69,7 +69,7 @@ export class EventGridManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-eventgrid/13.0.0`; + const packageDetails = `azsdk-js-arm-eventgrid/13.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/eventgrid/arm-eventgrid/src/models/index.ts b/sdk/eventgrid/arm-eventgrid/src/models/index.ts index e4e23a6e1e41..b5c1ed50ceb6 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/index.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/index.ts @@ -33,7 +33,14 @@ export type AdvancedFilterUnion = | StringNotInAdvancedFilter | StringBeginsWithAdvancedFilter | StringEndsWithAdvancedFilter - | StringContainsAdvancedFilter; + | StringContainsAdvancedFilter + | NumberInRangeAdvancedFilter + | NumberNotInRangeAdvancedFilter + | StringNotBeginsWithAdvancedFilter + | StringNotEndsWithAdvancedFilter + | StringNotContainsAdvancedFilter + | IsNullOrUndefinedAdvancedFilter + | IsNotNullAdvancedFilter; export type DeadLetterDestinationUnion = | DeadLetterDestination | StorageBlobDeadLetterDestination; @@ -270,7 +277,14 @@ export interface AdvancedFilter { | "StringNotIn" | "StringBeginsWith" | "StringEndsWith" - | "StringContains"; + | "StringContains" + | "NumberInRange" + | "NumberNotInRange" + | "StringNotBeginsWith" + | "StringNotEndsWith" + | "StringNotContains" + | "IsNullOrUndefined" + | "IsNotNull"; /** The field/property in the event based on which you want to filter. */ key?: string; } @@ -826,6 +840,58 @@ export type StringContainsAdvancedFilter = AdvancedFilter & { values?: string[]; }; +/** NumberInRange Advanced Filter. */ +export type NumberInRangeAdvancedFilter = AdvancedFilter & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + operatorType: "NumberInRange"; + /** The set of filter values. */ + values?: number[][]; +}; + +/** NumberNotInRange Advanced Filter. */ +export type NumberNotInRangeAdvancedFilter = AdvancedFilter & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + operatorType: "NumberNotInRange"; + /** The set of filter values. */ + values?: number[][]; +}; + +/** StringNotBeginsWith Advanced Filter. */ +export type StringNotBeginsWithAdvancedFilter = AdvancedFilter & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + operatorType: "StringNotBeginsWith"; + /** The set of filter values. */ + values?: string[]; +}; + +/** StringNotEndsWith Advanced Filter. */ +export type StringNotEndsWithAdvancedFilter = AdvancedFilter & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + operatorType: "StringNotEndsWith"; + /** The set of filter values. */ + values?: string[]; +}; + +/** StringNotContains Advanced Filter. */ +export type StringNotContainsAdvancedFilter = AdvancedFilter & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + operatorType: "StringNotContains"; + /** The set of filter values. */ + values?: string[]; +}; + +/** IsNullOrUndefined Advanced Filter. */ +export type IsNullOrUndefinedAdvancedFilter = AdvancedFilter & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + operatorType: "IsNullOrUndefined"; +}; + +/** IsNotNull Advanced Filter. */ +export type IsNotNullAdvancedFilter = AdvancedFilter & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + operatorType: "IsNotNull"; +}; + /** Information about the storage blob based dead letter destination. */ export type StorageBlobDeadLetterDestination = DeadLetterDestination & { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -1259,7 +1325,14 @@ export enum KnownAdvancedFilterOperatorType { StringNotIn = "StringNotIn", StringBeginsWith = "StringBeginsWith", StringEndsWith = "StringEndsWith", - StringContains = "StringContains" + StringContains = "StringContains", + NumberInRange = "NumberInRange", + NumberNotInRange = "NumberNotInRange", + StringNotBeginsWith = "StringNotBeginsWith", + StringNotEndsWith = "StringNotEndsWith", + StringNotContains = "StringNotContains", + IsNullOrUndefined = "IsNullOrUndefined", + IsNotNull = "IsNotNull" } /** @@ -1278,7 +1351,14 @@ export enum KnownAdvancedFilterOperatorType { * **StringNotIn** \ * **StringBeginsWith** \ * **StringEndsWith** \ - * **StringContains** + * **StringContains** \ + * **NumberInRange** \ + * **NumberNotInRange** \ + * **StringNotBeginsWith** \ + * **StringNotEndsWith** \ + * **StringNotContains** \ + * **IsNullOrUndefined** \ + * **IsNotNull** */ export type AdvancedFilterOperatorType = string; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts index 6aeab11e22a7..0653d6259d18 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts @@ -2102,6 +2102,162 @@ export const StringContainsAdvancedFilter: coreClient.CompositeMapper = { } }; +export const NumberInRangeAdvancedFilter: coreClient.CompositeMapper = { + serializedName: "NumberInRange", + type: { + name: "Composite", + className: "NumberInRangeAdvancedFilter", + uberParent: "AdvancedFilter", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + modelProperties: { + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + } + } + } + } + } +}; + +export const NumberNotInRangeAdvancedFilter: coreClient.CompositeMapper = { + serializedName: "NumberNotInRange", + type: { + name: "Composite", + className: "NumberNotInRangeAdvancedFilter", + uberParent: "AdvancedFilter", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + modelProperties: { + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + } + } + } + } + } +}; + +export const StringNotBeginsWithAdvancedFilter: coreClient.CompositeMapper = { + serializedName: "StringNotBeginsWith", + type: { + name: "Composite", + className: "StringNotBeginsWithAdvancedFilter", + uberParent: "AdvancedFilter", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + modelProperties: { + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const StringNotEndsWithAdvancedFilter: coreClient.CompositeMapper = { + serializedName: "StringNotEndsWith", + type: { + name: "Composite", + className: "StringNotEndsWithAdvancedFilter", + uberParent: "AdvancedFilter", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + modelProperties: { + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const StringNotContainsAdvancedFilter: coreClient.CompositeMapper = { + serializedName: "StringNotContains", + type: { + name: "Composite", + className: "StringNotContainsAdvancedFilter", + uberParent: "AdvancedFilter", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + modelProperties: { + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const IsNullOrUndefinedAdvancedFilter: coreClient.CompositeMapper = { + serializedName: "IsNullOrUndefined", + type: { + name: "Composite", + className: "IsNullOrUndefinedAdvancedFilter", + uberParent: "AdvancedFilter", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + modelProperties: { + ...AdvancedFilter.type.modelProperties + } + } +}; + +export const IsNotNullAdvancedFilter: coreClient.CompositeMapper = { + serializedName: "IsNotNull", + type: { + name: "Composite", + className: "IsNotNullAdvancedFilter", + uberParent: "AdvancedFilter", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + modelProperties: { + ...AdvancedFilter.type.modelProperties + } + } +}; + export const StorageBlobDeadLetterDestination: coreClient.CompositeMapper = { serializedName: "StorageBlob", type: { @@ -2457,6 +2613,13 @@ export let discriminators = { "AdvancedFilter.StringBeginsWith": StringBeginsWithAdvancedFilter, "AdvancedFilter.StringEndsWith": StringEndsWithAdvancedFilter, "AdvancedFilter.StringContains": StringContainsAdvancedFilter, + "AdvancedFilter.NumberInRange": NumberInRangeAdvancedFilter, + "AdvancedFilter.NumberNotInRange": NumberNotInRangeAdvancedFilter, + "AdvancedFilter.StringNotBeginsWith": StringNotBeginsWithAdvancedFilter, + "AdvancedFilter.StringNotEndsWith": StringNotEndsWithAdvancedFilter, + "AdvancedFilter.StringNotContains": StringNotContainsAdvancedFilter, + "AdvancedFilter.IsNullOrUndefined": IsNullOrUndefinedAdvancedFilter, + "AdvancedFilter.IsNotNull": IsNotNullAdvancedFilter, "DeadLetterDestination.StorageBlob": StorageBlobDeadLetterDestination, "DeliveryAttributeMapping.Static": StaticDeliveryAttributeMapping, "DeliveryAttributeMapping.Dynamic": DynamicDeliveryAttributeMapping diff --git a/sdk/eventgrid/arm-eventgrid/test/eventgrid_examples.ts b/sdk/eventgrid/arm-eventgrid/test/eventgrid_examples.ts deleted file mode 100644 index e103432ab189..000000000000 --- a/sdk/eventgrid/arm-eventgrid/test/eventgrid_examples.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 { - env, - record, - RecorderEnvironmentSetup, - Recorder, - delay, - isPlaybackMode -} from "@azure-tools/test-recorder"; -import * as assert from "assert"; -import { ClientSecretCredential } from "@azure/identity"; -import { EventGridManagementClient } from "../src/eventGridManagementClient"; - -const recorderEnvSetup: RecorderEnvironmentSetup = { - replaceableVariables: { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" - }, - customizationsOnRecordings: [ - (recording: any): any => - recording.replace( - /"access_token":"[^"]*"/g, - `"access_token":"access_token"` - ) - ], - queryParametersToSkip: [] -}; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("Eventgrid test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: EventGridManagementClient; - let location: string; - let resourceGroupName: string; - let topicName: string; - let domainName: string; - - beforeEach(async function () { - recorder = record(this, recorderEnvSetup); - subscriptionId = env.SUBSCRIPTION_ID; - // This is an example of how the environment variables are used - const credential = new ClientSecretCredential( - env.AZURE_TENANT_ID, - env.AZURE_CLIENT_ID, - env.AZURE_CLIENT_SECRET - ); - client = new EventGridManagementClient(credential, subscriptionId); - location = "eastus"; - resourceGroupName = "myjstest"; - topicName = "mytopicxxx"; - domainName = "mydomainxxx"; - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("topics create test", async function () { - const res = await client.topics.beginCreateOrUpdateAndWait(resourceGroupName, topicName, { location: "westcentralus" }, testPollingOptions); - assert.equal(res.name, topicName); - }); - - it("topics listByResourceGroup test", async function () { - const resArray = new Array(); - for await (let item of client.topics.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - assert.equal(resArray.length, 1); - }); - - it("topics delete test", async function () { - const res = await client.topics.beginDeleteAndWait(resourceGroupName, topicName, testPollingOptions); - const resArray = new Array(); - for await (let item of client.topics.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - assert.equal(resArray.length, 0); - }); - - it("domains create test", async function () { - const res = await client.domains.beginCreateOrUpdateAndWait(resourceGroupName, domainName, { location: location }, testPollingOptions); - assert.equal(res.name, domainName); - }); - - it("domains update test", async function () { - const res = await client.domains.beginUpdateAndWait(resourceGroupName, domainName, { - tags: { - tag1: "value1", - tag2: "value2" - } - }, testPollingOptions); - //It's void response - }); - - it("domains get test", async function () { - const res = await client.domains.get(resourceGroupName, domainName); - assert.equal(res.name, domainName); - }); - - it("domains listByResourceGroup test", async function () { - const resArray = new Array(); - for await (let item of client.domains.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - assert.equal(resArray.length, 1) - }); - - it("domains delete test", async function () { - const res = await client.domains.beginDeleteAndWait(resourceGroupName, domainName, testPollingOptions); - const resArray = new Array(); - for await (let item of client.domains.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - assert.equal(resArray.length, 0); - }); -}); diff --git a/sdk/eventgrid/arm-eventgrid/test/sampleTest.ts b/sdk/eventgrid/arm-eventgrid/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +});