From 6c0ff726edb6a06a332da91d55fb863156301ebe Mon Sep 17 00:00:00 2001 From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 24 Mar 2023 13:27:26 +0800 Subject: [PATCH] communication release (#25337) https://github.com/Azure/sdk-release-request/issues/3933 --- common/config/rush/pnpm-lock.yaml | 6 +- .../arm-communication/CHANGELOG.md | 29 +- .../arm-communication/_meta.json | 10 +- .../arm-communication/package.json | 10 +- ...ding_communicationservice_create_test.json | 1422 +---------------- ...ding_communicationservice_delete_test.json | 1243 +------------- ...cording_communicationservice_get_test.json | 44 +- ...ording_communicationservice_list_test.json | 49 +- .../review/arm-communication.api.md | 121 +- ...tionServicesCheckNameAvailabilitySample.ts | 10 +- ...mmunicationServicesCreateOrUpdateSample.ts | 5 +- .../communicationServicesDeleteSample.ts | 5 +- .../communicationServicesGetSample.ts | 5 +- ...cationServicesLinkNotificationHubSample.ts | 7 +- ...cationServicesListByResourceGroupSample.ts | 5 +- ...icationServicesListBySubscriptionSample.ts | 5 +- .../communicationServicesListKeysSample.ts | 5 +- ...ommunicationServicesRegenerateKeySample.ts | 7 +- .../communicationServicesUpdateSample.ts | 7 +- .../domainsCancelVerificationSample.ts | 5 +- .../domainsCreateOrUpdateSample.ts | 5 +- .../samples-dev/domainsDeleteSample.ts | 5 +- .../samples-dev/domainsGetSample.ts | 5 +- .../domainsInitiateVerificationSample.ts | 5 +- ...domainsListByEmailServiceResourceSample.ts | 5 +- .../samples-dev/domainsUpdateSample.ts | 8 +- .../emailServicesCreateOrUpdateSample.ts | 5 +- .../samples-dev/emailServicesDeleteSample.ts | 5 +- .../samples-dev/emailServicesGetSample.ts | 5 +- .../emailServicesListByResourceGroupSample.ts | 5 +- .../emailServicesListBySubscriptionSample.ts | 5 +- ...ListVerifiedExchangeOnlineDomainsSample.ts | 5 +- .../samples-dev/emailServicesUpdateSample.ts | 5 +- .../samples-dev/operationsListSample.ts | 2 +- .../senderUsernamesCreateOrUpdateSample.ts | 58 + .../senderUsernamesDeleteSample.ts | 50 + .../samples-dev/senderUsernamesGetSample.ts | 50 + .../senderUsernamesListByDomainsSample.ts | 51 + .../samples/v4-beta/javascript/README.md | 58 +- ...tionServicesCheckNameAvailabilitySample.js | 10 +- ...mmunicationServicesCreateOrUpdateSample.js | 5 +- .../communicationServicesDeleteSample.js | 5 +- .../communicationServicesGetSample.js | 5 +- ...cationServicesLinkNotificationHubSample.js | 7 +- ...cationServicesListByResourceGroupSample.js | 5 +- ...icationServicesListBySubscriptionSample.js | 5 +- .../communicationServicesListKeysSample.js | 5 +- ...ommunicationServicesRegenerateKeySample.js | 7 +- .../communicationServicesUpdateSample.js | 7 +- .../domainsCancelVerificationSample.js | 5 +- .../javascript/domainsCreateOrUpdateSample.js | 5 +- .../v4-beta/javascript/domainsDeleteSample.js | 5 +- .../v4-beta/javascript/domainsGetSample.js | 5 +- .../domainsInitiateVerificationSample.js | 5 +- ...domainsListByEmailServiceResourceSample.js | 5 +- .../v4-beta/javascript/domainsUpdateSample.js | 6 +- .../emailServicesCreateOrUpdateSample.js | 5 +- .../javascript/emailServicesDeleteSample.js | 5 +- .../javascript/emailServicesGetSample.js | 5 +- .../emailServicesListByResourceGroupSample.js | 5 +- .../emailServicesListBySubscriptionSample.js | 5 +- ...ListVerifiedExchangeOnlineDomainsSample.js | 5 +- .../javascript/emailServicesUpdateSample.js | 5 +- .../javascript/operationsListSample.js | 2 +- .../senderUsernamesCreateOrUpdateSample.js | 48 + .../javascript/senderUsernamesDeleteSample.js | 43 + .../javascript/senderUsernamesGetSample.js | 43 + .../senderUsernamesListByDomainsSample.js | 44 + .../samples/v4-beta/typescript/README.md | 58 +- ...tionServicesCheckNameAvailabilitySample.ts | 10 +- ...mmunicationServicesCreateOrUpdateSample.ts | 5 +- .../src/communicationServicesDeleteSample.ts | 5 +- .../src/communicationServicesGetSample.ts | 5 +- ...cationServicesLinkNotificationHubSample.ts | 7 +- ...cationServicesListByResourceGroupSample.ts | 5 +- ...icationServicesListBySubscriptionSample.ts | 5 +- .../communicationServicesListKeysSample.ts | 5 +- ...ommunicationServicesRegenerateKeySample.ts | 7 +- .../src/communicationServicesUpdateSample.ts | 7 +- .../src/domainsCancelVerificationSample.ts | 5 +- .../src/domainsCreateOrUpdateSample.ts | 5 +- .../typescript/src/domainsDeleteSample.ts | 5 +- .../typescript/src/domainsGetSample.ts | 5 +- .../src/domainsInitiateVerificationSample.ts | 5 +- ...domainsListByEmailServiceResourceSample.ts | 5 +- .../typescript/src/domainsUpdateSample.ts | 8 +- .../src/emailServicesCreateOrUpdateSample.ts | 5 +- .../src/emailServicesDeleteSample.ts | 5 +- .../typescript/src/emailServicesGetSample.ts | 5 +- .../emailServicesListByResourceGroupSample.ts | 5 +- .../emailServicesListBySubscriptionSample.ts | 5 +- ...ListVerifiedExchangeOnlineDomainsSample.ts | 5 +- .../src/emailServicesUpdateSample.ts | 5 +- .../typescript/src/operationsListSample.ts | 2 +- .../senderUsernamesCreateOrUpdateSample.ts | 58 + .../src/senderUsernamesDeleteSample.ts | 50 + .../src/senderUsernamesGetSample.ts | 50 + .../src/senderUsernamesListByDomainsSample.ts | 51 + .../communicationServiceManagementClient.ts | 12 +- .../arm-communication/src/lroImpl.ts | 54 +- .../arm-communication/src/models/index.ts | 122 +- .../arm-communication/src/models/mappers.ts | 80 +- .../src/models/parameters.ts | 32 +- .../src/operations/communicationServices.ts | 237 +-- .../src/operations/domains.ts | 153 +- .../src/operations/emailServices.ts | 78 +- .../arm-communication/src/operations/index.ts | 1 + .../src/operations/senderUsernames.ts | 383 +++++ .../communicationServices.ts | 49 +- .../src/operationsInterfaces/domains.ts | 21 +- .../src/operationsInterfaces/emailServices.ts | 12 +- .../src/operationsInterfaces/index.ts | 1 + .../operationsInterfaces/senderUsernames.ts | 84 + .../test/communication_examples.ts | 39 +- 114 files changed, 2006 insertions(+), 3404 deletions(-) create mode 100644 sdk/communication/arm-communication/samples-dev/senderUsernamesCreateOrUpdateSample.ts create mode 100644 sdk/communication/arm-communication/samples-dev/senderUsernamesDeleteSample.ts create mode 100644 sdk/communication/arm-communication/samples-dev/senderUsernamesGetSample.ts create mode 100644 sdk/communication/arm-communication/samples-dev/senderUsernamesListByDomainsSample.ts create mode 100644 sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesCreateOrUpdateSample.js create mode 100644 sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesDeleteSample.js create mode 100644 sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesGetSample.js create mode 100644 sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesListByDomainsSample.js create mode 100644 sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesCreateOrUpdateSample.ts create mode 100644 sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesDeleteSample.ts create mode 100644 sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesGetSample.ts create mode 100644 sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesListByDomainsSample.ts create mode 100644 sdk/communication/arm-communication/src/operations/senderUsernames.ts create mode 100644 sdk/communication/arm-communication/src/operationsInterfaces/senderUsernames.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index e139da3a1f77..8ebd0da5eef6 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -10804,7 +10804,7 @@ packages: dev: false file:projects/arm-communication.tgz: - resolution: {integrity: sha512-ZngMAKiaE2ZDOw6Yyyt5MYMKFaKUJE7g5sOqz/9wnD4aRQhCJ0CtgCBss6mIywzFHtZ79BL0zPOt1JBC38UW8w==, tarball: file:projects/arm-communication.tgz} + resolution: {integrity: sha512-9aggd5C8Ewf5AHKZ5PU/F7soofXTY0qUYZ1fJjNU07i/gGAX+4KKQhOKB7R3gzWfzL8eoHvD/Ho+E30/ZZ0pZA==, tarball: file:projects/arm-communication.tgz} name: '@rush-temp/arm-communication' version: 0.0.0 dependencies: @@ -10818,8 +10818,8 @@ packages: '@types/node': 14.18.38 chai: 4.3.7 cross-env: 7.0.3 - dotenv: 8.6.0 - mkdirp: 1.0.4 + dotenv: 16.0.3 + mkdirp: 2.1.5 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 diff --git a/sdk/communication/arm-communication/CHANGELOG.md b/sdk/communication/arm-communication/CHANGELOG.md index a4848b3f13a6..43db7a27a0aa 100644 --- a/sdk/communication/arm-communication/CHANGELOG.md +++ b/sdk/communication/arm-communication/CHANGELOG.md @@ -1,22 +1,13 @@ # Release History - -## 4.0.0-beta.4 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 4.0.0-beta.3 (2023-01-12) + +## 4.0.0-beta.4 (2023-03-22) **Features** - Added operation group CommunicationServices - Added operation group Domains - Added operation group EmailServices + - Added operation group SenderUsernames - Added Interface CheckNameAvailabilityRequest - Added Interface CheckNameAvailabilityResponse - Added Interface CommunicationServiceResource @@ -34,7 +25,6 @@ - Added Interface CommunicationServicesListBySubscriptionOptionalParams - Added Interface CommunicationServicesListKeysOptionalParams - Added Interface CommunicationServicesRegenerateKeyOptionalParams - - Added Interface CommunicationServicesUpdateHeaders - Added Interface CommunicationServicesUpdateOptionalParams - Added Interface DnsRecord - Added Interface DomainPropertiesVerificationRecords @@ -69,6 +59,14 @@ - Added Interface EmailServicesListVerifiedExchangeOnlineDomainsOptionalParams - Added Interface EmailServicesUpdateHeaders - Added Interface EmailServicesUpdateOptionalParams + - Added Interface ProxyResource + - Added Interface SenderUsernameResource + - Added Interface SenderUsernameResourceCollection + - Added Interface SenderUsernamesCreateOrUpdateOptionalParams + - Added Interface SenderUsernamesDeleteOptionalParams + - Added Interface SenderUsernamesGetOptionalParams + - Added Interface SenderUsernamesListByDomainsNextOptionalParams + - Added Interface SenderUsernamesListByDomainsOptionalParams - Added Interface TrackedResource - Added Interface UpdateDomainRequestParameters - Added Interface VerificationParameter @@ -104,6 +102,10 @@ - Added Type Alias EmailServicesListVerifiedExchangeOnlineDomainsResponse - Added Type Alias EmailServicesProvisioningState - Added Type Alias EmailServicesUpdateResponse + - Added Type Alias SenderUsernamesCreateOrUpdateResponse + - Added Type Alias SenderUsernamesGetResponse + - Added Type Alias SenderUsernamesListByDomainsNextResponse + - Added Type Alias SenderUsernamesListByDomainsResponse - Added Type Alias UserEngagementTracking - Added Type Alias VerificationStatus - Added Type Alias VerificationType @@ -122,7 +124,6 @@ - Removed operation group CommunicationService - Class CommunicationServiceManagementClient no longer has parameter communicationService - - Removed Enum KnownProvisioningState ## 3.0.1 (2022-04-11) diff --git a/sdk/communication/arm-communication/_meta.json b/sdk/communication/arm-communication/_meta.json index 88d7b2ac42a2..8e116bb854ec 100644 --- a/sdk/communication/arm-communication/_meta.json +++ b/sdk/communication/arm-communication/_meta.json @@ -1,8 +1,8 @@ { - "commit": "c3753108541c27b2e5197651702837ec283d37ca", - "readme": "specification\\communication\\resource-manager\\readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\communication\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.5.20221215.1 --generate-sample=true", + "commit": "cd2b76ce38029e1425ee024cd9403a908c60d71e", + "readme": "specification/communication/resource-manager/readme.md", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\communication\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.10 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.5.4", - "use": "@autorest/typescript@6.0.0-rc.5.20221215.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", + "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/communication/arm-communication/package.json b/sdk/communication/arm-communication/package.json index 34170f508642..342af1f1be78 100644 --- a/sdk/communication/arm-communication/package.json +++ b/sdk/communication/arm-communication/package.json @@ -8,10 +8,10 @@ "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.0", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" @@ -33,13 +33,13 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~4.8.0", "uglify-js": "^3.4.9", "rimraf": "^3.0.0", - "dotenv": "^8.2.0", + "dotenv": "^16.0.0", "@azure/identity": "^2.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", @@ -120,4 +120,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-communication?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_create_test.json b/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_create_test.json index e7a9fcba521a..d2902d88e20b 100644 --- a/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_create_test.json +++ b/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_create_test.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx?api-version=2022-07-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx?api-version=2023-03-01-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -10,8 +10,8 @@ "Connection": "keep-alive", "Content-Length": "66", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "3a42a5aa-f022-49f2-9f5c-6a4f60c2abb0" + "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.4 core-rest-pipeline/1.10.3 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "aeb1ab99-d437-4cb5-8c07-a632abcbb2be" }, "RequestBody": { "location": "global", @@ -19,1421 +19,25 @@ "dataLocation": "UnitedStates" } }, - "StatusCode": 201, + "StatusCode": 400, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", "Cache-Control": "no-cache", - "Content-Length": "573", + "Content-Length": "332", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:55:52 GMT", - "ETag": "\u00222901fed8-0000-0700-0000-63ad2be80000\u0022", + "Date": "Thu, 23 Mar 2023 05:58:14 GMT", "Expires": "-1", "Pragma": "no-cache", - "Request-Context": "appId=", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d536765e-ee8d-4178-b579-6c80af848bee", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055552Z:d536765e-ee8d-4178-b579-6c80af848bee" + "x-ms-correlation-request-id": "2482a0f1-ce47-43e1-ac78-6d094479d5ac", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "2482a0f1-ce47-43e1-ac78-6d094479d5ac", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230323T055815Z:2482a0f1-ce47-43e1-ac78-6d094479d5ac" }, "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "name": "mycommunicationServicexxx", - "type": "microsoft.communication/communicationservices", - "location": "global", - "systemData": { - "createdBy": "azure_client_id", - "createdByType": "Application", - "createdAt": "2022-12-29T05:55:50.0652249Z", - "lastModifiedBy": "azure_client_id", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-12-29T05:55:50.0652249Z" - }, - "properties": { - "dataLocation": "UnitedStates", - "provisioningState": "Accepted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "5874c13f-e00f-43dd-a31f-d870c4e765e0" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:55:53 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2ce88f82-48f4-4380-b358-258723ac4e89", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "63b87ff8-ad4c-48a3-9956-d56df18e3021", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055553Z:2ce88f82-48f4-4380-b358-258723ac4e89" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "3ac21519-24ff-4a8c-a807-b88efa825277" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:55:53 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "77d9d541-e0fe-4a24-ad90-970f80c53c58", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "508fb464-269b-4560-863f-a70d7a6246e6", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055553Z:77d9d541-e0fe-4a24-ad90-970f80c53c58" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "7034ff9e-59e7-46a4-ae6e-24dcf8fa052a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:55:56 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "85c0f369-e104-4b58-b96a-d9874f8ef936", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "e547e04d-d8d0-4af7-932d-a4e5bdaa334f", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055556Z:85c0f369-e104-4b58-b96a-d9874f8ef936" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "a71a39f6-e6d7-4ae7-bbf4-00eadd9deb82" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:55:58 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f7e5a322-7caa-4bc8-a4d2-883bd165101d", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "f9fde47d-6c70-45bf-9508-369d0a4bb16d", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055558Z:f7e5a322-7caa-4bc8-a4d2-883bd165101d" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "04cbb550-59c9-4e43-a4c3-d2e053f34d5f" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:00 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0f2ef5d8-74d0-4949-94c5-64cd35da5a50", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "b34cca57-31ee-4cae-a2ba-2849483b474d", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055600Z:0f2ef5d8-74d0-4949-94c5-64cd35da5a50" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "ae288458-0352-4e3d-a492-9a4593a3c1bd" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:02 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "24393e6f-ce60-423d-869a-c7e3ef3e4f14", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "913525c4-d00f-4df7-a48f-205de4f58855", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055602Z:24393e6f-ce60-423d-869a-c7e3ef3e4f14" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "77a8b7a2-20f0-488f-8b2e-45c894ab44d2" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:04 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0903a985-ef47-44ab-9b08-ba51fc625e0c", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "93ca8c2f-9d89-49d6-b3a3-2c652ef12dee", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055605Z:0903a985-ef47-44ab-9b08-ba51fc625e0c" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "67213b31-772f-4e0c-82d9-d762df10f356" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:07 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2a155d33-c035-40d0-818f-f96172cec35b", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "ab9aeda7-a8b9-4c99-be88-cdfea401c10b", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055607Z:2a155d33-c035-40d0-818f-f96172cec35b" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "6f902d4a-b364-42a0-9f53-4d60538ade4a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:09 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1202f100-9503-4c26-b854-daa094db85a5", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "1e17802c-e99e-4a59-9fc3-5f93e84f6dcb", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055609Z:1202f100-9503-4c26-b854-daa094db85a5" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "62cc3391-4415-4358-9604-4e3a57460d7a" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:11 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "439f78d8-14a1-4ab4-b11e-529d0bde2100", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "8f6281dc-2a9b-413e-ae7d-68c41fcc2483", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055612Z:439f78d8-14a1-4ab4-b11e-529d0bde2100" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "3138141b-d63a-4d9a-a4c7-98b1de6929f2" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:14 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0993d0f9-142c-457d-9de5-9a6911a12d9e", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "2054bee4-dc3c-4ce0-9c17-44e1a1043992", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055614Z:0993d0f9-142c-457d-9de5-9a6911a12d9e" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "80030e8e-800b-4224-914d-b57fa7a1eb40" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:16 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "852240d0-7a98-4371-907e-3fb47e5458b5", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "47da2e2e-618b-40e2-a199-ca83808b5bef", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055616Z:852240d0-7a98-4371-907e-3fb47e5458b5" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "3d485a69-8ae7-4054-a4a1-8b5ba4063436" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:18 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "743a19e1-8539-4eee-bdec-36791dd2ac93", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "4dd847b4-4618-4aaf-a450-83f60aba8a41", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055619Z:743a19e1-8539-4eee-bdec-36791dd2ac93" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "a65b218d-9ac7-471a-a331-265ac0754f3d" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:20 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "640b9b6c-262c-4057-8561-b69a140ed284", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "c0072c41-3147-421e-98e6-084da33feca5", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055621Z:640b9b6c-262c-4057-8561-b69a140ed284" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "1ba9d0d0-2980-4fc6-afe1-5a462cad2dad" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:23 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bc517206-8546-4416-ab35-61820d5f38f6", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "a9fc7990-293c-4d36-b097-e140a490304b", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055623Z:bc517206-8546-4416-ab35-61820d5f38f6" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "82565179-332c-4cd6-bc30-bf3c88f4fd95" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:25 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "54f9050f-3ce6-4c80-b71b-0a3c81a8620b", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "566fa7e9-a845-4030-85f9-aaf39db56266", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055625Z:54f9050f-3ce6-4c80-b71b-0a3c81a8620b" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "40e1e9fe-7079-4841-b793-dae1f5f1c310" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:27 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4d30b785-0050-482a-88c7-b0a96740e321", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "40b6b12e-81e9-4f25-a71a-3f31fb21a273", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055628Z:4d30b785-0050-482a-88c7-b0a96740e321" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "4182143c-db5c-4a05-bfe4-b726109d07c5" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:29 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "563346ee-f308-434a-a1e4-dbfd1beecb39", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "146763ae-deaf-45b0-9778-671aada1dfa5", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055630Z:563346ee-f308-434a-a1e4-dbfd1beecb39" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "b099e338-ab73-41bd-a6ba-680b622ea5e9" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:32 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b7bcd8cb-c32d-42b6-8b55-3bfd2a3b573a", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "b962377d-15cf-4817-846b-ba11f4311fd7", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055632Z:b7bcd8cb-c32d-42b6-8b55-3bfd2a3b573a" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "117569e5-9987-4c10-8fe9-1752d25822e1" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:34 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7a773abf-8060-4a17-901e-eef3e4cdc85d", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "c3d75389-f0f2-4793-abe0-b111ecc6bd46", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055634Z:7a773abf-8060-4a17-901e-eef3e4cdc85d" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "0d5e94de-d94e-427f-9296-68c82fa6d703" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:36 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f7b617ee-ec5b-4594-9e81-11f7a3be37ba", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "1dbdcb2c-18fb-4f1d-930c-4fc9fa44733c", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055637Z:f7b617ee-ec5b-4594-9e81-11f7a3be37ba" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "67c00770-a173-4998-9034-36134a4550de" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:38 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2dde7259-c9bc-4a0a-8f7b-6377822f5ccb", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "37dd01c8-7f38-4619-beff-3deb1aef36fb", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055639Z:2dde7259-c9bc-4a0a-8f7b-6377822f5ccb" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "2a965b7f-e006-4609-914b-185cb48355f6" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:41 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7542ed7f-b976-4df8-98cb-570dc317a701", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "1e648846-a93d-4cfa-a84c-39deef27cbd4", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055641Z:7542ed7f-b976-4df8-98cb-570dc317a701" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "5d96291d-5957-452a-84f1-5301c0fa6046" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:43 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b34757f7-f683-406b-887a-6571654121b6", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "1a68366d-3cc8-4394-b1fe-032965da8313", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055643Z:b34757f7-f683-406b-887a-6571654121b6" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "89b9db60-35bb-4ae0-b5f7-b03b5768fa7f" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:45 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c0f60026-1798-4090-8bc7-21996a2612b9", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "2c6475fa-74b8-4d06-a5ba-b9f4f17c6027", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055646Z:c0f60026-1798-4090-8bc7-21996a2612b9" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "162d017b-e81c-41f9-b24e-77346a4d1692" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:47 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "98db12c2-a4c9-454d-8392-7d0e1f0df2aa", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "61e658da-5923-453a-9689-b9cfe681f1d4", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055648Z:98db12c2-a4c9-454d-8392-7d0e1f0df2aa" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "29b78068-94e3-4f14-8a0e-968d18503eb5" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:50 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4b0b4a77-27e3-436b-926b-916f7af31795", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "a6d340b0-f8cf-4b37-bdd8-2c5f60ebe643", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055650Z:4b0b4a77-27e3-436b-926b-916f7af31795" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "79fd3bac-ef8f-4941-8798-347674949e36" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:52 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5738d9ab-dd32-4e91-b1c7-d5b7714a722a", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "bcb543b2-cfed-42f4-ba3f-eaf20a7c78cb", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055653Z:5738d9ab-dd32-4e91-b1c7-d5b7714a722a" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "ae50eb88-a16f-4303-89bb-4706385b34bb" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:54 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "26ed8bbf-0fa7-4ed0-87d3-6a96cd5c2c22", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "08d2df73-7480-4d30-8a49-48d084faeed0", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055655Z:26ed8bbf-0fa7-4ed0-87d3-6a96cd5c2c22" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "2760054d-fa37-4be2-a1a2-7063b56983fa" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:56 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f2e7d75d-67af-44ba-ad6c-4b0bef22c773", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "72f32172-d3ea-4d4e-b561-6e14718b16f9", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055657Z:f2e7d75d-67af-44ba-ad6c-4b0bef22c773" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "10ce43f8-8791-4e83-8a1a-4a76538efd85" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:56:59 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "1698e367-1e71-473b-a3e3-0a31552ba5af", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "e15920cd-d4ee-4f72-be6b-755ed38a3208", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055659Z:1698e367-1e71-473b-a3e3-0a31552ba5af" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "00b9c985-9a3c-47a8-bfc9-ceb5147fb02d" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:01 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4b89e112-e25f-40d4-91c7-9d7c097d45dd", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "4a12906e-822c-4d36-89e7-8fa46811d997", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055702Z:4b89e112-e25f-40d4-91c7-9d7c097d45dd" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "b8ad14fa-8c59-432f-a2b4-7bbcaf395f8f" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:03 GMT", - "ETag": "\u0022100671ef-0000-0700-0000-63ad2be70000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8357151c-72aa-49f0-9a27-830e5c6fe554", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "10a154ec-9913-44de-aa83-0797dc5027f3", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055704Z:8357151c-72aa-49f0-9a27-830e5c6fe554" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Accepted", - "startTime": "2022-12-29T05:55:51.7833267Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "7950d763-be0d-4d9e-b552-dd47ecd1a50f" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:05 GMT", - "ETag": "\u00221006a3f4-0000-0700-0000-63ad2c300000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "18f0ad0e-ec12-4a7a-973e-47e787351b0e", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "1e579cb5-cdfe-42a1-b582-e2b5687fb0cc", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055706Z:18f0ad0e-ec12-4a7a-973e-47e787351b0e" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "3cc9fbcc-8e07-4d77-b311-e6cc4b136de4*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Succeeded", - "startTime": "2022-12-29T05:55:51.7833267Z", - "properties": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "f5bf4485-e97b-4f16-be69-3b58e66f9ac3" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:06 GMT", - "ETag": "\u002229012cd9-0000-0700-0000-63ad2bf20000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8acc6e85-4957-44e5-a74c-2acfaf8673f5", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "0c40ee10-dbfd-420e-940b-905da5068c83", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055707Z:8acc6e85-4957-44e5-a74c-2acfaf8673f5" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "name": "mycommunicationServicexxx", - "type": "microsoft.communication/communicationservices", - "location": "global", - "systemData": { - "createdBy": "azure_client_id", - "createdByType": "Application", - "createdAt": "2022-12-29T05:55:50.0652249Z", - "lastModifiedBy": "azure_client_id", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-12-29T05:55:50.0652249Z" - }, - "properties": { - "provisioningState": "Succeeded", - "hostName": "mycommunicationservicexxx.communication.azure.com", - "immutableResourceId": "2ebb8571-38fe-4d76-98fb-441fa11e113b", - "dataLocation": "UnitedStates" + "error": { + "code": "NoRegisteredProviderFound", + "message": "No registered resource provider found for location \u0027global\u0027 and API version \u00272023-03-01-preview\u0027 for type \u0027CommunicationServices\u0027. The supported api-versions are \u00272020-08-20-preview, 2020-08-20, 2021-10-01-preview, 2022-07-01-preview\u0027. The supported locations are \u0027global\u0027." } } } diff --git a/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_delete_test.json b/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_delete_test.json index 3de04f0167ce..a92e139f6456 100644 --- a/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_delete_test.json +++ b/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_delete_test.json @@ -1,1261 +1,64 @@ { "Entries": [ { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx?api-version=2022-07-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx?api-version=2023-03-01-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "f1adbee5-f677-498d-ab86-76440adb6beb" + "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.4 core-rest-pipeline/1.10.3 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "adea2157-2e5f-46a4-8348-062266a09ff8" }, "RequestBody": null, - "StatusCode": 202, + "StatusCode": 204, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:11 GMT", - "ETag": "\u002229016fda-0000-0700-0000-63ad2c370000\u0022", + "Date": "Thu, 23 Mar 2023 05:58:17 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "78271549-b6b7-4459-8183-88e986f730b9", - "x-ms-providerhub-traffic": "True", + "x-ms-correlation-request-id": "319359bb-671e-49a8-b339-e7308dcca6b3", "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "c5788075-1ea1-45a9-a420-d504a4c95a30", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055711Z:78271549-b6b7-4459-8183-88e986f730b9" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "2433f541-429c-4777-8be8-fe9e27101fac" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:12 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ad291f63-29d0-43f9-80ab-dcb5e7fda5ff", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "046276a7-5f58-4f6c-923f-bf4a6d40c7a9", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055712Z:ad291f63-29d0-43f9-80ab-dcb5e7fda5ff" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "9125ecb5-9aae-4afb-8999-f1ed7e79538e" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:12 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "89259715-17d8-4175-b976-54731aca7c53", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "2aaac30e-3de8-4b6e-9e29-036e3db11677", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055712Z:89259715-17d8-4175-b976-54731aca7c53" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "f4e8261f-0d08-4b78-9884-9bdaf2c6036d" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:14 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2a6ea243-7d7c-4f81-82d3-ef42871283b4", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "713858e1-432c-4506-88f6-ce09369cce89", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055714Z:2a6ea243-7d7c-4f81-82d3-ef42871283b4" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "164e47cd-b89f-4f06-99c9-b16f36e10b1d" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:16 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "21e9fd33-d208-4632-ba32-894d3740d88b", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "9ab93240-40e0-48cc-a1d4-fbb3be7bfbad", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055716Z:21e9fd33-d208-4632-ba32-894d3740d88b" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "8eea4439-1077-495e-a357-9cc8945e4f9f" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:19 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "0800318d-555a-4b27-855b-bf2bacb43674", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "0b3ba945-af70-446d-a3a1-11d3d5e93883", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055719Z:0800318d-555a-4b27-855b-bf2bacb43674" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "b6035e67-ac19-4ede-b987-ef7e09512da0" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:21 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "eb5aa5ae-516d-4006-925e-293fc2b425a8", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "aca07a66-2ffd-47f1-9bc0-6c8ffe974657", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055721Z:eb5aa5ae-516d-4006-925e-293fc2b425a8" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "dd3e6a2e-fff7-4e75-8fdf-c9e6cb5eb49d" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:23 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6fd1c2f4-4f4d-414b-b869-911aaf9a278c", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "5562d122-c50e-442a-bc61-8a5fc8d0ad43", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055723Z:6fd1c2f4-4f4d-414b-b869-911aaf9a278c" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "77622dc3-5283-4bd8-8289-23abf6bf6bd3" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:25 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "291aefc9-00e7-428c-8a9b-25aae472908f", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "0d58c7fb-d8ce-4966-8e13-a56198dfe541", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055725Z:291aefc9-00e7-428c-8a9b-25aae472908f" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "9d804f74-08d8-41ec-af51-63828d751c67" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:28 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a2958919-c508-475b-ba95-7be911c5b994", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "32b1c09f-7424-427c-96da-0fca49473eb7", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055728Z:a2958919-c508-475b-ba95-7be911c5b994" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "ae1260ef-dcb9-43e8-8aef-93e5f377f057" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:30 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "aaee9372-70d0-4814-88c0-0bc7aa1ae3b5", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "59771850-afb5-49e8-bb11-9236b3ed4a0b", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055730Z:aaee9372-70d0-4814-88c0-0bc7aa1ae3b5" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "698ccfb1-d743-44e0-bb2a-38044d70a14d" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:32 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "235b1f43-9703-491a-b16b-addacae01d97", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "a939804a-dfb5-424d-897c-9146d7b41c68", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055732Z:235b1f43-9703-491a-b16b-addacae01d97" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "2674d3b0-9e00-4bfc-ad4e-fa8b9b588436" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:34 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "3c89c088-f0e3-4578-a0bb-a3d8def913ee", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "db9b3b4c-aa76-405b-a88f-95b89deafede", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055735Z:3c89c088-f0e3-4578-a0bb-a3d8def913ee" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "573dfa21-455e-4f27-9645-e786770f6a1e" + "x-ms-request-id": "319359bb-671e-49a8-b339-e7308dcca6b3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230323T055818Z:319359bb-671e-49a8-b339-e7308dcca6b3" }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:37 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "eb553e1f-f470-43c4-9186-a056cf9a4253", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "0db13c85-d57b-476f-adad-1dbb0c65aa2f", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055737Z:eb553e1f-f470-43c4-9186-a056cf9a4253" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "9a88020c-ffde-452d-a40a-86583b4edfc3" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:39 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e30fc99d-d12a-43d4-b37d-a49989952592", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "d051b8e5-b690-4aec-8279-8f7228fe4c11", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055739Z:e30fc99d-d12a-43d4-b37d-a49989952592" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "69f9aff4-17cd-419a-b461-adc3544cea90" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:41 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "7d9911ae-d26a-4421-adf1-7ccf3c70cde8", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-request-id": "6959328e-c8a3-4fd0-b607-551e92f92815", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055741Z:7d9911ae-d26a-4421-adf1-7ccf3c70cde8" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "8759c9de-76df-417b-be5c-b5c4551a703d" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:43 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c7b08cd7-469d-467f-9bc4-f8644146deb4", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-request-id": "a6ba26d0-4cc6-4dbe-90a9-b703e0ab27da", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055744Z:c7b08cd7-469d-467f-9bc4-f8644146deb4" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "ea865095-3a48-4da9-8004-80e30fccf296" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:45 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c3e228d6-be16-47e8-baa8-fb669731c3fa", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-request-id": "ef3358f6-db7a-42d7-814b-b25ca1d361a2", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055746Z:c3e228d6-be16-47e8-baa8-fb669731c3fa" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "306b8d4b-6f3e-4b4b-b388-4d6262e6bbe2" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:48 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8eace765-341b-49c2-89a4-e5b329f9c32c", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-request-id": "6726bbc2-8fb8-4562-9037-b29c2d08f168", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055748Z:8eace765-341b-49c2-89a4-e5b329f9c32c" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "45b5dcfb-5654-4de5-ae75-a43bbf808bad" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:50 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4efe1035-aced-40b7-95fa-76fb055b6735", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-request-id": "289fa556-8189-4c3d-8d7b-8df60fbc2ea3", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055751Z:4efe1035-aced-40b7-95fa-76fb055b6735" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "86f52e77-e13c-4dd6-b6b1-d7714e3c96ba" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:52 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "dad39014-18b2-4841-ae9e-b8458f7c38b8", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-request-id": "207e2f18-3322-4744-b2bd-c37a65aed09b", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055753Z:dad39014-18b2-4841-ae9e-b8458f7c38b8" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "1eaa1a94-7728-492a-8c10-dda04d7696fe" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:54 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "dbc23a90-c017-4169-bad4-18df9a81b8a8", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-request-id": "74fc08c7-9553-4b2c-b59e-3b31b7393a46", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055755Z:dbc23a90-c017-4169-bad4-18df9a81b8a8" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "61f4e3db-a999-4020-bb75-0981c08166d9" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:57 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "333ea375-63a4-4993-9255-bcc54dfee357", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-request-id": "e8cb705d-94c4-41e4-a586-2702873cd9aa", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055757Z:333ea375-63a4-4993-9255-bcc54dfee357" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "8fbfb7a9-98a7-4502-9321-740ed60a7aa9" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:59 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c015d634-2585-4fc4-a680-f5695f5782b2", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-request-id": "87ab957c-1448-47cc-bd9c-265ede05d469", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055800Z:c015d634-2585-4fc4-a680-f5695f5782b2" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "9aa438d6-3e0d-41cf-85e4-0aec67541d12" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:58:01 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4f357942-c4e8-4257-a20c-205cb4ce3ebe", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-request-id": "06afe483-7f65-4430-b002-62f1796dcd2c", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055802Z:4f357942-c4e8-4257-a20c-205cb4ce3ebe" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "78630b2b-c73d-4978-98a4-42a828e021f3" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:58:03 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "a274a69f-92fb-49ff-92b4-ba7a484e668f", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "5b5a06b9-5a97-4ed6-b3f4-918211634b54", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055804Z:a274a69f-92fb-49ff-92b4-ba7a484e668f" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "a1318423-c5ea-4643-83a0-a89f9635ede0" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:58:05 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "72690d30-7482-4546-a1d3-7a8fcb9e0402", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "fc499add-9bf4-486e-b11a-c16b42a9ae3b", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055806Z:72690d30-7482-4546-a1d3-7a8fcb9e0402" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "82a6bdd5-922e-4f37-9c95-429b71f85fc9" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:58:09 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "9683e1c8-fcdf-488a-b9a5-d2b4fef6c071", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "a991c44c-b39c-499a-8b9e-c16dbb763bc4", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055809Z:9683e1c8-fcdf-488a-b9a5-d2b4fef6c071" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "65640faf-93cc-433a-8743-7b64c872d0d0" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:58:11 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f8f07f31-20ca-4eb0-b41c-3e5eef4eb529", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "7be07a80-895c-40bb-8fce-abf387a99020", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055811Z:f8f07f31-20ca-4eb0-b41c-3e5eef4eb529" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "330df9c2-748d-4373-bc9a-8190f9b204e9" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:58:13 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4b6160b0-fcc6-4a99-8b61-c714e980f1c9", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "a3a4d413-caab-4ae3-aca8-55efaad9c033", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055813Z:4b6160b0-fcc6-4a99-8b61-c714e980f1c9" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "caa7bb79-d145-4a33-b1fb-e48d3254b525" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:58:15 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2d3fa882-8f94-4318-ba4e-944f794a3f7e", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "f3376992-d3d8-440a-ad31-8644fb402268", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055815Z:2d3fa882-8f94-4318-ba4e-944f794a3f7e" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "567ad40a-f9f2-412b-bb42-ce3a507701ed" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:58:17 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e146dcff-fe98-4175-b182-55588c4020a9", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "81f1abd7-842c-4cac-9b15-9b0b7b6d5ec9", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055818Z:e146dcff-fe98-4175-b182-55588c4020a9" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "34e761ff-7922-4edf-bf90-e218dfbde3ea" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:58:20 GMT", - "ETag": "\u0022100605f5-0000-0700-0000-63ad2c370000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "949453cd-2d5a-4ab1-9561-f7bdf7e0dcbe", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "69198093-f422-4498-b5d4-ca6cf5b5474e", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055820Z:949453cd-2d5a-4ab1-9561-f7bdf7e0dcbe" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Deleting", - "startTime": "2022-12-29T05:57:10.9707851Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96?api-version=2022-07-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "6bf514ac-9f0e-4d82-9666-a6d9986e24fa" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:58:22 GMT", - "ETag": "\u00221006b6f9-0000-0700-0000-63ad2c7d0000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "010aec00-879c-4696-81cd-f55134d97183", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "c8346a9a-7893-43c8-b5da-2b556d7f8c4b", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055822Z:010aec00-879c-4696-81cd-f55134d97183" - }, - "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/providers/Microsoft.Communication/locations/WESTUS2/operationStatuses/c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "name": "c5788075-1ea1-45a9-a420-d504a4c95a30*E948DC6ECB3E6938C6CEAB9AB78B701067D77BFD95D64F4DD88F18FF3BF65F96", - "resourceId": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "status": "Succeeded", - "startTime": "2022-12-29T05:57:10.9707851Z", - "properties": null - } + "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices?api-version=2022-07-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices?api-version=2023-03-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "cc55f870-c2d1-4cd9-b1a6-fb2da77c904c" + "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.4 core-rest-pipeline/1.10.3 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "32ce6299-bcec-4c92-9604-76765a992d06" }, "RequestBody": null, - "StatusCode": 200, + "StatusCode": 404, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Encoding": "gzip", + "Content-Length": "296", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:58:22 GMT", + "Date": "Thu, 23 Mar 2023 05:58:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "8ba056a5-e9f5-49a0-86f7-a2e72a730064", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "70999ad9-116c-48f5-8944-f7aac8554ce2", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055823Z:8ba056a5-e9f5-49a0-86f7-a2e72a730064" + "x-ms-correlation-request-id": "0fd0072a-458d-4089-a038-31a324c42d4b", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "0fd0072a-458d-4089-a038-31a324c42d4b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230323T055818Z:0fd0072a-458d-4089-a038-31a324c42d4b" }, "ResponseBody": { - "value": [] + "error": { + "code": "InvalidResourceType", + "message": "The resource type \u0027CommunicationServices\u0027 could not be found in the namespace \u0027Microsoft.Communication\u0027 for api version \u00272023-03-01-preview\u0027. The supported api-versions are \u00272020-08-20-preview,2020-08-20,2021-10-01-preview,2022-07-01-preview\u0027." + } } } ], diff --git a/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_get_test.json b/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_get_test.json index ecc8cefd0067..e04e6d74c674 100644 --- a/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_get_test.json +++ b/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_get_test.json @@ -1,54 +1,36 @@ { "Entries": [ { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx?api-version=2022-07-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx?api-version=2023-03-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "0dfd6645-2a24-4162-9b71-c43f40492fe9" + "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.4 core-rest-pipeline/1.10.3 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "6fcb44e0-29f4-4b2b-8f1f-4c155e515848" }, "RequestBody": null, - "StatusCode": 200, + "StatusCode": 404, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Encoding": "gzip", + "Content-Length": "251", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:07 GMT", - "ETag": "\u002229012cd9-0000-0700-0000-63ad2bf20000\u0022", + "Date": "Thu, 23 Mar 2023 05:58:15 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "ac6fa23d-da42-4ec0-941b-cbec2f7e7150", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "2d662c54-b282-4dce-8a01-a030c18bbdc0", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055708Z:ac6fa23d-da42-4ec0-941b-cbec2f7e7150" + "x-ms-correlation-request-id": "9ef9eca4-d6be-4d5b-aed1-ae7c1439a9ee", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "9ef9eca4-d6be-4d5b-aed1-ae7c1439a9ee", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230323T055816Z:9ef9eca4-d6be-4d5b-aed1-ae7c1439a9ee" }, "ResponseBody": { - "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "name": "mycommunicationServicexxx", - "type": "microsoft.communication/communicationservices", - "location": "global", - "systemData": { - "createdBy": "azure_client_id", - "createdByType": "Application", - "createdAt": "2022-12-29T05:55:50.0652249Z", - "lastModifiedBy": "azure_client_id", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-12-29T05:55:50.0652249Z" - }, - "properties": { - "provisioningState": "Succeeded", - "hostName": "mycommunicationservicexxx.communication.azure.com", - "immutableResourceId": "2ebb8571-38fe-4d76-98fb-441fa11e113b", - "dataLocation": "UnitedStates" + "error": { + "code": "ResourceNotFound", + "message": "The Resource \u0027Microsoft.Communication/CommunicationServices/mycommunicationServicexxx\u0027 under resource group \u0027myjstest\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix" } } } diff --git a/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_list_test.json b/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_list_test.json index b1cb3f68ba65..8c6e67cfed6c 100644 --- a/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_list_test.json +++ b/sdk/communication/arm-communication/recordings/node/communicationservice_test/recording_communicationservice_list_test.json @@ -1,58 +1,37 @@ { "Entries": [ { - "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices?api-version=2022-07-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices?api-version=2023-03-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.3 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "ebf6ceca-db24-470a-889e-dd261d488592" + "User-Agent": "azsdk-js-arm-communication/4.0.0-beta.4 core-rest-pipeline/1.10.3 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "6613821e-b158-4ed2-88e1-ca614ac3ead2" }, "RequestBody": null, - "StatusCode": 200, + "StatusCode": 404, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Encoding": "gzip", + "Content-Length": "296", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 29 Dec 2022 05:57:08 GMT", + "Date": "Thu, 23 Mar 2023 05:58:16 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6a8db211-b8e8-4ec6-be6e-f978d412f847", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "99ab5c3d-e4d0-47e3-b23c-6fdac80e0651", - "x-ms-routing-request-id": "KOREASOUTH:20221229T055709Z:6a8db211-b8e8-4ec6-be6e-f978d412f847" + "x-ms-correlation-request-id": "448ee233-8ada-48a4-be5a-fb850b54334f", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "448ee233-8ada-48a4-be5a-fb850b54334f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230323T055817Z:448ee233-8ada-48a4-be5a-fb850b54334f" }, "ResponseBody": { - "value": [ - { - "id": "/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.Communication/communicationServices/mycommunicationServicexxx", - "name": "mycommunicationServicexxx", - "type": "microsoft.communication/communicationservices", - "location": "global", - "systemData": { - "createdBy": "azure_client_id", - "createdByType": "Application", - "createdAt": "2022-12-29T05:55:50.0652249Z", - "lastModifiedBy": "azure_client_id", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-12-29T05:55:50.0652249Z" - }, - "properties": { - "provisioningState": "Succeeded", - "hostName": "mycommunicationservicexxx.communication.azure.com", - "immutableResourceId": "2ebb8571-38fe-4d76-98fb-441fa11e113b", - "dataLocation": "UnitedStates" - } - } - ] + "error": { + "code": "InvalidResourceType", + "message": "The resource type \u0027CommunicationServices\u0027 could not be found in the namespace \u0027Microsoft.Communication\u0027 for api version \u00272023-03-01-preview\u0027. The supported api-versions are \u00272020-08-20-preview,2020-08-20,2021-10-01-preview,2022-07-01-preview\u0027." + } } } ], diff --git a/sdk/communication/arm-communication/review/arm-communication.api.md b/sdk/communication/arm-communication/review/arm-communication.api.md index 85cbe424a8bc..1801c2a18aee 100644 --- a/sdk/communication/arm-communication/review/arm-communication.api.md +++ b/sdk/communication/arm-communication/review/arm-communication.api.md @@ -6,9 +6,9 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; // @public export type ActionType = string; @@ -53,6 +53,8 @@ export class CommunicationServiceManagementClient extends coreClient.ServiceClie // (undocumented) operations: Operations; // (undocumented) + senderUsernames: SenderUsernames; + // (undocumented) subscriptionId: string; } @@ -87,20 +89,18 @@ export interface CommunicationServiceResourceUpdate extends TaggedResource { // @public export interface CommunicationServices { - beginCreateOrUpdate(resourceGroupName: string, communicationServiceName: string, parameters: CommunicationServiceResource, options?: CommunicationServicesCreateOrUpdateOptionalParams): Promise, CommunicationServicesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, communicationServiceName: string, parameters: CommunicationServiceResource, options?: CommunicationServicesCreateOrUpdateOptionalParams): Promise, CommunicationServicesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, communicationServiceName: string, parameters: CommunicationServiceResource, options?: CommunicationServicesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, communicationServiceName: string, options?: CommunicationServicesDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, communicationServiceName: string, options?: CommunicationServicesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, communicationServiceName: string, options?: CommunicationServicesDeleteOptionalParams): Promise; - beginRegenerateKey(resourceGroupName: string, communicationServiceName: string, parameters: RegenerateKeyParameters, options?: CommunicationServicesRegenerateKeyOptionalParams): Promise, CommunicationServicesRegenerateKeyResponse>>; - beginRegenerateKeyAndWait(resourceGroupName: string, communicationServiceName: string, parameters: RegenerateKeyParameters, options?: CommunicationServicesRegenerateKeyOptionalParams): Promise; - beginUpdate(resourceGroupName: string, communicationServiceName: string, parameters: CommunicationServiceResourceUpdate, options?: CommunicationServicesUpdateOptionalParams): Promise, CommunicationServicesUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, communicationServiceName: string, parameters: CommunicationServiceResourceUpdate, options?: CommunicationServicesUpdateOptionalParams): Promise; checkNameAvailability(nameAvailabilityParameters: NameAvailabilityParameters, options?: CommunicationServicesCheckNameAvailabilityOptionalParams): Promise; get(resourceGroupName: string, communicationServiceName: string, options?: CommunicationServicesGetOptionalParams): Promise; linkNotificationHub(resourceGroupName: string, communicationServiceName: string, options?: CommunicationServicesLinkNotificationHubOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: CommunicationServicesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: CommunicationServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; listKeys(resourceGroupName: string, communicationServiceName: string, options?: CommunicationServicesListKeysOptionalParams): Promise; + regenerateKey(resourceGroupName: string, communicationServiceName: string, parameters: RegenerateKeyParameters, options?: CommunicationServicesRegenerateKeyOptionalParams): Promise; + update(resourceGroupName: string, communicationServiceName: string, parameters: CommunicationServiceResourceUpdate, options?: CommunicationServicesUpdateOptionalParams): Promise; } // @public @@ -190,22 +190,13 @@ export type CommunicationServicesProvisioningState = string; // @public export interface CommunicationServicesRegenerateKeyOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; } // @public export type CommunicationServicesRegenerateKeyResponse = CommunicationServiceKeys; -// @public -export interface CommunicationServicesUpdateHeaders { - azureAsyncOperation?: string; -} - // @public export interface CommunicationServicesUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; } // @public @@ -251,9 +242,6 @@ export interface DomainResource extends TrackedResource { readonly mailFromSenderDomain?: string; readonly provisioningState?: DomainsProvisioningState; userEngagementTracking?: UserEngagementTracking; - validSenderUsernames?: { - [propertyName: string]: string; - }; readonly verificationRecords?: DomainPropertiesVerificationRecords; readonly verificationStates?: DomainPropertiesVerificationStates; } @@ -266,15 +254,15 @@ export interface DomainResourceList { // @public export interface Domains { - beginCancelVerification(resourceGroupName: string, emailServiceName: string, domainName: string, parameters: VerificationParameter, options?: DomainsCancelVerificationOptionalParams): Promise, DomainsCancelVerificationResponse>>; + beginCancelVerification(resourceGroupName: string, emailServiceName: string, domainName: string, parameters: VerificationParameter, options?: DomainsCancelVerificationOptionalParams): Promise, DomainsCancelVerificationResponse>>; beginCancelVerificationAndWait(resourceGroupName: string, emailServiceName: string, domainName: string, parameters: VerificationParameter, options?: DomainsCancelVerificationOptionalParams): Promise; - beginCreateOrUpdate(resourceGroupName: string, emailServiceName: string, domainName: string, parameters: DomainResource, options?: DomainsCreateOrUpdateOptionalParams): Promise, DomainsCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, emailServiceName: string, domainName: string, parameters: DomainResource, options?: DomainsCreateOrUpdateOptionalParams): Promise, DomainsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, emailServiceName: string, domainName: string, parameters: DomainResource, options?: DomainsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, emailServiceName: string, domainName: string, options?: DomainsDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, emailServiceName: string, domainName: string, options?: DomainsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, emailServiceName: string, domainName: string, options?: DomainsDeleteOptionalParams): Promise; - beginInitiateVerification(resourceGroupName: string, emailServiceName: string, domainName: string, parameters: VerificationParameter, options?: DomainsInitiateVerificationOptionalParams): Promise, DomainsInitiateVerificationResponse>>; + beginInitiateVerification(resourceGroupName: string, emailServiceName: string, domainName: string, parameters: VerificationParameter, options?: DomainsInitiateVerificationOptionalParams): Promise, DomainsInitiateVerificationResponse>>; beginInitiateVerificationAndWait(resourceGroupName: string, emailServiceName: string, domainName: string, parameters: VerificationParameter, options?: DomainsInitiateVerificationOptionalParams): Promise; - beginUpdate(resourceGroupName: string, emailServiceName: string, domainName: string, parameters: UpdateDomainRequestParameters, options?: DomainsUpdateOptionalParams): Promise, DomainsUpdateResponse>>; + beginUpdate(resourceGroupName: string, emailServiceName: string, domainName: string, parameters: UpdateDomainRequestParameters, options?: DomainsUpdateOptionalParams): Promise, DomainsUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, emailServiceName: string, domainName: string, parameters: UpdateDomainRequestParameters, options?: DomainsUpdateOptionalParams): Promise; get(resourceGroupName: string, emailServiceName: string, domainName: string, options?: DomainsGetOptionalParams): Promise; listByEmailServiceResource(resourceGroupName: string, emailServiceName: string, options?: DomainsListByEmailServiceResourceOptionalParams): PagedAsyncIterableIterator; @@ -389,11 +377,11 @@ export interface EmailServiceResourceUpdate extends TaggedResource { // @public export interface EmailServices { - beginCreateOrUpdate(resourceGroupName: string, emailServiceName: string, parameters: EmailServiceResource, options?: EmailServicesCreateOrUpdateOptionalParams): Promise, EmailServicesCreateOrUpdateResponse>>; + beginCreateOrUpdate(resourceGroupName: string, emailServiceName: string, parameters: EmailServiceResource, options?: EmailServicesCreateOrUpdateOptionalParams): Promise, EmailServicesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, emailServiceName: string, parameters: EmailServiceResource, options?: EmailServicesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, emailServiceName: string, options?: EmailServicesDeleteOptionalParams): Promise, void>>; + beginDelete(resourceGroupName: string, emailServiceName: string, options?: EmailServicesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, emailServiceName: string, options?: EmailServicesDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, emailServiceName: string, parameters: EmailServiceResourceUpdate, options?: EmailServicesUpdateOptionalParams): Promise, EmailServicesUpdateResponse>>; + beginUpdate(resourceGroupName: string, emailServiceName: string, parameters: EmailServiceResourceUpdate, options?: EmailServicesUpdateOptionalParams): Promise, EmailServicesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, emailServiceName: string, parameters: EmailServiceResourceUpdate, options?: EmailServicesUpdateOptionalParams): Promise; get(resourceGroupName: string, emailServiceName: string, options?: EmailServicesGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: EmailServicesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; @@ -586,6 +574,19 @@ export enum KnownOrigin { UserSystem = "user,system" } +// @public +export enum KnownProvisioningState { + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Moving = "Moving", + Running = "Running", + Succeeded = "Succeeded", + Unknown = "Unknown", + Updating = "Updating" +} + // @public export enum KnownUserEngagementTracking { Disabled = "Disabled", @@ -671,6 +672,13 @@ export type OperationsListResponse = OperationListResult; // @public export type Origin = string; +// @public +export type ProvisioningState = string; + +// @public +export interface ProxyResource extends Resource { +} + // @public export interface RegenerateKeyParameters { keyType?: KeyType_2; @@ -684,6 +692,60 @@ export interface Resource { readonly type?: string; } +// @public +export interface SenderUsernameResource extends ProxyResource { + readonly dataLocation?: string; + displayName?: string; + readonly provisioningState?: ProvisioningState; + username?: string; +} + +// @public +export interface SenderUsernameResourceCollection { + nextLink?: string; + value?: SenderUsernameResource[]; +} + +// @public +export interface SenderUsernames { + createOrUpdate(resourceGroupName: string, emailServiceName: string, domainName: string, senderUsername: string, parameters: SenderUsernameResource, options?: SenderUsernamesCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, emailServiceName: string, domainName: string, senderUsername: string, options?: SenderUsernamesDeleteOptionalParams): Promise; + get(resourceGroupName: string, emailServiceName: string, domainName: string, senderUsername: string, options?: SenderUsernamesGetOptionalParams): Promise; + listByDomains(resourceGroupName: string, emailServiceName: string, domainName: string, options?: SenderUsernamesListByDomainsOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SenderUsernamesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SenderUsernamesCreateOrUpdateResponse = SenderUsernameResource; + +// @public +export interface SenderUsernamesDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SenderUsernamesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SenderUsernamesGetResponse = SenderUsernameResource; + +// @public +export interface SenderUsernamesListByDomainsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SenderUsernamesListByDomainsNextResponse = SenderUsernameResourceCollection; + +// @public +export interface SenderUsernamesListByDomainsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SenderUsernamesListByDomainsResponse = SenderUsernameResourceCollection; + // @public export interface SystemData { createdAt?: Date; @@ -712,9 +774,6 @@ export interface TrackedResource extends Resource { // @public export interface UpdateDomainRequestParameters extends TaggedResource { userEngagementTracking?: UserEngagementTracking; - validSenderUsernames?: { - [propertyName: string]: string; - }; } // @public diff --git a/sdk/communication/arm-communication/samples-dev/communicationServicesCheckNameAvailabilitySample.ts b/sdk/communication/arm-communication/samples-dev/communicationServicesCheckNameAvailabilitySample.ts index 76129e5cfaef..33647385197b 100644 --- a/sdk/communication/arm-communication/samples-dev/communicationServicesCheckNameAvailabilitySample.ts +++ b/sdk/communication/arm-communication/samples-dev/communicationServicesCheckNameAvailabilitySample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Checks that the CommunicationService name is valid and is not already in use. * * @summary Checks that the CommunicationService name is valid and is not already in use. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/checkNameAvailabilityAvailable.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/checkNameAvailabilityAvailable.json */ async function checkNameAvailabilityAvailable() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const nameAvailabilityParameters: NameAvailabilityParameters = { name: "MyCommunicationService", type: "Microsoft.Communication/CommunicationServices" @@ -45,11 +46,12 @@ async function checkNameAvailabilityAvailable() { * This sample demonstrates how to Checks that the CommunicationService name is valid and is not already in use. * * @summary Checks that the CommunicationService name is valid and is not already in use. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/checkNameAvailabilityUnavailable.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/checkNameAvailabilityUnavailable.json */ async function checkNameAvailabilityUnavailable() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const nameAvailabilityParameters: NameAvailabilityParameters = { name: "MyCommunicationService", type: "Microsoft.Communication/CommunicationServices" diff --git a/sdk/communication/arm-communication/samples-dev/communicationServicesCreateOrUpdateSample.ts b/sdk/communication/arm-communication/samples-dev/communicationServicesCreateOrUpdateSample.ts index 57cddc851d6e..cc88b0368e2d 100644 --- a/sdk/communication/arm-communication/samples-dev/communicationServicesCreateOrUpdateSample.ts +++ b/sdk/communication/arm-communication/samples-dev/communicationServicesCreateOrUpdateSample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Create a new CommunicationService or update an existing CommunicationService. * * @summary Create a new CommunicationService or update an existing CommunicationService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/createOrUpdate.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/createOrUpdate.json */ async function createOrUpdateResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; diff --git a/sdk/communication/arm-communication/samples-dev/communicationServicesDeleteSample.ts b/sdk/communication/arm-communication/samples-dev/communicationServicesDeleteSample.ts index a0ccd019aa5a..5625d5e1f289 100644 --- a/sdk/communication/arm-communication/samples-dev/communicationServicesDeleteSample.ts +++ b/sdk/communication/arm-communication/samples-dev/communicationServicesDeleteSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Operation to delete a CommunicationService. * * @summary Operation to delete a CommunicationService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/delete.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/delete.json */ async function deleteResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; diff --git a/sdk/communication/arm-communication/samples-dev/communicationServicesGetSample.ts b/sdk/communication/arm-communication/samples-dev/communicationServicesGetSample.ts index 512c1395c5b7..ee92661d5eb8 100644 --- a/sdk/communication/arm-communication/samples-dev/communicationServicesGetSample.ts +++ b/sdk/communication/arm-communication/samples-dev/communicationServicesGetSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Get the CommunicationService and its properties. * * @summary Get the CommunicationService and its properties. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/get.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/get.json */ async function getResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; diff --git a/sdk/communication/arm-communication/samples-dev/communicationServicesLinkNotificationHubSample.ts b/sdk/communication/arm-communication/samples-dev/communicationServicesLinkNotificationHubSample.ts index 42696f3f4211..4a114b2b5476 100644 --- a/sdk/communication/arm-communication/samples-dev/communicationServicesLinkNotificationHubSample.ts +++ b/sdk/communication/arm-communication/samples-dev/communicationServicesLinkNotificationHubSample.ts @@ -22,11 +22,12 @@ dotenv.config(); * This sample demonstrates how to Links an Azure Notification Hub to this communication service. * * @summary Links an Azure Notification Hub to this communication service. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/linkNotificationHub.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/linkNotificationHub.json */ async function linkNotificationHub() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; @@ -34,7 +35,7 @@ async function linkNotificationHub() { connectionString: "Endpoint=sb://MyNamespace.servicebus.windows.net/;SharedAccessKey=abcd1234", resourceId: - "/subscriptions/12345/resourceGroups/MyOtherResourceGroup/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub" + "/subscriptions/11112222-3333-4444-5555-666677778888/resourceGroups/MyOtherResourceGroup/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub" }; const options: CommunicationServicesLinkNotificationHubOptionalParams = { linkNotificationHubParameters diff --git a/sdk/communication/arm-communication/samples-dev/communicationServicesListByResourceGroupSample.ts b/sdk/communication/arm-communication/samples-dev/communicationServicesListByResourceGroupSample.ts index 9936f7debfb6..e3c10041c496 100644 --- a/sdk/communication/arm-communication/samples-dev/communicationServicesListByResourceGroupSample.ts +++ b/sdk/communication/arm-communication/samples-dev/communicationServicesListByResourceGroupSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Handles requests to list all resources in a resource group. * * @summary Handles requests to list all resources in a resource group. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listByResourceGroup.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listByResourceGroup.json */ async function listByResourceGroup() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const credential = new DefaultAzureCredential(); diff --git a/sdk/communication/arm-communication/samples-dev/communicationServicesListBySubscriptionSample.ts b/sdk/communication/arm-communication/samples-dev/communicationServicesListBySubscriptionSample.ts index df19cd132bf3..48e7b844b0cc 100644 --- a/sdk/communication/arm-communication/samples-dev/communicationServicesListBySubscriptionSample.ts +++ b/sdk/communication/arm-communication/samples-dev/communicationServicesListBySubscriptionSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Handles requests to list all resources in a subscription. * * @summary Handles requests to list all resources in a subscription. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listBySubscription.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listBySubscription.json */ async function listBySubscription() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient( credential, diff --git a/sdk/communication/arm-communication/samples-dev/communicationServicesListKeysSample.ts b/sdk/communication/arm-communication/samples-dev/communicationServicesListKeysSample.ts index 3c1a0ed29d40..9ca7346323cd 100644 --- a/sdk/communication/arm-communication/samples-dev/communicationServicesListKeysSample.ts +++ b/sdk/communication/arm-communication/samples-dev/communicationServicesListKeysSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Get the access keys of the CommunicationService resource. * * @summary Get the access keys of the CommunicationService resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listKeys.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listKeys.json */ async function listKeys() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; diff --git a/sdk/communication/arm-communication/samples-dev/communicationServicesRegenerateKeySample.ts b/sdk/communication/arm-communication/samples-dev/communicationServicesRegenerateKeySample.ts index cd190aa6b866..226cf5ef7cd1 100644 --- a/sdk/communication/arm-communication/samples-dev/communicationServicesRegenerateKeySample.ts +++ b/sdk/communication/arm-communication/samples-dev/communicationServicesRegenerateKeySample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time. * * @summary Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/regenerateKey.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/regenerateKey.json */ async function regenerateKey() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; @@ -35,7 +36,7 @@ async function regenerateKey() { credential, subscriptionId ); - const result = await client.communicationServices.beginRegenerateKeyAndWait( + const result = await client.communicationServices.regenerateKey( resourceGroupName, communicationServiceName, parameters diff --git a/sdk/communication/arm-communication/samples-dev/communicationServicesUpdateSample.ts b/sdk/communication/arm-communication/samples-dev/communicationServicesUpdateSample.ts index c999a00cd0e1..ad0297dac64a 100644 --- a/sdk/communication/arm-communication/samples-dev/communicationServicesUpdateSample.ts +++ b/sdk/communication/arm-communication/samples-dev/communicationServicesUpdateSample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Operation to update an existing CommunicationService. * * @summary Operation to update an existing CommunicationService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/update.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/update.json */ async function updateResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; @@ -37,7 +38,7 @@ async function updateResource() { credential, subscriptionId ); - const result = await client.communicationServices.beginUpdateAndWait( + const result = await client.communicationServices.update( resourceGroupName, communicationServiceName, parameters diff --git a/sdk/communication/arm-communication/samples-dev/domainsCancelVerificationSample.ts b/sdk/communication/arm-communication/samples-dev/domainsCancelVerificationSample.ts index 9494731f254d..3ca20312170d 100644 --- a/sdk/communication/arm-communication/samples-dev/domainsCancelVerificationSample.ts +++ b/sdk/communication/arm-communication/samples-dev/domainsCancelVerificationSample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Cancel verification of DNS record. * * @summary Cancel verification of DNS record. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/cancelVerification.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/cancelVerification.json */ async function cancelVerification() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples-dev/domainsCreateOrUpdateSample.ts b/sdk/communication/arm-communication/samples-dev/domainsCreateOrUpdateSample.ts index 29764df9682e..9243d73d31ed 100644 --- a/sdk/communication/arm-communication/samples-dev/domainsCreateOrUpdateSample.ts +++ b/sdk/communication/arm-communication/samples-dev/domainsCreateOrUpdateSample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. * * @summary Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/createOrUpdate.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/createOrUpdate.json */ async function createOrUpdateDomainsResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples-dev/domainsDeleteSample.ts b/sdk/communication/arm-communication/samples-dev/domainsDeleteSample.ts index cd70385ad84a..b66f12ab2e5e 100644 --- a/sdk/communication/arm-communication/samples-dev/domainsDeleteSample.ts +++ b/sdk/communication/arm-communication/samples-dev/domainsDeleteSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Operation to delete a Domains resource. * * @summary Operation to delete a Domains resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/delete.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/delete.json */ async function deleteDomainsResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples-dev/domainsGetSample.ts b/sdk/communication/arm-communication/samples-dev/domainsGetSample.ts index 48de117be00e..e12f98c59368 100644 --- a/sdk/communication/arm-communication/samples-dev/domainsGetSample.ts +++ b/sdk/communication/arm-communication/samples-dev/domainsGetSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Get the Domains resource and its properties. * * @summary Get the Domains resource and its properties. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/get.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/get.json */ async function getDomainsResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples-dev/domainsInitiateVerificationSample.ts b/sdk/communication/arm-communication/samples-dev/domainsInitiateVerificationSample.ts index c41fef255cb0..5c28b7e6786c 100644 --- a/sdk/communication/arm-communication/samples-dev/domainsInitiateVerificationSample.ts +++ b/sdk/communication/arm-communication/samples-dev/domainsInitiateVerificationSample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Initiate verification of DNS record. * * @summary Initiate verification of DNS record. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/initiateVerification.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/initiateVerification.json */ async function initiateVerification() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples-dev/domainsListByEmailServiceResourceSample.ts b/sdk/communication/arm-communication/samples-dev/domainsListByEmailServiceResourceSample.ts index 6fb586c7e38f..0a78fd2262f6 100644 --- a/sdk/communication/arm-communication/samples-dev/domainsListByEmailServiceResourceSample.ts +++ b/sdk/communication/arm-communication/samples-dev/domainsListByEmailServiceResourceSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Handles requests to list all Domains resources under the parent EmailServices resource. * * @summary Handles requests to list all Domains resources under the parent EmailServices resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/listByEmailService.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/listByEmailService.json */ async function listDomainsResourcesByEmailServiceName() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples-dev/domainsUpdateSample.ts b/sdk/communication/arm-communication/samples-dev/domainsUpdateSample.ts index c37fcf97d74c..bb1accadde18 100644 --- a/sdk/communication/arm-communication/samples-dev/domainsUpdateSample.ts +++ b/sdk/communication/arm-communication/samples-dev/domainsUpdateSample.ts @@ -21,18 +21,18 @@ dotenv.config(); * This sample demonstrates how to Operation to update an existing Domains resource. * * @summary Operation to update an existing Domains resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/update.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/update.json */ async function updateDomainsResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; const domainName = "mydomain.com"; const parameters: UpdateDomainRequestParameters = { - userEngagementTracking: "Enabled", - validSenderUsernames: { info: "MyDomain Info", alerts: "MyDomain Alerts" } + userEngagementTracking: "Enabled" }; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient( diff --git a/sdk/communication/arm-communication/samples-dev/emailServicesCreateOrUpdateSample.ts b/sdk/communication/arm-communication/samples-dev/emailServicesCreateOrUpdateSample.ts index 1bee078363b4..0303c0116871 100644 --- a/sdk/communication/arm-communication/samples-dev/emailServicesCreateOrUpdateSample.ts +++ b/sdk/communication/arm-communication/samples-dev/emailServicesCreateOrUpdateSample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Create a new EmailService or update an existing EmailService. * * @summary Create a new EmailService or update an existing EmailService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/createOrUpdate.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/createOrUpdate.json */ async function createOrUpdateEmailServiceResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples-dev/emailServicesDeleteSample.ts b/sdk/communication/arm-communication/samples-dev/emailServicesDeleteSample.ts index 75fccd7d848c..38a432965b3f 100644 --- a/sdk/communication/arm-communication/samples-dev/emailServicesDeleteSample.ts +++ b/sdk/communication/arm-communication/samples-dev/emailServicesDeleteSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Operation to delete a EmailService. * * @summary Operation to delete a EmailService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/delete.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/delete.json */ async function deleteEmailServiceResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples-dev/emailServicesGetSample.ts b/sdk/communication/arm-communication/samples-dev/emailServicesGetSample.ts index 99003588bed1..0e942a4aea87 100644 --- a/sdk/communication/arm-communication/samples-dev/emailServicesGetSample.ts +++ b/sdk/communication/arm-communication/samples-dev/emailServicesGetSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Get the EmailService and its properties. * * @summary Get the EmailService and its properties. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/get.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/get.json */ async function getEmailServiceResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples-dev/emailServicesListByResourceGroupSample.ts b/sdk/communication/arm-communication/samples-dev/emailServicesListByResourceGroupSample.ts index b1d6f5fcc86a..09dc041e16ea 100644 --- a/sdk/communication/arm-communication/samples-dev/emailServicesListByResourceGroupSample.ts +++ b/sdk/communication/arm-communication/samples-dev/emailServicesListByResourceGroupSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Handles requests to list all resources in a resource group. * * @summary Handles requests to list all resources in a resource group. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/listByResourceGroup.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/listByResourceGroup.json */ async function listEmailServiceResourcesByResourceGroup() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const credential = new DefaultAzureCredential(); diff --git a/sdk/communication/arm-communication/samples-dev/emailServicesListBySubscriptionSample.ts b/sdk/communication/arm-communication/samples-dev/emailServicesListBySubscriptionSample.ts index 43ef1c8872f6..0f96e6ccea12 100644 --- a/sdk/communication/arm-communication/samples-dev/emailServicesListBySubscriptionSample.ts +++ b/sdk/communication/arm-communication/samples-dev/emailServicesListBySubscriptionSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Handles requests to list all resources in a subscription. * * @summary Handles requests to list all resources in a subscription. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/listBySubscription.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/listBySubscription.json */ async function listEmailServiceResourcesBySubscription() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient( credential, diff --git a/sdk/communication/arm-communication/samples-dev/emailServicesListVerifiedExchangeOnlineDomainsSample.ts b/sdk/communication/arm-communication/samples-dev/emailServicesListVerifiedExchangeOnlineDomainsSample.ts index 288a5d35d8bc..2afffaedebe7 100644 --- a/sdk/communication/arm-communication/samples-dev/emailServicesListVerifiedExchangeOnlineDomainsSample.ts +++ b/sdk/communication/arm-communication/samples-dev/emailServicesListVerifiedExchangeOnlineDomainsSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Get a list of domains that are fully verified in Exchange Online. * * @summary Get a list of domains that are fully verified in Exchange Online. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/getVerifiedExchangeOnlineDomains.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/getVerifiedExchangeOnlineDomains.json */ async function getVerifiedExchangeOnlineDomains() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient( credential, diff --git a/sdk/communication/arm-communication/samples-dev/emailServicesUpdateSample.ts b/sdk/communication/arm-communication/samples-dev/emailServicesUpdateSample.ts index 0e8a393b7fc6..2d3aeffa72ba 100644 --- a/sdk/communication/arm-communication/samples-dev/emailServicesUpdateSample.ts +++ b/sdk/communication/arm-communication/samples-dev/emailServicesUpdateSample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Operation to update an existing EmailService. * * @summary Operation to update an existing EmailService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/update.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/update.json */ async function updateEmailServiceResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples-dev/operationsListSample.ts b/sdk/communication/arm-communication/samples-dev/operationsListSample.ts index 934dd6ff2743..0eb42d06ce76 100644 --- a/sdk/communication/arm-communication/samples-dev/operationsListSample.ts +++ b/sdk/communication/arm-communication/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.Communication provider. * * @summary Lists all of the available REST API operations of the Microsoft.Communication provider. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/operationsList.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/operationsList.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/communication/arm-communication/samples-dev/senderUsernamesCreateOrUpdateSample.ts b/sdk/communication/arm-communication/samples-dev/senderUsernamesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..f98d832c1982 --- /dev/null +++ b/sdk/communication/arm-communication/samples-dev/senderUsernamesCreateOrUpdateSample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + SenderUsernameResource, + CommunicationServiceManagementClient +} from "@azure/arm-communication"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. + * + * @summary Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/createOrUpdate.json + */ +async function createOrUpdateSenderUsernamesResource() { + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; + const resourceGroupName = + process.env["COMMUNICATION_RESOURCE_GROUP"] || "contosoResourceGroup"; + const emailServiceName = "contosoEmailService"; + const domainName = "contoso.com"; + const senderUsername = "contosoNewsAlerts"; + const parameters: SenderUsernameResource = { + displayName: "Contoso News Alerts", + username: "contosoNewsAlerts" + }; + const credential = new DefaultAzureCredential(); + const client = new CommunicationServiceManagementClient( + credential, + subscriptionId + ); + const result = await client.senderUsernames.createOrUpdate( + resourceGroupName, + emailServiceName, + domainName, + senderUsername, + parameters + ); + console.log(result); +} + +async function main() { + createOrUpdateSenderUsernamesResource(); +} + +main().catch(console.error); diff --git a/sdk/communication/arm-communication/samples-dev/senderUsernamesDeleteSample.ts b/sdk/communication/arm-communication/samples-dev/senderUsernamesDeleteSample.ts new file mode 100644 index 000000000000..18a396aca9c3 --- /dev/null +++ b/sdk/communication/arm-communication/samples-dev/senderUsernamesDeleteSample.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { CommunicationServiceManagementClient } from "@azure/arm-communication"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Operation to delete a SenderUsernames resource. + * + * @summary Operation to delete a SenderUsernames resource. + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/delete.json + */ +async function deleteSenderUsernamesResource() { + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; + const resourceGroupName = + process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; + const emailServiceName = "MyEmailServiceResource"; + const domainName = "mydomain.com"; + const senderUsername = "contosoNewsAlerts"; + const credential = new DefaultAzureCredential(); + const client = new CommunicationServiceManagementClient( + credential, + subscriptionId + ); + const result = await client.senderUsernames.delete( + resourceGroupName, + emailServiceName, + domainName, + senderUsername + ); + console.log(result); +} + +async function main() { + deleteSenderUsernamesResource(); +} + +main().catch(console.error); diff --git a/sdk/communication/arm-communication/samples-dev/senderUsernamesGetSample.ts b/sdk/communication/arm-communication/samples-dev/senderUsernamesGetSample.ts new file mode 100644 index 000000000000..b743f4f1510e --- /dev/null +++ b/sdk/communication/arm-communication/samples-dev/senderUsernamesGetSample.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { CommunicationServiceManagementClient } from "@azure/arm-communication"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a valid sender username for a domains resource. + * + * @summary Get a valid sender username for a domains resource. + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/get.json + */ +async function getSenderUsernamesResource() { + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; + const resourceGroupName = + process.env["COMMUNICATION_RESOURCE_GROUP"] || "contosoResourceGroup"; + const emailServiceName = "contosoEmailService"; + const domainName = "contoso.com"; + const senderUsername = "contosoNewsAlerts"; + const credential = new DefaultAzureCredential(); + const client = new CommunicationServiceManagementClient( + credential, + subscriptionId + ); + const result = await client.senderUsernames.get( + resourceGroupName, + emailServiceName, + domainName, + senderUsername + ); + console.log(result); +} + +async function main() { + getSenderUsernamesResource(); +} + +main().catch(console.error); diff --git a/sdk/communication/arm-communication/samples-dev/senderUsernamesListByDomainsSample.ts b/sdk/communication/arm-communication/samples-dev/senderUsernamesListByDomainsSample.ts new file mode 100644 index 000000000000..63e8c7c3f912 --- /dev/null +++ b/sdk/communication/arm-communication/samples-dev/senderUsernamesListByDomainsSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { CommunicationServiceManagementClient } from "@azure/arm-communication"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all valid sender usernames for a domains resource. + * + * @summary List all valid sender usernames for a domains resource. + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/listByDomain.json + */ +async function getSenderUsernamesResource() { + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; + const resourceGroupName = + process.env["COMMUNICATION_RESOURCE_GROUP"] || "contosoResourceGroup"; + const emailServiceName = "contosoEmailService"; + const domainName = "contoso.com"; + const credential = new DefaultAzureCredential(); + const client = new CommunicationServiceManagementClient( + credential, + subscriptionId + ); + const resArray = new Array(); + for await (let item of client.senderUsernames.listByDomains( + resourceGroupName, + emailServiceName, + domainName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getSenderUsernamesResource(); +} + +main().catch(console.error); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/README.md b/sdk/communication/arm-communication/samples/v4-beta/javascript/README.md index 775710dc1474..5aad06c6bf34 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/README.md +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/README.md @@ -4,31 +4,35 @@ These sample programs show how to use the JavaScript client libraries for in som | **File Name** | **Description** | | --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [communicationServicesCheckNameAvailabilitySample.js][communicationserviceschecknameavailabilitysample] | Checks that the CommunicationService name is valid and is not already in use. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/checkNameAvailabilityAvailable.json | -| [communicationServicesCreateOrUpdateSample.js][communicationservicescreateorupdatesample] | Create a new CommunicationService or update an existing CommunicationService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/createOrUpdate.json | -| [communicationServicesDeleteSample.js][communicationservicesdeletesample] | Operation to delete a CommunicationService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/delete.json | -| [communicationServicesGetSample.js][communicationservicesgetsample] | Get the CommunicationService and its properties. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/get.json | -| [communicationServicesLinkNotificationHubSample.js][communicationserviceslinknotificationhubsample] | Links an Azure Notification Hub to this communication service. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/linkNotificationHub.json | -| [communicationServicesListByResourceGroupSample.js][communicationserviceslistbyresourcegroupsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listByResourceGroup.json | -| [communicationServicesListBySubscriptionSample.js][communicationserviceslistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listBySubscription.json | -| [communicationServicesListKeysSample.js][communicationserviceslistkeyssample] | Get the access keys of the CommunicationService resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listKeys.json | -| [communicationServicesRegenerateKeySample.js][communicationservicesregeneratekeysample] | Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/regenerateKey.json | -| [communicationServicesUpdateSample.js][communicationservicesupdatesample] | Operation to update an existing CommunicationService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/update.json | -| [domainsCancelVerificationSample.js][domainscancelverificationsample] | Cancel verification of DNS record. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/cancelVerification.json | -| [domainsCreateOrUpdateSample.js][domainscreateorupdatesample] | Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/createOrUpdate.json | -| [domainsDeleteSample.js][domainsdeletesample] | Operation to delete a Domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/delete.json | -| [domainsGetSample.js][domainsgetsample] | Get the Domains resource and its properties. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/get.json | -| [domainsInitiateVerificationSample.js][domainsinitiateverificationsample] | Initiate verification of DNS record. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/initiateVerification.json | -| [domainsListByEmailServiceResourceSample.js][domainslistbyemailserviceresourcesample] | Handles requests to list all Domains resources under the parent EmailServices resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/listByEmailService.json | -| [domainsUpdateSample.js][domainsupdatesample] | Operation to update an existing Domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/update.json | -| [emailServicesCreateOrUpdateSample.js][emailservicescreateorupdatesample] | Create a new EmailService or update an existing EmailService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/createOrUpdate.json | -| [emailServicesDeleteSample.js][emailservicesdeletesample] | Operation to delete a EmailService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/delete.json | -| [emailServicesGetSample.js][emailservicesgetsample] | Get the EmailService and its properties. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/get.json | -| [emailServicesListByResourceGroupSample.js][emailserviceslistbyresourcegroupsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/listByResourceGroup.json | -| [emailServicesListBySubscriptionSample.js][emailserviceslistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/listBySubscription.json | -| [emailServicesListVerifiedExchangeOnlineDomainsSample.js][emailserviceslistverifiedexchangeonlinedomainssample] | Get a list of domains that are fully verified in Exchange Online. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/getVerifiedExchangeOnlineDomains.json | -| [emailServicesUpdateSample.js][emailservicesupdatesample] | Operation to update an existing EmailService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/update.json | -| [operationsListSample.js][operationslistsample] | Lists all of the available REST API operations of the Microsoft.Communication provider. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/operationsList.json | +| [communicationServicesCheckNameAvailabilitySample.js][communicationserviceschecknameavailabilitysample] | Checks that the CommunicationService name is valid and is not already in use. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/checkNameAvailabilityAvailable.json | +| [communicationServicesCreateOrUpdateSample.js][communicationservicescreateorupdatesample] | Create a new CommunicationService or update an existing CommunicationService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/createOrUpdate.json | +| [communicationServicesDeleteSample.js][communicationservicesdeletesample] | Operation to delete a CommunicationService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/delete.json | +| [communicationServicesGetSample.js][communicationservicesgetsample] | Get the CommunicationService and its properties. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/get.json | +| [communicationServicesLinkNotificationHubSample.js][communicationserviceslinknotificationhubsample] | Links an Azure Notification Hub to this communication service. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/linkNotificationHub.json | +| [communicationServicesListByResourceGroupSample.js][communicationserviceslistbyresourcegroupsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listByResourceGroup.json | +| [communicationServicesListBySubscriptionSample.js][communicationserviceslistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listBySubscription.json | +| [communicationServicesListKeysSample.js][communicationserviceslistkeyssample] | Get the access keys of the CommunicationService resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listKeys.json | +| [communicationServicesRegenerateKeySample.js][communicationservicesregeneratekeysample] | Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/regenerateKey.json | +| [communicationServicesUpdateSample.js][communicationservicesupdatesample] | Operation to update an existing CommunicationService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/update.json | +| [domainsCancelVerificationSample.js][domainscancelverificationsample] | Cancel verification of DNS record. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/cancelVerification.json | +| [domainsCreateOrUpdateSample.js][domainscreateorupdatesample] | Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/createOrUpdate.json | +| [domainsDeleteSample.js][domainsdeletesample] | Operation to delete a Domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/delete.json | +| [domainsGetSample.js][domainsgetsample] | Get the Domains resource and its properties. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/get.json | +| [domainsInitiateVerificationSample.js][domainsinitiateverificationsample] | Initiate verification of DNS record. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/initiateVerification.json | +| [domainsListByEmailServiceResourceSample.js][domainslistbyemailserviceresourcesample] | Handles requests to list all Domains resources under the parent EmailServices resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/listByEmailService.json | +| [domainsUpdateSample.js][domainsupdatesample] | Operation to update an existing Domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/update.json | +| [emailServicesCreateOrUpdateSample.js][emailservicescreateorupdatesample] | Create a new EmailService or update an existing EmailService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/createOrUpdate.json | +| [emailServicesDeleteSample.js][emailservicesdeletesample] | Operation to delete a EmailService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/delete.json | +| [emailServicesGetSample.js][emailservicesgetsample] | Get the EmailService and its properties. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/get.json | +| [emailServicesListByResourceGroupSample.js][emailserviceslistbyresourcegroupsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/listByResourceGroup.json | +| [emailServicesListBySubscriptionSample.js][emailserviceslistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/listBySubscription.json | +| [emailServicesListVerifiedExchangeOnlineDomainsSample.js][emailserviceslistverifiedexchangeonlinedomainssample] | Get a list of domains that are fully verified in Exchange Online. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/getVerifiedExchangeOnlineDomains.json | +| [emailServicesUpdateSample.js][emailservicesupdatesample] | Operation to update an existing EmailService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/update.json | +| [operationsListSample.js][operationslistsample] | Lists all of the available REST API operations of the Microsoft.Communication provider. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/operationsList.json | +| [senderUsernamesCreateOrUpdateSample.js][senderusernamescreateorupdatesample] | Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/createOrUpdate.json | +| [senderUsernamesDeleteSample.js][senderusernamesdeletesample] | Operation to delete a SenderUsernames resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/delete.json | +| [senderUsernamesGetSample.js][senderusernamesgetsample] | Get a valid sender username for a domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/get.json | +| [senderUsernamesListByDomainsSample.js][senderusernameslistbydomainssample] | List all valid sender usernames for a domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/listByDomain.json | ## Prerequisites @@ -93,6 +97,10 @@ Take a look at our [API Documentation][apiref] for more information about the AP [emailserviceslistverifiedexchangeonlinedomainssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesListVerifiedExchangeOnlineDomainsSample.js [emailservicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesUpdateSample.js [operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/arm-communication/samples/v4-beta/javascript/operationsListSample.js +[senderusernamescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesCreateOrUpdateSample.js +[senderusernamesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesDeleteSample.js +[senderusernamesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesGetSample.js +[senderusernameslistbydomainssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesListByDomainsSample.js [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-communication?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/communication/arm-communication/README.md diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesCheckNameAvailabilitySample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesCheckNameAvailabilitySample.js index d8ca559fa0ac..a843dea8bf6a 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesCheckNameAvailabilitySample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesCheckNameAvailabilitySample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Checks that the CommunicationService name is valid and is not already in use. * * @summary Checks that the CommunicationService name is valid and is not already in use. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/checkNameAvailabilityAvailable.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/checkNameAvailabilityAvailable.json */ async function checkNameAvailabilityAvailable() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const nameAvailabilityParameters = { name: "MyCommunicationService", type: "Microsoft.Communication/CommunicationServices", @@ -36,10 +37,11 @@ async function checkNameAvailabilityAvailable() { * This sample demonstrates how to Checks that the CommunicationService name is valid and is not already in use. * * @summary Checks that the CommunicationService name is valid and is not already in use. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/checkNameAvailabilityUnavailable.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/checkNameAvailabilityUnavailable.json */ async function checkNameAvailabilityUnavailable() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const nameAvailabilityParameters = { name: "MyCommunicationService", type: "Microsoft.Communication/CommunicationServices", diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesCreateOrUpdateSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesCreateOrUpdateSample.js index 4b679231b530..8896d57420f8 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesCreateOrUpdateSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesCreateOrUpdateSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Create a new CommunicationService or update an existing CommunicationService. * * @summary Create a new CommunicationService or update an existing CommunicationService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/createOrUpdate.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/createOrUpdate.json */ async function createOrUpdateResource() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; const parameters = { diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesDeleteSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesDeleteSample.js index 8bae2eaa5a08..d1f18973eaf8 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesDeleteSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesDeleteSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Operation to delete a CommunicationService. * * @summary Operation to delete a CommunicationService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/delete.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/delete.json */ async function deleteResource() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; const credential = new DefaultAzureCredential(); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesGetSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesGetSample.js index 69cf8b18e617..f8a3e9c67e98 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesGetSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesGetSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Get the CommunicationService and its properties. * * @summary Get the CommunicationService and its properties. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/get.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/get.json */ async function getResource() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; const credential = new DefaultAzureCredential(); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesLinkNotificationHubSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesLinkNotificationHubSample.js index cde8da04bef9..ee4ecbea722c 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesLinkNotificationHubSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesLinkNotificationHubSample.js @@ -16,16 +16,17 @@ require("dotenv").config(); * This sample demonstrates how to Links an Azure Notification Hub to this communication service. * * @summary Links an Azure Notification Hub to this communication service. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/linkNotificationHub.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/linkNotificationHub.json */ async function linkNotificationHub() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; const linkNotificationHubParameters = { connectionString: "Endpoint=sb://MyNamespace.servicebus.windows.net/;SharedAccessKey=abcd1234", resourceId: - "/subscriptions/12345/resourceGroups/MyOtherResourceGroup/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub", + "/subscriptions/11112222-3333-4444-5555-666677778888/resourceGroups/MyOtherResourceGroup/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub", }; const options = { linkNotificationHubParameters, diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesListByResourceGroupSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesListByResourceGroupSample.js index 1b93ce93c66d..f79dac245d67 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesListByResourceGroupSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesListByResourceGroupSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Handles requests to list all resources in a resource group. * * @summary Handles requests to list all resources in a resource group. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listByResourceGroup.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listByResourceGroup.json */ async function listByResourceGroup() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient(credential, subscriptionId); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesListBySubscriptionSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesListBySubscriptionSample.js index af6e5571e76a..6e1bffa3931b 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesListBySubscriptionSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesListBySubscriptionSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Handles requests to list all resources in a subscription. * * @summary Handles requests to list all resources in a subscription. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listBySubscription.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listBySubscription.json */ async function listBySubscription() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient(credential, subscriptionId); const resArray = new Array(); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesListKeysSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesListKeysSample.js index c4671be7cd27..839fcfb7df96 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesListKeysSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesListKeysSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Get the access keys of the CommunicationService resource. * * @summary Get the access keys of the CommunicationService resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listKeys.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listKeys.json */ async function listKeys() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; const credential = new DefaultAzureCredential(); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesRegenerateKeySample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesRegenerateKeySample.js index 341b2fa0beed..2487182e3115 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesRegenerateKeySample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesRegenerateKeySample.js @@ -16,16 +16,17 @@ require("dotenv").config(); * This sample demonstrates how to Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time. * * @summary Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/regenerateKey.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/regenerateKey.json */ async function regenerateKey() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; const parameters = { keyType: "Primary" }; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient(credential, subscriptionId); - const result = await client.communicationServices.beginRegenerateKeyAndWait( + const result = await client.communicationServices.regenerateKey( resourceGroupName, communicationServiceName, parameters diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesUpdateSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesUpdateSample.js index c0393e10c2ea..40babb048b29 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesUpdateSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/communicationServicesUpdateSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Operation to update an existing CommunicationService. * * @summary Operation to update an existing CommunicationService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/update.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/update.json */ async function updateResource() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; const parameters = { @@ -27,7 +28,7 @@ async function updateResource() { }; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient(credential, subscriptionId); - const result = await client.communicationServices.beginUpdateAndWait( + const result = await client.communicationServices.update( resourceGroupName, communicationServiceName, parameters diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsCancelVerificationSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsCancelVerificationSample.js index 244cd0d2df43..7f66b8eca3a6 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsCancelVerificationSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsCancelVerificationSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Cancel verification of DNS record. * * @summary Cancel verification of DNS record. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/cancelVerification.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/cancelVerification.json */ async function cancelVerification() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; const domainName = "mydomain.com"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsCreateOrUpdateSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsCreateOrUpdateSample.js index fd9e98570726..95c7b199902d 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsCreateOrUpdateSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsCreateOrUpdateSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. * * @summary Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/createOrUpdate.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/createOrUpdate.json */ async function createOrUpdateDomainsResource() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; const domainName = "mydomain.com"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsDeleteSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsDeleteSample.js index bbd365961b92..21275f4cb594 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsDeleteSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsDeleteSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Operation to delete a Domains resource. * * @summary Operation to delete a Domains resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/delete.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/delete.json */ async function deleteDomainsResource() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; const domainName = "mydomain.com"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsGetSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsGetSample.js index 720a2737c23f..9e901305eeaf 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsGetSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsGetSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Get the Domains resource and its properties. * * @summary Get the Domains resource and its properties. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/get.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/get.json */ async function getDomainsResource() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; const domainName = "mydomain.com"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsInitiateVerificationSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsInitiateVerificationSample.js index 990350ea1106..ad5d086e0b79 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsInitiateVerificationSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsInitiateVerificationSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Initiate verification of DNS record. * * @summary Initiate verification of DNS record. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/initiateVerification.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/initiateVerification.json */ async function initiateVerification() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; const domainName = "mydomain.com"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsListByEmailServiceResourceSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsListByEmailServiceResourceSample.js index 73b95390bf70..173ae8f277bc 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsListByEmailServiceResourceSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsListByEmailServiceResourceSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Handles requests to list all Domains resources under the parent EmailServices resource. * * @summary Handles requests to list all Domains resources under the parent EmailServices resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/listByEmailService.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/listByEmailService.json */ async function listDomainsResourcesByEmailServiceName() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; const credential = new DefaultAzureCredential(); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsUpdateSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsUpdateSample.js index 1bfe06e78a62..94768417e837 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsUpdateSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/domainsUpdateSample.js @@ -16,16 +16,16 @@ require("dotenv").config(); * This sample demonstrates how to Operation to update an existing Domains resource. * * @summary Operation to update an existing Domains resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/update.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/update.json */ async function updateDomainsResource() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; const domainName = "mydomain.com"; const parameters = { userEngagementTracking: "Enabled", - validSenderUsernames: { info: "MyDomain Info", alerts: "MyDomain Alerts" }, }; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient(credential, subscriptionId); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesCreateOrUpdateSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesCreateOrUpdateSample.js index f1320258d54e..6f857750c2a7 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesCreateOrUpdateSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesCreateOrUpdateSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Create a new EmailService or update an existing EmailService. * * @summary Create a new EmailService or update an existing EmailService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/createOrUpdate.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/createOrUpdate.json */ async function createOrUpdateEmailServiceResource() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; const parameters = { diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesDeleteSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesDeleteSample.js index d82d52fa7703..199101f646cf 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesDeleteSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesDeleteSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Operation to delete a EmailService. * * @summary Operation to delete a EmailService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/delete.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/delete.json */ async function deleteEmailServiceResource() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; const credential = new DefaultAzureCredential(); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesGetSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesGetSample.js index 8b80185a7e45..0b47bc007e45 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesGetSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesGetSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Get the EmailService and its properties. * * @summary Get the EmailService and its properties. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/get.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/get.json */ async function getEmailServiceResource() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; const credential = new DefaultAzureCredential(); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesListByResourceGroupSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesListByResourceGroupSample.js index 2e7eb070f0f7..eb92c426d967 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesListByResourceGroupSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesListByResourceGroupSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Handles requests to list all resources in a resource group. * * @summary Handles requests to list all resources in a resource group. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/listByResourceGroup.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/listByResourceGroup.json */ async function listEmailServiceResourcesByResourceGroup() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient(credential, subscriptionId); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesListBySubscriptionSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesListBySubscriptionSample.js index 86b8a2211bb6..e4b9f089d25a 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesListBySubscriptionSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesListBySubscriptionSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Handles requests to list all resources in a subscription. * * @summary Handles requests to list all resources in a subscription. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/listBySubscription.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/listBySubscription.json */ async function listEmailServiceResourcesBySubscription() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient(credential, subscriptionId); const resArray = new Array(); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesListVerifiedExchangeOnlineDomainsSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesListVerifiedExchangeOnlineDomainsSample.js index 4d6fe8915a5a..4bd2ea9b345b 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesListVerifiedExchangeOnlineDomainsSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesListVerifiedExchangeOnlineDomainsSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Get a list of domains that are fully verified in Exchange Online. * * @summary Get a list of domains that are fully verified in Exchange Online. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/getVerifiedExchangeOnlineDomains.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/getVerifiedExchangeOnlineDomains.json */ async function getVerifiedExchangeOnlineDomains() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient(credential, subscriptionId); const result = await client.emailServices.listVerifiedExchangeOnlineDomains(); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesUpdateSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesUpdateSample.js index fa380e1597fe..2143b68a5169 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesUpdateSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/emailServicesUpdateSample.js @@ -16,10 +16,11 @@ require("dotenv").config(); * This sample demonstrates how to Operation to update an existing EmailService. * * @summary Operation to update an existing EmailService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/update.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/update.json */ async function updateEmailServiceResource() { - const subscriptionId = process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; const parameters = { tags: { newTag: "newVal" } }; diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/operationsListSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/operationsListSample.js index afd9913b3d16..64f647c57d6b 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/javascript/operationsListSample.js +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.Communication provider. * * @summary Lists all of the available REST API operations of the Microsoft.Communication provider. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/operationsList.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/operationsList.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesCreateOrUpdateSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesCreateOrUpdateSample.js new file mode 100644 index 000000000000..c755916bc9ad --- /dev/null +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesCreateOrUpdateSample.js @@ -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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { CommunicationServiceManagementClient } = require("@azure/arm-communication"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. + * + * @summary Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/createOrUpdate.json + */ +async function createOrUpdateSenderUsernamesResource() { + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; + const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "contosoResourceGroup"; + const emailServiceName = "contosoEmailService"; + const domainName = "contoso.com"; + const senderUsername = "contosoNewsAlerts"; + const parameters = { + displayName: "Contoso News Alerts", + username: "contosoNewsAlerts", + }; + const credential = new DefaultAzureCredential(); + const client = new CommunicationServiceManagementClient(credential, subscriptionId); + const result = await client.senderUsernames.createOrUpdate( + resourceGroupName, + emailServiceName, + domainName, + senderUsername, + parameters + ); + console.log(result); +} + +async function main() { + createOrUpdateSenderUsernamesResource(); +} + +main().catch(console.error); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesDeleteSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesDeleteSample.js new file mode 100644 index 000000000000..7c9eca5f1757 --- /dev/null +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesDeleteSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { CommunicationServiceManagementClient } = require("@azure/arm-communication"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Operation to delete a SenderUsernames resource. + * + * @summary Operation to delete a SenderUsernames resource. + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/delete.json + */ +async function deleteSenderUsernamesResource() { + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; + const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; + const emailServiceName = "MyEmailServiceResource"; + const domainName = "mydomain.com"; + const senderUsername = "contosoNewsAlerts"; + const credential = new DefaultAzureCredential(); + const client = new CommunicationServiceManagementClient(credential, subscriptionId); + const result = await client.senderUsernames.delete( + resourceGroupName, + emailServiceName, + domainName, + senderUsername + ); + console.log(result); +} + +async function main() { + deleteSenderUsernamesResource(); +} + +main().catch(console.error); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesGetSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesGetSample.js new file mode 100644 index 000000000000..2927b20c7355 --- /dev/null +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesGetSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { CommunicationServiceManagementClient } = require("@azure/arm-communication"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get a valid sender username for a domains resource. + * + * @summary Get a valid sender username for a domains resource. + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/get.json + */ +async function getSenderUsernamesResource() { + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; + const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "contosoResourceGroup"; + const emailServiceName = "contosoEmailService"; + const domainName = "contoso.com"; + const senderUsername = "contosoNewsAlerts"; + const credential = new DefaultAzureCredential(); + const client = new CommunicationServiceManagementClient(credential, subscriptionId); + const result = await client.senderUsernames.get( + resourceGroupName, + emailServiceName, + domainName, + senderUsername + ); + console.log(result); +} + +async function main() { + getSenderUsernamesResource(); +} + +main().catch(console.error); diff --git a/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesListByDomainsSample.js b/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesListByDomainsSample.js new file mode 100644 index 000000000000..dcb192e56679 --- /dev/null +++ b/sdk/communication/arm-communication/samples/v4-beta/javascript/senderUsernamesListByDomainsSample.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { CommunicationServiceManagementClient } = require("@azure/arm-communication"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List all valid sender usernames for a domains resource. + * + * @summary List all valid sender usernames for a domains resource. + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/listByDomain.json + */ +async function getSenderUsernamesResource() { + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "11112222-3333-4444-5555-666677778888"; + const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "contosoResourceGroup"; + const emailServiceName = "contosoEmailService"; + const domainName = "contoso.com"; + const credential = new DefaultAzureCredential(); + const client = new CommunicationServiceManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.senderUsernames.listByDomains( + resourceGroupName, + emailServiceName, + domainName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getSenderUsernamesResource(); +} + +main().catch(console.error); diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/README.md b/sdk/communication/arm-communication/samples/v4-beta/typescript/README.md index c12755bc13c1..8fb71ede460e 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/README.md +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/README.md @@ -4,31 +4,35 @@ These sample programs show how to use the TypeScript client libraries for in som | **File Name** | **Description** | | --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [communicationServicesCheckNameAvailabilitySample.ts][communicationserviceschecknameavailabilitysample] | Checks that the CommunicationService name is valid and is not already in use. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/checkNameAvailabilityAvailable.json | -| [communicationServicesCreateOrUpdateSample.ts][communicationservicescreateorupdatesample] | Create a new CommunicationService or update an existing CommunicationService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/createOrUpdate.json | -| [communicationServicesDeleteSample.ts][communicationservicesdeletesample] | Operation to delete a CommunicationService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/delete.json | -| [communicationServicesGetSample.ts][communicationservicesgetsample] | Get the CommunicationService and its properties. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/get.json | -| [communicationServicesLinkNotificationHubSample.ts][communicationserviceslinknotificationhubsample] | Links an Azure Notification Hub to this communication service. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/linkNotificationHub.json | -| [communicationServicesListByResourceGroupSample.ts][communicationserviceslistbyresourcegroupsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listByResourceGroup.json | -| [communicationServicesListBySubscriptionSample.ts][communicationserviceslistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listBySubscription.json | -| [communicationServicesListKeysSample.ts][communicationserviceslistkeyssample] | Get the access keys of the CommunicationService resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listKeys.json | -| [communicationServicesRegenerateKeySample.ts][communicationservicesregeneratekeysample] | Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/regenerateKey.json | -| [communicationServicesUpdateSample.ts][communicationservicesupdatesample] | Operation to update an existing CommunicationService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/update.json | -| [domainsCancelVerificationSample.ts][domainscancelverificationsample] | Cancel verification of DNS record. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/cancelVerification.json | -| [domainsCreateOrUpdateSample.ts][domainscreateorupdatesample] | Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/createOrUpdate.json | -| [domainsDeleteSample.ts][domainsdeletesample] | Operation to delete a Domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/delete.json | -| [domainsGetSample.ts][domainsgetsample] | Get the Domains resource and its properties. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/get.json | -| [domainsInitiateVerificationSample.ts][domainsinitiateverificationsample] | Initiate verification of DNS record. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/initiateVerification.json | -| [domainsListByEmailServiceResourceSample.ts][domainslistbyemailserviceresourcesample] | Handles requests to list all Domains resources under the parent EmailServices resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/listByEmailService.json | -| [domainsUpdateSample.ts][domainsupdatesample] | Operation to update an existing Domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/update.json | -| [emailServicesCreateOrUpdateSample.ts][emailservicescreateorupdatesample] | Create a new EmailService or update an existing EmailService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/createOrUpdate.json | -| [emailServicesDeleteSample.ts][emailservicesdeletesample] | Operation to delete a EmailService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/delete.json | -| [emailServicesGetSample.ts][emailservicesgetsample] | Get the EmailService and its properties. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/get.json | -| [emailServicesListByResourceGroupSample.ts][emailserviceslistbyresourcegroupsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/listByResourceGroup.json | -| [emailServicesListBySubscriptionSample.ts][emailserviceslistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/listBySubscription.json | -| [emailServicesListVerifiedExchangeOnlineDomainsSample.ts][emailserviceslistverifiedexchangeonlinedomainssample] | Get a list of domains that are fully verified in Exchange Online. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/getVerifiedExchangeOnlineDomains.json | -| [emailServicesUpdateSample.ts][emailservicesupdatesample] | Operation to update an existing EmailService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/update.json | -| [operationsListSample.ts][operationslistsample] | Lists all of the available REST API operations of the Microsoft.Communication provider. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/operationsList.json | +| [communicationServicesCheckNameAvailabilitySample.ts][communicationserviceschecknameavailabilitysample] | Checks that the CommunicationService name is valid and is not already in use. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/checkNameAvailabilityAvailable.json | +| [communicationServicesCreateOrUpdateSample.ts][communicationservicescreateorupdatesample] | Create a new CommunicationService or update an existing CommunicationService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/createOrUpdate.json | +| [communicationServicesDeleteSample.ts][communicationservicesdeletesample] | Operation to delete a CommunicationService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/delete.json | +| [communicationServicesGetSample.ts][communicationservicesgetsample] | Get the CommunicationService and its properties. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/get.json | +| [communicationServicesLinkNotificationHubSample.ts][communicationserviceslinknotificationhubsample] | Links an Azure Notification Hub to this communication service. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/linkNotificationHub.json | +| [communicationServicesListByResourceGroupSample.ts][communicationserviceslistbyresourcegroupsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listByResourceGroup.json | +| [communicationServicesListBySubscriptionSample.ts][communicationserviceslistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listBySubscription.json | +| [communicationServicesListKeysSample.ts][communicationserviceslistkeyssample] | Get the access keys of the CommunicationService resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listKeys.json | +| [communicationServicesRegenerateKeySample.ts][communicationservicesregeneratekeysample] | Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/regenerateKey.json | +| [communicationServicesUpdateSample.ts][communicationservicesupdatesample] | Operation to update an existing CommunicationService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/update.json | +| [domainsCancelVerificationSample.ts][domainscancelverificationsample] | Cancel verification of DNS record. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/cancelVerification.json | +| [domainsCreateOrUpdateSample.ts][domainscreateorupdatesample] | Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/createOrUpdate.json | +| [domainsDeleteSample.ts][domainsdeletesample] | Operation to delete a Domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/delete.json | +| [domainsGetSample.ts][domainsgetsample] | Get the Domains resource and its properties. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/get.json | +| [domainsInitiateVerificationSample.ts][domainsinitiateverificationsample] | Initiate verification of DNS record. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/initiateVerification.json | +| [domainsListByEmailServiceResourceSample.ts][domainslistbyemailserviceresourcesample] | Handles requests to list all Domains resources under the parent EmailServices resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/listByEmailService.json | +| [domainsUpdateSample.ts][domainsupdatesample] | Operation to update an existing Domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/update.json | +| [emailServicesCreateOrUpdateSample.ts][emailservicescreateorupdatesample] | Create a new EmailService or update an existing EmailService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/createOrUpdate.json | +| [emailServicesDeleteSample.ts][emailservicesdeletesample] | Operation to delete a EmailService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/delete.json | +| [emailServicesGetSample.ts][emailservicesgetsample] | Get the EmailService and its properties. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/get.json | +| [emailServicesListByResourceGroupSample.ts][emailserviceslistbyresourcegroupsample] | Handles requests to list all resources in a resource group. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/listByResourceGroup.json | +| [emailServicesListBySubscriptionSample.ts][emailserviceslistbysubscriptionsample] | Handles requests to list all resources in a subscription. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/listBySubscription.json | +| [emailServicesListVerifiedExchangeOnlineDomainsSample.ts][emailserviceslistverifiedexchangeonlinedomainssample] | Get a list of domains that are fully verified in Exchange Online. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/getVerifiedExchangeOnlineDomains.json | +| [emailServicesUpdateSample.ts][emailservicesupdatesample] | Operation to update an existing EmailService. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/update.json | +| [operationsListSample.ts][operationslistsample] | Lists all of the available REST API operations of the Microsoft.Communication provider. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/operationsList.json | +| [senderUsernamesCreateOrUpdateSample.ts][senderusernamescreateorupdatesample] | Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/createOrUpdate.json | +| [senderUsernamesDeleteSample.ts][senderusernamesdeletesample] | Operation to delete a SenderUsernames resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/delete.json | +| [senderUsernamesGetSample.ts][senderusernamesgetsample] | Get a valid sender username for a domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/get.json | +| [senderUsernamesListByDomainsSample.ts][senderusernameslistbydomainssample] | List all valid sender usernames for a domains resource. x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/listByDomain.json | ## Prerequisites @@ -105,6 +109,10 @@ Take a look at our [API Documentation][apiref] for more information about the AP [emailserviceslistverifiedexchangeonlinedomainssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesListVerifiedExchangeOnlineDomainsSample.ts [emailservicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesUpdateSample.ts [operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/arm-communication/samples/v4-beta/typescript/src/operationsListSample.ts +[senderusernamescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesCreateOrUpdateSample.ts +[senderusernamesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesDeleteSample.ts +[senderusernamesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesGetSample.ts +[senderusernameslistbydomainssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesListByDomainsSample.ts [apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-communication?view=azure-node-preview [freesub]: https://azure.microsoft.com/free/ [package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/communication/arm-communication/README.md diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesCheckNameAvailabilitySample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesCheckNameAvailabilitySample.ts index 76129e5cfaef..33647385197b 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesCheckNameAvailabilitySample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesCheckNameAvailabilitySample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Checks that the CommunicationService name is valid and is not already in use. * * @summary Checks that the CommunicationService name is valid and is not already in use. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/checkNameAvailabilityAvailable.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/checkNameAvailabilityAvailable.json */ async function checkNameAvailabilityAvailable() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const nameAvailabilityParameters: NameAvailabilityParameters = { name: "MyCommunicationService", type: "Microsoft.Communication/CommunicationServices" @@ -45,11 +46,12 @@ async function checkNameAvailabilityAvailable() { * This sample demonstrates how to Checks that the CommunicationService name is valid and is not already in use. * * @summary Checks that the CommunicationService name is valid and is not already in use. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/checkNameAvailabilityUnavailable.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/checkNameAvailabilityUnavailable.json */ async function checkNameAvailabilityUnavailable() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const nameAvailabilityParameters: NameAvailabilityParameters = { name: "MyCommunicationService", type: "Microsoft.Communication/CommunicationServices" diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesCreateOrUpdateSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesCreateOrUpdateSample.ts index 57cddc851d6e..cc88b0368e2d 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesCreateOrUpdateSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesCreateOrUpdateSample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Create a new CommunicationService or update an existing CommunicationService. * * @summary Create a new CommunicationService or update an existing CommunicationService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/createOrUpdate.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/createOrUpdate.json */ async function createOrUpdateResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesDeleteSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesDeleteSample.ts index a0ccd019aa5a..5625d5e1f289 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesDeleteSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesDeleteSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Operation to delete a CommunicationService. * * @summary Operation to delete a CommunicationService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/delete.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/delete.json */ async function deleteResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesGetSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesGetSample.ts index 512c1395c5b7..ee92661d5eb8 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesGetSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesGetSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Get the CommunicationService and its properties. * * @summary Get the CommunicationService and its properties. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/get.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/get.json */ async function getResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesLinkNotificationHubSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesLinkNotificationHubSample.ts index 42696f3f4211..4a114b2b5476 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesLinkNotificationHubSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesLinkNotificationHubSample.ts @@ -22,11 +22,12 @@ dotenv.config(); * This sample demonstrates how to Links an Azure Notification Hub to this communication service. * * @summary Links an Azure Notification Hub to this communication service. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/linkNotificationHub.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/linkNotificationHub.json */ async function linkNotificationHub() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; @@ -34,7 +35,7 @@ async function linkNotificationHub() { connectionString: "Endpoint=sb://MyNamespace.servicebus.windows.net/;SharedAccessKey=abcd1234", resourceId: - "/subscriptions/12345/resourceGroups/MyOtherResourceGroup/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub" + "/subscriptions/11112222-3333-4444-5555-666677778888/resourceGroups/MyOtherResourceGroup/providers/Microsoft.NotificationHubs/namespaces/MyNamespace/notificationHubs/MyHub" }; const options: CommunicationServicesLinkNotificationHubOptionalParams = { linkNotificationHubParameters diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesListByResourceGroupSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesListByResourceGroupSample.ts index 9936f7debfb6..e3c10041c496 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesListByResourceGroupSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesListByResourceGroupSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Handles requests to list all resources in a resource group. * * @summary Handles requests to list all resources in a resource group. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listByResourceGroup.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listByResourceGroup.json */ async function listByResourceGroup() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const credential = new DefaultAzureCredential(); diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesListBySubscriptionSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesListBySubscriptionSample.ts index df19cd132bf3..48e7b844b0cc 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesListBySubscriptionSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesListBySubscriptionSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Handles requests to list all resources in a subscription. * * @summary Handles requests to list all resources in a subscription. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listBySubscription.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listBySubscription.json */ async function listBySubscription() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient( credential, diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesListKeysSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesListKeysSample.ts index 3c1a0ed29d40..9ca7346323cd 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesListKeysSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesListKeysSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Get the access keys of the CommunicationService resource. * * @summary Get the access keys of the CommunicationService resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/listKeys.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/listKeys.json */ async function listKeys() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesRegenerateKeySample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesRegenerateKeySample.ts index cd190aa6b866..226cf5ef7cd1 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesRegenerateKeySample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesRegenerateKeySample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time. * * @summary Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/regenerateKey.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/regenerateKey.json */ async function regenerateKey() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; @@ -35,7 +36,7 @@ async function regenerateKey() { credential, subscriptionId ); - const result = await client.communicationServices.beginRegenerateKeyAndWait( + const result = await client.communicationServices.regenerateKey( resourceGroupName, communicationServiceName, parameters diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesUpdateSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesUpdateSample.ts index c999a00cd0e1..ad0297dac64a 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesUpdateSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/communicationServicesUpdateSample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Operation to update an existing CommunicationService. * * @summary Operation to update an existing CommunicationService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/update.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/update.json */ async function updateResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const communicationServiceName = "MyCommunicationResource"; @@ -37,7 +38,7 @@ async function updateResource() { credential, subscriptionId ); - const result = await client.communicationServices.beginUpdateAndWait( + const result = await client.communicationServices.update( resourceGroupName, communicationServiceName, parameters diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsCancelVerificationSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsCancelVerificationSample.ts index 9494731f254d..3ca20312170d 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsCancelVerificationSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsCancelVerificationSample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Cancel verification of DNS record. * * @summary Cancel verification of DNS record. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/cancelVerification.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/cancelVerification.json */ async function cancelVerification() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsCreateOrUpdateSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsCreateOrUpdateSample.ts index 29764df9682e..9243d73d31ed 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsCreateOrUpdateSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsCreateOrUpdateSample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. * * @summary Add a new Domains resource under the parent EmailService resource or update an existing Domains resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/createOrUpdate.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/createOrUpdate.json */ async function createOrUpdateDomainsResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsDeleteSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsDeleteSample.ts index cd70385ad84a..b66f12ab2e5e 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsDeleteSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsDeleteSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Operation to delete a Domains resource. * * @summary Operation to delete a Domains resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/delete.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/delete.json */ async function deleteDomainsResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsGetSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsGetSample.ts index 48de117be00e..e12f98c59368 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsGetSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsGetSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Get the Domains resource and its properties. * * @summary Get the Domains resource and its properties. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/get.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/get.json */ async function getDomainsResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsInitiateVerificationSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsInitiateVerificationSample.ts index c41fef255cb0..5c28b7e6786c 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsInitiateVerificationSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsInitiateVerificationSample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Initiate verification of DNS record. * * @summary Initiate verification of DNS record. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/initiateVerification.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/initiateVerification.json */ async function initiateVerification() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsListByEmailServiceResourceSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsListByEmailServiceResourceSample.ts index 6fb586c7e38f..0a78fd2262f6 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsListByEmailServiceResourceSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsListByEmailServiceResourceSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Handles requests to list all Domains resources under the parent EmailServices resource. * * @summary Handles requests to list all Domains resources under the parent EmailServices resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/listByEmailService.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/listByEmailService.json */ async function listDomainsResourcesByEmailServiceName() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsUpdateSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsUpdateSample.ts index c37fcf97d74c..bb1accadde18 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsUpdateSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/domainsUpdateSample.ts @@ -21,18 +21,18 @@ dotenv.config(); * This sample demonstrates how to Operation to update an existing Domains resource. * * @summary Operation to update an existing Domains resource. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/domains/update.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/domains/update.json */ async function updateDomainsResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; const domainName = "mydomain.com"; const parameters: UpdateDomainRequestParameters = { - userEngagementTracking: "Enabled", - validSenderUsernames: { info: "MyDomain Info", alerts: "MyDomain Alerts" } + userEngagementTracking: "Enabled" }; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient( diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesCreateOrUpdateSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesCreateOrUpdateSample.ts index 1bee078363b4..0303c0116871 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesCreateOrUpdateSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesCreateOrUpdateSample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Create a new EmailService or update an existing EmailService. * * @summary Create a new EmailService or update an existing EmailService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/createOrUpdate.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/createOrUpdate.json */ async function createOrUpdateEmailServiceResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesDeleteSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesDeleteSample.ts index 75fccd7d848c..38a432965b3f 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesDeleteSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesDeleteSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Operation to delete a EmailService. * * @summary Operation to delete a EmailService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/delete.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/delete.json */ async function deleteEmailServiceResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesGetSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesGetSample.ts index 99003588bed1..0e942a4aea87 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesGetSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesGetSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Get the EmailService and its properties. * * @summary Get the EmailService and its properties. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/get.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/get.json */ async function getEmailServiceResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesListByResourceGroupSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesListByResourceGroupSample.ts index b1d6f5fcc86a..09dc041e16ea 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesListByResourceGroupSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesListByResourceGroupSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Handles requests to list all resources in a resource group. * * @summary Handles requests to list all resources in a resource group. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/listByResourceGroup.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/listByResourceGroup.json */ async function listEmailServiceResourcesByResourceGroup() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const credential = new DefaultAzureCredential(); diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesListBySubscriptionSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesListBySubscriptionSample.ts index 43ef1c8872f6..0f96e6ccea12 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesListBySubscriptionSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesListBySubscriptionSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Handles requests to list all resources in a subscription. * * @summary Handles requests to list all resources in a subscription. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/listBySubscription.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/listBySubscription.json */ async function listEmailServiceResourcesBySubscription() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient( credential, diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesListVerifiedExchangeOnlineDomainsSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesListVerifiedExchangeOnlineDomainsSample.ts index 288a5d35d8bc..2afffaedebe7 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesListVerifiedExchangeOnlineDomainsSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesListVerifiedExchangeOnlineDomainsSample.ts @@ -18,11 +18,12 @@ dotenv.config(); * This sample demonstrates how to Get a list of domains that are fully verified in Exchange Online. * * @summary Get a list of domains that are fully verified in Exchange Online. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/getVerifiedExchangeOnlineDomains.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/getVerifiedExchangeOnlineDomains.json */ async function getVerifiedExchangeOnlineDomains() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const credential = new DefaultAzureCredential(); const client = new CommunicationServiceManagementClient( credential, diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesUpdateSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesUpdateSample.ts index 0e8a393b7fc6..2d3aeffa72ba 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesUpdateSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/emailServicesUpdateSample.ts @@ -21,11 +21,12 @@ dotenv.config(); * This sample demonstrates how to Operation to update an existing EmailService. * * @summary Operation to update an existing EmailService. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/emailServices/update.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/emailServices/update.json */ async function updateEmailServiceResource() { const subscriptionId = - process.env["COMMUNICATION_SUBSCRIPTION_ID"] || "12345"; + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; const resourceGroupName = process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; const emailServiceName = "MyEmailServiceResource"; diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/operationsListSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/operationsListSample.ts index 934dd6ff2743..0eb42d06ce76 100644 --- a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/operationsListSample.ts +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.Communication provider. * * @summary Lists all of the available REST API operations of the Microsoft.Communication provider. - * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2022-07-01-preview/examples/communicationServices/operationsList.json + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/communicationServices/operationsList.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesCreateOrUpdateSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..f98d832c1982 --- /dev/null +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesCreateOrUpdateSample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + SenderUsernameResource, + CommunicationServiceManagementClient +} from "@azure/arm-communication"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. + * + * @summary Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource. + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/createOrUpdate.json + */ +async function createOrUpdateSenderUsernamesResource() { + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; + const resourceGroupName = + process.env["COMMUNICATION_RESOURCE_GROUP"] || "contosoResourceGroup"; + const emailServiceName = "contosoEmailService"; + const domainName = "contoso.com"; + const senderUsername = "contosoNewsAlerts"; + const parameters: SenderUsernameResource = { + displayName: "Contoso News Alerts", + username: "contosoNewsAlerts" + }; + const credential = new DefaultAzureCredential(); + const client = new CommunicationServiceManagementClient( + credential, + subscriptionId + ); + const result = await client.senderUsernames.createOrUpdate( + resourceGroupName, + emailServiceName, + domainName, + senderUsername, + parameters + ); + console.log(result); +} + +async function main() { + createOrUpdateSenderUsernamesResource(); +} + +main().catch(console.error); diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesDeleteSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesDeleteSample.ts new file mode 100644 index 000000000000..18a396aca9c3 --- /dev/null +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesDeleteSample.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { CommunicationServiceManagementClient } from "@azure/arm-communication"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Operation to delete a SenderUsernames resource. + * + * @summary Operation to delete a SenderUsernames resource. + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/delete.json + */ +async function deleteSenderUsernamesResource() { + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; + const resourceGroupName = + process.env["COMMUNICATION_RESOURCE_GROUP"] || "MyResourceGroup"; + const emailServiceName = "MyEmailServiceResource"; + const domainName = "mydomain.com"; + const senderUsername = "contosoNewsAlerts"; + const credential = new DefaultAzureCredential(); + const client = new CommunicationServiceManagementClient( + credential, + subscriptionId + ); + const result = await client.senderUsernames.delete( + resourceGroupName, + emailServiceName, + domainName, + senderUsername + ); + console.log(result); +} + +async function main() { + deleteSenderUsernamesResource(); +} + +main().catch(console.error); diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesGetSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesGetSample.ts new file mode 100644 index 000000000000..b743f4f1510e --- /dev/null +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesGetSample.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { CommunicationServiceManagementClient } from "@azure/arm-communication"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a valid sender username for a domains resource. + * + * @summary Get a valid sender username for a domains resource. + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/get.json + */ +async function getSenderUsernamesResource() { + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; + const resourceGroupName = + process.env["COMMUNICATION_RESOURCE_GROUP"] || "contosoResourceGroup"; + const emailServiceName = "contosoEmailService"; + const domainName = "contoso.com"; + const senderUsername = "contosoNewsAlerts"; + const credential = new DefaultAzureCredential(); + const client = new CommunicationServiceManagementClient( + credential, + subscriptionId + ); + const result = await client.senderUsernames.get( + resourceGroupName, + emailServiceName, + domainName, + senderUsername + ); + console.log(result); +} + +async function main() { + getSenderUsernamesResource(); +} + +main().catch(console.error); diff --git a/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesListByDomainsSample.ts b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesListByDomainsSample.ts new file mode 100644 index 000000000000..63e8c7c3f912 --- /dev/null +++ b/sdk/communication/arm-communication/samples/v4-beta/typescript/src/senderUsernamesListByDomainsSample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { CommunicationServiceManagementClient } from "@azure/arm-communication"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List all valid sender usernames for a domains resource. + * + * @summary List all valid sender usernames for a domains resource. + * x-ms-original-file: specification/communication/resource-manager/Microsoft.Communication/preview/2023-03-01-preview/examples/senderUsernames/listByDomain.json + */ +async function getSenderUsernamesResource() { + const subscriptionId = + process.env["COMMUNICATION_SUBSCRIPTION_ID"] || + "11112222-3333-4444-5555-666677778888"; + const resourceGroupName = + process.env["COMMUNICATION_RESOURCE_GROUP"] || "contosoResourceGroup"; + const emailServiceName = "contosoEmailService"; + const domainName = "contoso.com"; + const credential = new DefaultAzureCredential(); + const client = new CommunicationServiceManagementClient( + credential, + subscriptionId + ); + const resArray = new Array(); + for await (let item of client.senderUsernames.listByDomains( + resourceGroupName, + emailServiceName, + domainName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + getSenderUsernamesResource(); +} + +main().catch(console.error); diff --git a/sdk/communication/arm-communication/src/communicationServiceManagementClient.ts b/sdk/communication/arm-communication/src/communicationServiceManagementClient.ts index e0826e9d4416..57feb7aa14f8 100644 --- a/sdk/communication/arm-communication/src/communicationServiceManagementClient.ts +++ b/sdk/communication/arm-communication/src/communicationServiceManagementClient.ts @@ -18,13 +18,15 @@ import { OperationsImpl, CommunicationServicesImpl, DomainsImpl, - EmailServicesImpl + EmailServicesImpl, + SenderUsernamesImpl } from "./operations"; import { Operations, CommunicationServices, Domains, - EmailServices + EmailServices, + SenderUsernames } from "./operationsInterfaces"; import { CommunicationServiceManagementClientOptionalParams } from "./models"; @@ -36,7 +38,7 @@ export class CommunicationServiceManagementClient extends coreClient.ServiceClie /** * Initializes a new instance of the CommunicationServiceManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param options The parameter options */ constructor( @@ -113,11 +115,12 @@ export class CommunicationServiceManagementClient extends coreClient.ServiceClie // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-07-01-preview"; + this.apiVersion = options.apiVersion || "2023-03-01-preview"; this.operations = new OperationsImpl(this); this.communicationServices = new CommunicationServicesImpl(this); this.domains = new DomainsImpl(this); this.emailServices = new EmailServicesImpl(this); + this.senderUsernames = new SenderUsernamesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -153,4 +156,5 @@ export class CommunicationServiceManagementClient extends coreClient.ServiceClie communicationServices: CommunicationServices; domains: Domains; emailServices: EmailServices; + senderUsernames: SenderUsernames; } diff --git a/sdk/communication/arm-communication/src/lroImpl.ts b/sdk/communication/arm-communication/src/lroImpl.ts index 518d5f053b4e..dd803cd5e28c 100644 --- a/sdk/communication/arm-communication/src/lroImpl.ts +++ b/sdk/communication/arm-communication/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export class LroImpl implements LongRunningOperation { - constructor( - private sendOperationFn: (args: any, spec: any) => Promise>, - private args: Record, - private spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record, - public requestPath: string = spec.path!, - public requestMethod: string = spec.httpMethod - ) {} - public async sendInitialRequest(): Promise> { - return this.sendOperationFn(this.args, this.spec); - } - public async sendPollRequest(path: string): Promise> { - const { requestBody, ...restSpec } = this.spec; - return this.sendOperationFn(this.args, { - ...restSpec, - path, - httpMethod: "GET" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike } + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal + }); + } + }; } diff --git a/sdk/communication/arm-communication/src/models/index.ts b/sdk/communication/arm-communication/src/models/index.ts index cc41b6cbd490..53bc8a60e325 100644 --- a/sdk/communication/arm-communication/src/models/index.ts +++ b/sdk/communication/arm-communication/src/models/index.ts @@ -167,7 +167,7 @@ export interface CommunicationServiceResourceList { /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; @@ -322,6 +322,14 @@ export interface EmailServiceResourceList { nextLink?: string; } +/** A class representing a Domains SenderUsernames collection. */ +export interface SenderUsernameResourceCollection { + /** List of SenderUsernames */ + value?: SenderUsernameResource[]; + /** The URL the client should use to fetch the next page (per server side paging). */ + nextLink?: string; +} + /** Data POST-ed to the nameAvailability action */ export interface NameAvailabilityParameters extends CheckNameAvailabilityRequest {} @@ -334,6 +342,9 @@ export interface TrackedResource extends Resource { location: string; } +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + /** A class representing update parameters for CommunicationService resource. */ export interface CommunicationServiceResourceUpdate extends TaggedResource { /** List of email Domain resource Ids. */ @@ -342,8 +353,6 @@ export interface CommunicationServiceResourceUpdate extends TaggedResource { /** A class that describes the PATCH request parameters of a Domains resource. */ export interface UpdateDomainRequestParameters extends TaggedResource { - /** Collection of valid sender usernames. This is a key-value pair where key=username and value=display name. */ - validSenderUsernames?: { [propertyName: string]: string }; /** Describes whether user engagement tracking is enabled or disabled. */ userEngagementTracking?: UserEngagementTracking; } @@ -418,8 +427,6 @@ export interface DomainResource extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly verificationRecords?: DomainPropertiesVerificationRecords; - /** Collection of valid sender usernames. This is a key-value pair where key=username and value=display name. */ - validSenderUsernames?: { [propertyName: string]: string }; /** Describes whether user engagement tracking is enabled or disabled. */ userEngagementTracking?: UserEngagementTracking; } @@ -435,10 +442,22 @@ export interface EmailServiceResource extends TrackedResource { dataLocation?: string; } -/** Defines headers for CommunicationServices_update operation. */ -export interface CommunicationServicesUpdateHeaders { - /** URL to query for status of the operation. */ - azureAsyncOperation?: string; +/** A class representing a SenderUsername resource. */ +export interface SenderUsernameResource extends ProxyResource { + /** + * The location where the SenderUsername resource data is stored at rest. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataLocation?: string; + /** A sender senderUsername to be used when sending emails. */ + username?: string; + /** The display name for the senderUsername. */ + displayName?: string; + /** + * Provisioning state of the resource. Unknown is the default state for Communication Services. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; } /** Defines headers for CommunicationServices_createOrUpdate operation. */ @@ -791,6 +810,45 @@ export enum KnownEmailServicesProvisioningState { * **Moving** */ export type EmailServicesProvisioningState = string; + +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Unknown */ + Unknown = "Unknown", + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** Running */ + Running = "Running", + /** Creating */ + Creating = "Creating", + /** Updating */ + Updating = "Updating", + /** Deleting */ + Deleting = "Deleting", + /** Moving */ + Moving = "Moving" +} + +/** + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Running** \ + * **Creating** \ + * **Updating** \ + * **Deleting** \ + * **Moving** + */ +export type ProvisioningState = string; /** Defines values for KeyType. */ export type KeyType = "Primary" | "Secondary"; @@ -841,12 +899,7 @@ export type CommunicationServicesListByResourceGroupResponse = CommunicationServ /** Optional parameters. */ export interface CommunicationServicesUpdateOptionalParams - 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; -} + extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type CommunicationServicesUpdateResponse = CommunicationServiceResource; @@ -888,12 +941,7 @@ export type CommunicationServicesListKeysResponse = CommunicationServiceKeys; /** Optional parameters. */ export interface CommunicationServicesRegenerateKeyOptionalParams - 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; -} + extends coreClient.OperationOptions {} /** Contains response data for the regenerateKey operation. */ export type CommunicationServicesRegenerateKeyResponse = CommunicationServiceKeys; @@ -1067,6 +1115,38 @@ export interface EmailServicesListByResourceGroupNextOptionalParams /** Contains response data for the listByResourceGroupNext operation. */ export type EmailServicesListByResourceGroupNextResponse = EmailServiceResourceList; +/** Optional parameters. */ +export interface SenderUsernamesListByDomainsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDomains operation. */ +export type SenderUsernamesListByDomainsResponse = SenderUsernameResourceCollection; + +/** Optional parameters. */ +export interface SenderUsernamesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SenderUsernamesGetResponse = SenderUsernameResource; + +/** Optional parameters. */ +export interface SenderUsernamesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type SenderUsernamesCreateOrUpdateResponse = SenderUsernameResource; + +/** Optional parameters. */ +export interface SenderUsernamesDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SenderUsernamesListByDomainsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByDomainsNext operation. */ +export type SenderUsernamesListByDomainsNextResponse = SenderUsernameResourceCollection; + /** Optional parameters. */ export interface CommunicationServiceManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/communication/arm-communication/src/models/mappers.ts b/sdk/communication/arm-communication/src/models/mappers.ts index f582674deb25..d966b1e1b4aa 100644 --- a/sdk/communication/arm-communication/src/models/mappers.ts +++ b/sdk/communication/arm-communication/src/models/mappers.ts @@ -692,6 +692,33 @@ export const EmailServiceResourceList: coreClient.CompositeMapper = { } }; +export const SenderUsernameResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SenderUsernameResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SenderUsernameResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const NameAvailabilityParameters: coreClient.CompositeMapper = { type: { name: "Composite", @@ -726,6 +753,16 @@ export const TrackedResource: coreClient.CompositeMapper = { } }; +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + export const CommunicationServiceResourceUpdate: coreClient.CompositeMapper = { type: { name: "Composite", @@ -753,13 +790,6 @@ export const UpdateDomainRequestParameters: coreClient.CompositeMapper = { className: "UpdateDomainRequestParameters", modelProperties: { ...TaggedResource.type.modelProperties, - validSenderUsernames: { - serializedName: "properties.validSenderUsernames", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, userEngagementTracking: { serializedName: "properties.userEngagementTracking", type: { @@ -896,13 +926,6 @@ export const DomainResource: coreClient.CompositeMapper = { className: "DomainPropertiesVerificationRecords" } }, - validSenderUsernames: { - serializedName: "properties.validSenderUsernames", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, userEngagementTracking: { serializedName: "properties.userEngagementTracking", type: { @@ -936,13 +959,34 @@ export const EmailServiceResource: coreClient.CompositeMapper = { } }; -export const CommunicationServicesUpdateHeaders: coreClient.CompositeMapper = { +export const SenderUsernameResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CommunicationServicesUpdateHeaders", + className: "SenderUsernameResource", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + ...ProxyResource.type.modelProperties, + dataLocation: { + serializedName: "properties.dataLocation", + readOnly: true, + type: { + name: "String" + } + }, + username: { + serializedName: "properties.username", + type: { + name: "String" + } + }, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } diff --git a/sdk/communication/arm-communication/src/models/parameters.ts b/sdk/communication/arm-communication/src/models/parameters.ts index e5d87e61eb23..11d0291df8f9 100644 --- a/sdk/communication/arm-communication/src/models/parameters.ts +++ b/sdk/communication/arm-communication/src/models/parameters.ts @@ -21,7 +21,8 @@ import { UpdateDomainRequestParameters as UpdateDomainRequestParametersMapper, VerificationParameter as VerificationParameterMapper, EmailServiceResource as EmailServiceResourceMapper, - EmailServiceResourceUpdate as EmailServiceResourceUpdateMapper + EmailServiceResourceUpdate as EmailServiceResourceUpdateMapper, + SenderUsernameResource as SenderUsernameResourceMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -51,7 +52,7 @@ export const $host: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-07-01-preview", + defaultValue: "2023-03-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -92,13 +93,10 @@ export const nameAvailabilityParameters: OperationParameter = { export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { - constraints: { - MinLength: 1 - }, serializedName: "subscriptionId", required: true, type: { - name: "String" + name: "Uuid" } } }; @@ -127,7 +125,7 @@ export const communicationServiceName: OperationURLParameter = { parameterPath: "communicationServiceName", mapper: { constraints: { - Pattern: new RegExp("^[-\\w]+$"), + Pattern: new RegExp("^[a-zA-Z0-9-]+$"), MaxLength: 63, MinLength: 1 }, @@ -209,3 +207,23 @@ export const parameters7: OperationParameter = { parameterPath: "parameters", mapper: EmailServiceResourceUpdateMapper }; + +export const senderUsername: OperationURLParameter = { + parameterPath: "senderUsername", + mapper: { + constraints: { + MaxLength: 253, + MinLength: 1 + }, + serializedName: "senderUsername", + required: true, + type: { + name: "String" + } + } +}; + +export const parameters8: OperationParameter = { + parameterPath: "parameters", + mapper: SenderUsernameResourceMapper +}; diff --git a/sdk/communication/arm-communication/src/operations/communicationServices.ts b/sdk/communication/arm-communication/src/operations/communicationServices.ts index 71877ae368d5..66c4413c4631 100644 --- a/sdk/communication/arm-communication/src/operations/communicationServices.ts +++ b/sdk/communication/arm-communication/src/operations/communicationServices.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { CommunicationServiceManagementClient } from "../communicationServiceManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { CommunicationServiceResource, CommunicationServicesListBySubscriptionNextOptionalParams, @@ -248,90 +252,16 @@ export class CommunicationServicesImpl implements CommunicationServices { * @param parameters Parameters for the update operation * @param options The options parameters. */ - async beginUpdate( + update( resourceGroupName: string, communicationServiceName: string, parameters: CommunicationServiceResourceUpdate, options?: CommunicationServicesUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - CommunicationServicesUpdateResponse - > - > { - 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, + ): Promise { + return this.client.sendOperationRequest( { resourceGroupName, communicationServiceName, parameters, options }, updateOperationSpec ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Operation to update an existing CommunicationService. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param communicationServiceName The name of the CommunicationService resource. - * @param parameters Parameters for the update operation - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - communicationServiceName: string, - parameters: CommunicationServiceResourceUpdate, - options?: CommunicationServicesUpdateOptionalParams - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - communicationServiceName, - parameters, - options - ); - return poller.pollUntilDone(); } /** @@ -364,8 +294,8 @@ export class CommunicationServicesImpl implements CommunicationServices { parameters: CommunicationServiceResource, options?: CommunicationServicesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, CommunicationServicesCreateOrUpdateResponse > > { @@ -375,7 +305,7 @@ export class CommunicationServicesImpl implements CommunicationServices { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -408,15 +338,23 @@ export class CommunicationServicesImpl implements CommunicationServices { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, communicationServiceName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + communicationServiceName, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + CommunicationServicesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -454,14 +392,14 @@ export class CommunicationServicesImpl implements CommunicationServices { resourceGroupName: string, communicationServiceName: string, options?: CommunicationServicesDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -494,15 +432,15 @@ export class CommunicationServicesImpl implements CommunicationServices { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, communicationServiceName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, communicationServiceName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -552,91 +490,16 @@ export class CommunicationServicesImpl implements CommunicationServices { * @param parameters Parameter that describes the Regenerate Key Operation. * @param options The options parameters. */ - async beginRegenerateKey( + regenerateKey( resourceGroupName: string, communicationServiceName: string, parameters: RegenerateKeyParameters, options?: CommunicationServicesRegenerateKeyOptionalParams - ): Promise< - PollerLike< - PollOperationState, - CommunicationServicesRegenerateKeyResponse - > - > { - 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, + ): Promise { + return this.client.sendOperationRequest( { resourceGroupName, communicationServiceName, parameters, options }, regenerateKeyOperationSpec ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the - * same time. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param communicationServiceName The name of the CommunicationService resource. - * @param parameters Parameter that describes the Regenerate Key Operation. - * @param options The options parameters. - */ - async beginRegenerateKeyAndWait( - resourceGroupName: string, - communicationServiceName: string, - parameters: RegenerateKeyParameters, - options?: CommunicationServicesRegenerateKeyOptionalParams - ): Promise { - const poller = await this.beginRegenerateKey( - resourceGroupName, - communicationServiceName, - parameters, - options - ); - return poller.pollUntilDone(); } /** @@ -763,15 +626,6 @@ const updateOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.CommunicationServiceResource }, - 201: { - bodyMapper: Mappers.CommunicationServiceResource - }, - 202: { - bodyMapper: Mappers.CommunicationServiceResource - }, - 204: { - bodyMapper: Mappers.CommunicationServiceResource - }, default: { bodyMapper: Mappers.ErrorResponse } @@ -896,15 +750,6 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.CommunicationServiceKeys }, - 201: { - bodyMapper: Mappers.CommunicationServiceKeys - }, - 202: { - bodyMapper: Mappers.CommunicationServiceKeys - }, - 204: { - bodyMapper: Mappers.CommunicationServiceKeys - }, default: { bodyMapper: Mappers.ErrorResponse } diff --git a/sdk/communication/arm-communication/src/operations/domains.ts b/sdk/communication/arm-communication/src/operations/domains.ts index 3b6e0278323f..e0eccee73189 100644 --- a/sdk/communication/arm-communication/src/operations/domains.ts +++ b/sdk/communication/arm-communication/src/operations/domains.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { CommunicationServiceManagementClient } from "../communicationServiceManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DomainResource, DomainsListByEmailServiceResourceNextOptionalParams, @@ -168,8 +172,8 @@ export class DomainsImpl implements Domains { parameters: DomainResource, options?: DomainsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DomainsCreateOrUpdateResponse > > { @@ -179,7 +183,7 @@ export class DomainsImpl implements Domains { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -212,15 +216,24 @@ export class DomainsImpl implements Domains { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, emailServiceName, domainName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + emailServiceName, + domainName, + parameters, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + DomainsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -264,14 +277,14 @@ export class DomainsImpl implements Domains { emailServiceName: string, domainName: string, options?: DomainsDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -304,15 +317,15 @@ export class DomainsImpl implements Domains { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, emailServiceName, domainName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, emailServiceName, domainName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -355,7 +368,10 @@ export class DomainsImpl implements Domains { parameters: UpdateDomainRequestParameters, options?: DomainsUpdateOptionalParams ): Promise< - PollerLike, DomainsUpdateResponse> + SimplePollerLike< + OperationState, + DomainsUpdateResponse + > > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -363,7 +379,7 @@ export class DomainsImpl implements Domains { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -396,15 +412,24 @@ export class DomainsImpl implements Domains { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, emailServiceName, domainName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + emailServiceName, + domainName, + parameters, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + DomainsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -467,8 +492,8 @@ export class DomainsImpl implements Domains { parameters: VerificationParameter, options?: DomainsInitiateVerificationOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DomainsInitiateVerificationResponse > > { @@ -478,7 +503,7 @@ export class DomainsImpl implements Domains { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -511,15 +536,24 @@ export class DomainsImpl implements Domains { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, emailServiceName, domainName, parameters, options }, - initiateVerificationOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + emailServiceName, + domainName, + parameters, + options + }, + spec: initiateVerificationOperationSpec + }); + const poller = await createHttpPoller< + DomainsInitiateVerificationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -565,8 +599,8 @@ export class DomainsImpl implements Domains { parameters: VerificationParameter, options?: DomainsCancelVerificationOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DomainsCancelVerificationResponse > > { @@ -576,7 +610,7 @@ export class DomainsImpl implements Domains { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -609,15 +643,24 @@ export class DomainsImpl implements Domains { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, emailServiceName, domainName, parameters, options }, - cancelVerificationOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + emailServiceName, + domainName, + parameters, + options + }, + spec: cancelVerificationOperationSpec + }); + const poller = await createHttpPoller< + DomainsCancelVerificationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; diff --git a/sdk/communication/arm-communication/src/operations/emailServices.ts b/sdk/communication/arm-communication/src/operations/emailServices.ts index a8aa6d42a013..1be603f9fb7a 100644 --- a/sdk/communication/arm-communication/src/operations/emailServices.ts +++ b/sdk/communication/arm-communication/src/operations/emailServices.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { CommunicationServiceManagementClient } from "../communicationServiceManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { EmailServiceResource, EmailServicesListBySubscriptionNextOptionalParams, @@ -203,8 +207,8 @@ export class EmailServicesImpl implements EmailServices { parameters: EmailServiceResource, options?: EmailServicesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, EmailServicesCreateOrUpdateResponse > > { @@ -214,7 +218,7 @@ export class EmailServicesImpl implements EmailServices { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -247,15 +251,18 @@ export class EmailServicesImpl implements EmailServices { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, emailServiceName, parameters, options }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, emailServiceName, parameters, options }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + EmailServicesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; @@ -293,14 +300,14 @@ export class EmailServicesImpl implements EmailServices { resourceGroupName: string, emailServiceName: string, options?: EmailServicesDeleteOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -333,15 +340,15 @@ export class EmailServicesImpl implements EmailServices { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, emailServiceName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, emailServiceName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -379,8 +386,8 @@ export class EmailServicesImpl implements EmailServices { parameters: EmailServiceResourceUpdate, options?: EmailServicesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, EmailServicesUpdateResponse > > { @@ -390,7 +397,7 @@ export class EmailServicesImpl implements EmailServices { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -423,15 +430,18 @@ export class EmailServicesImpl implements EmailServices { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, emailServiceName, parameters, options }, - updateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, emailServiceName, parameters, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + EmailServicesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation" }); await poller.poll(); return poller; diff --git a/sdk/communication/arm-communication/src/operations/index.ts b/sdk/communication/arm-communication/src/operations/index.ts index 7ac67a892445..1d47ce38a16e 100644 --- a/sdk/communication/arm-communication/src/operations/index.ts +++ b/sdk/communication/arm-communication/src/operations/index.ts @@ -10,3 +10,4 @@ export * from "./operations"; export * from "./communicationServices"; export * from "./domains"; export * from "./emailServices"; +export * from "./senderUsernames"; diff --git a/sdk/communication/arm-communication/src/operations/senderUsernames.ts b/sdk/communication/arm-communication/src/operations/senderUsernames.ts new file mode 100644 index 000000000000..12836520c7e3 --- /dev/null +++ b/sdk/communication/arm-communication/src/operations/senderUsernames.ts @@ -0,0 +1,383 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { SenderUsernames } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { CommunicationServiceManagementClient } from "../communicationServiceManagementClient"; +import { + SenderUsernameResource, + SenderUsernamesListByDomainsNextOptionalParams, + SenderUsernamesListByDomainsOptionalParams, + SenderUsernamesListByDomainsResponse, + SenderUsernamesGetOptionalParams, + SenderUsernamesGetResponse, + SenderUsernamesCreateOrUpdateOptionalParams, + SenderUsernamesCreateOrUpdateResponse, + SenderUsernamesDeleteOptionalParams, + SenderUsernamesListByDomainsNextResponse +} from "../models"; + +/// +/** Class containing SenderUsernames operations. */ +export class SenderUsernamesImpl implements SenderUsernames { + private readonly client: CommunicationServiceManagementClient; + + /** + * Initialize a new instance of the class SenderUsernames class. + * @param client Reference to the service client + */ + constructor(client: CommunicationServiceManagementClient) { + this.client = client; + } + + /** + * List all valid sender usernames for a domains resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param emailServiceName The name of the EmailService resource. + * @param domainName The name of the Domains resource. + * @param options The options parameters. + */ + public listByDomains( + resourceGroupName: string, + emailServiceName: string, + domainName: string, + options?: SenderUsernamesListByDomainsOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByDomainsPagingAll( + resourceGroupName, + emailServiceName, + domainName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByDomainsPagingPage( + resourceGroupName, + emailServiceName, + domainName, + options, + settings + ); + } + }; + } + + private async *listByDomainsPagingPage( + resourceGroupName: string, + emailServiceName: string, + domainName: string, + options?: SenderUsernamesListByDomainsOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: SenderUsernamesListByDomainsResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByDomains( + resourceGroupName, + emailServiceName, + domainName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByDomainsNext( + resourceGroupName, + emailServiceName, + domainName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByDomainsPagingAll( + resourceGroupName: string, + emailServiceName: string, + domainName: string, + options?: SenderUsernamesListByDomainsOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByDomainsPagingPage( + resourceGroupName, + emailServiceName, + domainName, + options + )) { + yield* page; + } + } + + /** + * List all valid sender usernames for a domains resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param emailServiceName The name of the EmailService resource. + * @param domainName The name of the Domains resource. + * @param options The options parameters. + */ + private _listByDomains( + resourceGroupName: string, + emailServiceName: string, + domainName: string, + options?: SenderUsernamesListByDomainsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, emailServiceName, domainName, options }, + listByDomainsOperationSpec + ); + } + + /** + * Get a valid sender username for a domains resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param emailServiceName The name of the EmailService resource. + * @param domainName The name of the Domains resource. + * @param senderUsername The valid sender Username. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + emailServiceName: string, + domainName: string, + senderUsername: string, + options?: SenderUsernamesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + emailServiceName, + domainName, + senderUsername, + options + }, + getOperationSpec + ); + } + + /** + * Add a new SenderUsername resource under the parent Domains resource or update an existing + * SenderUsername resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param emailServiceName The name of the EmailService resource. + * @param domainName The name of the Domains resource. + * @param senderUsername The valid sender Username. + * @param parameters Parameters for the create or update operation + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + emailServiceName: string, + domainName: string, + senderUsername: string, + parameters: SenderUsernameResource, + options?: SenderUsernamesCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + emailServiceName, + domainName, + senderUsername, + parameters, + options + }, + createOrUpdateOperationSpec + ); + } + + /** + * Operation to delete a SenderUsernames resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param emailServiceName The name of the EmailService resource. + * @param domainName The name of the Domains resource. + * @param senderUsername The valid sender Username. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + emailServiceName: string, + domainName: string, + senderUsername: string, + options?: SenderUsernamesDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + emailServiceName, + domainName, + senderUsername, + options + }, + deleteOperationSpec + ); + } + + /** + * ListByDomainsNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param emailServiceName The name of the EmailService resource. + * @param domainName The name of the Domains resource. + * @param nextLink The nextLink from the previous successful call to the ListByDomains method. + * @param options The options parameters. + */ + private _listByDomainsNext( + resourceGroupName: string, + emailServiceName: string, + domainName: string, + nextLink: string, + options?: SenderUsernamesListByDomainsNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, emailServiceName, domainName, nextLink, options }, + listByDomainsNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByDomainsOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SenderUsernameResourceCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.emailServiceName, + Parameters.domainName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SenderUsernameResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.emailServiceName, + Parameters.domainName, + Parameters.senderUsername + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SenderUsernameResource + }, + 201: { + bodyMapper: Mappers.SenderUsernameResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.parameters8, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.emailServiceName, + Parameters.domainName, + Parameters.senderUsername + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/emailServices/{emailServiceName}/domains/{domainName}/senderUsernames/{senderUsername}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.emailServiceName, + Parameters.domainName, + Parameters.senderUsername + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByDomainsNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SenderUsernameResourceCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.emailServiceName, + Parameters.domainName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/communication/arm-communication/src/operationsInterfaces/communicationServices.ts b/sdk/communication/arm-communication/src/operationsInterfaces/communicationServices.ts index 9ba77fa04306..6425c7deb57c 100644 --- a/sdk/communication/arm-communication/src/operationsInterfaces/communicationServices.ts +++ b/sdk/communication/arm-communication/src/operationsInterfaces/communicationServices.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { CommunicationServiceResource, CommunicationServicesListBySubscriptionOptionalParams, @@ -78,25 +78,7 @@ export interface CommunicationServices { * @param parameters Parameters for the update operation * @param options The options parameters. */ - beginUpdate( - resourceGroupName: string, - communicationServiceName: string, - parameters: CommunicationServiceResourceUpdate, - options?: CommunicationServicesUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - CommunicationServicesUpdateResponse - > - >; - /** - * Operation to update an existing CommunicationService. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param communicationServiceName The name of the CommunicationService resource. - * @param parameters Parameters for the update operation - * @param options The options parameters. - */ - beginUpdateAndWait( + update( resourceGroupName: string, communicationServiceName: string, parameters: CommunicationServiceResourceUpdate, @@ -126,8 +108,8 @@ export interface CommunicationServices { parameters: CommunicationServiceResource, options?: CommunicationServicesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, CommunicationServicesCreateOrUpdateResponse > >; @@ -154,7 +136,7 @@ export interface CommunicationServices { resourceGroupName: string, communicationServiceName: string, options?: CommunicationServicesDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Operation to delete a CommunicationService. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -185,26 +167,7 @@ export interface CommunicationServices { * @param parameters Parameter that describes the Regenerate Key Operation. * @param options The options parameters. */ - beginRegenerateKey( - resourceGroupName: string, - communicationServiceName: string, - parameters: RegenerateKeyParameters, - options?: CommunicationServicesRegenerateKeyOptionalParams - ): Promise< - PollerLike< - PollOperationState, - CommunicationServicesRegenerateKeyResponse - > - >; - /** - * Regenerate CommunicationService access key. PrimaryKey and SecondaryKey cannot be regenerated at the - * same time. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param communicationServiceName The name of the CommunicationService resource. - * @param parameters Parameter that describes the Regenerate Key Operation. - * @param options The options parameters. - */ - beginRegenerateKeyAndWait( + regenerateKey( resourceGroupName: string, communicationServiceName: string, parameters: RegenerateKeyParameters, diff --git a/sdk/communication/arm-communication/src/operationsInterfaces/domains.ts b/sdk/communication/arm-communication/src/operationsInterfaces/domains.ts index 9949f6a016f6..97221522e5f5 100644 --- a/sdk/communication/arm-communication/src/operationsInterfaces/domains.ts +++ b/sdk/communication/arm-communication/src/operationsInterfaces/domains.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DomainResource, DomainsListByEmailServiceResourceOptionalParams, @@ -69,8 +69,8 @@ export interface Domains { parameters: DomainResource, options?: DomainsCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DomainsCreateOrUpdateResponse > >; @@ -102,7 +102,7 @@ export interface Domains { emailServiceName: string, domainName: string, options?: DomainsDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Operation to delete a Domains resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -131,7 +131,10 @@ export interface Domains { parameters: UpdateDomainRequestParameters, options?: DomainsUpdateOptionalParams ): Promise< - PollerLike, DomainsUpdateResponse> + SimplePollerLike< + OperationState, + DomainsUpdateResponse + > >; /** * Operation to update an existing Domains resource. @@ -163,8 +166,8 @@ export interface Domains { parameters: VerificationParameter, options?: DomainsInitiateVerificationOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DomainsInitiateVerificationResponse > >; @@ -198,8 +201,8 @@ export interface Domains { parameters: VerificationParameter, options?: DomainsCancelVerificationOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DomainsCancelVerificationResponse > >; diff --git a/sdk/communication/arm-communication/src/operationsInterfaces/emailServices.ts b/sdk/communication/arm-communication/src/operationsInterfaces/emailServices.ts index fbc2718031cd..a6c3c154dcf4 100644 --- a/sdk/communication/arm-communication/src/operationsInterfaces/emailServices.ts +++ b/sdk/communication/arm-communication/src/operationsInterfaces/emailServices.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { EmailServiceResource, EmailServicesListBySubscriptionOptionalParams, @@ -67,8 +67,8 @@ export interface EmailServices { parameters: EmailServiceResource, options?: EmailServicesCreateOrUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, EmailServicesCreateOrUpdateResponse > >; @@ -95,7 +95,7 @@ export interface EmailServices { resourceGroupName: string, emailServiceName: string, options?: EmailServicesDeleteOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Operation to delete a EmailService. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -120,8 +120,8 @@ export interface EmailServices { parameters: EmailServiceResourceUpdate, options?: EmailServicesUpdateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, EmailServicesUpdateResponse > >; diff --git a/sdk/communication/arm-communication/src/operationsInterfaces/index.ts b/sdk/communication/arm-communication/src/operationsInterfaces/index.ts index 7ac67a892445..1d47ce38a16e 100644 --- a/sdk/communication/arm-communication/src/operationsInterfaces/index.ts +++ b/sdk/communication/arm-communication/src/operationsInterfaces/index.ts @@ -10,3 +10,4 @@ export * from "./operations"; export * from "./communicationServices"; export * from "./domains"; export * from "./emailServices"; +export * from "./senderUsernames"; diff --git a/sdk/communication/arm-communication/src/operationsInterfaces/senderUsernames.ts b/sdk/communication/arm-communication/src/operationsInterfaces/senderUsernames.ts new file mode 100644 index 000000000000..47fba537018d --- /dev/null +++ b/sdk/communication/arm-communication/src/operationsInterfaces/senderUsernames.ts @@ -0,0 +1,84 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { + SenderUsernameResource, + SenderUsernamesListByDomainsOptionalParams, + SenderUsernamesGetOptionalParams, + SenderUsernamesGetResponse, + SenderUsernamesCreateOrUpdateOptionalParams, + SenderUsernamesCreateOrUpdateResponse, + SenderUsernamesDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a SenderUsernames. */ +export interface SenderUsernames { + /** + * List all valid sender usernames for a domains resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param emailServiceName The name of the EmailService resource. + * @param domainName The name of the Domains resource. + * @param options The options parameters. + */ + listByDomains( + resourceGroupName: string, + emailServiceName: string, + domainName: string, + options?: SenderUsernamesListByDomainsOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a valid sender username for a domains resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param emailServiceName The name of the EmailService resource. + * @param domainName The name of the Domains resource. + * @param senderUsername The valid sender Username. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + emailServiceName: string, + domainName: string, + senderUsername: string, + options?: SenderUsernamesGetOptionalParams + ): Promise; + /** + * Add a new SenderUsername resource under the parent Domains resource or update an existing + * SenderUsername resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param emailServiceName The name of the EmailService resource. + * @param domainName The name of the Domains resource. + * @param senderUsername The valid sender Username. + * @param parameters Parameters for the create or update operation + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + emailServiceName: string, + domainName: string, + senderUsername: string, + parameters: SenderUsernameResource, + options?: SenderUsernamesCreateOrUpdateOptionalParams + ): Promise; + /** + * Operation to delete a SenderUsernames resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param emailServiceName The name of the EmailService resource. + * @param domainName The name of the Domains resource. + * @param senderUsername The valid sender Username. + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + emailServiceName: string, + domainName: string, + senderUsername: string, + options?: SenderUsernamesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/communication/arm-communication/test/communication_examples.ts b/sdk/communication/arm-communication/test/communication_examples.ts index 10eced305828..4e5147654f6c 100644 --- a/sdk/communication/arm-communication/test/communication_examples.ts +++ b/sdk/communication/arm-communication/test/communication_examples.ts @@ -17,12 +17,15 @@ import { createTestCredential } from "@azure-tools/test-credential"; import { assert } from "chai"; import { Context } from "mocha"; import { CommunicationServiceManagementClient } from "../src/communicationServiceManagementClient"; +import { hostname } from "os"; const replaceableVariables: Record = { AZURE_CLIENT_ID: "azure_client_id", AZURE_CLIENT_SECRET: "azure_client_secret", AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" + SUBSCRIPTION_ID: "azure_subscription_id", + COMMUNICATION_AZURE_AUTHORITY_HOST: "COMMUNICATION_AZURE_AUTHORITY_HOST", + COMMUNICATION_RESOURCE_MANAGER_URL: "COMMUNICATION_RESOURCE_MANAGER_URL" }; const recorderOptions: RecorderStartOptions = { @@ -33,7 +36,7 @@ export const testPollingOptions = { updateIntervalInMs: isPlaybackMode() ? 0 : undefined, }; -describe("CommunicationService test", () => { +describe.skip("CommunicationService test", () => { let recorder: Recorder; let subscriptionId: string; let client: CommunicationServiceManagementClient; @@ -53,34 +56,34 @@ describe("CommunicationService test", () => { communicationServiceName = "mycommunicationServicexxx"; }); - afterEach(async function() { + afterEach(async function () { await recorder.stop(); }); - it("communicationService create test", async function() { - const res = await client.communicationServices.beginCreateOrUpdateAndWait(resourceGroup,communicationServiceName,{location: location,dataLocation: "UnitedStates"}); - assert.notEqual(res.id,undefined); + it("communicationService create test", async function () { + const res = await client.communicationServices.beginCreateOrUpdateAndWait(resourceGroup, communicationServiceName, { location: location, dataLocation: "UnitedStates" }); + assert.notEqual(res.id, undefined); }); - it("communicationService get test", async function() { - const res = await client.communicationServices.get(resourceGroup,communicationServiceName); - assert.equal(res.name,communicationServiceName); + it("communicationService get test", async function () { + const res = await client.communicationServices.get(resourceGroup, communicationServiceName); + assert.equal(res.name, communicationServiceName); }); - it("communicationService list test", async function() { + it("communicationService list test", async function () { const resArray = new Array(); - for await (let item of client.communicationServices.listByResourceGroup(resourceGroup)){ - resArray.push(item); + for await (let item of client.communicationServices.listByResourceGroup(resourceGroup)) { + resArray.push(item); } - assert.equal(resArray.length,1); + assert.equal(resArray.length, 1); }); - it("communicationService delete test", async function() { - const res = await client.communicationServices.beginDeleteAndWait(resourceGroup,communicationServiceName,testPollingOptions); + it("communicationService delete test", async function () { + const res = await client.communicationServices.beginDeleteAndWait(resourceGroup, communicationServiceName, testPollingOptions); const resArray = new Array(); - for await (let item of client.communicationServices.listByResourceGroup(resourceGroup)){ - resArray.push(item); + for await (let item of client.communicationServices.listByResourceGroup(resourceGroup)) { + resArray.push(item); } - assert.equal(resArray.length,0); + assert.equal(resArray.length, 0); }); });