diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index d491dba8fa64..beb2720703c1 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -7533,7 +7533,7 @@ packages: dev: false /set-blocking/2.0.0: - resolution: {integrity: sha1-BF+XgtARrppoA93TgrJDkrPYkPc=} + resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} dev: false /setprototypeof/1.2.0: @@ -7541,7 +7541,7 @@ packages: dev: false /shebang-command/1.2.0: - resolution: {integrity: sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=} + resolution: {integrity: sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==} engines: {node: '>=0.10.0'} dependencies: shebang-regex: 1.0.0 @@ -7555,7 +7555,7 @@ packages: dev: false /shebang-regex/1.0.0: - resolution: {integrity: sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=} + resolution: {integrity: sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==} engines: {node: '>=0.10.0'} dev: false @@ -7728,7 +7728,7 @@ packages: dev: false /spawn-command/0.0.2-1: - resolution: {integrity: sha1-YvXpRmmBwbeW3Fkpk34RycaSG9A=} + resolution: {integrity: sha512-n98l9E2RMSJ9ON1AKisHzz7V42VDiBQGY6PB1BwRglz99wpVsSuGzQ+jOi6lFXBGVTCrRpltvjm+/XA+tpeJrg==} dev: false /spawn-wrap/2.0.0: @@ -7766,11 +7766,11 @@ packages: dev: false /sprintf-js/1.0.3: - resolution: {integrity: sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=} + resolution: {integrity: sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==} dev: false /statuses/1.5.0: - resolution: {integrity: sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=} + resolution: {integrity: sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==} engines: {node: '>= 0.6'} dev: false @@ -7801,7 +7801,7 @@ packages: dev: false /string-width/1.0.2: - resolution: {integrity: sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=} + resolution: {integrity: sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==} engines: {node: '>=0.10.0'} dependencies: code-point-at: 1.1.0 @@ -7861,7 +7861,7 @@ packages: dev: false /string_decoder/0.10.31: - resolution: {integrity: sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=} + resolution: {integrity: sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==} dev: false /string_decoder/1.1.1: @@ -7877,14 +7877,14 @@ packages: dev: false /strip-ansi/3.0.1: - resolution: {integrity: sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=} + resolution: {integrity: sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==} engines: {node: '>=0.10.0'} dependencies: ansi-regex: 2.1.1 dev: false /strip-ansi/4.0.0: - resolution: {integrity: sha1-qEeQIusaw2iocTibY1JixQXuNo8=} + resolution: {integrity: sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==} engines: {node: '>=4'} dependencies: ansi-regex: 3.0.1 @@ -7905,7 +7905,7 @@ packages: dev: false /strip-bom/3.0.0: - resolution: {integrity: sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=} + resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} dev: false @@ -7925,7 +7925,7 @@ packages: dev: false /strip-json-comments/2.0.1: - resolution: {integrity: sha1-PFMZQukIwml8DsNEhYwobHygpgo=} + resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==} engines: {node: '>=0.10.0'} dev: false @@ -8029,11 +8029,11 @@ packages: dev: false /text-table/0.2.0: - resolution: {integrity: sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=} + resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} dev: false /through/2.3.8: - resolution: {integrity: sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=} + resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} dev: false /through2/2.0.5: @@ -8044,7 +8044,7 @@ packages: dev: false /timsort/0.3.0: - resolution: {integrity: sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=} + resolution: {integrity: sha512-qsdtZH+vMoCARQtyod4imc2nIJwg9Cc7lPRrw9CzF8ZKR0khdr8+2nX80PBhET3tcyTtJDxAffGh2rXH4tyU8A==} dev: false /tmp/0.2.1: @@ -9838,7 +9838,7 @@ packages: dev: false file:projects/arm-cognitiveservices.tgz: - resolution: {integrity: sha512-cy/sz6LZHNFKUpQHpQvO+leBdH/OQUdnmTxb9oAuDx9WBTK2yp8iY00dedL1URDIvs/Yh8it0PD6ShadU3Hv1A==, tarball: file:projects/arm-cognitiveservices.tgz} + resolution: {integrity: sha512-+rgw1vZTIZQPHNzWdMpnA1ZO0TlAgTdwT2647znNFKTTCmsw6ICbp4MASOVQcQO+C1UfXxkt26IFva2o9YmI6Q==, tarball: file:projects/arm-cognitiveservices.tgz} name: '@rush-temp/arm-cognitiveservices' version: 0.0.0 dependencies: @@ -9850,6 +9850,8 @@ packages: '@rollup/plugin-json': 4.1.0_rollup@2.73.0 '@rollup/plugin-multi-entry': 4.1.0_rollup@2.73.0 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.73.0 + '@types/chai': 4.3.1 + chai: 4.3.6 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 @@ -9862,7 +9864,6 @@ packages: transitivePeerDependencies: - '@types/node' - debug - - encoding - supports-color dev: false @@ -16296,13 +16297,13 @@ packages: dependencies: '@microsoft/api-extractor': 7.18.11 '@opentelemetry/api': 1.1.0 - '@opentelemetry/core': 1.2.0_@opentelemetry+api@1.1.0 + '@opentelemetry/core': 1.3.1_@opentelemetry+api@1.1.0 '@opentelemetry/instrumentation': 0.29.2_@opentelemetry+api@1.1.0 '@opentelemetry/instrumentation-http': 0.29.2_@opentelemetry+api@1.1.0 '@opentelemetry/resources': 1.2.0_@opentelemetry+api@1.1.0 '@opentelemetry/sdk-trace-base': 1.2.0_@opentelemetry+api@1.1.0 '@opentelemetry/sdk-trace-node': 1.2.0_@opentelemetry+api@1.1.0 - '@opentelemetry/semantic-conventions': 1.2.0 + '@opentelemetry/semantic-conventions': 1.3.1 '@types/mocha': 7.0.2 '@types/node': 12.20.52 dotenv: 8.6.0 @@ -16325,7 +16326,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-2o/4kkL1qBKj/jp2hS7ZPHxgzfnFtnSciGSzg5Lr3Qg7cth+H3rhZDDVmj57Nf+010ySy4qu2tIUjEO6WR38Og==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-UQ+CAknpZTVG2+I5QLPP84iW8p1nJvY9XEvQkplzyUaOH9NZjgihLOqZqoqsQDJq9+YtXHj+RaD8C5WaoyydCw==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: @@ -16384,7 +16385,7 @@ packages: '@azure-tools/test-recorder': 1.0.2 '@microsoft/api-extractor': 7.18.11 '@opentelemetry/api': 1.1.0 - '@opentelemetry/core': 1.2.0_@opentelemetry+api@1.1.0 + '@opentelemetry/core': 1.3.1_@opentelemetry+api@1.1.0 '@opentelemetry/instrumentation': 0.27.0_@opentelemetry+api@1.1.0 '@opentelemetry/sdk-trace-base': 1.2.0_@opentelemetry+api@1.1.0 '@opentelemetry/sdk-trace-node': 1.2.0_@opentelemetry+api@1.1.0 diff --git a/sdk/cognitiveservices/arm-cognitiveservices/CHANGELOG.md b/sdk/cognitiveservices/arm-cognitiveservices/CHANGELOG.md index 919b2c50a74f..107bb00cb4c0 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/CHANGELOG.md +++ b/sdk/cognitiveservices/arm-cognitiveservices/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History + +## 7.2.0 (2022-06-10) + +**Features** -## 7.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Enum KnownDeploymentScaleType has a new value Standard + + ## 7.1.0 (2022-04-06) **Features** diff --git a/sdk/cognitiveservices/arm-cognitiveservices/_meta.json b/sdk/cognitiveservices/arm-cognitiveservices/_meta.json index 778625a572be..6859ada287ba 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/_meta.json +++ b/sdk/cognitiveservices/arm-cognitiveservices/_meta.json @@ -1,8 +1,8 @@ { - "commit": "515a036fd42e59b65e94c8480b3a850d0b192bfc", + "commit": "60cd4dbca5214118b763d1edc835a44c8386283a", "readme": "specification/cognitiveservices/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\cognitiveservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.18.20220329.1 --generate-sample=true", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\cognitiveservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-beta.20 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.2.1", - "use": "@autorest/typescript@6.0.0-alpha.18.20220329.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", + "use": "@autorest/typescript@6.0.0-beta.20" } \ No newline at end of file diff --git a/sdk/cognitiveservices/arm-cognitiveservices/package.json b/sdk/cognitiveservices/arm-cognitiveservices/package.json index 9ed13a412e71..f5cb49e2a2ad 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/package.json +++ b/sdk/cognitiveservices/arm-cognitiveservices/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for CognitiveServicesManagementClient.", - "version": "7.1.1", + "version": "7.2.0", "engines": { "node": ">=12.0.0" }, @@ -11,9 +11,9 @@ "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.0.0", + "@azure/core-client": "^1.5.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.1.0", + "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" }, "keywords": [ @@ -40,9 +40,13 @@ "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", + "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "cross-env": "^7.0.2" + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "cross-env": "^7.0.2", + "@azure/dev-tool": "^1.0.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cognitiveservices/arm-cognitiveservices", "repository": { @@ -93,7 +97,7 @@ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", "integration-test:browser": "echo skipped", "docs": "echo skipped" }, @@ -115,4 +119,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-cognitiveservices?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_create_test.js b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_create_test.js deleted file mode 100644 index 0aa53bc8d92e..000000000000 --- a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_create_test.js +++ /dev/null @@ -1,147 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "f540219c5cdd3f0f4bef066bda2225fb"; - -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', - '32ea23f5-8af6-4214-946f-0c69eeac0200', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Av1d73DVm9JHl1RD-euVKXc; expires=Wed, 19-Jan-2022 06:52:02 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrMMjbuKBJYU2wR7O9MO7-N9tvUS6TAV_lDFTxjFdDIPYQvZvzETTTUV60O5A106f4EGR_DnYGor-2x5eMltZyqpY8tRx5W_5xZXgltRLlQMLpNNyjxj7ITFo1qJR_S1xh93buAKG4MISn-DDbkOqxZupSFEbzk6jQi8T2ugQ3ocEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:01 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', - 'ab800d36-9487-492e-b40d-f24b96bc0400', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AueFT7NKzXBEt86psHdF3sI; expires=Wed, 19-Jan-2022 06:52:02 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLlau1-XBnrZVpE89nKOtPFZFhQ0AsmjC3XhfOco8oHtDby-7jlKpDHvutaTzpiW8MQgYq9L4YWJ9Fyqtdiq5hTRt3G6t_KqfEgBxZMZxxGYte1mEhLgTARcSI7MOIqoZJn2QbcXt5OxYAK7go5Hc_3OG62AjSpNJNOaRGt_xMRggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:01 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.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=00811451-91d3-4461-b3ab-98ef13c7af9b&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', - 'c7025f87-5230-4b1b-a3d3-5a8e4c580800', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AiSg-YxXJCJGrlBTVFXEDAnLj78gAQAAABEfUtkOAAAA; expires=Wed, 19-Jan-2022 06:52:02 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:01 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .put('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx', {"kind":"CognitiveServices","sku":{"name":"S0"},"identity":{"type":"SystemAssigned"},"location":"eastus"}) - .query(true) - .reply(201, {"id":"/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx","name":"myaccountxxx","type":"Microsoft.CognitiveServices/accounts","etag":"\"5c0073d9-0000-0100-0000-61c0281b0000\"","systemData":{"createdBy":"azure_client_id","createdByType":"Application","createdAt":"2021-12-20T06:52:07.6415104Z","lastModifiedBy":"azure_client_id","lastModifiedByType":"Application","lastModifiedAt":"2021-12-20T06:52:07.6415104Z"},"location":"eastus","sku":{"name":"S0"},"kind":"CognitiveServices","properties":{"endpoint":"https://eastus.api.cognitive.microsoft.com/","internalId":"8567070c229743ad82a226637bfd3598","dateCreated":"2021-12-20T06:52:10.6652411Z","apiProperties":{},"callRateLimit":{"rules":[{"key":"formrecognizer.custom.train","renewalPeriod":60,"count":1,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"formrecognizer/custom/train","method":"*"}]},{"key":"formrecognizer.custom.copymodels","renewalPeriod":60,"count":1,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/copy","method":"*"}]},{"key":"formrecognizer.custom.models.get","renewalPeriod":60,"count":10,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"formrecognizer/custom/models","method":"GET"}]},{"key":"formrecognizer.analyzeform","renewalPeriod":1,"count":15,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/analyze","method":"POST"}]},{"key":"formrecognizer.analyzeform.result","renewalPeriod":1,"count":100,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/analyzeResults/{resultId}","method":"GET"}]},{"key":"customvision.training","renewalPeriod":1,"count":10,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"customvision/v3.0/training/*","method":"*"},{"path":"customvision/v3.1/training/*","method":"*"},{"path":"customvision/v3.2/training/*","method":"*"},{"path":"customvision/v3.3/training/*","method":"*"},{"path":"customvision/v3.4-preview/training/*","method":"*"}]},{"key":"customvision.prediction","renewalPeriod":1,"count":10,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"customvision/v3.0/prediction/*","method":"*"},{"path":"customvision/v3.1/prediction/*","method":"*"}]},{"key":"speech.synthesize","renewalPeriod":1,"count":200,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"speech/synthesize","method":"*"}]},{"key":"speech.customvoicesynthesize","renewalPeriod":1,"count":200,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"speech/customvoicesynthesize","method":"*"}]},{"key":"speech.neuralvoicesynthesize","renewalPeriod":1,"count":200,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"speech/neuralvoicesynthesize","method":"*"}]},{"key":"speech.customneuralvoicesynthesize","renewalPeriod":1,"count":200,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"speech/customneuralvoicesynthesize","method":"*"}]},{"key":"speech.conversationtranscription","renewalPeriod":1,"count":100,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"speech/singlechannelaudioconversationtranscription","method":"*"},{"path":"speech/multichannelaudioconversationtranscribe","method":"*"},{"path":"speech/videoconversationtranscribe","method":"*"}]},{"key":"speech.speechtotext","renewalPeriod":10,"count":100,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"speechtotext/*","method":"*"}]},{"key":"speech.texttospeech","renewalPeriod":10,"count":100,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"texttospeech/*","method":"*"}]},{"key":"speech.speakerrecognitionv2","renewalPeriod":1,"count":20,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"speaker/*","method":"*"}]},{"key":"speech.speakerrecognitionv1","renewalPeriod":1,"count":5,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"spid/*","method":"*"}]},{"key":"docmentTranslation","renewalPeriod":1,"count":20,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"translator/text/batch/*","method":"*"}]},{"key":"textTranslation","renewalPeriod":1,"count":100,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"translator/text/*","method":"*"}]},{"key":"token","renewalPeriod":1,"count":100,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"sts/v1.0/*","method":"*"}]},{"key":"ListManagement","renewalPeriod":1,"count":15,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"contentmoderator/lists/v1.0/*","method":"*"}]},{"key":"Moderate","renewalPeriod":1,"count":20,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"contentmoderator/moderate/v1.0/*","method":"*"}]},{"key":"Review","renewalPeriod":1,"count":20,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"contentmoderator/review/v1.0/*","method":"*"}]},{"key":"luis.endpoint","renewalPeriod":1,"count":50,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"luis/*","method":"*"},{"path":"luis/prediction/*","method":"*"}]},{"key":"workflow.endpoint.postcalls","renewalPeriod":60,"count":60,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"/language/:analyze-conversations","method":"*"}]},{"key":"textAnalytics.unifiedAuthoring","renewalPeriod":60,"count":100,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"language/text/authoring/v1.0-preview.1/*","method":"*"}]},{"key":"textAnalytics.unifiedAuthoring.getcalls","renewalPeriod":60,"count":100,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"language/text/authoring/v1.0-preview.2/*","method":"GET"}]},{"key":"textAnalytics.unifiedAuthoring.updatecalls","renewalPeriod":60,"count":10,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"language/text/authoring/v1.0-preview.2/*","method":"*"}]},{"key":"textAnalytics.unifiedAuthoring.clu.getCalls","renewalPeriod":60,"count":100,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"language/customize-conversation/*","method":"GET"}]},{"key":"textAnalytics.unifiedAuthoring.clu.updateCalls","renewalPeriod":60,"count":10,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"language/customize-conversation/*","method":"*"}]},{"key":"textAnalytics.customText","renewalPeriod":60,"count":100,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"text/analytics/v3.1-preview.ct.1/analyze/*","method":"*"}]},{"key":"textAnalytics.analyze","renewalPeriod":60,"count":300,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"text/analytics/v3.1/analyze/*","method":"*"},{"path":"text/analytics/v3.2-preview.1/analyze/*","method":"*"},{"path":"text/analytics/v3.2-preview.2/analyze/*","method":"*"}]},{"key":"textAnalytics.healthcare","renewalPeriod":60,"count":300,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"text/analytics/v3.1/entities/health/*","method":"*"},{"path":"text/analytics/v3.2-preview.1/health/*","method":"*"},{"path":"text/analytics/v3.2-preview.2/health/*","method":"*"}]},{"key":"textAnalytics","renewalPeriod":60,"count":1000,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"text/analytics/*","method":"*"}]},{"key":"questionanswering","renewalPeriod":60,"count":600,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"qnamaker/*","method":"*"}]},{"key":"unifiedlanguage.questionanswering","renewalPeriod":60,"count":600,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"language/query-knowledgebases/*","method":"*"},{"path":"language/:query-*","method":"*"}]},{"key":"vision.recognizeText","renewalPeriod":1,"count":30,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"vision/recognizeText","method":"POST"},{"path":"vision/textOperations/*","method":"GET"},{"path":"vision/read/*","method":"*"}]},{"key":"vision","renewalPeriod":1,"count":15,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"vision/*","method":"*"}]},{"key":"face","renewalPeriod":1,"count":15,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"face/*","method":"*"}]},{"key":"bingVisualSearch","renewalPeriod":1,"count":30,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"bing/v7.0/images/visualsearch/*","method":"*"}]},{"key":"bingSearch","renewalPeriod":1,"count":250,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"bing/*","method":"*"}]},{"key":"bingCustomSearch","renewalPeriod":1,"count":150,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"bingcustomsearch/*","method":"*"}]},{"key":"container.billing","renewalPeriod":10,"count":500,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"billing/*","method":"*"}]},{"key":"default","renewalPeriod":1,"count":20,"dynamicThrottlingEnabled":false,"matchPatterns":[{"path":"*","method":"*"}]}]},"isMigrated":false,"publicNetworkAccess":"Enabled","capabilities":[{"name":"Container","value":"Face.*,Face.Face,ComputerVision.*,ComputerVision.VideoAnalytics,TextAnalytics.*,TextAnalytics.Healthcare,TextAnalytics.Keyphrase,TextAnalytics.KeyphraseV2,TextAnalytics.KeyPhraseONNX,TextAnalytics.LanguageFastText,TextAnalytics.Language,TextAnalytics.LanguageV2,TextAnalytics.Sentiment,TextAnalytics.SentimentV2,TextAnalytics.SentimentV3,TextAnalytics.SentimentV3Preview,LUIS.LUIS,ContentModerator.*,TextTranslation.*,SpeechServices.*,FormRecognizer.*"},{"name":"Cloud","value":"TextAnalytics.Healthcare,TextAnalytics.Analyze,QuestionAnswer.AllApis,LanguageService.QuestionAnsweringApis"}],"endpoints":{"Bing Autosuggest":"https://eastus.api.cognitive.microsoft.com/","Bing Spell Check":"https://eastus.api.cognitive.microsoft.com/","Bing Entity Search":"https://eastus.api.cognitive.microsoft.com/","Bing Image Search":"https://eastus.api.cognitive.microsoft.com/","Bing News Search":"https://eastus.api.cognitive.microsoft.com/","Bing Video Search":"https://eastus.api.cognitive.microsoft.com/","Bing Web Search":"https://eastus.api.cognitive.microsoft.com/","Bing Visual Search":"https://eastus.api.cognitive.microsoft.com/","Bing Custom Search":"https://eastus.api.cognitive.microsoft.com/","Face":"https://eastus.api.cognitive.microsoft.com/","Computer Vision":"https://eastus.api.cognitive.microsoft.com/","Text Analytics":"https://eastus.api.cognitive.microsoft.com/","LanguageAuthoring":"https://eastus.api.cognitive.microsoft.com/","ConversationalLanguageUnderstanding":"https://eastus.api.cognitive.microsoft.com/","ConversationalLURuntime":"https://eastus.api.cognitive.microsoft.com/","QnAMaker":"https://eastus.api.cognitive.microsoft.com/","turing":"https://eastus.api.cognitive.microsoft.com/","Turing DeepWrite":"https://eastus.api.cognitive.microsoft.com/","QuestionAnswering":"https://eastus.api.cognitive.microsoft.com/","LUIS.Authoring":"https://eastus.api.cognitive.microsoft.com/","LUIS":"https://eastus.api.cognitive.microsoft.com/","Unified Speech":"https://eastus.api.cognitive.microsoft.com/","Content Moderator - Review":"https://eastus.api.cognitive.microsoft.com/","Content Moderator - Moderate":"https://eastus.api.cognitive.microsoft.com/","Content Moderator - List Management":"https://eastus.api.cognitive.microsoft.com/","TextTranslation-Global":"https://api.cognitive.microsofttranslator.com/","TextTranslation":"https://eastus.api.cognitive.microsoft.com/","DocumentTranslation":"https://eastus.api.cognitive.microsoft.com/","Token":"https://eastus.api.cognitive.microsoft.com/","Container":"https://eastus.api.cognitive.microsoft.com/","Speech Services Speech to Text v2.0":"https://eastus.api.cognitive.microsoft.com/","Speech Services Speech to Text v3.0":"https://eastus.api.cognitive.microsoft.com/","Speech Services Speech to Text v3.1-preview.1":"https://eastus.api.cognitive.microsoft.com/","Speech Services Custom Voice":"https://eastus.api.cognitive.microsoft.com/","Speech Services Audio Content Creation":"https://eastus.api.cognitive.microsoft.com/","Speech Services Speaker Verification":"https://eastus.api.cognitive.microsoft.com/","Speech Services Speaker Identification":"https://eastus.api.cognitive.microsoft.com/","Custom_Vision_Prediction_3.0":"https://eastus.api.cognitive.microsoft.com/","Custom_Vision_Prediction_3.1":"https://eastus.api.cognitive.microsoft.com/","Custom_Vision_Training_3.1":"https://eastus.api.cognitive.microsoft.com/","Custom_Vision_Training_3.2":"https://eastus.api.cognitive.microsoft.com/","Custom_Vision_Training_3.3":"https://eastus.api.cognitive.microsoft.com/","FormRecognizer":"https://eastus.api.cognitive.microsoft.com/"},"provisioningState":"Succeeded"},"identity":{"principalId":"2f87a0de-373f-4e7e-8c79-1fbc638b1bdd","tenantId":"88888888-8888-8888-8888-888888888888","type":"SystemAssigned","userAssignedIdentities":{}}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Length', - '12654', - 'Content-Type', - 'application/json; charset=utf-8', - 'Expires', - '-1', - 'ETag', - '"5c0073d9-0000-0100-0000-61c0281b0000"', - 'X-Content-Type-Options', - 'nosniff', - 'x-ms-request-id', - '6a808278-84ae-4839-ae2f-b5bddc45e3c4', - 'x-envoy-upstream-service-time', - '940', - 'Server', - 'istio-envoy', - 'x-ms-ratelimit-remaining-subscription-writes', - '1199', - 'x-ms-correlation-request-id', - '058a9735-31b4-4d37-b654-d45c3f23daa7', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211220T065213Z:058a9735-31b4-4d37-b654-d45c3f23daa7', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Date', - 'Mon, 20 Dec 2021 06:52:12 GMT' -]); diff --git a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_create_test.json b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_create_test.json new file mode 100644 index 000000000000..b639c8d750bb --- /dev/null +++ b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_create_test.json @@ -0,0 +1,820 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx?api-version=2022-03-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "105", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-cognitiveservices/7.2.0 core-rest-pipeline/1.9.1 Node/v16.15.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "c64aa445-b7af-4c28-9da1-0b4096e3f82b" + }, + "RequestBody": { + "kind": "CognitiveServices", + "sku": { + "name": "S0" + }, + "identity": { + "type": "SystemAssigned" + }, + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "14696", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 10 Jun 2022 06:41:44 GMT", + "ETag": "\u002229015a71-0000-0100-0000-62a2e7a70000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "485", + "x-ms-correlation-request-id": "3d8403bd-d54c-4c73-9d73-40543d6af399", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "971a2794-da5d-40ff-b572-f204f66dbc2e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220610T064144Z:3d8403bd-d54c-4c73-9d73-40543d6af399" + }, + "ResponseBody": { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx", + "name": "myaccountxxx", + "type": "Microsoft.CognitiveServices/accounts", + "etag": "\u002229015a71-0000-0100-0000-62a2e7a70000\u0022", + "location": "eastus", + "sku": { + "name": "S0" + }, + "kind": "CognitiveServices", + "properties": { + "endpoint": "https://eastus.api.cognitive.microsoft.com/", + "internalId": "944b07d3acaa4149b8d65757ea6bf5ca", + "dateCreated": "2022-06-10T06:41:42.5590615Z", + "apiProperties": {}, + "callRateLimit": { + "rules": [ + { + "key": "formrecognizer.custom.train", + "renewalPeriod": 60, + "count": 1, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "formrecognizer/custom/train", + "method": "*" + } + ] + }, + { + "key": "formrecognizer.custom.copymodels", + "renewalPeriod": 60, + "count": 1, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models/{modelId}/copy", + "method": "*" + } + ] + }, + { + "key": "formrecognizer.custom.models.get", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models", + "method": "GET" + } + ] + }, + { + "key": "formrecognizer.analyzeform", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models/{modelId}/analyze", + "method": "POST" + } + ] + }, + { + "key": "formrecognizer.analyzeform.result", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models/{modelId}/analyzeResults/{resultId}", + "method": "GET" + } + ] + }, + { + "key": "customvision.training", + "renewalPeriod": 1, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "customvision/v3.0/training/*", + "method": "*" + }, + { + "path": "customvision/v3.1/training/*", + "method": "*" + }, + { + "path": "customvision/v3.2/training/*", + "method": "*" + }, + { + "path": "customvision/v3.3/training/*", + "method": "*" + }, + { + "path": "customvision/v3.4-preview/training/*", + "method": "*" + } + ] + }, + { + "key": "customvision.prediction", + "renewalPeriod": 1, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "customvision/v3.0/prediction/*", + "method": "*" + }, + { + "path": "customvision/v3.1/prediction/*", + "method": "*" + } + ] + }, + { + "key": "speech.synthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/synthesize", + "method": "*" + } + ] + }, + { + "key": "speech.customvoicesynthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/customvoicesynthesize", + "method": "*" + } + ] + }, + { + "key": "speech.neuralvoicesynthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/neuralvoicesynthesize", + "method": "*" + } + ] + }, + { + "key": "speech.customneuralvoicesynthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/customneuralvoicesynthesize", + "method": "*" + } + ] + }, + { + "key": "speech.conversationtranscription", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/singlechannelaudioconversationtranscription", + "method": "*" + }, + { + "path": "speech/multichannelaudioconversationtranscribe", + "method": "*" + }, + { + "path": "speech/videoconversationtranscribe", + "method": "*" + } + ] + }, + { + "key": "speech.speechtotext", + "renewalPeriod": 10, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speechtotext/*", + "method": "*" + } + ] + }, + { + "key": "speech.texttospeech", + "renewalPeriod": 10, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "texttospeech/*", + "method": "*" + } + ] + }, + { + "key": "speech.speakerrecognitionv2", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speaker/*", + "method": "*" + }, + { + "path": "speaker-recognition/*", + "method": "*" + } + ] + }, + { + "key": "speech.speakerrecognitionv1", + "renewalPeriod": 1, + "count": 5, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "spid/*", + "method": "*" + } + ] + }, + { + "key": "docmentTranslation", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "translator/text/batch/*", + "method": "*" + } + ] + }, + { + "key": "textTranslation", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "translator/text/*", + "method": "*" + } + ] + }, + { + "key": "token", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "sts/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "ListManagement", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "contentmoderator/lists/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "Moderate", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "contentmoderator/moderate/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "Review", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "contentmoderator/review/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "luis.endpoint", + "renewalPeriod": 1, + "count": 50, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "luis/*", + "method": "*" + }, + { + "path": "luis/prediction/*", + "method": "*" + } + ] + }, + { + "key": "workflow.endpoint.postcalls", + "renewalPeriod": 60, + "count": 1000, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "/language/:analyze-conversations", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.authoring.customtext.getcalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.updatecalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.authoring.customtext.march.getcalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-text/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.march.updatecalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-text/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.authoring.customtext.internal.getcalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/internal/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.internal.updatecalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/internal/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.getCalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.updateCalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.march.getCalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-conversations/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.march.updateCalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-conversations/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.internal.getCalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/internal/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.internal.updateCalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/internal/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.customText", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "text/analytics/v3.1-preview.ct.1/analyze/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.analyze", + "renewalPeriod": 60, + "count": 300, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "text/analytics/v3.1/analyze/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.1/analyze/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.2/analyze/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.healthcare", + "renewalPeriod": 60, + "count": 300, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "text/analytics/v3.1/entities/health/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.1/health/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.2/health/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics", + "renewalPeriod": 60, + "count": 1000, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "text/analytics/*", + "method": "*" + } + ] + }, + { + "key": "questionanswering", + "renewalPeriod": 60, + "count": 600, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "qnamaker/*", + "method": "*" + } + ] + }, + { + "key": "unifiedlanguage.questionanswering", + "renewalPeriod": 60, + "count": 600, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/query-knowledgebases/*", + "method": "*" + }, + { + "path": "language/:query-*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.analyze.internal.autoTagging", + "renewalPeriod": 60, + "count": 150, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "TextAnalytics/ct-auto-tagging", + "method": "*" + } + ] + }, + { + "key": "vision.recognizeText", + "renewalPeriod": 1, + "count": 30, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "vision/recognizeText", + "method": "POST" + }, + { + "path": "vision/textOperations/*", + "method": "GET" + }, + { + "path": "vision/read/*", + "method": "*" + } + ] + }, + { + "key": "vision", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "vision/*", + "method": "*" + } + ] + }, + { + "key": "face", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "face/*", + "method": "*" + } + ] + }, + { + "key": "bingVisualSearch", + "renewalPeriod": 1, + "count": 30, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "bing/v7.0/images/visualsearch/*", + "method": "*" + } + ] + }, + { + "key": "bingSearch", + "renewalPeriod": 1, + "count": 250, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "bing/*", + "method": "*" + } + ] + }, + { + "key": "bingCustomSearch", + "renewalPeriod": 1, + "count": 150, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "bingcustomsearch/*", + "method": "*" + } + ] + }, + { + "key": "container.billing", + "renewalPeriod": 10, + "count": 500, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "billing/*", + "method": "*" + } + ] + }, + { + "key": "default", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "*", + "method": "*" + } + ] + } + ] + }, + "isMigrated": false, + "publicNetworkAccess": "Enabled", + "capabilities": [ + { + "name": "Container", + "value": "Face.*,Face.Face,ComputerVision.*,ComputerVision.VideoAnalytics,TextAnalytics.*,TextAnalytics.Healthcare,TextAnalytics.Keyphrase,TextAnalytics.KeyphraseV2,TextAnalytics.KeyPhraseONNX,TextAnalytics.LanguageFastText,TextAnalytics.Language,TextAnalytics.LanguageV2,TextAnalytics.Sentiment,TextAnalytics.SentimentV2,TextAnalytics.SentimentV3,TextAnalytics.SentimentV3Preview,LUIS.LUIS,ContentModerator.*,TextTranslation.*,SpeechServices.*,FormRecognizer.*" + }, + { + "name": "Cloud", + "value": "TextAnalytics.Healthcare,TextAnalytics.Analyze,QuestionAnswer.AllApis,LanguageService.QuestionAnsweringApis" + } + ], + "endpoints": { + "Bing Autosuggest": "https://eastus.api.cognitive.microsoft.com/", + "Bing Spell Check": "https://eastus.api.cognitive.microsoft.com/", + "Bing Entity Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Image Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing News Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Video Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Web Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Visual Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Custom Search": "https://eastus.api.cognitive.microsoft.com/", + "Face": "https://eastus.api.cognitive.microsoft.com/", + "Computer Vision": "https://eastus.api.cognitive.microsoft.com/", + "Text Analytics": "https://eastus.api.cognitive.microsoft.com/", + "Custom Text Authoring": "https://eastus.api.cognitive.microsoft.com/", + "Conversational Language Understanding Authoring": "https://eastus.api.cognitive.microsoft.com/", + "ConversationalLURuntime": "https://eastus.api.cognitive.microsoft.com/", + "Language": "https://eastus.api.cognitive.microsoft.com/", + "Language-2022-05-01": "https://eastus.api.cognitive.microsoft.com/", + "QnAMaker": "https://eastus.api.cognitive.microsoft.com/", + "turing": "https://eastus.api.cognitive.microsoft.com/", + "Turing DeepWrite": "https://eastus.api.cognitive.microsoft.com/", + "QuestionAnswering": "https://eastus.api.cognitive.microsoft.com/", + "QuestionAnsweringBizQA": "https://eastus.api.cognitive.microsoft.com/", + "QuestionAnsweringQnAGen": "https://eastus.api.cognitive.microsoft.com/", + "LUIS.Authoring": "https://eastus.api.cognitive.microsoft.com/", + "LUIS": "https://eastus.api.cognitive.microsoft.com/", + "Unified Speech": "https://eastus.api.cognitive.microsoft.com/", + "Content Moderator - Review": "https://eastus.api.cognitive.microsoft.com/", + "Content Moderator - Moderate": "https://eastus.api.cognitive.microsoft.com/", + "Content Moderator - List Management": "https://eastus.api.cognitive.microsoft.com/", + "TextTranslation-Global": "https://api.cognitive.microsofttranslator.com/", + "TextTranslation": "https://eastus.api.cognitive.microsoft.com/", + "DocumentTranslation": "https://eastus.api.cognitive.microsoft.com/", + "DocumentTranslation-V1-1": "https://eastus.api.cognitive.microsoft.com/", + "Token": "https://eastus.api.cognitive.microsoft.com/", + "Container": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speech to Text v2.0": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speech to Text v3.0": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speech to Text v3.1-preview.1": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Custom Voice": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Audio Content Creation": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speaker Verification": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speaker Identification": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Prediction_3.0": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Prediction_3.1": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Training_3.1": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Training_3.2": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Training_3.3": "https://eastus.api.cognitive.microsoft.com/", + "FormRecognizer": "https://eastus.api.cognitive.microsoft.com/" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "c9ea2a42-b5c4-47fd-8f18-d11ddf3e162f", + "tenantId": "88888888-8888-8888-8888-888888888888", + "type": "SystemAssigned" + }, + "systemData": { + "createdBy": "azure_client_id", + "createdByType": "Application", + "createdAt": "2022-06-10T06:41:39.6934663Z", + "lastModifiedBy": "azure_client_id", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-06-10T06:41:39.6934663Z" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_delete_test.js b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_delete_test.js deleted file mode 100644 index d198454e4b5f..000000000000 --- a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_delete_test.js +++ /dev/null @@ -1,177 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "74b03e9bce6cafd59b94592d66df60d1"; - -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', - 'ab800d36-9487-492e-b40d-f24b14bd0400', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AmIbpz621rVNr2P743cTeaY; expires=Wed, 19-Jan-2022 06:52:19 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIML7-6yuU_FmVm92K8Ke1RKP5y6Q2SwrVNWa_xZ_aYYaOPum6pnGAVzZQciHu3hS9zm8iccFFNFBRPozz2z0IVgwzaczk_ygCY-eVJW0ZU9TRVjLaebGGSm1duBN0qe1A2N7OZno2RAY29NEW2SRWbUovmJDaIRNH5Ce6XNPwSAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:18 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', - '1bd63f88-8ecd-4df1-9d86-9bcf45500800', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Apoa9xpFozNMttCaytrbGoM; expires=Wed, 19-Jan-2022 06:52:19 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0ADsuogqJEqGSrggRrby3s9JbsQGv02blseRYSZ7BOR6f_-KHvtfbTMjOKFrANUuDDPLYWIdQtg2Y06u5n1IWg4mpPCJ10ky8aWwOEHy-n6Vqlt__oETRx-IkqhR_0-kpctaNiZmV64cNNJhsbmrfNfSxcfRaHLx68ic499HNGEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:19 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.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=cce6f988-7eb6-4536-8fc2-51098e277f83&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', - 'c7025f87-5230-4b1b-a3d3-5a8ed7580800', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Al_o1DpvRMdIqO8aABNz_m3Lj78gAQAAACMfUtkOAAAA; expires=Wed, 19-Jan-2022 06:52: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', - 'Mon, 20 Dec 2021 06:52:19 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .delete('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx') - .query(true) - .reply(200, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'X-Content-Type-Options', - 'nosniff', - 'x-envoy-upstream-service-time', - '95', - 'Server', - 'istio-envoy', - 'x-ms-ratelimit-remaining-subscription-deletes', - '14999', - 'x-ms-request-id', - '7a24836a-72ae-4101-a9ae-3bab9a9105ed', - 'x-ms-correlation-request-id', - '7a24836a-72ae-4101-a9ae-3bab9a9105ed', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211220T065226Z:7a24836a-72ae-4101-a9ae-3bab9a9105ed', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Date', - 'Mon, 20 Dec 2021 06:52:26 GMT', - 'Content-Length', - '0' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff92ff0742ea40440c000000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'x-ms-ratelimit-remaining-subscription-reads', - '11997', - 'x-ms-request-id', - '8e372fcb-4967-42af-9481-36a63db9cbbd', - 'x-ms-correlation-request-id', - '8e372fcb-4967-42af-9481-36a63db9cbbd', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211220T065227Z:8e372fcb-4967-42af-9481-36a63db9cbbd', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'X-Content-Type-Options', - 'nosniff', - 'Date', - 'Mon, 20 Dec 2021 06:52:26 GMT', - 'Content-Length', - '133' -]); diff --git a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_delete_test.json b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_delete_test.json new file mode 100644 index 000000000000..de3de2567729 --- /dev/null +++ b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_delete_test.json @@ -0,0 +1,68 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx?api-version=2022-03-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-cognitiveservices/7.2.0 core-rest-pipeline/1.9.1 Node/v16.15.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "51c70b8b-7fc6-43f2-a612-f204f3295e2b" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 10 Jun 2022 06:42:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "77", + "x-ms-correlation-request-id": "ba6bb936-05b9-4c99-9190-39956a488bdc", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "ba6bb936-05b9-4c99-9190-39956a488bdc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220610T064200Z:ba6bb936-05b9-4c99-9190-39956a488bdc" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts?api-version=2022-03-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-cognitiveservices/7.2.0 core-rest-pipeline/1.9.1 Node/v16.15.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "a80711e0-a079-48c6-a9f2-8212950ed534" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 10 Jun 2022 06:42:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4d3ba41c-a13f-4207-99ac-891d2820d01d", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "4d3ba41c-a13f-4207-99ac-891d2820d01d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220610T064200Z:4d3ba41c-a13f-4207-99ac-891d2820d01d" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": {} +} diff --git a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_get_test.js b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_get_test.js deleted file mode 100644 index 15dfe73564c0..000000000000 --- a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_get_test.js +++ /dev/null @@ -1,151 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "91e60c31279dd365b9a1d8ef64164a0f"; - -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', - 'c8a5e3e9-f35c-4dbc-a255-5341e4ab0400', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=Aksjs7f0ZwRBsvc-U6Vp5IE; expires=Wed, 19-Jan-2022 06:52:13 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevryBRX-0szLzQh0fS-EsSG6S0ubTmmwqK6eBOEouR1cEf2_cqS_11OaI2vM_YVTg2S_bdky0Pzp4z-eycr-m_dFuBaaULrPmiJFWR5O56q_Q_1XaWSnhxXCQGZM9mkrC3S2TwW5EcKuGt_0Cxm4NQDLVCZRKmRlcDPCWhWFVrEY48gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:12 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', - '708c358a-7eb2-49a7-8339-1064bee80700', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=ApKq5gxm0yhMoLWCoeziIqE; expires=Wed, 19-Jan-2022 06:52:13 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXOh8rdt_IVM6-lm_XoFiQSAzvIriFjCBD8lscCjXUxoJQeMcpuidacdhvjIwqKblt-qwbRoOdEd0q1gVAB6-eE_lum1p6aSUOGItNdJ_cz6wzvQp2iXFgmULatGyRTvSfYB8nKJi-31mbTFhbjjX0Gp0QWwT-eVr5ZN6nFZzbDwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:12 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.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=515bd96e-4f90-4b68-9018-a7e516f42c65&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', - 'c8a5e3e9-f35c-4dbc-a255-5341e6ab0400', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AuJIyhtspr1Ko_JF2uQ5SgTLj78gAQAAABwfUtkOAAAA; expires=Wed, 19-Jan-2022 06:52:13 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:13 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e4faa8b65d11697f9ebbcbe2ca67973379b4eabf5b2c57bfaebbb77ef3e1a7db4cc163921d4f9b4bd5ee1d3db00a4d6799b5d50ebdff7a3fbd39d9d07f7660fb777e8d9ded9c53ff46c7fba3bddd93bd89dd0ef3bbfef47f446734db82f9e666df6d1a35ffcd1b4ceb3369f3db92620f94e46e3bd4704a097b6f767bb7bdb07e79f4eb789300feeefecec4eef4f3302605f7923981eaf566531cd404ef7ed714bdfecedeced6e1394bd9d373b9f3ebabff768e7c1f8d3fdddfbbb3bfb3f454dcbac69bfa866c5790168d4fe960884ef45b1f09bdc8cca2fa1172a7d97b0a077d7a06df3760d12e934bdde41bbb7c5124cd49b136a4eccb0caebb6a03fe8ad7c395b55c5127dcfdb76d53cba7b57008fb355319e9af7c70b3bcfd36a7197c0d03b79bdccca33f47370ffd3073b0f76a67b7b0f1fecdfcb66077bd9dedea79fde7b30399fddbbfff080dacf88dc2742747aa137cedd9df1a79fde2726de05c9a9ef973e9a34a2695696afe8ede7c5a2206c7ff147f5bac477dffbc51fbdcd312be755bda873c6f807793d9eae9bb65a8cdb3a2b40e93a5fe65759f932af8b8a10f874872082393f7ab44bb85d13f18ae99b795db56d592c2f4e97d9a404a2e759d9e4a38f16593b9dbfcc5a0c59fa5c65edbcd7e95de9f4aee97491b773f4f6d1b73efa25dfff25a3cd984eabd5f5a29ae52526e9878aaef47af717f3cfb3d92fb90b540889f7429f5f6ec617794b6f6e409f7efdd9c19fbab5087f7efa6613ca19f1edf50f727c4a6f759025021b5cefff6ce1ead15a71213c2cf62fbf7c7d5bf4c7a4f2d76584e4de28767ed648de1fc62b4687be10bce81b42cd0eac3b2d02ecb26848a389a41266f4c286b17cc850fceeee5ede1bef88a01288bbdfa25e2d9ac4ee84e2c04bbb5fe7a5bdaff3d2bdaff3d2fef6aace2f8bfc6af8e5a109a01767c594adcb0f710a5caf3d4409cd81d77637bde68daf59e5f9743e6eae97ed3c6f8881a9e9e0c8f63e4c50a4afbb415f9bd1d2515530ccfe5b3fcb180e75bb19d965beaeb3b2ffd6cf32b243dd6e46568638f4eecf32ca9b3bbf01f16a79497e3afb7824c04b1b01d09b83687fa08697aeef36f44e49bf64cb655e66eb59516d42c61f060d2204b520d55fdc0469d2a5460f0c6296dbbdda27a4fc68ab367f17b38e44b06f9278d2cf2d34119ab595fc418d7fd6d0f2fbb9055af4237b9bd76ae741eacb3d7aa98b9ec56eef8390d3debe1e5ebbf4d2205e1fe4b035ab62b609a759355de4cbf60d98b0647ea4b683a87c188998d3a993aabe8ba9bc3b41c34dc8a1d52d31fb50d6d25e0c6a9b90aadee63f9ba834e4695eee9213b10187e70585d8e49d5ee4983c6a378ccc07710fe9a9963a80435c33714aeaf866f428fa477b28b441c43e8c957a88e96ff98db8bd624792beff6161a69eeb4d7895eba219dbc4c506f4ee7f107ae8a6870621e17f7d3b37f4aaaadf9e97d595457abcaa9a16190d44ad1df4bd6019bf7e7dfcef96d9f2624d8c7ff711f13fa2b36da2b835a6e87a005fc8f5315e212bde8cd74bc94fada96d4d08d07bc3287fa0445b9481c2ddcc74c92c61221bf2fe37d01a2f0ee38efcc4cd74ff610c622f1c443734c6ab1b86b15e219f769b91fcb007f25eb3312dd79891935b8c837eff060622be3979e28128842378cfa9c018643a6e338c1fda2836cd83bcff863ea33736614bbf7f7d74d1a7e485d02987ed9669a62d49317ff783fcf678eb0bd47c18e97bdf38d2f267044fc272f0ad3d3bd40f7d7f4fbe88bc3f48a7799e95ed7c9ad53f7452913927379dd67e04851eca84f0e0db6ec8bb1ff6faded0eb4304a366c3542229a03fbe31326dc0e917ad69b18e0499fceb2bc2e3064bfbe987a1f58be845c4569b10525d67f4cef8878aa0e9f52ef55a5f6fbf5d5657f4de453ec91ae2af2ed68473f7bd47f262b7a5373e4928520e9dc3cb1fe4718de8fcc97b1f3420e98d9cdcb0378b9ba4fd09b9b03df8e74b5a0a631ddf19389baade1bb4cab631909566f4fde0403f2c1412f89b3038cfa611d5f44df50fe89b7a9f10b09f2c9a7556beceb33a9a88b1987cd894a3a7bb970f289c2916c492a4a7b8db2647b703285a146f466eefc3021c7472131227ec2adc8ccaee87a3225ec9cdb4219fa7a5a50d5a089b14257aa1a65dbc0819458c16e43f0c31ee62133eb3fc3ca3842735e8626191f8b038b9df37f5fe51d17c515c9056f020acd693b298bec85b049cc753ca3c139c8f4c3f844db6ca68406ca1b903c228a7162786a2d4e6322bd7f8ec1909d1f85b23fe817f4627d562b526dc487248bae9abce073f896cad35a9236837fb17b50efffe361b6878289d2f7eaffc7a35af49c50f7dfe937bfd6f5ef2375fbe78f17b77be7baeb6e059d6b4f866e0eb818f7b5dbd867b8334d2d0e7c36ffce4bde16f5e8adf327afed5d9eb31fe21d2726644934355adf4f3127cf4c96bce91beceeb4bac31d007cf68a9f695b12ef40e9b0633c565b5060b98e9053887cce074f06f3fc8473fa196ff982dfff8b82c8f57453332945224c66133e271b422861d7d64321fc477bff8a327f44d4a1154d5ac2f482b92807c346fdb55f3e8eedd9c666a4d9efeaaa0b5101a485b5ce663129bba6aaaf3963e5bdca55130001a7f59a627f37cfaf6eb0138a51968af53556e5f0bc419d4fa074178915f351f0480e5ee83207c379f7cd0fba400c8a87d100831335f1704f4d37bbf64d417d027967deff7212829cb0724e5bd5f37a24362208984f786404ac2c6fe5969e07db5249dd1b4d972f60dc0fcea15992fd252ef0de72796c75f20ba78ef17dbf5d7a2c51b7e2d7d9ae7abefd605a5d3df17404f73bd370428eef1d79f4dbcfede2f7d25011a54219982f77e9d661b6626b57626dd4e35e9ff4d80d2dfdf7f3262c0b08e937a0b39ef0b13e2ead9cfedcfcb6a92951e9881f7dd72177d1b83e481b81d264fabe91a43f810186f7865ed7ddf025dc5cf7bdf3785c1483fb39d2783257fb7550a6aa4977be39d6f1ce6bd9f15982e07b9fbc1d0d56afd64457f7d30b0e3f5aca8524c11f1467a4241fcd7e28c2e58fa1b8a38fd49d26ae7c5f49b057a36235cbf3e58a1dfef2f06f8f7273758d7d27effaf33f51b80bdff4c87c048528b2529f56f16d4de3707eade7b830a6385f77c9da2cf555d512e83d020045eb7a2e45faf29e4cc67f90c0dc82b25d6682940a638962ce2b45865e519c5aa1fed9d1f3cc87666f9f6bd07f7ceb7f7f307f9f6c1f4c1c3edddf3c9f4d37b0793ddc90c910a8941b66cf98d077be70f0f0e26e7db079f9eef6eefef66e7db0f77b3c9f6deecc174b6b3bb3b9bec3fc01bd72b46e3ba69f3c571d314174bc265f4d1bac96bf3a770ac04c0bff897fc92","5ff2ff005f4b5be36e310000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'ETag', - '"5c0073d9-0000-0100-0000-61c0281b0000"', - 'Vary', - 'Accept-Encoding', - 'X-Content-Type-Options', - 'nosniff', - 'x-ms-request-id', - '3b1ef17c-8e14-41b8-a848-b5e4b9882497', - 'x-envoy-upstream-service-time', - '15', - 'Server', - 'istio-envoy', - 'x-ms-ratelimit-remaining-subscription-reads', - '11999', - 'x-ms-correlation-request-id', - '7537570b-bbb0-4df7-a158-61da9447c49c', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211220T065214Z:7537570b-bbb0-4df7-a158-61da9447c49c', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Date', - 'Mon, 20 Dec 2021 06:52:13 GMT' -]); diff --git a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_get_test.json b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_get_test.json new file mode 100644 index 000000000000..4d22c4a74245 --- /dev/null +++ b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_get_test.json @@ -0,0 +1,811 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx?api-version=2022-03-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-cognitiveservices/7.2.0 core-rest-pipeline/1.9.1 Node/v16.15.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "cecabfa4-3db1-4e35-9979-b26b5e1e7aec" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 10 Jun 2022 06:41:46 GMT", + "ETag": "\u002229015a71-0000-0100-0000-62a2e7a70000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "17", + "x-ms-correlation-request-id": "faf073f5-0500-411b-9a0c-afe1ade74460", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "0571a2a3-bfb8-4be3-b715-d47b284c4b86", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220610T064146Z:faf073f5-0500-411b-9a0c-afe1ade74460" + }, + "ResponseBody": { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx", + "name": "myaccountxxx", + "type": "Microsoft.CognitiveServices/accounts", + "etag": "\u002229015a71-0000-0100-0000-62a2e7a70000\u0022", + "location": "eastus", + "sku": { + "name": "S0" + }, + "kind": "CognitiveServices", + "properties": { + "endpoint": "https://eastus.api.cognitive.microsoft.com/", + "internalId": "944b07d3acaa4149b8d65757ea6bf5ca", + "dateCreated": "2022-06-10T06:41:42.5590615Z", + "apiProperties": {}, + "callRateLimit": { + "rules": [ + { + "key": "formrecognizer.custom.train", + "renewalPeriod": 60, + "count": 1, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "formrecognizer/custom/train", + "method": "*" + } + ] + }, + { + "key": "formrecognizer.custom.copymodels", + "renewalPeriod": 60, + "count": 1, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models/{modelId}/copy", + "method": "*" + } + ] + }, + { + "key": "formrecognizer.custom.models.get", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models", + "method": "GET" + } + ] + }, + { + "key": "formrecognizer.analyzeform", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models/{modelId}/analyze", + "method": "POST" + } + ] + }, + { + "key": "formrecognizer.analyzeform.result", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models/{modelId}/analyzeResults/{resultId}", + "method": "GET" + } + ] + }, + { + "key": "customvision.training", + "renewalPeriod": 1, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "customvision/v3.0/training/*", + "method": "*" + }, + { + "path": "customvision/v3.1/training/*", + "method": "*" + }, + { + "path": "customvision/v3.2/training/*", + "method": "*" + }, + { + "path": "customvision/v3.3/training/*", + "method": "*" + }, + { + "path": "customvision/v3.4-preview/training/*", + "method": "*" + } + ] + }, + { + "key": "customvision.prediction", + "renewalPeriod": 1, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "customvision/v3.0/prediction/*", + "method": "*" + }, + { + "path": "customvision/v3.1/prediction/*", + "method": "*" + } + ] + }, + { + "key": "speech.synthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/synthesize", + "method": "*" + } + ] + }, + { + "key": "speech.customvoicesynthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/customvoicesynthesize", + "method": "*" + } + ] + }, + { + "key": "speech.neuralvoicesynthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/neuralvoicesynthesize", + "method": "*" + } + ] + }, + { + "key": "speech.customneuralvoicesynthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/customneuralvoicesynthesize", + "method": "*" + } + ] + }, + { + "key": "speech.conversationtranscription", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/singlechannelaudioconversationtranscription", + "method": "*" + }, + { + "path": "speech/multichannelaudioconversationtranscribe", + "method": "*" + }, + { + "path": "speech/videoconversationtranscribe", + "method": "*" + } + ] + }, + { + "key": "speech.speechtotext", + "renewalPeriod": 10, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speechtotext/*", + "method": "*" + } + ] + }, + { + "key": "speech.texttospeech", + "renewalPeriod": 10, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "texttospeech/*", + "method": "*" + } + ] + }, + { + "key": "speech.speakerrecognitionv2", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speaker/*", + "method": "*" + }, + { + "path": "speaker-recognition/*", + "method": "*" + } + ] + }, + { + "key": "speech.speakerrecognitionv1", + "renewalPeriod": 1, + "count": 5, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "spid/*", + "method": "*" + } + ] + }, + { + "key": "docmentTranslation", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "translator/text/batch/*", + "method": "*" + } + ] + }, + { + "key": "textTranslation", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "translator/text/*", + "method": "*" + } + ] + }, + { + "key": "token", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "sts/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "ListManagement", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "contentmoderator/lists/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "Moderate", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "contentmoderator/moderate/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "Review", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "contentmoderator/review/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "luis.endpoint", + "renewalPeriod": 1, + "count": 50, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "luis/*", + "method": "*" + }, + { + "path": "luis/prediction/*", + "method": "*" + } + ] + }, + { + "key": "workflow.endpoint.postcalls", + "renewalPeriod": 60, + "count": 1000, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "/language/:analyze-conversations", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.authoring.customtext.getcalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.updatecalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.authoring.customtext.march.getcalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-text/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.march.updatecalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-text/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.authoring.customtext.internal.getcalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/internal/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.internal.updatecalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/internal/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.getCalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.updateCalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.march.getCalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-conversations/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.march.updateCalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-conversations/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.internal.getCalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/internal/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.internal.updateCalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/internal/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.customText", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "text/analytics/v3.1-preview.ct.1/analyze/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.analyze", + "renewalPeriod": 60, + "count": 300, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "text/analytics/v3.1/analyze/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.1/analyze/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.2/analyze/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.healthcare", + "renewalPeriod": 60, + "count": 300, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "text/analytics/v3.1/entities/health/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.1/health/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.2/health/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics", + "renewalPeriod": 60, + "count": 1000, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "text/analytics/*", + "method": "*" + } + ] + }, + { + "key": "questionanswering", + "renewalPeriod": 60, + "count": 600, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "qnamaker/*", + "method": "*" + } + ] + }, + { + "key": "unifiedlanguage.questionanswering", + "renewalPeriod": 60, + "count": 600, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/query-knowledgebases/*", + "method": "*" + }, + { + "path": "language/:query-*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.analyze.internal.autoTagging", + "renewalPeriod": 60, + "count": 150, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "TextAnalytics/ct-auto-tagging", + "method": "*" + } + ] + }, + { + "key": "vision.recognizeText", + "renewalPeriod": 1, + "count": 30, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "vision/recognizeText", + "method": "POST" + }, + { + "path": "vision/textOperations/*", + "method": "GET" + }, + { + "path": "vision/read/*", + "method": "*" + } + ] + }, + { + "key": "vision", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "vision/*", + "method": "*" + } + ] + }, + { + "key": "face", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "face/*", + "method": "*" + } + ] + }, + { + "key": "bingVisualSearch", + "renewalPeriod": 1, + "count": 30, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "bing/v7.0/images/visualsearch/*", + "method": "*" + } + ] + }, + { + "key": "bingSearch", + "renewalPeriod": 1, + "count": 250, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "bing/*", + "method": "*" + } + ] + }, + { + "key": "bingCustomSearch", + "renewalPeriod": 1, + "count": 150, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "bingcustomsearch/*", + "method": "*" + } + ] + }, + { + "key": "container.billing", + "renewalPeriod": 10, + "count": 500, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "billing/*", + "method": "*" + } + ] + }, + { + "key": "default", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "*", + "method": "*" + } + ] + } + ] + }, + "isMigrated": false, + "publicNetworkAccess": "Enabled", + "capabilities": [ + { + "name": "Container", + "value": "Face.*,Face.Face,ComputerVision.*,ComputerVision.VideoAnalytics,TextAnalytics.*,TextAnalytics.Healthcare,TextAnalytics.Keyphrase,TextAnalytics.KeyphraseV2,TextAnalytics.KeyPhraseONNX,TextAnalytics.LanguageFastText,TextAnalytics.Language,TextAnalytics.LanguageV2,TextAnalytics.Sentiment,TextAnalytics.SentimentV2,TextAnalytics.SentimentV3,TextAnalytics.SentimentV3Preview,LUIS.LUIS,ContentModerator.*,TextTranslation.*,SpeechServices.*,FormRecognizer.*" + }, + { + "name": "Cloud", + "value": "TextAnalytics.Healthcare,TextAnalytics.Analyze,QuestionAnswer.AllApis,LanguageService.QuestionAnsweringApis" + } + ], + "endpoints": { + "Bing Autosuggest": "https://eastus.api.cognitive.microsoft.com/", + "Bing Spell Check": "https://eastus.api.cognitive.microsoft.com/", + "Bing Entity Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Image Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing News Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Video Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Web Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Visual Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Custom Search": "https://eastus.api.cognitive.microsoft.com/", + "Face": "https://eastus.api.cognitive.microsoft.com/", + "Computer Vision": "https://eastus.api.cognitive.microsoft.com/", + "Text Analytics": "https://eastus.api.cognitive.microsoft.com/", + "Custom Text Authoring": "https://eastus.api.cognitive.microsoft.com/", + "Conversational Language Understanding Authoring": "https://eastus.api.cognitive.microsoft.com/", + "ConversationalLURuntime": "https://eastus.api.cognitive.microsoft.com/", + "Language": "https://eastus.api.cognitive.microsoft.com/", + "Language-2022-05-01": "https://eastus.api.cognitive.microsoft.com/", + "QnAMaker": "https://eastus.api.cognitive.microsoft.com/", + "turing": "https://eastus.api.cognitive.microsoft.com/", + "Turing DeepWrite": "https://eastus.api.cognitive.microsoft.com/", + "QuestionAnswering": "https://eastus.api.cognitive.microsoft.com/", + "QuestionAnsweringBizQA": "https://eastus.api.cognitive.microsoft.com/", + "QuestionAnsweringQnAGen": "https://eastus.api.cognitive.microsoft.com/", + "LUIS.Authoring": "https://eastus.api.cognitive.microsoft.com/", + "LUIS": "https://eastus.api.cognitive.microsoft.com/", + "Unified Speech": "https://eastus.api.cognitive.microsoft.com/", + "Content Moderator - Review": "https://eastus.api.cognitive.microsoft.com/", + "Content Moderator - Moderate": "https://eastus.api.cognitive.microsoft.com/", + "Content Moderator - List Management": "https://eastus.api.cognitive.microsoft.com/", + "TextTranslation-Global": "https://api.cognitive.microsofttranslator.com/", + "TextTranslation": "https://eastus.api.cognitive.microsoft.com/", + "DocumentTranslation": "https://eastus.api.cognitive.microsoft.com/", + "DocumentTranslation-V1-1": "https://eastus.api.cognitive.microsoft.com/", + "Token": "https://eastus.api.cognitive.microsoft.com/", + "Container": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speech to Text v2.0": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speech to Text v3.0": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speech to Text v3.1-preview.1": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Custom Voice": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Audio Content Creation": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speaker Verification": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speaker Identification": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Prediction_3.0": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Prediction_3.1": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Training_3.1": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Training_3.2": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Training_3.3": "https://eastus.api.cognitive.microsoft.com/", + "FormRecognizer": "https://eastus.api.cognitive.microsoft.com/" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "c9ea2a42-b5c4-47fd-8f18-d11ddf3e162f", + "tenantId": "88888888-8888-8888-8888-888888888888", + "type": "SystemAssigned" + }, + "systemData": { + "createdBy": "azure_client_id", + "createdByType": "Application", + "createdAt": "2022-06-10T06:41:39.6934663Z", + "lastModifiedBy": "azure_client_id", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-06-10T06:41:39.6934663Z" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_list_test.js b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_list_test.js deleted file mode 100644 index 9a9831be6dcd..000000000000 --- a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_list_test.js +++ /dev/null @@ -1,149 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "6e52b7a8bf581490d51d15b569251bf7"; - -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', - '602ed568-d106-4528-988f-2d671bf40800', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AgSrTJ5XdB9Kv7BAuK4r2uU; expires=Wed, 19-Jan-2022 06:52:14 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrrrZ9XVns7aarJ2dGN7p-8_Z-Ng89pyTD5jklGw81PUL488EehGfaz3q259o0kEB-_jYudewB1YzoWn5qHky_kuzuOr96fjkT4q95DWppKnpI94yj2l_8m1DLY3t5jYUr1H1ca9dpx0qcpTkw9mxTjt_JEaZcHaygqZEYXo_eEwUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:13 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', - 'c8a5e3e9-f35c-4dbc-a255-5341edab0400', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AgN-b1R7ZbBKgwcean8u2fw; expires=Wed, 19-Jan-2022 06:52:14 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrdPbMwMBkq45Y-1A7N8JiqsGuK5M78ywVQGKvbynZarq2VWtXup-thOG_Lw33SK9NgxY-SjQci2bLZUfP6vJ8zdjKQNVpVT7_nWfiLRyXj9jQSRvOuIQuJP3Loxo3EjGm2Y4xRYIRtiBqfVo3r3jOnT3xIYycDs4MfM2Xuaep4nYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:13 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=d138998e-1668-4cdc-9776-595d48040736&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', - 'c8a5e3e9-f35c-4dbc-a255-5341f1ab0400', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Ak84CmS3uP9EpO-ClQNHOD_Lj78gAQAAAB0fUtkOAAAA; expires=Wed, 19-Jan-2022 06:52:14 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:14 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .get('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffc5131fbe8d147779bf5a499d6c5aa2daa6573f7e1def9c3fbb383f3ed7bd34f1f6cefefeeed6f3fdc9d3ed83e989eef3c98ce26e77bfbbb77ebbca9d6f534ffbcaed6abe6eee2faa79b366fdabbabbaba2c6679dddcfda298d655539db7e393ea6259b4c565fe3aaf2f8b69dedccda6d36abd6cf19efefaeeddbb8f461f2db305e1f551e7d3f67a854f6f03905ae76d7641ad7fdf8fee4f77761edc9b3ddcdea1677b6717ffd0b3fde9ee7467ef607742bfeffcbe1fd11bcd35e1be789ab5d9478f7ef147d33acfda7cf6e49a80e43b198df71e11805edade9fedee6d1f9c7f3add26c23cb8bfb3b33bbd3fcd08807de58d607abc5a95c5340339ddb7c72d7db3b7b3b7bb4d50f676deec7cfae8fedea39d07e34ff777efefeeecff14352db3a6fda29a15e705a051fb5b2210be17c5c26f72332abf845ea8f45dc282de5d83b6cddb3548a4d3f47a07edde164b30516f4ea83931c32aafdb82fea0b7f2e56c55154bf43d6fdb55f3e8ee5d013cce56c5786ade1f2fec3c4fabc55d0243efe4f5322bcfd0cfc1fd4f1fec3cd899eeed3d7cb07f2f9b1dec657b7b9f7e7aefc1e47c76effec3036a3f23729f08d1e985de387777c69f7e7a9f98781724a7be5ffa68d288a65959bea2b79f178b82b0fdc51fd5eb12df91bcbccd312be755bda873c6f807793d9eae9bb65a8cdb3a2b40e93a5fe65759f932af8b8a10f874872082393f7ab44bb85d13f18ae99b795db56d592c2f4e97d9a404a2e759d9e4a38f16593b9dbfcc5a0c59fa5c65edbcd7e95de9f4aee97491b773f4f6d1b73efa25dfff25a3cd984eabd5f5a29ae52526e9878aaef47af717f3cfb3d92fb90b540889f7429f5f6ec617794b6f6e409f7efdd9c19fbab5087f7efa6613ca19f1edf50f727c4a6f759025021b5cefff6ce1ead15a71213c2cf62fbf7c7d5bf4c7a4f2d76584e4de28767ed648de1fc62b4687be10bce81b42cd0eac3b2d02ecb26848a389a41266f4c286b17cc850fceeee5ede1bef88a01288bbdfa25e2d9ac4ee84e2c04bbb5fe7a5bdaff3d2bdaff3d2fef6aace2f8bfc6af8e5a109a01767c594adcb0f710a5caf3d4409cd81d77637bde68daf59e5f9743e6eae97ed3c6f8881a9e9e0c8f63e4c50a4afbb415f9bd1d2515530ccfe5b3fcb180e75bb19d965beaeb3b2ffd6cf32b243dd6e46568638f4eecf32ca9b3bbf01f16a79497e3afb7824c04b1b01d09b83687fa08697aeef36f44e49bf64cb655e66eb59516d42c61f060d2204b520d55fdc0469d2a5460f0c6296dbbdda27a4fc68ab367f17b38e44b06f9278d2cf2d34119ab595fc418d7fd6d0f2fbb9055af4237b9bd76ae741eacb3d7aa98b9ec56eef8390d3debe1e5ebbf4d2205e1fe4b035ab62b609a759355de4cbf60d98b0647ea4b683a87c188998d3a993aabe8ba9bc3b41c34dc8a1d52d31fb50d6d25e0c6a9b90aadee63f9ba834e4695eee9213b10187e70585d8e49d5ee4983c6a378ccc07710fe9a9963a80435c33714aeaf866f428fa477b28b441c43e8c957a88e96ff98db8bd624792beff6161a69eeb4d7895eba219dbc4c506f4ee7f107ae8a6870621e17f7d3b37f4aaaadf9e97d595457abcaa9a16190d44ad1df4bd6019bf7e7dfcef96d9f2624d8c7ff711f13fa2b36da2b835a6e87a005fc8f5315e212bde8cd74bc94fada96d4d08d07bc3287fa0445b9481c2ddcc74c92c61221bf2fe37d01a2f0ee38efcc4cd74ff610c622f1c443734c6ab1b86b15e219f769b91fcb007f25eb3312dd79891935b8c837eff060622be3979e28128842378cfa9c018643a6e338c1fda2836cd83bcff863ea33736614bbf7f7d74d1a7e485d02987ed9669a62d49317ff783fcf678eb0bd47c18e97bdf38d2f267044fc272f0ad3d3bd40f7d7f4fbe88bc3f48a7799e95ed7c9ad53f7452913927379dd67e04851eca84f0e0db6ec8bb1ff6faded0eb4304a366c3542229a03fbe31326dc0e917ad69b18e0499fceb2bc2e3064bfbe987a1f58be845c4569b10525d67f4cef8878aa0e9f52ef55a5f6fbf5d5657f4de453ec91ae2af2ed68473f7bd47f262b7a5373e4928520e9dc3cb1fe4718de8fcc97b1f3420e98d9cdcb0378b9ba4fd09b9b03df8e74b5a0a631ddf19389baade1bb4cab631909566f4fde0403f2c1412f89b3038cfa611d5f44df50fe89b7a9f10b09f2c9a7556beceb33a9a88b1987cd894a3a7bb970f289c2916c492a4a7b8db2647b7018a11146f466eefc3021c7472131227ec2adc8ccaee87a3225ec9cdb4219fa7a5a50d5a089b14257aa1a65dbc0819458c16e43f0c31ee62133eb3fc3ca3842735e8626191f8b038b9df37f5fe51d17c515c9056f020acd693b298bec85b049cc753ca3c139c8f4c3f844db6ca68406ca1b903c228a7162786a2d4e6322bd7f8ec1909d1f85b23fe817f4627d562b526dc487248bae9abce073f896cad35a9236837fb17b50efffe361b6878289d2f7eaffc7a35af49c50f7dfe937bfd6f5ef2375fbe78f17b77be7baeb6e059d6b4f866e0eb818f7b5dbd867b8334d2d0e7c36ffce4bde16f5e8adf327afed5d9eb31fe21d2726644934355adf4f3127cf4c96bce91beceeb4bac31d007cf68a9f695b12ef40e9b0633c565b5060b98e9053887cce074f06f3fc8473fa196ff982dfff8b82c8f57453332945224c66133e271b422861d7d64321fc477bff8a327f44d4a1154d5ac2f482b92807c346fdb55f3e8eedd9c666a4d9efeaaa0b5101a485b5ce663129bba6aaaf3963e5bdca55130001a7f59a627f37cfaf6eb0138a51968af53556e5f0bc419d4fa074178915f351f0480e5ee83207c379f7cd0fba400c8a87d100831335f1704f4d37bbf64d417d027967deff7212829cb0724e5bd5f37a24362208984f786404ac2c6fe5969e07db5249dd1b4d972f60dc0fcea15992fd252ef0de72796c75f20ba78ef17dbf5d7a2c51b7e2d7d9ae7abefd605a5d3df17404f73bd370428eef1d79f4dbcfede2f7d25011a54219982f77e9d661b6626b57626dd4e35e9ff4d80d2dfdf7f3262c0b08e937a0b39ef0b13e2ead9cfedcfcb6a92951e9881f7dd72177d1b83e481b81d264fabe91a43f810186f7865ed7ddf025dc5cf7bdf3785c1483fb39d2783257fb7550a6aa4977be39d6f1ce6bd9f15982e07b9fbc1d0d56afd64457f7d30b0e3f5aca8524c11f1467a4241fcd7e28c2e58fa1b8a38fd49d26ae7c5f49b057a36235cbf3e58a1dfef2f06f8f7273758d7d27effaf33f51b80bdff4c87c048528b2529f56f16d4de3707eade7b830a6385f77c9da2cf555d512e83d020045eb7a2e45faf29e4cc67f90c0dc82b25d6682940a638962ce2b45865e519c5aa1fed9d1f3cc87666f9f6bd07f7ceb7f7f307f9f6c1f4c1c3edddf3c9f4d37b0793ddc90c910a8941b66cf98d077be70f0f0e26e7db079f9eef6eefef66e7db0f77b3c9f6deecc174b6b3bb3b9bec3fc01bd72b46e3ba69f3c571d314174bc265f4d1bac96bf3a770ac04c0bff897fc925ff2fd","5ff2ff0002b7d8eb7a310000"], [ - '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', - 'X-Content-Type-Options', - 'nosniff', - 'x-ms-request-id', - '36504514-1b2b-40d5-af6b-c8a86e47e5f3', - 'x-envoy-upstream-service-time', - '25', - 'Server', - 'istio-envoy', - 'x-ms-ratelimit-remaining-subscription-reads', - '11998', - 'x-ms-correlation-request-id', - '84d357fb-3798-4b46-b751-58f0b54c5dc0', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211220T065215Z:84d357fb-3798-4b46-b751-58f0b54c5dc0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Date', - 'Mon, 20 Dec 2021 06:52:15 GMT' -]); diff --git a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_list_test.json b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_list_test.json new file mode 100644 index 000000000000..6dacb0011602 --- /dev/null +++ b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_list_test.json @@ -0,0 +1,814 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts?api-version=2022-03-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-arm-cognitiveservices/7.2.0 core-rest-pipeline/1.9.1 Node/v16.15.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "a3c07322-ab6c-4088-889b-db5715da263e" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 10 Jun 2022 06:41:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "27", + "x-ms-correlation-request-id": "0aa22ef3-e0c8-4035-b7ae-e7c85009372e", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "b4fe910f-e7c5-41c5-9473-f852deeece87", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220610T064147Z:0aa22ef3-e0c8-4035-b7ae-e7c85009372e" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx", + "name": "myaccountxxx", + "type": "Microsoft.CognitiveServices/accounts", + "etag": "\u002229015a71-0000-0100-0000-62a2e7a70000\u0022", + "location": "eastus", + "sku": { + "name": "S0" + }, + "kind": "CognitiveServices", + "properties": { + "endpoint": "https://eastus.api.cognitive.microsoft.com/", + "internalId": "944b07d3acaa4149b8d65757ea6bf5ca", + "dateCreated": "2022-06-10T06:41:42.5590615Z", + "apiProperties": {}, + "callRateLimit": { + "rules": [ + { + "key": "formrecognizer.custom.train", + "renewalPeriod": 60, + "count": 1, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "formrecognizer/custom/train", + "method": "*" + } + ] + }, + { + "key": "formrecognizer.custom.copymodels", + "renewalPeriod": 60, + "count": 1, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models/{modelId}/copy", + "method": "*" + } + ] + }, + { + "key": "formrecognizer.custom.models.get", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models", + "method": "GET" + } + ] + }, + { + "key": "formrecognizer.analyzeform", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models/{modelId}/analyze", + "method": "POST" + } + ] + }, + { + "key": "formrecognizer.analyzeform.result", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models/{modelId}/analyzeResults/{resultId}", + "method": "GET" + } + ] + }, + { + "key": "customvision.training", + "renewalPeriod": 1, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "customvision/v3.0/training/*", + "method": "*" + }, + { + "path": "customvision/v3.1/training/*", + "method": "*" + }, + { + "path": "customvision/v3.2/training/*", + "method": "*" + }, + { + "path": "customvision/v3.3/training/*", + "method": "*" + }, + { + "path": "customvision/v3.4-preview/training/*", + "method": "*" + } + ] + }, + { + "key": "customvision.prediction", + "renewalPeriod": 1, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "customvision/v3.0/prediction/*", + "method": "*" + }, + { + "path": "customvision/v3.1/prediction/*", + "method": "*" + } + ] + }, + { + "key": "speech.synthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/synthesize", + "method": "*" + } + ] + }, + { + "key": "speech.customvoicesynthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/customvoicesynthesize", + "method": "*" + } + ] + }, + { + "key": "speech.neuralvoicesynthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/neuralvoicesynthesize", + "method": "*" + } + ] + }, + { + "key": "speech.customneuralvoicesynthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/customneuralvoicesynthesize", + "method": "*" + } + ] + }, + { + "key": "speech.conversationtranscription", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/singlechannelaudioconversationtranscription", + "method": "*" + }, + { + "path": "speech/multichannelaudioconversationtranscribe", + "method": "*" + }, + { + "path": "speech/videoconversationtranscribe", + "method": "*" + } + ] + }, + { + "key": "speech.speechtotext", + "renewalPeriod": 10, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speechtotext/*", + "method": "*" + } + ] + }, + { + "key": "speech.texttospeech", + "renewalPeriod": 10, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "texttospeech/*", + "method": "*" + } + ] + }, + { + "key": "speech.speakerrecognitionv2", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speaker/*", + "method": "*" + }, + { + "path": "speaker-recognition/*", + "method": "*" + } + ] + }, + { + "key": "speech.speakerrecognitionv1", + "renewalPeriod": 1, + "count": 5, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "spid/*", + "method": "*" + } + ] + }, + { + "key": "docmentTranslation", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "translator/text/batch/*", + "method": "*" + } + ] + }, + { + "key": "textTranslation", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "translator/text/*", + "method": "*" + } + ] + }, + { + "key": "token", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "sts/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "ListManagement", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "contentmoderator/lists/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "Moderate", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "contentmoderator/moderate/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "Review", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "contentmoderator/review/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "luis.endpoint", + "renewalPeriod": 1, + "count": 50, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "luis/*", + "method": "*" + }, + { + "path": "luis/prediction/*", + "method": "*" + } + ] + }, + { + "key": "workflow.endpoint.postcalls", + "renewalPeriod": 60, + "count": 1000, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "/language/:analyze-conversations", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.authoring.customtext.getcalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.updatecalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.authoring.customtext.march.getcalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-text/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.march.updatecalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-text/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.authoring.customtext.internal.getcalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/internal/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.internal.updatecalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/internal/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.getCalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.updateCalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.march.getCalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-conversations/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.march.updateCalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-conversations/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.internal.getCalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/internal/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.internal.updateCalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/internal/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.customText", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "text/analytics/v3.1-preview.ct.1/analyze/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.analyze", + "renewalPeriod": 60, + "count": 300, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "text/analytics/v3.1/analyze/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.1/analyze/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.2/analyze/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.healthcare", + "renewalPeriod": 60, + "count": 300, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "text/analytics/v3.1/entities/health/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.1/health/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.2/health/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics", + "renewalPeriod": 60, + "count": 1000, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "text/analytics/*", + "method": "*" + } + ] + }, + { + "key": "questionanswering", + "renewalPeriod": 60, + "count": 600, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "qnamaker/*", + "method": "*" + } + ] + }, + { + "key": "unifiedlanguage.questionanswering", + "renewalPeriod": 60, + "count": 600, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/query-knowledgebases/*", + "method": "*" + }, + { + "path": "language/:query-*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.analyze.internal.autoTagging", + "renewalPeriod": 60, + "count": 150, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "TextAnalytics/ct-auto-tagging", + "method": "*" + } + ] + }, + { + "key": "vision.recognizeText", + "renewalPeriod": 1, + "count": 30, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "vision/recognizeText", + "method": "POST" + }, + { + "path": "vision/textOperations/*", + "method": "GET" + }, + { + "path": "vision/read/*", + "method": "*" + } + ] + }, + { + "key": "vision", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "vision/*", + "method": "*" + } + ] + }, + { + "key": "face", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "face/*", + "method": "*" + } + ] + }, + { + "key": "bingVisualSearch", + "renewalPeriod": 1, + "count": 30, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "bing/v7.0/images/visualsearch/*", + "method": "*" + } + ] + }, + { + "key": "bingSearch", + "renewalPeriod": 1, + "count": 250, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "bing/*", + "method": "*" + } + ] + }, + { + "key": "bingCustomSearch", + "renewalPeriod": 1, + "count": 150, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "bingcustomsearch/*", + "method": "*" + } + ] + }, + { + "key": "container.billing", + "renewalPeriod": 10, + "count": 500, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "billing/*", + "method": "*" + } + ] + }, + { + "key": "default", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "*", + "method": "*" + } + ] + } + ] + }, + "isMigrated": false, + "publicNetworkAccess": "Enabled", + "capabilities": [ + { + "name": "Container", + "value": "Face.*,Face.Face,ComputerVision.*,ComputerVision.VideoAnalytics,TextAnalytics.*,TextAnalytics.Healthcare,TextAnalytics.Keyphrase,TextAnalytics.KeyphraseV2,TextAnalytics.KeyPhraseONNX,TextAnalytics.LanguageFastText,TextAnalytics.Language,TextAnalytics.LanguageV2,TextAnalytics.Sentiment,TextAnalytics.SentimentV2,TextAnalytics.SentimentV3,TextAnalytics.SentimentV3Preview,LUIS.LUIS,ContentModerator.*,TextTranslation.*,SpeechServices.*,FormRecognizer.*" + }, + { + "name": "Cloud", + "value": "TextAnalytics.Healthcare,TextAnalytics.Analyze,QuestionAnswer.AllApis,LanguageService.QuestionAnsweringApis" + } + ], + "endpoints": { + "Bing Autosuggest": "https://eastus.api.cognitive.microsoft.com/", + "Bing Spell Check": "https://eastus.api.cognitive.microsoft.com/", + "Bing Entity Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Image Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing News Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Video Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Web Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Visual Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Custom Search": "https://eastus.api.cognitive.microsoft.com/", + "Face": "https://eastus.api.cognitive.microsoft.com/", + "Computer Vision": "https://eastus.api.cognitive.microsoft.com/", + "Text Analytics": "https://eastus.api.cognitive.microsoft.com/", + "Custom Text Authoring": "https://eastus.api.cognitive.microsoft.com/", + "Conversational Language Understanding Authoring": "https://eastus.api.cognitive.microsoft.com/", + "ConversationalLURuntime": "https://eastus.api.cognitive.microsoft.com/", + "Language": "https://eastus.api.cognitive.microsoft.com/", + "Language-2022-05-01": "https://eastus.api.cognitive.microsoft.com/", + "QnAMaker": "https://eastus.api.cognitive.microsoft.com/", + "turing": "https://eastus.api.cognitive.microsoft.com/", + "Turing DeepWrite": "https://eastus.api.cognitive.microsoft.com/", + "QuestionAnswering": "https://eastus.api.cognitive.microsoft.com/", + "QuestionAnsweringBizQA": "https://eastus.api.cognitive.microsoft.com/", + "QuestionAnsweringQnAGen": "https://eastus.api.cognitive.microsoft.com/", + "LUIS.Authoring": "https://eastus.api.cognitive.microsoft.com/", + "LUIS": "https://eastus.api.cognitive.microsoft.com/", + "Unified Speech": "https://eastus.api.cognitive.microsoft.com/", + "Content Moderator - Review": "https://eastus.api.cognitive.microsoft.com/", + "Content Moderator - Moderate": "https://eastus.api.cognitive.microsoft.com/", + "Content Moderator - List Management": "https://eastus.api.cognitive.microsoft.com/", + "TextTranslation-Global": "https://api.cognitive.microsofttranslator.com/", + "TextTranslation": "https://eastus.api.cognitive.microsoft.com/", + "DocumentTranslation": "https://eastus.api.cognitive.microsoft.com/", + "DocumentTranslation-V1-1": "https://eastus.api.cognitive.microsoft.com/", + "Token": "https://eastus.api.cognitive.microsoft.com/", + "Container": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speech to Text v2.0": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speech to Text v3.0": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speech to Text v3.1-preview.1": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Custom Voice": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Audio Content Creation": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speaker Verification": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speaker Identification": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Prediction_3.0": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Prediction_3.1": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Training_3.1": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Training_3.2": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Training_3.3": "https://eastus.api.cognitive.microsoft.com/", + "FormRecognizer": "https://eastus.api.cognitive.microsoft.com/" + }, + "provisioningState": "Succeeded" + }, + "identity": { + "principalId": "c9ea2a42-b5c4-47fd-8f18-d11ddf3e162f", + "tenantId": "88888888-8888-8888-8888-888888888888", + "type": "SystemAssigned" + }, + "systemData": { + "createdBy": "azure_client_id", + "createdByType": "Application", + "createdAt": "2022-06-10T06:41:39.6934663Z", + "lastModifiedBy": "azure_client_id", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-06-10T06:41:39.6934663Z" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_regeneratekey_test.js b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_regeneratekey_test.js deleted file mode 100644 index f89a54daa35f..000000000000 --- a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_regeneratekey_test.js +++ /dev/null @@ -1,149 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "ad36b2b74518b820572b5698f42cb1a3"; - -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', - '708c358a-7eb2-49a7-8339-1064cee80700', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR2 ProdSlices', - 'Set-Cookie', - 'fpc=AoB_0A-41vxLhvsFMd5CD-U; expires=Wed, 19-Jan-2022 06:52:15 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr7dATSXeapyC-IoUVbHrjStp6r3HdbOL2BjUHkNlXRqwBhwQSjax00Zqw6ItEq_sjLIXY7uQZZxzB1tNewQOdFYktt0QR3B6BGBixnTXJayccRK6vPFw5WhsYyj065HxmhRYXods-9sM21bwGO4HHi2V8tiKJD6CkDqZxF-nItEwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:14 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', - 'c7025f87-5230-4b1b-a3d3-5a8eaa580800', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR1 ProdSlices', - 'Set-Cookie', - 'fpc=AlwH2SUgc-5PgTSbGrc_vEU; expires=Wed, 19-Jan-2022 06:52:15 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrGJN9sqBar6z78iSUdXYG1fRAxygyFKAztq8KoL_LmSCMZ3vHdc0yxF7cLOhw36nVsD25QwLhKrcO6kav0aO4-xmdniJoQ3C2OP4LyaCK8l1YXOgwaQ0IemRRjV5GoT0_VUjM-NXosa2gWxrXlDOWuthNRoLajpiP037LN_kYJSogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:15 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.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=60983d5c-3d37-40df-b086-2a4510ea7a6b&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', - '70697837-4414-4db8-8a00-5da25e2d0800', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR2 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AqT7si-_WI5Onxg81NSjIBLLj78gAQAAAB8fUtkOAAAA; expires=Wed, 19-Jan-2022 06:52:15 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:15 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .post('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx/regenerateKey', {"keyName":"Key2"}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1476ff3ebdd8f1e7d747e7f3a3bd87f30dbf9746f677f36dd7f783eddf974f7c1f9746f3a9d4cee7dfad1082df7a8e56c3a9d4de8d36c67b6bf3f9dde7bf8e9fef974329d9eef3c7c70bef769fed12f","f97f006b6ebf6155000000"], [ - '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', - 'X-Content-Type-Options', - 'nosniff', - 'x-ms-request-id', - '2373fcaf-bf69-4fbd-b96e-f8425adaa13d', - 'x-envoy-upstream-service-time', - '98', - 'Server', - 'istio-envoy', - 'x-ms-ratelimit-remaining-subscription-writes', - '1199', - 'x-ms-correlation-request-id', - '3c0796d1-476c-4365-84e7-d883554e8629', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211220T065216Z:3c0796d1-476c-4365-84e7-d883554e8629', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Date', - 'Mon, 20 Dec 2021 06:52:16 GMT' -]); diff --git a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_regeneratekey_test.json b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_regeneratekey_test.json new file mode 100644 index 000000000000..c36778a75df1 --- /dev/null +++ b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_regeneratekey_test.json @@ -0,0 +1,45 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx/regenerateKey?api-version=2022-03-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "18", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-cognitiveservices/7.2.0 core-rest-pipeline/1.9.1 Node/v16.15.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "675133fc-d535-416d-bee6-5fb4f24bb32b" + }, + "RequestBody": { + "keyName": "Key2" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 10 Jun 2022 06:41:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "92", + "x-ms-correlation-request-id": "80dcc224-c15f-4407-8409-9d8813f3f2e2", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "ef5fe93a-2a1c-4d7a-859a-c7b381ec3b4b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220610T064148Z:80dcc224-c15f-4407-8409-9d8813f3f2e2" + }, + "ResponseBody": { + "key1": "ca988801ad4c4a70ad098f76775f2930", + "key2": "43faedb820f54a3884a201bf7a3bf5ce" + } + } + ], + "Variables": {} +} diff --git a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_update_test.js b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_update_test.js deleted file mode 100644 index de5a12c42b7d..000000000000 --- a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_update_test.js +++ /dev/null @@ -1,151 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "4e142f0b08bb4cc710c91bf4a64aa4b9"; - -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', - '32ea23f5-8af6-4214-946f-0c6968ad0200', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR2 ProdSlices', - 'Set-Cookie', - 'fpc=ApQHF6iWZN1Lg2xTm7_0Iqg; expires=Wed, 19-Jan-2022 06:52:16 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPG3NwPBfq2GCiwtF-shx7_3COs6pA-EZ2T8DYYo-Bfvj4Oor_mUYVttAKCNFPf5_hV7_dymQbwpiPjopcnUmGwN8mnBdg6IE32vCt_Ds1zwNdxPecUzkXjX6LknrSr8vJNumzXN3sa60O91z-99d4kF0P1TNh-m_7lMxKRd3hLEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:15 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', - '602ed568-d106-4528-988f-2d6737f40800', - 'x-ms-ests-server', - '2.1.12261.17 - KRSLR1 ProdSlices', - 'Set-Cookie', - 'fpc=Atq_gKzgJ9hCvZN6F6dCF24; expires=Wed, 19-Jan-2022 06:52:16 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrE3sxhHrhpVBfvKwdbYNNVDfSMDU4QLHPFBedAgJ81uxIgPPMwDz11IUnQEiMcc7awZPDyDy2U-25XcYmuoXnAMDB7vyg0yh5MUxc0gUCQucLgEoWUQ6dJPKBRQck0UsNYPTJsy2wDSeYQG-ZCJ3ncq9kgKksfBV9oB7xLLztgiIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:15 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.4.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=1c7f2899-ed43-4786-a6e6-7113ed27094c&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', - 'c7025f87-5230-4b1b-a3d3-5a8eb6580800', - 'x-ms-ests-server', - '2.1.12261.17 - SEASLR1 ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=Aox0GISIt25Dktx_aHGyJIXLj78gAQAAACAfUtkOAAAA; expires=Wed, 19-Jan-2022 06:52:16 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', - 'Set-Cookie', - 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', - 'Date', - 'Mon, 20 Dec 2021 06:52:16 GMT', - 'Content-Length', - '1393' -]); - -nock('https://management.azure.com:443', {"encodedQueryParams":true}) - .patch('/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx', {"tags":{"tag1":"value1"}}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147c5eca3471fdd6dd693665a17abb6a896cddd877be70fefcf0eceb7ef4d3f7db0bdbfbbb7bffd7077fa60fb607abef3603a9b9cefedefdeadf3a65ad7d3fcf3ba5aaf9abb8beb9f6edabc69efaeeaeab298e57573f78b625a574d75de8e4faa8b65d11697f9ebbcbe2ca67973379b4eabf5b2c57bfaebbb77ef3e1a7db4cc163921d4f9b4bd5ee1d3db00a4d6799b5d50ebdff7a3fbd39d9d6c67966defd0b3bdb38b7fe8d9fe7477bab377b0477fefecfcbe1fd11bcd35e1be789ab5d9478f7ef147d33acfda7cf6e49a80e43b198df71e11805edade9fedee6d1f9c7f3add26c23cb8bfb3b33bbd3fcd08807de58d607abc5a95c5340339ddb7c72d7db3b7b3b7bb4d50f676deec7cfae8fedea39d07e34ff777efefeeecff14352db3a6fda29a15e705a051fb5b2210be17c5c26f124765f7c1f8dec3ddfb9feeeffdd447bf845ea8f45dc282de5d83b6cddb3548a4d3f47a07edde164b30516f4ea839cd4483f6f473979a5c66e53adfc53bc425abbc6e0b6a455fe7cbd9aa2a96406adeb6abe6d1ddbbd2e3385b15e3a9013c5e580698568bbb049fc05c160de1582c2f5eb7446482f07a3d9de6f92c9fd1f70433af97597906040fee7ffa60e7c1ce746fefe183fd7bd9ec602fdbdbfbf4d37b0f26e7b37bf71f1e50fb19813891d9a217fa04da197ffae97de2fe5dcc15e1f6d21f060d6b9a95e52b7afb79b1286834bff8a37a5de2bbeffde28fdee698cef3aa5ed4398fe807793d9eae9bb65a8cdb3a2b304575beccafb2f2655e171521f0e90e4104577ff4689770bb26aa17d337f3ba6adb92067cbacc2625103dcfca261f7db4c8dae9fc65d662c8d2e72a6be7bd4eef4aa7774da78bbc9da3b78fbef5d12ff9fe2f196dc6745aadae17d52c2f31bb3f5474a5d7bbbf987f9ecd7ec95da04248bc17fafc7233bec85b7a7303faf4ebcf0efed4ad45f8f3d3379b50ce886faf7f90e3537aab832c11d8e07aff670b578fd68a0be161b17ff9e5ebdba23f265bb12e2324f746b1f3b346f2fe305e313af485e045df106a7660dd691160a266445209337a61c3583e64287e77772fef8d77445009c4dd6f51af164d62774271e0a5ddaff3d2ded779e9ded779697f7b55e797457e35fcf2d004d08bb362ca66e9873805aed71ea284e6c06bbb9b5ef3c6d7acf27c3a1f37d7cb769e37c4c0d47470647b1f2628d2d7dda0afcd68e9a82a5874ffad9f650c87badd8cec325fd759d97feb6719d9a16e37232b431c7af76719e5cd9ddf8078b5bc24079f9d4312e0a50d1de8cd41b43f50c34bd7771b7aa7a45fb2e5322fb3f5aca83621e30f830611825a90ea2f6e8234e952a30706c1ceed5eed13527eb4559bbf8b594722d837493ce9e7169a08cdda4afea0c63f6b68f9fddc022dfa91bdcd6bb5f320f5e51ebdd445cf62b7f741c8696f5f0faf5d7a6910af0f72d89a5531db84d3ac9a2ef265fb064c58323f52db41543e8c44cce9d44955dfc554de9da0e126e4d0ea96987d286b692f06b54d48556ff39f4d541af2342f77c989d880c3f3826273f24e2f724c1eb51b46e683b887f4544b1dc021ae993825757c337a9436407b28b441c43e8c957a88e96ff98db8bd624792beff6161a69eeb4d7895eba219dbc4c606f4ee7f107ae8a6870621e17f7d3b37f4aaaadf9e97d595457abcaa9a16190d44ad1df4bd6019bf7e7dfcef96d9f2624d8c7ff711f13fa2b36da2b835a6e87a005fc8f5315e212bde8cd74b496cada96d4d08d07bc3287fa0445b9481c2ddcc74c92c61221bf2fe37d01a2f0ee38efcc4cd74ff610c622f1c443734c6ab1b86b15e219f769b91fcb007f25eb3312dd79891935b8c837eff060622be3979e28128842378cfa9c018643a6e338c1fda2836cd83bcff863ea33736614bbf7f7d74d1a7e485d02987ed9669a62d49317ff783fcf678eb0bd47c18e97bdf38d2f267044fc272f0ad3d3bd40f7d7f4fbe88bc3f48a7799e95ed7c9ad53f7452913927379d168d04851eca84f0e0db6ec8bb1ff6faded0eb4304a366c3542229a03fbe31326dc0e917ad69958f0499fceb2bc2e3064bfbe987a1f58be845c4569b10525d67f4cef8878aa0e9f52ef55a5f6fbf5d5657f4de453ec91ae2af2ed68473f7bd47f262b7a5373e4928520e9dc3cb1fe4718de8fcc97b1f3420e98d9cdcb0378b9ba4fd09b9b03df8e74b5a0a631ddf19389baade1bb4cab631909566f4fde0403f2c1412f89b3038cfa611d5f44df50fe89b7a9f10b09f2c9a7556beceb33a9a88b1987ced29674cd0d3ddcb0714ce140b6249d253dc6dc3ddde84e2cdc8ed7d5880834e6e42e2845d859b51d9fd7054c42bb99936e4f3b4b4b4410b6193a2442fd4b48b1721a388d14afe8721c65d6cc267969f6794f0a4065d2c2c121f1627f7fba6de3f2a9a2f8a0bd20a1e84d57a5216d317798b80f398d6ea1b82f391e987b0c956190d882d34774018615dffc45094da5c66e51a9f3d23211a7f6bc43ff0cfe8a45aacd6841b490e49377dd5f9e02791adb5267504ed66ffa2d6e1dfdf66030d0fa5f3c5ef955fafe635a9f8a1cf7f72afffcd4bfee6cb172f7eefce77cfd5163ccb9a16df0c7c3df071afabd7706f90461afa7cf88d9fbc37fccd4bf15b46cfbf3a7b3dc63f445ace8c6872a8aa957e5e828f3e79cd39d2d7797d893506fae0192dd5be32d685de61d360a6b8acd6600133bd00e790199c0efeed07f9e827d4f21fb3e51f1f97e5f1aa684686528ac4386c463c8e56c4b0a38f4ce683f8ee177ff484be492982aa9af505694512908fe66dbb6a1eddbd9bd34cadc9d35f15b4164203698bcb7c4c6253574d75ded2678bbb340a0640e32fcbf4649e4fdf7e3d00a73403ed75aacaed6b8138835aff20082ff2abe68300b0dc7d1084efe6930f7a9f140019b50f022166e6eb82807e7aef978cfa02fac4b2effd3e042565f980a4bcf7eb4674480c2491f0de104849d8d83f2b0dbcaf96a4339a365bcebe01985fbd22f3455aeabde1fcc4f2f80b4417effd62bbfe5ab478c3afa54ff37cf5ddbaa074fafb02e869aef78600c53dfefab389d7dffba5af2440832a2453f0deafd36cc3cca4d6cea4dba926fdbf0950fafbfb4f460c18d671526f21e77d61425c3dfbb9fd79594db2d20333f0be5beea26f63903c10b7c3e469355d63081f02e30dafacbdef5ba0abf879effba63018e967b6f364b0e4efb64a418df4726fbcf38dc3bcf7b302d3e520773f18ba5aad9face8af0f0676bc9e15558a2922de484f2888ff5a9cd1054b7f4311a73f495aedbc987eb340cf6684ebd7072bf4fbfdc500fffee406eb5adaefff75a67e03b0f79fe91018496ab124a5fecd82dafbe640dd7b6f5061acf09eafff12849f3cf52d05c014a792c59b16abac3ca358f4a3bdf38307d9ce2cdfbef7e0def9f67efe20df3e983e78b8bd7b3e997e7aef60b23b9921122136cf962dbff160effce1c1c1e47cfbe0d3f3ddedfdddec7cfbe16e36d9de9b3d98ce7676776793fd0778e37a05317b7dddb4f9e2b8698a8b650e48eb26afcd9fc29112e0fee25ff24b","7ec9ff03112b9c3487310000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json; charset=utf-8', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'ETag', - '"5c00a0da-0000-0100-0000-61c028210000"', - 'Vary', - 'Accept-Encoding', - 'X-Content-Type-Options', - 'nosniff', - 'x-ms-request-id', - '75a68d6d-6e72-4ac1-be71-46bc15010d97', - 'x-envoy-upstream-service-time', - '38', - 'Server', - 'istio-envoy', - 'x-ms-ratelimit-remaining-subscription-writes', - '1198', - 'x-ms-correlation-request-id', - '3de86679-5f67-4dec-ab15-4ee1e20e1ef0', - 'x-ms-routing-request-id', - 'SOUTHEASTASIA:20211220T065219Z:3de86679-5f67-4dec-ab15-4ee1e20e1ef0', - 'Strict-Transport-Security', - 'max-age=31536000; includeSubDomains', - 'Date', - 'Mon, 20 Dec 2021 06:52:19 GMT' -]); diff --git a/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_update_test.json b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_update_test.json new file mode 100644 index 000000000000..a9fb82d4158a --- /dev/null +++ b/sdk/cognitiveservices/arm-cognitiveservices/recordings/node/cognitiveservices_test/recording_accounts_update_test.json @@ -0,0 +1,820 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx?api-version=2022-03-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "26", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-cognitiveservices/7.2.0 core-rest-pipeline/1.9.1 Node/v16.15.0 OS/(x64-Windows_NT-10.0.22000)", + "x-ms-client-request-id": "2b057ab0-6a2c-4d88-81aa-5897a4c81ba5" + }, + "RequestBody": { + "tags": { + "tag1": "value1" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 10 Jun 2022 06:41:52 GMT", + "ETag": "\u002229017871-0000-0100-0000-62a2e7ae0000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "istio-envoy", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "44", + "x-ms-correlation-request-id": "d0f323b9-a0fb-42ea-8c49-49232b702072", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "9fe7c872-073d-4c3c-9c06-ffd56500c70e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220610T064152Z:d0f323b9-a0fb-42ea-8c49-49232b702072" + }, + "ResponseBody": { + "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.CognitiveServices/accounts/myaccountxxx", + "name": "myaccountxxx", + "type": "Microsoft.CognitiveServices/accounts", + "etag": "\u002229017871-0000-0100-0000-62a2e7ae0000\u0022", + "location": "eastus", + "sku": { + "name": "S0" + }, + "kind": "CognitiveServices", + "tags": { + "tag1": "value1" + }, + "properties": { + "endpoint": "https://eastus.api.cognitive.microsoft.com/", + "provisioningState": "Succeeded", + "internalId": "944b07d3acaa4149b8d65757ea6bf5ca", + "dateCreated": "2022-06-10T06:41:42.5590615Z", + "apiProperties": {}, + "callRateLimit": { + "rules": [ + { + "key": "formrecognizer.custom.train", + "renewalPeriod": 60, + "count": 1, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "formrecognizer/custom/train", + "method": "*" + } + ] + }, + { + "key": "formrecognizer.custom.copymodels", + "renewalPeriod": 60, + "count": 1, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models/{modelId}/copy", + "method": "*" + } + ] + }, + { + "key": "formrecognizer.custom.models.get", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models", + "method": "GET" + } + ] + }, + { + "key": "formrecognizer.analyzeform", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models/{modelId}/analyze", + "method": "POST" + } + ] + }, + { + "key": "formrecognizer.analyzeform.result", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "formrecognizer/custom/models/{modelId}/analyzeResults/{resultId}", + "method": "GET" + } + ] + }, + { + "key": "customvision.training", + "renewalPeriod": 1, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "customvision/v3.0/training/*", + "method": "*" + }, + { + "path": "customvision/v3.1/training/*", + "method": "*" + }, + { + "path": "customvision/v3.2/training/*", + "method": "*" + }, + { + "path": "customvision/v3.3/training/*", + "method": "*" + }, + { + "path": "customvision/v3.4-preview/training/*", + "method": "*" + } + ] + }, + { + "key": "customvision.prediction", + "renewalPeriod": 1, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "customvision/v3.0/prediction/*", + "method": "*" + }, + { + "path": "customvision/v3.1/prediction/*", + "method": "*" + } + ] + }, + { + "key": "speech.synthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/synthesize", + "method": "*" + } + ] + }, + { + "key": "speech.customvoicesynthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/customvoicesynthesize", + "method": "*" + } + ] + }, + { + "key": "speech.neuralvoicesynthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/neuralvoicesynthesize", + "method": "*" + } + ] + }, + { + "key": "speech.customneuralvoicesynthesize", + "renewalPeriod": 1, + "count": 200, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/customneuralvoicesynthesize", + "method": "*" + } + ] + }, + { + "key": "speech.conversationtranscription", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speech/singlechannelaudioconversationtranscription", + "method": "*" + }, + { + "path": "speech/multichannelaudioconversationtranscribe", + "method": "*" + }, + { + "path": "speech/videoconversationtranscribe", + "method": "*" + } + ] + }, + { + "key": "speech.speechtotext", + "renewalPeriod": 10, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speechtotext/*", + "method": "*" + } + ] + }, + { + "key": "speech.texttospeech", + "renewalPeriod": 10, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "texttospeech/*", + "method": "*" + } + ] + }, + { + "key": "speech.speakerrecognitionv2", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "speaker/*", + "method": "*" + }, + { + "path": "speaker-recognition/*", + "method": "*" + } + ] + }, + { + "key": "speech.speakerrecognitionv1", + "renewalPeriod": 1, + "count": 5, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "spid/*", + "method": "*" + } + ] + }, + { + "key": "docmentTranslation", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "translator/text/batch/*", + "method": "*" + } + ] + }, + { + "key": "textTranslation", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "translator/text/*", + "method": "*" + } + ] + }, + { + "key": "token", + "renewalPeriod": 1, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "sts/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "ListManagement", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "contentmoderator/lists/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "Moderate", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "contentmoderator/moderate/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "Review", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "contentmoderator/review/v1.0/*", + "method": "*" + } + ] + }, + { + "key": "luis.endpoint", + "renewalPeriod": 1, + "count": 50, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "luis/*", + "method": "*" + }, + { + "path": "luis/prediction/*", + "method": "*" + } + ] + }, + { + "key": "workflow.endpoint.postcalls", + "renewalPeriod": 60, + "count": 1000, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "/language/:analyze-conversations", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.authoring.customtext.getcalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.updatecalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.authoring.customtext.march.getcalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-text/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.march.updatecalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-text/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.authoring.customtext.internal.getcalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/internal/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.internal.updatecalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-text/internal/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.getCalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.updateCalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.march.getCalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-conversations/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.march.updateCalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/authoring/analyze-conversations/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.internal.getCalls", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/internal/projects/*", + "method": "GET" + } + ] + }, + { + "key": "textAnalytics.unifiedAuthoring.clu.internal.updateCalls", + "renewalPeriod": 60, + "count": 10, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/analyze-conversations/internal/projects/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.customText", + "renewalPeriod": 60, + "count": 100, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "text/analytics/v3.1-preview.ct.1/analyze/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.analyze", + "renewalPeriod": 60, + "count": 300, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "text/analytics/v3.1/analyze/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.1/analyze/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.2/analyze/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.healthcare", + "renewalPeriod": 60, + "count": 300, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "text/analytics/v3.1/entities/health/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.1/health/*", + "method": "*" + }, + { + "path": "text/analytics/v3.2-preview.2/health/*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics", + "renewalPeriod": 60, + "count": 1000, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "text/analytics/*", + "method": "*" + } + ] + }, + { + "key": "questionanswering", + "renewalPeriod": 60, + "count": 600, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "qnamaker/*", + "method": "*" + } + ] + }, + { + "key": "unifiedlanguage.questionanswering", + "renewalPeriod": 60, + "count": 600, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "language/query-knowledgebases/*", + "method": "*" + }, + { + "path": "language/:query-*", + "method": "*" + } + ] + }, + { + "key": "textAnalytics.analyze.internal.autoTagging", + "renewalPeriod": 60, + "count": 150, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "TextAnalytics/ct-auto-tagging", + "method": "*" + } + ] + }, + { + "key": "vision.recognizeText", + "renewalPeriod": 1, + "count": 30, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "vision/recognizeText", + "method": "POST" + }, + { + "path": "vision/textOperations/*", + "method": "GET" + }, + { + "path": "vision/read/*", + "method": "*" + } + ] + }, + { + "key": "vision", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "vision/*", + "method": "*" + } + ] + }, + { + "key": "face", + "renewalPeriod": 1, + "count": 15, + "dynamicThrottlingEnabled": true, + "matchPatterns": [ + { + "path": "face/*", + "method": "*" + } + ] + }, + { + "key": "bingVisualSearch", + "renewalPeriod": 1, + "count": 30, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "bing/v7.0/images/visualsearch/*", + "method": "*" + } + ] + }, + { + "key": "bingSearch", + "renewalPeriod": 1, + "count": 250, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "bing/*", + "method": "*" + } + ] + }, + { + "key": "bingCustomSearch", + "renewalPeriod": 1, + "count": 150, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "bingcustomsearch/*", + "method": "*" + } + ] + }, + { + "key": "container.billing", + "renewalPeriod": 10, + "count": 500, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "billing/*", + "method": "*" + } + ] + }, + { + "key": "default", + "renewalPeriod": 1, + "count": 20, + "dynamicThrottlingEnabled": false, + "matchPatterns": [ + { + "path": "*", + "method": "*" + } + ] + } + ] + }, + "isMigrated": false, + "publicNetworkAccess": "Enabled", + "capabilities": [ + { + "name": "Container", + "value": "Face.*,Face.Face,ComputerVision.*,ComputerVision.VideoAnalytics,TextAnalytics.*,TextAnalytics.Healthcare,TextAnalytics.Keyphrase,TextAnalytics.KeyphraseV2,TextAnalytics.KeyPhraseONNX,TextAnalytics.LanguageFastText,TextAnalytics.Language,TextAnalytics.LanguageV2,TextAnalytics.Sentiment,TextAnalytics.SentimentV2,TextAnalytics.SentimentV3,TextAnalytics.SentimentV3Preview,LUIS.LUIS,ContentModerator.*,TextTranslation.*,SpeechServices.*,FormRecognizer.*" + }, + { + "name": "Cloud", + "value": "TextAnalytics.Healthcare,TextAnalytics.Analyze,QuestionAnswer.AllApis,LanguageService.QuestionAnsweringApis" + } + ], + "endpoints": { + "Bing Autosuggest": "https://eastus.api.cognitive.microsoft.com/", + "Bing Spell Check": "https://eastus.api.cognitive.microsoft.com/", + "Bing Entity Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Image Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing News Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Video Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Web Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Visual Search": "https://eastus.api.cognitive.microsoft.com/", + "Bing Custom Search": "https://eastus.api.cognitive.microsoft.com/", + "Face": "https://eastus.api.cognitive.microsoft.com/", + "Computer Vision": "https://eastus.api.cognitive.microsoft.com/", + "Text Analytics": "https://eastus.api.cognitive.microsoft.com/", + "Custom Text Authoring": "https://eastus.api.cognitive.microsoft.com/", + "Conversational Language Understanding Authoring": "https://eastus.api.cognitive.microsoft.com/", + "ConversationalLURuntime": "https://eastus.api.cognitive.microsoft.com/", + "Language": "https://eastus.api.cognitive.microsoft.com/", + "Language-2022-05-01": "https://eastus.api.cognitive.microsoft.com/", + "QnAMaker": "https://eastus.api.cognitive.microsoft.com/", + "turing": "https://eastus.api.cognitive.microsoft.com/", + "Turing DeepWrite": "https://eastus.api.cognitive.microsoft.com/", + "QuestionAnswering": "https://eastus.api.cognitive.microsoft.com/", + "QuestionAnsweringBizQA": "https://eastus.api.cognitive.microsoft.com/", + "QuestionAnsweringQnAGen": "https://eastus.api.cognitive.microsoft.com/", + "LUIS.Authoring": "https://eastus.api.cognitive.microsoft.com/", + "LUIS": "https://eastus.api.cognitive.microsoft.com/", + "Unified Speech": "https://eastus.api.cognitive.microsoft.com/", + "Content Moderator - Review": "https://eastus.api.cognitive.microsoft.com/", + "Content Moderator - Moderate": "https://eastus.api.cognitive.microsoft.com/", + "Content Moderator - List Management": "https://eastus.api.cognitive.microsoft.com/", + "TextTranslation-Global": "https://api.cognitive.microsofttranslator.com/", + "TextTranslation": "https://eastus.api.cognitive.microsoft.com/", + "DocumentTranslation": "https://eastus.api.cognitive.microsoft.com/", + "DocumentTranslation-V1-1": "https://eastus.api.cognitive.microsoft.com/", + "Token": "https://eastus.api.cognitive.microsoft.com/", + "Container": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speech to Text v2.0": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speech to Text v3.0": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speech to Text v3.1-preview.1": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Custom Voice": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Audio Content Creation": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speaker Verification": "https://eastus.api.cognitive.microsoft.com/", + "Speech Services Speaker Identification": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Prediction_3.0": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Prediction_3.1": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Training_3.1": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Training_3.2": "https://eastus.api.cognitive.microsoft.com/", + "Custom_Vision_Training_3.3": "https://eastus.api.cognitive.microsoft.com/", + "FormRecognizer": "https://eastus.api.cognitive.microsoft.com/" + } + }, + "identity": { + "principalId": "c9ea2a42-b5c4-47fd-8f18-d11ddf3e162f", + "tenantId": "88888888-8888-8888-8888-888888888888", + "type": "SystemAssigned" + }, + "systemData": { + "createdBy": "azure_client_id", + "createdByType": "Application", + "createdAt": "2022-06-10T06:41:39.6934663Z", + "lastModifiedBy": "azure_client_id", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-06-10T06:41:50.0685178Z" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/cognitiveservices/arm-cognitiveservices/review/arm-cognitiveservices.api.md b/sdk/cognitiveservices/arm-cognitiveservices/review/arm-cognitiveservices.api.md index 98a3ca0cfb09..3132e17ede8c 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/review/arm-cognitiveservices.api.md +++ b/sdk/cognitiveservices/arm-cognitiveservices/review/arm-cognitiveservices.api.md @@ -669,7 +669,9 @@ export enum KnownDeploymentProvisioningState { // @public export enum KnownDeploymentScaleType { // (undocumented) - Manual = "Manual" + Manual = "Manual", + // (undocumented) + Standard = "Standard" } // @public @@ -986,7 +988,7 @@ export interface PrivateLinkServiceConnectionState { export type ProvisioningState = string; // @public -export type ProxyResource = Resource & {}; +export type ProxyResource = Resource; // @public export type PublicNetworkAccess = string; diff --git a/sdk/cognitiveservices/arm-cognitiveservices/src/cognitiveServicesManagementClient.ts b/sdk/cognitiveservices/arm-cognitiveservices/src/cognitiveServicesManagementClient.ts index a93c0c2617f6..c568ecc7c3ac 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/src/cognitiveServicesManagementClient.ts +++ b/sdk/cognitiveservices/arm-cognitiveservices/src/cognitiveServicesManagementClient.ts @@ -7,6 +7,12 @@ */ import * as coreClient from "@azure/core-client"; +import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { AccountsImpl, @@ -72,7 +78,7 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient credential: credentials }; - const packageDetails = `azsdk-js-arm-cognitiveservices/7.1.1`; + const packageDetails = `azsdk-js-arm-cognitiveservices/7.2.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -91,6 +97,29 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient options.endpoint ?? options.baseUri ?? "https://management.azure.com" }; super(optionsWithDefaults); + + if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( + (pipelinePolicy) => + pipelinePolicy.name === + coreRestPipeline.bearerTokenAuthenticationPolicyName + ); + if (!bearerTokenAuthenticationPolicyFound) { + this.pipeline.removePolicy({ + name: coreRestPipeline.bearerTokenAuthenticationPolicyName + }); + this.pipeline.addPolicy( + coreRestPipeline.bearerTokenAuthenticationPolicy({ + scopes: `${optionsWithDefaults.baseUri}/.default`, + challengeCallbacks: { + authorizeRequestOnChallenge: + coreClient.authorizeRequestOnClaimChallenge + } + }) + ); + } + } // Parameter assignments this.subscriptionId = subscriptionId; @@ -106,6 +135,35 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient this.privateLinkResources = new PrivateLinkResourcesImpl(this); this.deployments = new DeploymentsImpl(this); this.commitmentPlans = new CommitmentPlansImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return item.replace(/(?<==).*$/, apiVersion); + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); } /** diff --git a/sdk/cognitiveservices/arm-cognitiveservices/src/models/index.ts b/sdk/cognitiveservices/arm-cognitiveservices/src/models/index.ts index dec6c99a4c78..3210acec2325 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/src/models/index.ts +++ b/sdk/cognitiveservices/arm-cognitiveservices/src/models/index.ts @@ -829,7 +829,7 @@ export type PrivateLinkResource = Resource & { }; /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export type ProxyResource = Resource & {}; +export type ProxyResource = Resource; /** Cognitive Services account Model. */ export type AccountModel = DeploymentModel & { @@ -1206,6 +1206,7 @@ export type DeploymentProvisioningState = string; /** Known values of {@link DeploymentScaleType} that the service accepts. */ export enum KnownDeploymentScaleType { + Standard = "Standard", Manual = "Manual" } @@ -1214,6 +1215,7 @@ export enum KnownDeploymentScaleType { * {@link KnownDeploymentScaleType} can be used interchangeably with DeploymentScaleType, * this enum contains the known values that the service supports. * ### Known values supported by the service + * **Standard** \ * **Manual** */ export type DeploymentScaleType = string; diff --git a/sdk/cognitiveservices/arm-cognitiveservices/test/cognitiveservices_examples.ts b/sdk/cognitiveservices/arm-cognitiveservices/test/cognitiveservices_examples.ts index 55dd7a5bb97f..423d9bc567dd 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/test/cognitiveservices_examples.ts +++ b/sdk/cognitiveservices/arm-cognitiveservices/test/cognitiveservices_examples.ts @@ -8,31 +8,25 @@ import { env, - record, - RecorderEnvironmentSetup, Recorder, + RecorderStartOptions, delay, - isPlaybackMode + isPlaybackMode, } from "@azure-tools/test-recorder"; -import * as assert from "assert"; -import { ClientSecretCredential } from "@azure/identity"; +import { createTestCredential } from "@azure-tools/test-credential"; +import { assert } from "chai"; +import { Context } from "mocha"; import { CognitiveServicesManagementClient } from "../src/cognitiveServicesManagementClient"; -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: [] +const replaceableVariables: Record = { + 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" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables }; export const testPollingOptions = { @@ -47,16 +41,13 @@ describe("Cognitiveservices test", () => { let resourceGroup: string; let accountName: string; - beforeEach(async function() { - recorder = record(this, recorderEnvSetup); - subscriptionId = env.SUBSCRIPTION_ID; + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + 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 CognitiveServicesManagementClient(credential, subscriptionId); + const credential = createTestCredential(); + client = new CognitiveServicesManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); location = "eastus"; resourceGroup = "myjstest"; accountName = "myaccountxxx";