diff --git a/sdk/cognitiveservices/arm-cognitiveservices/CHANGELOG.md b/sdk/cognitiveservices/arm-cognitiveservices/CHANGELOG.md index 054942469b81..94ce746ac454 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/CHANGELOG.md +++ b/sdk/cognitiveservices/arm-cognitiveservices/CHANGELOG.md @@ -1,15 +1,23 @@ # Release History - -## 7.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + +## 8.0.0 (2022-01-05) + +**Breaking Changes** + + - Removed operation group CommitmentPlans + - Removed operation group CommitmentTiers + - Removed operation group Deployments + - Interface CheckDomainAvailabilityOptionalParams no longer has parameter kind + - Interface CheckDomainAvailabilityParameter no longer has parameter kind + - Interface DomainAvailability no longer has parameter kind + - Class CognitiveServicesManagementClient no longer has parameter commitmentPlans + - Class CognitiveServicesManagementClient no longer has parameter commitmentTiers + - Class CognitiveServicesManagementClient no longer has parameter deployments + - Removed Enum KnownDeploymentProvisioningState + - Removed Enum KnownDeploymentScaleType + - Removed Enum KnownHostingModel + + ## 7.0.0 (2021-12-20) The package of @azure/arm-cognitiveservices is using our next generation design principles since version 7.0.0, which contains breaking changes. diff --git a/sdk/cognitiveservices/arm-cognitiveservices/LICENSE b/sdk/cognitiveservices/arm-cognitiveservices/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/LICENSE +++ b/sdk/cognitiveservices/arm-cognitiveservices/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/cognitiveservices/arm-cognitiveservices/_meta.json b/sdk/cognitiveservices/arm-cognitiveservices/_meta.json index 5f8bb5abc3fb..9c55e0d07e8e 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/_meta.json +++ b/sdk/cognitiveservices/arm-cognitiveservices/_meta.json @@ -1,7 +1,7 @@ { - "commit": "d967edeee8fd6af6d40bffe53cceed1bd053d7ad", + "commit": "6ba37b7279bbd0d69042743246780cc3af9257b9", "readme": "specification/cognitiveservices/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/cognitiveservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1", + "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/cognitiveservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211217.1" + "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1" } \ No newline at end of file diff --git a/sdk/cognitiveservices/arm-cognitiveservices/package.json b/sdk/cognitiveservices/arm-cognitiveservices/package.json index 375c42e0741f..6b953fa25227 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/package.json +++ b/sdk/cognitiveservices/arm-cognitiveservices/package.json @@ -3,10 +3,8 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for CognitiveServicesManagementClient.", - "version": "7.0.1", - "engines": { - "node": ">=12.0.0" - }, + "version": "8.0.0", + "engines": { "node": ">=12.0.0" }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", @@ -16,13 +14,7 @@ "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], + "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], "license": "MIT", "main": "./dist/index.js", "module": "./dist-esm/src/index.js", @@ -49,9 +41,7 @@ "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, + "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", "dist/**/*.js.map", diff --git a/sdk/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_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_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_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_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_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/review/arm-cognitiveservices.api.md b/sdk/cognitiveservices/arm-cognitiveservices/review/arm-cognitiveservices.api.md index 3f223a5b3e31..dcb116868ede 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/review/arm-cognitiveservices.api.md +++ b/sdk/cognitiveservices/arm-cognitiveservices/review/arm-cognitiveservices.api.md @@ -216,12 +216,10 @@ export interface CallRateLimit { // @public export interface CheckDomainAvailabilityOptionalParams extends coreClient.OperationOptions { - kind?: string; } // @public export interface CheckDomainAvailabilityParameter { - kind?: string; subdomainName: string; type: string; } @@ -255,14 +253,8 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient checkDomainAvailability(subdomainName: string, typeParam: string, options?: CheckDomainAvailabilityOptionalParams): Promise; checkSkuAvailability(location: string, skus: string[], kind: string, typeParam: string, options?: CheckSkuAvailabilityOptionalParams): Promise; // (undocumented) - commitmentPlans: CommitmentPlans; - // (undocumented) - commitmentTiers: CommitmentTiers; - // (undocumented) deletedAccounts: DeletedAccounts; // (undocumented) - deployments: Deployments; - // (undocumented) operations: Operations; // (undocumented) privateEndpointConnections: PrivateEndpointConnections; @@ -281,130 +273,6 @@ export interface CognitiveServicesManagementClientOptionalParams extends coreCli endpoint?: string; } -// @public -export interface CommitmentCost { - commitmentMeterId?: string; - overageMeterId?: string; -} - -// @public -export interface CommitmentPeriod { - count?: number; - readonly endDate?: string; - readonly quota?: CommitmentQuota; - readonly startDate?: string; - tier?: string; -} - -// @public -export type CommitmentPlan = ProxyResource & { - readonly systemData?: SystemData; - readonly etag?: string; - properties?: CommitmentPlanProperties; -}; - -// @public -export interface CommitmentPlanListResult { - nextLink?: string; - readonly value?: CommitmentPlan[]; -} - -// @public -export interface CommitmentPlanProperties { - autoRenew?: boolean; - current?: CommitmentPeriod; - hostingModel?: HostingModel; - readonly last?: CommitmentPeriod; - next?: CommitmentPeriod; - planType?: string; -} - -// @public -export interface CommitmentPlans { - beginDelete(resourceGroupName: string, accountName: string, commitmentPlanName: string, options?: CommitmentPlansDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, accountName: string, commitmentPlanName: string, options?: CommitmentPlansDeleteOptionalParams): Promise; - createOrUpdate(resourceGroupName: string, accountName: string, commitmentPlanName: string, commitmentPlan: CommitmentPlan, options?: CommitmentPlansCreateOrUpdateOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, commitmentPlanName: string, options?: CommitmentPlansGetOptionalParams): Promise; - list(resourceGroupName: string, accountName: string, options?: CommitmentPlansListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface CommitmentPlansCreateOrUpdateOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CommitmentPlansCreateOrUpdateResponse = CommitmentPlan; - -// @public -export interface CommitmentPlansDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface CommitmentPlansGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CommitmentPlansGetResponse = CommitmentPlan; - -// @public -export interface CommitmentPlansListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CommitmentPlansListNextResponse = CommitmentPlanListResult; - -// @public -export interface CommitmentPlansListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CommitmentPlansListResponse = CommitmentPlanListResult; - -// @public -export interface CommitmentQuota { - quantity?: number; - unit?: string; -} - -// @public -export interface CommitmentTier { - cost?: CommitmentCost; - hostingModel?: HostingModel; - kind?: string; - maxCount?: number; - planType?: string; - quota?: CommitmentQuota; - skuName?: string; - tier?: string; -} - -// @public -export interface CommitmentTierListResult { - nextLink?: string; - readonly value?: CommitmentTier[]; -} - -// @public -export interface CommitmentTiers { - list(location: string, options?: CommitmentTiersListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface CommitmentTiersListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CommitmentTiersListNextResponse = CommitmentTierListResult; - -// @public -export interface CommitmentTiersListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CommitmentTiersListResponse = CommitmentTierListResult; - // @public export type CreatedByType = string; @@ -443,95 +311,9 @@ export interface DeletedAccountsPurgeOptionalParams extends coreClient.Operation updateIntervalInMs?: number; } -// @public -export type Deployment = ProxyResource & { - readonly systemData?: SystemData; - readonly etag?: string; - properties?: DeploymentProperties; -}; - -// @public -export interface DeploymentListResult { - nextLink?: string; - readonly value?: Deployment[]; -} - -// @public -export interface DeploymentModel { - format?: string; - name?: string; - version?: string; -} - -// @public -export interface DeploymentProperties { - model?: DeploymentModel; - readonly provisioningState?: DeploymentProvisioningState; - scaleSettings?: DeploymentScaleSettings; -} - -// @public -export type DeploymentProvisioningState = string; - -// @public -export interface Deployments { - beginCreateOrUpdate(resourceGroupName: string, accountName: string, deploymentName: string, deployment: Deployment, options?: DeploymentsCreateOrUpdateOptionalParams): Promise, DeploymentsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, accountName: string, deploymentName: string, deployment: Deployment, options?: DeploymentsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, accountName: string, deploymentName: string, options?: DeploymentsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, accountName: string, deploymentName: string, options?: DeploymentsDeleteOptionalParams): Promise; - get(resourceGroupName: string, accountName: string, deploymentName: string, options?: DeploymentsGetOptionalParams): Promise; - list(resourceGroupName: string, accountName: string, options?: DeploymentsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface DeploymentScaleSettings { - capacity?: number; - scaleType?: DeploymentScaleType; -} - -// @public -export type DeploymentScaleType = string; - -// @public -export interface DeploymentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type DeploymentsCreateOrUpdateResponse = Deployment; - -// @public -export interface DeploymentsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface DeploymentsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DeploymentsGetResponse = Deployment; - -// @public -export interface DeploymentsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DeploymentsListNextResponse = DeploymentListResult; - -// @public -export interface DeploymentsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DeploymentsListResponse = DeploymentListResult; - // @public export interface DomainAvailability { isSubdomainAvailable?: boolean; - kind?: string; reason?: string; subdomainName?: string; type?: string; @@ -563,9 +345,6 @@ export interface ErrorResponse { error?: ErrorDetail; } -// @public -export type HostingModel = string; - // @public export interface Identity { readonly principalId?: string; @@ -614,38 +393,6 @@ export enum KnownCreatedByType { User = "User" } -// @public -export enum KnownDeploymentProvisioningState { - // (undocumented) - Accepted = "Accepted", - // (undocumented) - Creating = "Creating", - // (undocumented) - Deleting = "Deleting", - // (undocumented) - Failed = "Failed", - // (undocumented) - Moving = "Moving", - // (undocumented) - Succeeded = "Succeeded" -} - -// @public -export enum KnownDeploymentScaleType { - // (undocumented) - Manual = "Manual" -} - -// @public -export enum KnownHostingModel { - // (undocumented) - ConnectedContainer = "ConnectedContainer", - // (undocumented) - DisconnectedContainer = "DisconnectedContainer", - // (undocumented) - Web = "Web" -} - // @public export enum KnownKeySource { // (undocumented) @@ -943,9 +690,6 @@ export interface PrivateLinkServiceConnectionState { // @public export type ProvisioningState = string; -// @public -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 58cb9ed56c03..45c980c39717 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/src/cognitiveServicesManagementClient.ts +++ b/sdk/cognitiveservices/arm-cognitiveservices/src/cognitiveServicesManagementClient.ts @@ -13,22 +13,16 @@ import { DeletedAccountsImpl, ResourceSkusImpl, OperationsImpl, - CommitmentTiersImpl, PrivateEndpointConnectionsImpl, - PrivateLinkResourcesImpl, - DeploymentsImpl, - CommitmentPlansImpl + PrivateLinkResourcesImpl } from "./operations"; import { Accounts, DeletedAccounts, ResourceSkus, Operations, - CommitmentTiers, PrivateEndpointConnections, - PrivateLinkResources, - Deployments, - CommitmentPlans + PrivateLinkResources } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; @@ -72,7 +66,7 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient credential: credentials }; - const packageDetails = `azsdk-js-arm-cognitiveservices/7.0.0`; + const packageDetails = `azsdk-js-arm-cognitiveservices/8.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -95,16 +89,13 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-10-01"; + this.apiVersion = options.apiVersion || "2021-04-30"; this.accounts = new AccountsImpl(this); this.deletedAccounts = new DeletedAccountsImpl(this); this.resourceSkus = new ResourceSkusImpl(this); this.operations = new OperationsImpl(this); - this.commitmentTiers = new CommitmentTiersImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); - this.deployments = new DeploymentsImpl(this); - this.commitmentPlans = new CommitmentPlansImpl(this); } /** @@ -149,11 +140,8 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient deletedAccounts: DeletedAccounts; resourceSkus: ResourceSkus; operations: Operations; - commitmentTiers: CommitmentTiers; privateEndpointConnections: PrivateEndpointConnections; privateLinkResources: PrivateLinkResources; - deployments: Deployments; - commitmentPlans: CommitmentPlans; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -199,8 +187,7 @@ const checkDomainAvailabilityOperationSpec: coreClient.OperationSpec = { requestBody: { parameterPath: { subdomainName: ["subdomainName"], - typeParam: ["typeParam"], - kind: ["options", "kind"] + typeParam: ["typeParam"] }, mapper: { ...Mappers.CheckDomainAvailabilityParameter, required: true } }, diff --git a/sdk/cognitiveservices/arm-cognitiveservices/src/models/index.ts b/sdk/cognitiveservices/arm-cognitiveservices/src/models/index.ts index a733bfd3e204..fa4c6d1025e3 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/src/models/index.ts +++ b/sdk/cognitiveservices/arm-cognitiveservices/src/models/index.ts @@ -581,61 +581,12 @@ export interface SkuAvailability { message?: string; } -/** The list of cognitive services accounts operation response. */ -export interface CommitmentTierListResult { - /** The link used to get the next page of CommitmentTier. */ - nextLink?: string; - /** - * Gets the list of Cognitive Services accounts CommitmentTier and their properties. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: CommitmentTier[]; -} - -/** Cognitive Services account commitment tier. */ -export interface CommitmentTier { - /** The Kind of the resource. */ - kind?: string; - /** The name of the SKU. Ex - P3. It is typically a letter+number code */ - skuName?: string; - /** Account hosting model. */ - hostingModel?: HostingModel; - /** Commitment plan type. */ - planType?: string; - /** Commitment period commitment tier. */ - tier?: string; - /** Commitment period commitment max count. */ - maxCount?: number; - /** Cognitive Services account commitment quota. */ - quota?: CommitmentQuota; - /** Cognitive Services account commitment cost. */ - cost?: CommitmentCost; -} - -/** Cognitive Services account commitment quota. */ -export interface CommitmentQuota { - /** Commitment quota quantity. */ - quantity?: number; - /** Commitment quota unit. */ - unit?: string; -} - -/** Cognitive Services account commitment cost. */ -export interface CommitmentCost { - /** Commitment meter Id. */ - commitmentMeterId?: string; - /** Overage meter Id. */ - overageMeterId?: string; -} - /** Check Domain availability parameter. */ export interface CheckDomainAvailabilityParameter { /** The subdomain name to use. */ subdomainName: string; /** The Type of the resource. */ type: string; - /** The Kind of the resource. */ - kind?: string; } /** Domain availability. */ @@ -648,8 +599,6 @@ export interface DomainAvailability { subdomainName?: string; /** The Type of the resource. */ type?: string; - /** The Kind of the resource. */ - kind?: string; } /** A list of private endpoint connections */ @@ -685,101 +634,6 @@ export interface PrivateLinkResourceProperties { readonly displayName?: string; } -/** The list of cognitive services accounts operation response. */ -export interface DeploymentListResult { - /** The link used to get the next page of Deployment. */ - nextLink?: string; - /** - * Gets the list of Cognitive Services accounts Deployment and their properties. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Deployment[]; -} - -/** Properties of Cognitive Services account deployment. */ -export interface DeploymentProperties { - /** - * Gets the status of the resource at the time the operation was called. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: DeploymentProvisioningState; - /** Properties of Cognitive Services account deployment model. */ - model?: DeploymentModel; - /** Properties of Cognitive Services account deployment model. */ - scaleSettings?: DeploymentScaleSettings; -} - -/** Properties of Cognitive Services account deployment model. */ -export interface DeploymentModel { - /** Deployment model format. */ - format?: string; - /** Deployment model name. */ - name?: string; - /** Deployment model version. */ - version?: string; -} - -/** Properties of Cognitive Services account deployment model. */ -export interface DeploymentScaleSettings { - /** Deployment scale type. */ - scaleType?: DeploymentScaleType; - /** Deployment capacity. */ - capacity?: number; -} - -/** The list of cognitive services accounts operation response. */ -export interface CommitmentPlanListResult { - /** The link used to get the next page of CommitmentPlan. */ - nextLink?: string; - /** - * Gets the list of Cognitive Services accounts CommitmentPlan and their properties. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: CommitmentPlan[]; -} - -/** Properties of Cognitive Services account commitment plan. */ -export interface CommitmentPlanProperties { - /** Account hosting model. */ - hostingModel?: HostingModel; - /** Commitment plan type. */ - planType?: string; - /** Cognitive Services account commitment period. */ - current?: CommitmentPeriod; - /** AutoRenew commitment plan. */ - autoRenew?: boolean; - /** Cognitive Services account commitment period. */ - next?: CommitmentPeriod; - /** - * Cognitive Services account commitment period. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly last?: CommitmentPeriod; -} - -/** Cognitive Services account commitment period. */ -export interface CommitmentPeriod { - /** Commitment period commitment tier. */ - tier?: string; - /** Commitment period commitment count. */ - count?: number; - /** - * Cognitive Services account commitment quota. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly quota?: CommitmentQuota; - /** - * Commitment period start date. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly startDate?: string; - /** - * Commitment period end date. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endDate?: string; -} - /** The resource model definition for an Azure Resource Manager resource with an etag. */ export type AzureEntityResource = Resource & { /** @@ -795,9 +649,6 @@ export type PrivateLinkResource = Resource & { properties?: PrivateLinkResourceProperties; }; -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export type ProxyResource = Resource & {}; - /** The Private Endpoint Connection resource. */ export type PrivateEndpointConnection = AzureEntityResource & { /** Resource properties. */ @@ -832,38 +683,6 @@ export type Account = AzureEntityResource & { properties?: AccountProperties; }; -/** Cognitive Services account deployment. */ -export type Deployment = ProxyResource & { - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** - * Resource Etag. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly etag?: string; - /** Properties of Cognitive Services account deployment. */ - properties?: DeploymentProperties; -}; - -/** Cognitive Services account commitment plan. */ -export type CommitmentPlan = ProxyResource & { - /** - * Metadata pertaining to creation and last modification of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** - * Resource Etag. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly etag?: string; - /** Properties of Cognitive Services account commitment plan. */ - properties?: CommitmentPlanProperties; -}; - /** Known values of {@link SkuTier} that the service accepts. */ export enum KnownSkuTier { Free = "Free", @@ -1111,62 +930,6 @@ export enum KnownActionType { * **Internal** */ export type ActionType = string; - -/** Known values of {@link HostingModel} that the service accepts. */ -export enum KnownHostingModel { - Web = "Web", - ConnectedContainer = "ConnectedContainer", - DisconnectedContainer = "DisconnectedContainer" -} - -/** - * Defines values for HostingModel. \ - * {@link KnownHostingModel} can be used interchangeably with HostingModel, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Web** \ - * **ConnectedContainer** \ - * **DisconnectedContainer** - */ -export type HostingModel = string; - -/** Known values of {@link DeploymentProvisioningState} that the service accepts. */ -export enum KnownDeploymentProvisioningState { - Accepted = "Accepted", - Creating = "Creating", - Deleting = "Deleting", - Moving = "Moving", - Failed = "Failed", - Succeeded = "Succeeded" -} - -/** - * Defines values for DeploymentProvisioningState. \ - * {@link KnownDeploymentProvisioningState} can be used interchangeably with DeploymentProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Accepted** \ - * **Creating** \ - * **Deleting** \ - * **Moving** \ - * **Failed** \ - * **Succeeded** - */ -export type DeploymentProvisioningState = string; - -/** Known values of {@link DeploymentScaleType} that the service accepts. */ -export enum KnownDeploymentScaleType { - Manual = "Manual" -} - -/** - * Defines values for DeploymentScaleType. \ - * {@link KnownDeploymentScaleType} can be used interchangeably with DeploymentScaleType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Manual** - */ -export type DeploymentScaleType = string; /** Defines values for ResourceIdentityType. */ export type ResourceIdentityType = | "None" @@ -1344,28 +1107,11 @@ export type CheckSkuAvailabilityResponse = SkuAvailabilityListResult; /** Optional parameters. */ export interface CheckDomainAvailabilityOptionalParams - extends coreClient.OperationOptions { - /** The Kind of the resource. */ - kind?: string; -} + extends coreClient.OperationOptions {} /** Contains response data for the checkDomainAvailability operation. */ export type CheckDomainAvailabilityResponse = DomainAvailability; -/** Optional parameters. */ -export interface CommitmentTiersListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type CommitmentTiersListResponse = CommitmentTierListResult; - -/** Optional parameters. */ -export interface CommitmentTiersListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type CommitmentTiersListNextResponse = CommitmentTierListResult; - /** Optional parameters. */ export interface PrivateEndpointConnectionsListOptionalParams extends coreClient.OperationOptions {} @@ -1408,85 +1154,6 @@ export interface PrivateLinkResourcesListOptionalParams /** Contains response data for the list operation. */ export type PrivateLinkResourcesListResponse = PrivateLinkResourceListResult; -/** Optional parameters. */ -export interface DeploymentsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type DeploymentsListResponse = DeploymentListResult; - -/** Optional parameters. */ -export interface DeploymentsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DeploymentsGetResponse = Deployment; - -/** Optional parameters. */ -export interface DeploymentsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type DeploymentsCreateOrUpdateResponse = Deployment; - -/** Optional parameters. */ -export interface DeploymentsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface DeploymentsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type DeploymentsListNextResponse = DeploymentListResult; - -/** Optional parameters. */ -export interface CommitmentPlansListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type CommitmentPlansListResponse = CommitmentPlanListResult; - -/** Optional parameters. */ -export interface CommitmentPlansGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type CommitmentPlansGetResponse = CommitmentPlan; - -/** Optional parameters. */ -export interface CommitmentPlansCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type CommitmentPlansCreateOrUpdateResponse = CommitmentPlan; - -/** Optional parameters. */ -export interface CommitmentPlansDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface CommitmentPlansListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type CommitmentPlansListNextResponse = CommitmentPlanListResult; - /** Optional parameters. */ export interface CognitiveServicesManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/cognitiveservices/arm-cognitiveservices/src/models/mappers.ts b/sdk/cognitiveservices/arm-cognitiveservices/src/models/mappers.ts index 76015b75881b..97a464d1c4fe 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/src/models/mappers.ts +++ b/sdk/cognitiveservices/arm-cognitiveservices/src/models/mappers.ts @@ -1558,135 +1558,6 @@ export const SkuAvailability: coreClient.CompositeMapper = { } }; -export const CommitmentTierListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CommitmentTierListResult", - modelProperties: { - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CommitmentTier" - } - } - } - } - } - } -}; - -export const CommitmentTier: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CommitmentTier", - modelProperties: { - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - skuName: { - serializedName: "skuName", - type: { - name: "String" - } - }, - hostingModel: { - serializedName: "hostingModel", - type: { - name: "String" - } - }, - planType: { - serializedName: "planType", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", - type: { - name: "String" - } - }, - maxCount: { - serializedName: "maxCount", - type: { - name: "Number" - } - }, - quota: { - serializedName: "quota", - type: { - name: "Composite", - className: "CommitmentQuota" - } - }, - cost: { - serializedName: "cost", - type: { - name: "Composite", - className: "CommitmentCost" - } - } - } - } -}; - -export const CommitmentQuota: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CommitmentQuota", - modelProperties: { - quantity: { - serializedName: "quantity", - type: { - name: "Number" - } - }, - unit: { - serializedName: "unit", - type: { - name: "String" - } - } - } - } -}; - -export const CommitmentCost: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CommitmentCost", - modelProperties: { - commitmentMeterId: { - serializedName: "commitmentMeterId", - type: { - name: "String" - } - }, - overageMeterId: { - serializedName: "overageMeterId", - type: { - name: "String" - } - } - } - } -}; - export const CheckDomainAvailabilityParameter: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1705,12 +1576,6 @@ export const CheckDomainAvailabilityParameter: coreClient.CompositeMapper = { type: { name: "String" } - }, - kind: { - serializedName: "kind", - type: { - name: "String" - } } } } @@ -1744,12 +1609,6 @@ export const DomainAvailability: coreClient.CompositeMapper = { type: { name: "String" } - }, - kind: { - serializedName: "kind", - type: { - name: "String" - } } } } @@ -1843,230 +1702,6 @@ export const PrivateLinkResourceProperties: coreClient.CompositeMapper = { } }; -export const DeploymentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentListResult", - modelProperties: { - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Deployment" - } - } - } - } - } - } -}; - -export const DeploymentProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - model: { - serializedName: "model", - type: { - name: "Composite", - className: "DeploymentModel" - } - }, - scaleSettings: { - serializedName: "scaleSettings", - type: { - name: "Composite", - className: "DeploymentScaleSettings" - } - } - } - } -}; - -export const DeploymentModel: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentModel", - modelProperties: { - format: { - serializedName: "format", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - version: { - serializedName: "version", - type: { - name: "String" - } - } - } - } -}; - -export const DeploymentScaleSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentScaleSettings", - modelProperties: { - scaleType: { - serializedName: "scaleType", - type: { - name: "String" - } - }, - capacity: { - serializedName: "capacity", - type: { - name: "Number" - } - } - } - } -}; - -export const CommitmentPlanListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CommitmentPlanListResult", - modelProperties: { - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CommitmentPlan" - } - } - } - } - } - } -}; - -export const CommitmentPlanProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CommitmentPlanProperties", - modelProperties: { - hostingModel: { - serializedName: "hostingModel", - type: { - name: "String" - } - }, - planType: { - serializedName: "planType", - type: { - name: "String" - } - }, - current: { - serializedName: "current", - type: { - name: "Composite", - className: "CommitmentPeriod" - } - }, - autoRenew: { - serializedName: "autoRenew", - type: { - name: "Boolean" - } - }, - next: { - serializedName: "next", - type: { - name: "Composite", - className: "CommitmentPeriod" - } - }, - last: { - serializedName: "last", - type: { - name: "Composite", - className: "CommitmentPeriod" - } - } - } - } -}; - -export const CommitmentPeriod: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CommitmentPeriod", - modelProperties: { - tier: { - serializedName: "tier", - type: { - name: "String" - } - }, - count: { - serializedName: "count", - type: { - name: "Number" - } - }, - quota: { - serializedName: "quota", - type: { - name: "Composite", - className: "CommitmentQuota" - } - }, - startDate: { - serializedName: "startDate", - readOnly: true, - type: { - name: "String" - } - }, - endDate: { - serializedName: "endDate", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const AzureEntityResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2101,16 +1736,6 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { } }; -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2197,65 +1822,3 @@ export const Account: coreClient.CompositeMapper = { } } }; - -export const Deployment: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Deployment", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DeploymentProperties" - } - } - } - } -}; - -export const CommitmentPlan: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CommitmentPlan", - modelProperties: { - ...ProxyResource.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - }, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "CommitmentPlanProperties" - } - } - } - } -}; diff --git a/sdk/cognitiveservices/arm-cognitiveservices/src/models/parameters.ts b/sdk/cognitiveservices/arm-cognitiveservices/src/models/parameters.ts index 3ae70b24eb75..a52f051d6adb 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/src/models/parameters.ts +++ b/sdk/cognitiveservices/arm-cognitiveservices/src/models/parameters.ts @@ -16,9 +16,7 @@ import { RegenerateKeyParameters as RegenerateKeyParametersMapper, CheckSkuAvailabilityParameter as CheckSkuAvailabilityParameterMapper, CheckDomainAvailabilityParameter as CheckDomainAvailabilityParameterMapper, - PrivateEndpointConnection as PrivateEndpointConnectionMapper, - Deployment as DeploymentMapper, - CommitmentPlan as CommitmentPlanMapper + PrivateEndpointConnection as PrivateEndpointConnectionMapper } from "../models/mappers"; export const contentType: OperationParameter = { @@ -96,7 +94,7 @@ export const accountName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-10-01", + defaultValue: "2021-04-30", isConstant: true, serializedName: "api-version", type: { @@ -182,11 +180,6 @@ export const typeParam1: OperationParameter = { mapper: CheckDomainAvailabilityParameterMapper }; -export const kind1: OperationParameter = { - parameterPath: ["options", "kind"], - mapper: CheckDomainAvailabilityParameterMapper -}; - export const privateEndpointConnectionName: OperationURLParameter = { parameterPath: "privateEndpointConnectionName", mapper: { @@ -202,35 +195,3 @@ export const properties: OperationParameter = { parameterPath: "properties", mapper: PrivateEndpointConnectionMapper }; - -export const deploymentName: OperationURLParameter = { - parameterPath: "deploymentName", - mapper: { - serializedName: "deploymentName", - required: true, - type: { - name: "String" - } - } -}; - -export const deployment: OperationParameter = { - parameterPath: "deployment", - mapper: DeploymentMapper -}; - -export const commitmentPlanName: OperationURLParameter = { - parameterPath: "commitmentPlanName", - mapper: { - serializedName: "commitmentPlanName", - required: true, - type: { - name: "String" - } - } -}; - -export const commitmentPlan: OperationParameter = { - parameterPath: "commitmentPlan", - mapper: CommitmentPlanMapper -}; diff --git a/sdk/cognitiveservices/arm-cognitiveservices/src/operations/commitmentPlans.ts b/sdk/cognitiveservices/arm-cognitiveservices/src/operations/commitmentPlans.ts deleted file mode 100644 index a48f1544bcb6..000000000000 --- a/sdk/cognitiveservices/arm-cognitiveservices/src/operations/commitmentPlans.ts +++ /dev/null @@ -1,394 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { CommitmentPlans } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - CommitmentPlan, - CommitmentPlansListNextOptionalParams, - CommitmentPlansListOptionalParams, - CommitmentPlansListResponse, - CommitmentPlansGetOptionalParams, - CommitmentPlansGetResponse, - CommitmentPlansCreateOrUpdateOptionalParams, - CommitmentPlansCreateOrUpdateResponse, - CommitmentPlansDeleteOptionalParams, - CommitmentPlansListNextResponse -} from "../models"; - -/// -/** Class containing CommitmentPlans operations. */ -export class CommitmentPlansImpl implements CommitmentPlans { - private readonly client: CognitiveServicesManagementClient; - - /** - * Initialize a new instance of the class CommitmentPlans class. - * @param client Reference to the service client - */ - constructor(client: CognitiveServicesManagementClient) { - this.client = client; - } - - /** - * Gets the commitmentPlans associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - accountName: string, - options?: CommitmentPlansListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, accountName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage(resourceGroupName, accountName, options); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - accountName: string, - options?: CommitmentPlansListOptionalParams - ): AsyncIterableIterator { - let result = await this._list(resourceGroupName, accountName, options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - accountName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listPagingAll( - resourceGroupName: string, - accountName: string, - options?: CommitmentPlansListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - accountName, - options - )) { - yield* page; - } - } - - /** - * Gets the commitmentPlans associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - accountName: string, - options?: CommitmentPlansListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, options }, - listOperationSpec - ); - } - - /** - * Gets the specified commitmentPlans associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services - * Account - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - commitmentPlanName: string, - options?: CommitmentPlansGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, commitmentPlanName, options }, - getOperationSpec - ); - } - - /** - * Update the state of specified commitmentPlans associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services - * Account - * @param commitmentPlan The commitmentPlan properties. - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - accountName: string, - commitmentPlanName: string, - commitmentPlan: CommitmentPlan, - options?: CommitmentPlansCreateOrUpdateOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - accountName, - commitmentPlanName, - commitmentPlan, - options - }, - createOrUpdateOperationSpec - ); - } - - /** - * Deletes the specified commitmentPlan associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services - * Account - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - accountName: string, - commitmentPlanName: string, - options?: CommitmentPlansDeleteOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, accountName, commitmentPlanName, options }, - deleteOperationSpec - ); - return new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - } - - /** - * Deletes the specified commitmentPlan associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services - * Account - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - commitmentPlanName: string, - options?: CommitmentPlansDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - accountName, - commitmentPlanName, - options - ); - return poller.pollUntilDone(); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - accountName: string, - nextLink: string, - options?: CommitmentPlansListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CommitmentPlanListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CommitmentPlan - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.subscriptionId, - Parameters.commitmentPlanName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.CommitmentPlan - }, - 201: { - bodyMapper: Mappers.CommitmentPlan - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.commitmentPlan, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.subscriptionId, - Parameters.commitmentPlanName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.subscriptionId, - Parameters.commitmentPlanName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CommitmentPlanListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.subscriptionId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/cognitiveservices/arm-cognitiveservices/src/operations/commitmentTiers.ts b/sdk/cognitiveservices/arm-cognitiveservices/src/operations/commitmentTiers.ts deleted file mode 100644 index 93c8a4c92bfa..000000000000 --- a/sdk/cognitiveservices/arm-cognitiveservices/src/operations/commitmentTiers.ts +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { CommitmentTiers } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient"; -import { - CommitmentTier, - CommitmentTiersListNextOptionalParams, - CommitmentTiersListOptionalParams, - CommitmentTiersListResponse, - CommitmentTiersListNextResponse -} from "../models"; - -/// -/** Class containing CommitmentTiers operations. */ -export class CommitmentTiersImpl implements CommitmentTiers { - private readonly client: CognitiveServicesManagementClient; - - /** - * Initialize a new instance of the class CommitmentTiers class. - * @param client Reference to the service client - */ - constructor(client: CognitiveServicesManagementClient) { - this.client = client; - } - - /** - * List Commitment Tiers. - * @param location Resource location. - * @param options The options parameters. - */ - public list( - location: string, - options?: CommitmentTiersListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage(location, options); - } - }; - } - - private async *listPagingPage( - location: string, - options?: CommitmentTiersListOptionalParams - ): AsyncIterableIterator { - let result = await this._list(location, options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext(location, continuationToken, options); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listPagingAll( - location: string, - options?: CommitmentTiersListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(location, options)) { - yield* page; - } - } - - /** - * List Commitment Tiers. - * @param location Resource location. - * @param options The options parameters. - */ - private _list( - location: string, - options?: CommitmentTiersListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listOperationSpec - ); - } - - /** - * ListNext - * @param location Resource location. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - location: string, - nextLink: string, - options?: CommitmentTiersListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/commitmentTiers", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CommitmentTierListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CommitmentTierListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/cognitiveservices/arm-cognitiveservices/src/operations/deployments.ts b/sdk/cognitiveservices/arm-cognitiveservices/src/operations/deployments.ts deleted file mode 100644 index 65043a0598fd..000000000000 --- a/sdk/cognitiveservices/arm-cognitiveservices/src/operations/deployments.ts +++ /dev/null @@ -1,464 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Deployments } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { CognitiveServicesManagementClient } from "../cognitiveServicesManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - Deployment, - DeploymentsListNextOptionalParams, - DeploymentsListOptionalParams, - DeploymentsListResponse, - DeploymentsGetOptionalParams, - DeploymentsGetResponse, - DeploymentsCreateOrUpdateOptionalParams, - DeploymentsCreateOrUpdateResponse, - DeploymentsDeleteOptionalParams, - DeploymentsListNextResponse -} from "../models"; - -/// -/** Class containing Deployments operations. */ -export class DeploymentsImpl implements Deployments { - private readonly client: CognitiveServicesManagementClient; - - /** - * Initialize a new instance of the class Deployments class. - * @param client Reference to the service client - */ - constructor(client: CognitiveServicesManagementClient) { - this.client = client; - } - - /** - * Gets the deployments associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - accountName: string, - options?: DeploymentsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, accountName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage(resourceGroupName, accountName, options); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - accountName: string, - options?: DeploymentsListOptionalParams - ): AsyncIterableIterator { - let result = await this._list(resourceGroupName, accountName, options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - accountName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listPagingAll( - resourceGroupName: string, - accountName: string, - options?: DeploymentsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - accountName, - options - )) { - yield* page; - } - } - - /** - * Gets the deployments associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - accountName: string, - options?: DeploymentsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, options }, - listOperationSpec - ); - } - - /** - * Gets the specified deployments associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param deploymentName The name of the deployment associated with the Cognitive Services Account - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - deploymentName: string, - options?: DeploymentsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, deploymentName, options }, - getOperationSpec - ); - } - - /** - * Update the state of specified deployments associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param deploymentName The name of the deployment associated with the Cognitive Services Account - * @param deployment The deployment properties. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - accountName: string, - deploymentName: string, - deployment: Deployment, - options?: DeploymentsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - DeploymentsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, accountName, deploymentName, deployment, options }, - createOrUpdateOperationSpec - ); - return new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - } - - /** - * Update the state of specified deployments associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param deploymentName The name of the deployment associated with the Cognitive Services Account - * @param deployment The deployment properties. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - accountName: string, - deploymentName: string, - deployment: Deployment, - options?: DeploymentsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - accountName, - deploymentName, - deployment, - options - ); - return poller.pollUntilDone(); - } - - /** - * Deletes the specified deployment associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param deploymentName The name of the deployment associated with the Cognitive Services Account - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - accountName: string, - deploymentName: string, - options?: DeploymentsDeleteOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, accountName, deploymentName, options }, - deleteOperationSpec - ); - return new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - } - - /** - * Deletes the specified deployment associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param deploymentName The name of the deployment associated with the Cognitive Services Account - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - deploymentName: string, - options?: DeploymentsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - accountName, - deploymentName, - options - ); - return poller.pollUntilDone(); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - accountName: string, - nextLink: string, - options?: DeploymentsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accountName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DeploymentListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.subscriptionId - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.Deployment - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.subscriptionId, - Parameters.deploymentName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.Deployment - }, - 201: { - bodyMapper: Mappers.Deployment - }, - 202: { - bodyMapper: Mappers.Deployment - }, - 204: { - bodyMapper: Mappers.Deployment - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.deployment, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.subscriptionId, - Parameters.deploymentName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments/{deploymentName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.subscriptionId, - Parameters.deploymentName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DeploymentListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.subscriptionId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/cognitiveservices/arm-cognitiveservices/src/operations/index.ts b/sdk/cognitiveservices/arm-cognitiveservices/src/operations/index.ts index 36be2f74afb3..86a1acb3d250 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/src/operations/index.ts +++ b/sdk/cognitiveservices/arm-cognitiveservices/src/operations/index.ts @@ -10,8 +10,5 @@ export * from "./accounts"; export * from "./deletedAccounts"; export * from "./resourceSkus"; export * from "./operations"; -export * from "./commitmentTiers"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; -export * from "./deployments"; -export * from "./commitmentPlans"; diff --git a/sdk/cognitiveservices/arm-cognitiveservices/src/operationsInterfaces/commitmentPlans.ts b/sdk/cognitiveservices/arm-cognitiveservices/src/operationsInterfaces/commitmentPlans.ts deleted file mode 100644 index 02626a92ba21..000000000000 --- a/sdk/cognitiveservices/arm-cognitiveservices/src/operationsInterfaces/commitmentPlans.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - CommitmentPlan, - CommitmentPlansListOptionalParams, - CommitmentPlansGetOptionalParams, - CommitmentPlansGetResponse, - CommitmentPlansCreateOrUpdateOptionalParams, - CommitmentPlansCreateOrUpdateResponse, - CommitmentPlansDeleteOptionalParams -} from "../models"; - -/// -/** Interface representing a CommitmentPlans. */ -export interface CommitmentPlans { - /** - * Gets the commitmentPlans associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - accountName: string, - options?: CommitmentPlansListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Gets the specified commitmentPlans associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services - * Account - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - commitmentPlanName: string, - options?: CommitmentPlansGetOptionalParams - ): Promise; - /** - * Update the state of specified commitmentPlans associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services - * Account - * @param commitmentPlan The commitmentPlan properties. - * @param options The options parameters. - */ - createOrUpdate( - resourceGroupName: string, - accountName: string, - commitmentPlanName: string, - commitmentPlan: CommitmentPlan, - options?: CommitmentPlansCreateOrUpdateOptionalParams - ): Promise; - /** - * Deletes the specified commitmentPlan associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services - * Account - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - accountName: string, - commitmentPlanName: string, - options?: CommitmentPlansDeleteOptionalParams - ): Promise, void>>; - /** - * Deletes the specified commitmentPlan associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param commitmentPlanName The name of the commitmentPlan associated with the Cognitive Services - * Account - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - commitmentPlanName: string, - options?: CommitmentPlansDeleteOptionalParams - ): Promise; -} diff --git a/sdk/cognitiveservices/arm-cognitiveservices/src/operationsInterfaces/commitmentTiers.ts b/sdk/cognitiveservices/arm-cognitiveservices/src/operationsInterfaces/commitmentTiers.ts deleted file mode 100644 index 4fa258a3ba24..000000000000 --- a/sdk/cognitiveservices/arm-cognitiveservices/src/operationsInterfaces/commitmentTiers.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { CommitmentTier, CommitmentTiersListOptionalParams } from "../models"; - -/// -/** Interface representing a CommitmentTiers. */ -export interface CommitmentTiers { - /** - * List Commitment Tiers. - * @param location Resource location. - * @param options The options parameters. - */ - list( - location: string, - options?: CommitmentTiersListOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/cognitiveservices/arm-cognitiveservices/src/operationsInterfaces/deployments.ts b/sdk/cognitiveservices/arm-cognitiveservices/src/operationsInterfaces/deployments.ts deleted file mode 100644 index 1ebb39331a99..000000000000 --- a/sdk/cognitiveservices/arm-cognitiveservices/src/operationsInterfaces/deployments.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - Deployment, - DeploymentsListOptionalParams, - DeploymentsGetOptionalParams, - DeploymentsGetResponse, - DeploymentsCreateOrUpdateOptionalParams, - DeploymentsCreateOrUpdateResponse, - DeploymentsDeleteOptionalParams -} from "../models"; - -/// -/** Interface representing a Deployments. */ -export interface Deployments { - /** - * Gets the deployments associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - accountName: string, - options?: DeploymentsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Gets the specified deployments associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param deploymentName The name of the deployment associated with the Cognitive Services Account - * @param options The options parameters. - */ - get( - resourceGroupName: string, - accountName: string, - deploymentName: string, - options?: DeploymentsGetOptionalParams - ): Promise; - /** - * Update the state of specified deployments associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param deploymentName The name of the deployment associated with the Cognitive Services Account - * @param deployment The deployment properties. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - accountName: string, - deploymentName: string, - deployment: Deployment, - options?: DeploymentsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - DeploymentsCreateOrUpdateResponse - > - >; - /** - * Update the state of specified deployments associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param deploymentName The name of the deployment associated with the Cognitive Services Account - * @param deployment The deployment properties. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - accountName: string, - deploymentName: string, - deployment: Deployment, - options?: DeploymentsCreateOrUpdateOptionalParams - ): Promise; - /** - * Deletes the specified deployment associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param deploymentName The name of the deployment associated with the Cognitive Services Account - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - accountName: string, - deploymentName: string, - options?: DeploymentsDeleteOptionalParams - ): Promise, void>>; - /** - * Deletes the specified deployment associated with the Cognitive Services account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param deploymentName The name of the deployment associated with the Cognitive Services Account - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - accountName: string, - deploymentName: string, - options?: DeploymentsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/cognitiveservices/arm-cognitiveservices/src/operationsInterfaces/index.ts b/sdk/cognitiveservices/arm-cognitiveservices/src/operationsInterfaces/index.ts index 36be2f74afb3..86a1acb3d250 100644 --- a/sdk/cognitiveservices/arm-cognitiveservices/src/operationsInterfaces/index.ts +++ b/sdk/cognitiveservices/arm-cognitiveservices/src/operationsInterfaces/index.ts @@ -10,8 +10,5 @@ export * from "./accounts"; export * from "./deletedAccounts"; export * from "./resourceSkus"; export * from "./operations"; -export * from "./commitmentTiers"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; -export * from "./deployments"; -export * from "./commitmentPlans"; diff --git a/sdk/cognitiveservices/arm-cognitiveservices/test/cognitiveservices_examples.ts b/sdk/cognitiveservices/arm-cognitiveservices/test/cognitiveservices_examples.ts deleted file mode 100644 index 55dd7a5bb97f..000000000000 --- a/sdk/cognitiveservices/arm-cognitiveservices/test/cognitiveservices_examples.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - env, - record, - RecorderEnvironmentSetup, - Recorder, - delay, - isPlaybackMode -} from "@azure-tools/test-recorder"; -import * as assert from "assert"; -import { ClientSecretCredential } from "@azure/identity"; -import { 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: [] -}; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("Cognitiveservices test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: CognitiveServicesManagementClient; - let location: string; - let resourceGroup: string; - let accountName: string; - - beforeEach(async function() { - recorder = record(this, recorderEnvSetup); - subscriptionId = env.SUBSCRIPTION_ID; - // This is an example of how the environment variables are used - const credential = new ClientSecretCredential( - env.AZURE_TENANT_ID, - env.AZURE_CLIENT_ID, - env.AZURE_CLIENT_SECRET - ); - client = new CognitiveServicesManagementClient(credential, subscriptionId); - location = "eastus"; - resourceGroup = "myjstest"; - accountName = "myaccountxxx"; - }); - - afterEach(async function() { - await recorder.stop(); - }); - - it("accounts create test", async function() { - const res = await client.accounts.beginCreateAndWait(resourceGroup,accountName,{ - location: location, - kind: "CognitiveServices", - sku: { - name: "S0" - }, - identity: { - type: "SystemAssigned" - } - }); - assert.equal(res.name,accountName); - }); - - it("accounts get test", async function() { - const res = await client.accounts.get(resourceGroup,accountName); - assert.equal(res.name,accountName); - }); - - it("accounts list test", async function() { - const resArray = new Array(); - for await (let item of client.accounts.listByResourceGroup(resourceGroup)){ - resArray.push(item); - } - assert.equal(resArray.length,1); - }); - - it("accounts regenerateKey test", async function() { - const res = await client.accounts.regenerateKey(resourceGroup,accountName,"Key2"); - assert.notEqual(res.key2,""); - }); - - it("accounts update test", async function() { - const res = await client.accounts.beginUpdateAndWait(resourceGroup,accountName,{tags: {tag1: "value1"}}); - assert.equal(res.type,"Microsoft.CognitiveServices/accounts") - }); - - it("accounts delete test", async function() { - const res = await client.accounts.beginDeleteAndWait(resourceGroup,accountName); - const resArray = new Array(); - for await (let item of client.accounts.listByResourceGroup(resourceGroup)){ - resArray.push(item); - } - assert.equal(resArray.length,0); - }); -}); diff --git a/sdk/cognitiveservices/arm-cognitiveservices/test/sampleTest.ts b/sdk/cognitiveservices/arm-cognitiveservices/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/cognitiveservices/arm-cognitiveservices/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +});