From d618f7b51cf4881d72e021a9948a48f6ee15ae00 Mon Sep 17 00:00:00 2001 From: Jiri Burant Date: Sun, 15 May 2022 12:04:16 +0200 Subject: [PATCH] Modified recordings to address PR comments --- .../recording_can_get_a_purchased_phone_number.json | 2 +- .../recording_errors_if_phone_number_not_found.json | 2 +- ...recording_can_list_all_purchased_phone_numbers.json | 2 +- ...ording_can_purchase_and_release_a_phone_number.json | 8 ++++---- ...ording_can_purchase_and_release_a_phone_number.json | 10 +++++----- ...search_for_1_available_phone_number_by_default.json | 4 ++-- .../recording_throws_on_invalid_search_request.json | 4 ++-- ...ording_can_update_a_phone_numbers_capabilities.json | 6 +++--- ...ing_update_throws_when_phone_number_isnt_owned.json | 2 +- ...ording_can_update_a_phone_numbers_capabilities.json | 8 ++++---- ...ing_update_throws_when_phone_number_isnt_owned.json | 4 ++-- ...ecording_can_purchase_and_release_a_phone_number.js | 8 ++++---- ...ecording_can_purchase_and_release_a_phone_number.js | 8 ++++---- ...ecording_can_update_a_phone_numbers_capabilities.js | 6 +++--- ...rding_update_throws_when_phone_number_isnt_owned.js | 2 +- ...ecording_can_update_a_phone_numbers_capabilities.js | 6 +++--- ...rding_update_throws_when_phone_number_isnt_owned.js | 2 +- .../test/public/lro.purchaseAndRelease.spec.ts | 4 ++-- .../test/public/lro.update.spec.ts | 2 +- 19 files changed, 45 insertions(+), 45 deletions(-) diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json index b51dcbf2a27f..7c8c06347d21 100644 --- a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=-Hu8Q%7Er4KSsao2nHOWoXGDc3wY9hCFtiS1FjbaSK&scope=https%3A%2F%2Fsanitized%2F", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":3599,\"ext_expires_in\":3599,\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json index 18004333e937..9983054dd016 100644 --- a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=-Hu8Q%7Er4KSsao2nHOWoXGDc3wY9hCFtiS1FjbaSK&scope=https%3A%2F%2Fsanitized%2F", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":3599,\"ext_expires_in\":3599,\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json index 56a2aa177a2d..f354c742d0e9 100644 --- a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=-Hu8Q%7Er4KSsao2nHOWoXGDc3wY9hCFtiS1FjbaSK&scope=https%3A%2F%2Fsanitized%2F", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":3599,\"ext_expires_in\":3599,\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json index cf85dd2ae67d..6239006196c1 100644 --- a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json @@ -6,7 +6,7 @@ "query": { "api-version": "2022-06-01-preview" }, - "requestBody": "{\"phoneNumberType\":\"tollFree\",\"assignmentType\":\"application\",\"capabilities\":{\"calling\":\"outbound\",\"sms\":\"none\"},\"quantity\":1}", + "requestBody": "{\"phoneNumberType\":\"tollFree\",\"assignmentType\":\"application\",\"capabilities\":{\"calling\":\"none\",\"sms\":\"inbound+outbound\"},\"quantity\":1}", "status": 202, "response": "", "responseHeaders": { @@ -55,7 +55,7 @@ }, "requestBody": null, "status": 200, - "response": "{\"searchId\":\"sanitized\",\"phoneNumbers\":[\"+14155550100\"],\"phoneNumberType\":\"tollFree\",\"assignmentType\":\"application\",\"capabilities\":{\"calling\":\"outbound\",\"sms\":\"none\"},\"cost\":{\"amount\":2.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"searchExpiresBy\":\"2022-05-12T16:31:52.6170921+00:00\"}", + "response": "{\"searchId\":\"sanitized\",\"phoneNumbers\":[\"+14155550100\"],\"phoneNumberType\":\"tollFree\",\"assignmentType\":\"application\",\"capabilities\":{\"calling\":\"none\",\"sms\":\"inbound+outbound\"},\"cost\":{\"amount\":2.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"searchExpiresBy\":\"2022-05-12T16:31:52.6170921+00:00\"}", "responseHeaders": { "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview", "content-type": "application/json; charset=utf-8", @@ -75,7 +75,7 @@ }, "requestBody": null, "status": 200, - "response": "{\"searchId\":\"sanitized\",\"phoneNumbers\":[\"+14155550100\"],\"phoneNumberType\":\"tollFree\",\"assignmentType\":\"application\",\"capabilities\":{\"calling\":\"outbound\",\"sms\":\"none\"},\"cost\":{\"amount\":2.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"searchExpiresBy\":\"2022-05-12T16:31:52.6170921+00:00\"}", + "response": "{\"searchId\":\"sanitized\",\"phoneNumbers\":[\"+14155550100\"],\"phoneNumberType\":\"tollFree\",\"assignmentType\":\"application\",\"capabilities\":{\"calling\":\"none\",\"sms\":\"inbound+outbound\"},\"cost\":{\"amount\":2.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"searchExpiresBy\":\"2022-05-12T16:31:52.6170921+00:00\"}", "responseHeaders": { "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview", "content-type": "application/json; charset=utf-8", @@ -179,7 +179,7 @@ }, "requestBody": null, "status": 200, - "response": "{\"id\":\"14155550100\",\"phoneNumber\":\"+14155550100\",\"countryCode\":\"US\",\"phoneNumberType\":\"tollFree\",\"capabilities\":{\"calling\":\"outbound\",\"sms\":\"none\"},\"assignmentType\":\"application\",\"purchaseDate\":\"2022-05-12T16:16:03.8100615+00:00\",\"cost\":{\"amount\":2.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"operatorId\":\"sanitized\",\"operatorName\":\"Microsoft PPE (Dogfood)\",\"phoneNumberSource\":\"cloud\"}", + "response": "{\"id\":\"14155550100\",\"phoneNumber\":\"+14155550100\",\"countryCode\":\"US\",\"phoneNumberType\":\"tollFree\",\"capabilities\":{\"calling\":\"none\",\"sms\":\"inbound+outbound\"},\"assignmentType\":\"application\",\"purchaseDate\":\"2022-05-12T16:16:03.8100615+00:00\",\"cost\":{\"amount\":2.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"operatorId\":\"sanitized\",\"operatorName\":\"Microsoft PPE (Dogfood)\",\"phoneNumberSource\":\"cloud\"}", "responseHeaders": { "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview", "content-type": "application/json; charset=utf-8", diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json index a22dcfb20bdd..cacc88966cd4 100644 --- a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=-Hu8Q%7Er4KSsao2nHOWoXGDc3wY9hCFtiS1FjbaSK&scope=https%3A%2F%2Fsanitized%2F", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":3599,\"ext_expires_in\":3599,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -29,7 +29,7 @@ "query": { "api-version": "2022-06-01-preview" }, - "requestBody": "{\"phoneNumberType\":\"tollFree\",\"assignmentType\":\"application\",\"capabilities\":{\"calling\":\"outbound\",\"sms\":\"none\"},\"quantity\":1}", + "requestBody": "{\"phoneNumberType\":\"tollFree\",\"assignmentType\":\"application\",\"capabilities\":{\"calling\":\"none\",\"sms\":\"inbound+outbound\"},\"quantity\":1}", "status": 202, "response": "", "responseHeaders": { @@ -78,7 +78,7 @@ }, "requestBody": null, "status": 200, - "response": "{\"searchId\":\"sanitized\",\"phoneNumbers\":[\"+14155550100\"],\"phoneNumberType\":\"tollFree\",\"assignmentType\":\"application\",\"capabilities\":{\"calling\":\"outbound\",\"sms\":\"none\"},\"cost\":{\"amount\":2.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"searchExpiresBy\":\"2022-05-12T16:26:43.7283467+00:00\"}", + "response": "{\"searchId\":\"sanitized\",\"phoneNumbers\":[\"+14155550100\"],\"phoneNumberType\":\"tollFree\",\"assignmentType\":\"application\",\"capabilities\":{\"calling\":\"none\",\"sms\":\"inbound+outbound\"},\"cost\":{\"amount\":2.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"searchExpiresBy\":\"2022-05-12T16:26:43.7283467+00:00\"}", "responseHeaders": { "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview", "content-type": "application/json; charset=utf-8", @@ -98,7 +98,7 @@ }, "requestBody": null, "status": 200, - "response": "{\"searchId\":\"sanitized\",\"phoneNumbers\":[\"+14155550100\"],\"phoneNumberType\":\"tollFree\",\"assignmentType\":\"application\",\"capabilities\":{\"calling\":\"outbound\",\"sms\":\"none\"},\"cost\":{\"amount\":2.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"searchExpiresBy\":\"2022-05-12T16:26:43.7283467+00:00\"}", + "response": "{\"searchId\":\"sanitized\",\"phoneNumbers\":[\"+14155550100\"],\"phoneNumberType\":\"tollFree\",\"assignmentType\":\"application\",\"capabilities\":{\"calling\":\"none\",\"sms\":\"inbound+outbound\"},\"cost\":{\"amount\":2.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"searchExpiresBy\":\"2022-05-12T16:26:43.7283467+00:00\"}", "responseHeaders": { "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview", "content-type": "application/json; charset=utf-8", @@ -182,7 +182,7 @@ }, "requestBody": null, "status": 200, - "response": "{\"id\":\"14155550100\",\"phoneNumber\":\"+14155550100\",\"countryCode\":\"US\",\"phoneNumberType\":\"tollFree\",\"capabilities\":{\"calling\":\"outbound\",\"sms\":\"none\"},\"assignmentType\":\"application\",\"purchaseDate\":\"2022-05-12T16:10:55.6147324+00:00\",\"cost\":{\"amount\":2.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"operatorId\":\"sanitized\",\"operatorName\":\"Microsoft PPE (Dogfood)\",\"phoneNumberSource\":\"cloud\"}", + "response": "{\"id\":\"14155550100\",\"phoneNumber\":\"+14155550100\",\"countryCode\":\"US\",\"phoneNumberType\":\"tollFree\",\"capabilities\":{\"calling\":\"none\",\"sms\":\"inbound+outbound\"},\"assignmentType\":\"application\",\"purchaseDate\":\"2022-05-12T16:10:55.6147324+00:00\",\"cost\":{\"amount\":2.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"operatorId\":\"sanitized\",\"operatorName\":\"Microsoft PPE (Dogfood)\",\"phoneNumberSource\":\"cloud\"}", "responseHeaders": { "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview", "content-type": "application/json; charset=utf-8", diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json index 4f0f330e5b36..c5aad67483ac 100644 --- a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json @@ -2,9 +2,9 @@ "recordings": [ { "method": "POST", - "url": "https://endpoint//SomeTenantId/oauth2/v2.0/token", + "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=-Hu8Q%7Er4KSsao2nHOWoXGDc3wY9hCFtiS1FjbaSK&scope=https%3A%2F%2Fsanitized%2F", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":3599,\"ext_expires_in\":3599,\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json index 81d2f4e178d6..01ae2e83c517 100644 --- a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json @@ -2,9 +2,9 @@ "recordings": [ { "method": "POST", - "url": "https://endpoint//SomeTenantId/oauth2/v2.0/token", + "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=-Hu8Q%7Er4KSsao2nHOWoXGDc3wY9hCFtiS1FjbaSK&scope=https%3A%2F%2Fsanitized%2F", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":3599,\"ext_expires_in\":3599,\"access_token\":\"access_token\"}", "responseHeaders": { diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json index 02ffea462489..39ad8407af01 100644 --- a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json @@ -6,7 +6,7 @@ "query": { "api-version": "2022-06-01-preview" }, - "requestBody": "{\"calling\":\"outbound\",\"sms\":\"none\"}", + "requestBody": "{\"calling\":\"none\",\"sms\":\"outbound\"}", "status": 202, "response": "{\"capabilitiesUpdateId\":\"sanitized\"}", "responseHeaders": { @@ -55,7 +55,7 @@ }, "requestBody": null, "status": 200, - "response": "{\"id\":\"14155550100\",\"phoneNumber\":\"+14155550100\",\"countryCode\":\"US\",\"phoneNumberType\":\"geographic\",\"capabilities\":{\"calling\":\"outbound\",\"sms\":\"none\"},\"assignmentType\":\"application\",\"purchaseDate\":\"2022-03-14T18:26:44.3415816+00:00\",\"cost\":{\"amount\":1.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"operatorId\":\"sanitized\",\"operatorName\":\"Microsoft PPE (Dogfood)\",\"phoneNumberSource\":\"cloud\"}", + "response": "{\"id\":\"14155550100\",\"phoneNumber\":\"+14155550100\",\"countryCode\":\"US\",\"phoneNumberType\":\"geographic\",\"capabilities\":{\"calling\":\"none\",\"sms\":\"outbound\"},\"assignmentType\":\"application\",\"purchaseDate\":\"2022-03-14T18:26:44.3415816+00:00\",\"cost\":{\"amount\":1.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"operatorId\":\"sanitized\",\"operatorName\":\"Microsoft PPE (Dogfood)\",\"phoneNumberSource\":\"cloud\"}", "responseHeaders": { "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview", "content-type": "application/json; charset=utf-8", @@ -75,7 +75,7 @@ }, "requestBody": null, "status": 200, - "response": "{\"id\":\"14155550100\",\"phoneNumber\":\"+14155550100\",\"countryCode\":\"US\",\"phoneNumberType\":\"geographic\",\"capabilities\":{\"calling\":\"outbound\",\"sms\":\"none\"},\"assignmentType\":\"application\",\"purchaseDate\":\"2022-03-14T18:26:44.3415816+00:00\",\"cost\":{\"amount\":1.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"operatorId\":\"sanitized\",\"operatorName\":\"Microsoft PPE (Dogfood)\",\"phoneNumberSource\":\"cloud\"}", + "response": "{\"id\":\"14155550100\",\"phoneNumber\":\"+14155550100\",\"countryCode\":\"US\",\"phoneNumberType\":\"geographic\",\"capabilities\":{\"calling\":\"none\",\"sms\":\"outbound\"},\"assignmentType\":\"application\",\"purchaseDate\":\"2022-03-14T18:26:44.3415816+00:00\",\"cost\":{\"amount\":1.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"operatorId\":\"sanitized\",\"operatorName\":\"Microsoft PPE (Dogfood)\",\"phoneNumberSource\":\"cloud\"}", "responseHeaders": { "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview", "content-type": "application/json; charset=utf-8", diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_isnt_owned.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_isnt_owned.json index 40a5cd975367..8f0dc21d176b 100644 --- a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_isnt_owned.json +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_isnt_owned.json @@ -6,7 +6,7 @@ "query": { "api-version": "2022-06-01-preview" }, - "requestBody": "{\"calling\":\"outbound\",\"sms\":\"none\"}", + "requestBody": "{\"calling\":\"none\",\"sms\":\"outbound\"}", "status": 404, "response": "{\"error\":{\"code\":\"InternalError\",\"message\":\"The server encountered an internal error.\"}}", "responseHeaders": { diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json index 98983e375f6e..64fa4d330b8b 100644 --- a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=-Hu8Q%7Er4KSsao2nHOWoXGDc3wY9hCFtiS1FjbaSK&scope=https%3A%2F%2Fsanitized%2F", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":3599,\"ext_expires_in\":3599,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -29,7 +29,7 @@ "query": { "api-version": "2022-06-01-preview" }, - "requestBody": "{\"calling\":\"outbound\",\"sms\":\"none\"}", + "requestBody": "{\"calling\":\"none\",\"sms\":\"outbound\"}", "status": 202, "response": "{\"capabilitiesUpdateId\":\"sanitized\"}", "responseHeaders": { @@ -78,7 +78,7 @@ }, "requestBody": null, "status": 200, - "response": "{\"id\":\"14155550100\",\"phoneNumber\":\"+14155550100\",\"countryCode\":\"US\",\"phoneNumberType\":\"geographic\",\"capabilities\":{\"calling\":\"outbound\",\"sms\":\"none\"},\"assignmentType\":\"application\",\"purchaseDate\":\"2022-03-14T18:26:44.3415816+00:00\",\"cost\":{\"amount\":1.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"operatorId\":\"sanitized\",\"operatorName\":\"Microsoft PPE (Dogfood)\",\"phoneNumberSource\":\"cloud\"}", + "response": "{\"id\":\"14155550100\",\"phoneNumber\":\"+14155550100\",\"countryCode\":\"US\",\"phoneNumberType\":\"geographic\",\"capabilities\":{\"calling\":\"none\",\"sms\":\"outbound\"},\"assignmentType\":\"application\",\"purchaseDate\":\"2022-03-14T18:26:44.3415816+00:00\",\"cost\":{\"amount\":1.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"operatorId\":\"sanitized\",\"operatorName\":\"Microsoft PPE (Dogfood)\",\"phoneNumberSource\":\"cloud\"}", "responseHeaders": { "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview", "content-type": "application/json; charset=utf-8", @@ -98,7 +98,7 @@ }, "requestBody": null, "status": 200, - "response": "{\"id\":\"14155550100\",\"phoneNumber\":\"+14155550100\",\"countryCode\":\"US\",\"phoneNumberType\":\"geographic\",\"capabilities\":{\"calling\":\"outbound\",\"sms\":\"none\"},\"assignmentType\":\"application\",\"purchaseDate\":\"2022-03-14T18:26:44.3415816+00:00\",\"cost\":{\"amount\":1.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"operatorId\":\"sanitized\",\"operatorName\":\"Microsoft PPE (Dogfood)\",\"phoneNumberSource\":\"cloud\"}", + "response": "{\"id\":\"14155550100\",\"phoneNumber\":\"+14155550100\",\"countryCode\":\"US\",\"phoneNumberType\":\"geographic\",\"capabilities\":{\"calling\":\"none\",\"sms\":\"outbound\"},\"assignmentType\":\"application\",\"purchaseDate\":\"2022-03-14T18:26:44.3415816+00:00\",\"cost\":{\"amount\":1.0,\"currencyCode\":\"USD\",\"billingFrequency\":\"monthly\"},\"operatorId\":\"sanitized\",\"operatorName\":\"Microsoft PPE (Dogfood)\",\"phoneNumberSource\":\"cloud\"}", "responseHeaders": { "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview", "content-type": "application/json; charset=utf-8", diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_isnt_owned.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_isnt_owned.json index ac1fc2ee7c05..0c5e4f20f302 100644 --- a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_isnt_owned.json +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_isnt_owned.json @@ -4,7 +4,7 @@ "method": "POST", "url": "https://endpoint/SomeTenantId/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=-Hu8Q%7Er4KSsao2nHOWoXGDc3wY9hCFtiS1FjbaSK&scope=https%3A%2F%2Fsanitized%2F", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=SomeClientId&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":3599,\"ext_expires_in\":3599,\"access_token\":\"access_token\"}", "responseHeaders": { @@ -29,7 +29,7 @@ "query": { "api-version": "2022-06-01-preview" }, - "requestBody": "{\"calling\":\"outbound\",\"sms\":\"none\"}", + "requestBody": "{\"calling\":\"none\",\"sms\":\"outbound\"}", "status": 404, "response": "{\"error\":{\"code\":\"InternalError\",\"message\":\"The server encountered an internal error.\"}}", "responseHeaders": { diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.js b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.js index c046a95b1df6..a75f2c88c7cb 100644 --- a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.js +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.js @@ -5,7 +5,7 @@ module.exports.hash = "2735c784c95a0da858331cfa3554882b"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":false}) - .post('/availablePhoneNumbers/countries/US/:search', {"phoneNumberType":"tollFree","assignmentType":"application","capabilities":{"calling":"outbound","sms":"none"},"quantity":1}) + .post('/availablePhoneNumbers/countries/US/:search', {"phoneNumberType":"tollFree","assignmentType":"application","capabilities":{"calling":"none","sms":"inbound+outbound"},"quantity":1}) .query(true) .reply(202, "", [ 'Location', @@ -67,7 +67,7 @@ nock('https://endpoint', {"encodedQueryParams":false}) nock('https://endpoint', {"encodedQueryParams":false}) .get('/availablePhoneNumbers/searchResults/sanitized') .query(true) - .reply(200, {"searchId":"sanitized","phoneNumbers":["+14155550100"],"phoneNumberType":"tollFree","assignmentType":"application","capabilities":{"calling":"outbound","sms":"none"},"cost":{"amount":2,"currencyCode":"USD","billingFrequency":"monthly"},"searchExpiresBy":"2022-05-12T16:38:21.0616876+00:00"}, [ + .reply(200, {"searchId":"sanitized","phoneNumbers":["+14155550100"],"phoneNumberType":"tollFree","assignmentType":"application","capabilities":{"calling":"none","sms":"inbound+outbound"},"cost":{"amount":2,"currencyCode":"USD","billingFrequency":"monthly"},"searchExpiresBy":"2022-05-12T16:38:21.0616876+00:00"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -91,7 +91,7 @@ nock('https://endpoint', {"encodedQueryParams":false}) nock('https://endpoint', {"encodedQueryParams":false}) .get('/availablePhoneNumbers/searchResults/sanitized') .query(true) - .reply(200, {"searchId":"sanitized","phoneNumbers":["+14155550100"],"phoneNumberType":"tollFree","assignmentType":"application","capabilities":{"calling":"outbound","sms":"none"},"cost":{"amount":2,"currencyCode":"USD","billingFrequency":"monthly"},"searchExpiresBy":"2022-05-12T16:38:21.0616876+00:00"}, [ + .reply(200, {"searchId":"sanitized","phoneNumbers":["+14155550100"],"phoneNumberType":"tollFree","assignmentType":"application","capabilities":{"calling":"none","sms":"inbound+outbound"},"cost":{"amount":2,"currencyCode":"USD","billingFrequency":"monthly"},"searchExpiresBy":"2022-05-12T16:38:21.0616876+00:00"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -193,7 +193,7 @@ nock('https://endpoint', {"encodedQueryParams":false}) nock('https://endpoint', {"encodedQueryParams":false}) .get('/phoneNumbers/%2B14155550100') .query(true) - .reply(200, {"id":"14155550100","phoneNumber":"+14155550100","countryCode":"US","phoneNumberType":"tollFree","capabilities":{"calling":"outbound","sms":"none"},"assignmentType":"application","purchaseDate":"2022-05-12T16:22:32.2268286+00:00","cost":{"amount":2,"currencyCode":"USD","billingFrequency":"monthly"},"operatorId":"sanitized","operatorName":"Microsoft PPE (Dogfood)","phoneNumberSource":"cloud"}, [ + .reply(200, {"id":"14155550100","phoneNumber":"+14155550100","countryCode":"US","phoneNumberType":"tollFree","capabilities":{"calling":"none","sms":"inbound+outbound"},"assignmentType":"application","purchaseDate":"2022-05-12T16:22:32.2268286+00:00","cost":{"amount":2,"currencyCode":"USD","billingFrequency":"monthly"},"operatorId":"sanitized","operatorName":"Microsoft PPE (Dogfood)","phoneNumberSource":"cloud"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.js b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.js index 61d8edd8bcdd..080f532ac210 100644 --- a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.js +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.js @@ -113,7 +113,7 @@ nock('https://endpoint', {"encodedQueryParams":false}) ]); nock('https://endpoint', {"encodedQueryParams":false}) - .post('/availablePhoneNumbers/countries/US/:search', {"phoneNumberType":"tollFree","assignmentType":"application","capabilities":{"calling":"outbound","sms":"none"},"quantity":1}) + .post('/availablePhoneNumbers/countries/US/:search', {"phoneNumberType":"tollFree","assignmentType":"application","capabilities":{"calling":"none","sms":"inbound+outbound"},"quantity":1}) .query(true) .reply(202, "", [ 'Location', @@ -175,7 +175,7 @@ nock('https://endpoint', {"encodedQueryParams":false}) nock('https://endpoint', {"encodedQueryParams":false}) .get('/availablePhoneNumbers/searchResults/sanitized') .query(true) - .reply(200, {"searchId":"sanitized","phoneNumbers":["+14155550100"],"phoneNumberType":"tollFree","assignmentType":"application","capabilities":{"calling":"outbound","sms":"none"},"cost":{"amount":2,"currencyCode":"USD","billingFrequency":"monthly"},"searchExpiresBy":"2022-05-12T16:09:54.4881215+00:00"}, [ + .reply(200, {"searchId":"sanitized","phoneNumbers":["+14155550100"],"phoneNumberType":"tollFree","assignmentType":"application","capabilities":{"calling":"none","sms":"inbound+outbound"},"cost":{"amount":2,"currencyCode":"USD","billingFrequency":"monthly"},"searchExpiresBy":"2022-05-12T16:09:54.4881215+00:00"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -199,7 +199,7 @@ nock('https://endpoint', {"encodedQueryParams":false}) nock('https://endpoint', {"encodedQueryParams":false}) .get('/availablePhoneNumbers/searchResults/sanitized') .query(true) - .reply(200, {"searchId":"sanitized","phoneNumbers":["+14155550100"],"phoneNumberType":"tollFree","assignmentType":"application","capabilities":{"calling":"outbound","sms":"none"},"cost":{"amount":2,"currencyCode":"USD","billingFrequency":"monthly"},"searchExpiresBy":"2022-05-12T16:09:54.4881215+00:00"}, [ + .reply(200, {"searchId":"sanitized","phoneNumbers":["+14155550100"],"phoneNumberType":"tollFree","assignmentType":"application","capabilities":{"calling":"none","sms":"inbound+outbound"},"cost":{"amount":2,"currencyCode":"USD","billingFrequency":"monthly"},"searchExpiresBy":"2022-05-12T16:09:54.4881215+00:00"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -301,7 +301,7 @@ nock('https://endpoint', {"encodedQueryParams":false}) nock('https://endpoint', {"encodedQueryParams":false}) .get('/phoneNumbers/%2B14155550100') .query(true) - .reply(200, {"id":"14155550100","phoneNumber":"+14155550100","countryCode":"US","phoneNumberType":"tollFree","capabilities":{"calling":"outbound","sms":"none"},"assignmentType":"application","purchaseDate":"2022-05-12T15:54:04.8422206+00:00","cost":{"amount":2,"currencyCode":"USD","billingFrequency":"monthly"},"operatorId":"sanitized","operatorName":"Microsoft PPE (Dogfood)","phoneNumberSource":"cloud"}, [ + .reply(200, {"id":"14155550100","phoneNumber":"+14155550100","countryCode":"US","phoneNumberType":"tollFree","capabilities":{"calling":"none","sms":"inbound+outbound"},"assignmentType":"application","purchaseDate":"2022-05-12T15:54:04.8422206+00:00","cost":{"amount":2,"currencyCode":"USD","billingFrequency":"monthly"},"operatorId":"sanitized","operatorName":"Microsoft PPE (Dogfood)","phoneNumberSource":"cloud"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.js b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.js index 6bcf71d13815..937b85762f2c 100644 --- a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.js +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.js @@ -5,7 +5,7 @@ module.exports.hash = "649cd5b74c6eb8795af1877131658e87"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":false}) - .patch('/phoneNumbers/%2B14155550100/capabilities', {"calling":"outbound","sms":"none"}) + .patch('/phoneNumbers/%2B14155550100/capabilities', {"calling":"none","sms":"outbound"}) .query(true) .reply(202, {"capabilitiesUpdateId":"sanitized"}, [ 'Transfer-Encoding', @@ -69,7 +69,7 @@ nock('https://endpoint', {"encodedQueryParams":false}) nock('https://endpoint', {"encodedQueryParams":false}) .get('/phoneNumbers/+14155550100') .query(true) - .reply(200, {"id":"14155550100","phoneNumber":"+14155550100","countryCode":"US","phoneNumberType":"geographic","capabilities":{"calling":"outbound","sms":"none"},"assignmentType":"application","purchaseDate":"2022-03-14T18:26:44.3415816+00:00","cost":{"amount":1,"currencyCode":"USD","billingFrequency":"monthly"},"operatorId":"sanitized","operatorName":"Microsoft PPE (Dogfood)","phoneNumberSource":"cloud"}, [ + .reply(200, {"id":"14155550100","phoneNumber":"+14155550100","countryCode":"US","phoneNumberType":"geographic","capabilities":{"calling":"none","sms":"outbound"},"assignmentType":"application","purchaseDate":"2022-03-14T18:26:44.3415816+00:00","cost":{"amount":1,"currencyCode":"USD","billingFrequency":"monthly"},"operatorId":"sanitized","operatorName":"Microsoft PPE (Dogfood)","phoneNumberSource":"cloud"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -93,7 +93,7 @@ nock('https://endpoint', {"encodedQueryParams":false}) nock('https://endpoint', {"encodedQueryParams":false}) .get('/phoneNumbers/+14155550100') .query(true) - .reply(200, {"id":"14155550100","phoneNumber":"+14155550100","countryCode":"US","phoneNumberType":"geographic","capabilities":{"calling":"outbound","sms":"none"},"assignmentType":"application","purchaseDate":"2022-03-14T18:26:44.3415816+00:00","cost":{"amount":1,"currencyCode":"USD","billingFrequency":"monthly"},"operatorId":"sanitized","operatorName":"Microsoft PPE (Dogfood)","phoneNumberSource":"cloud"}, [ + .reply(200, {"id":"14155550100","phoneNumber":"+14155550100","countryCode":"US","phoneNumberType":"geographic","capabilities":{"calling":"none","sms":"outbound"},"assignmentType":"application","purchaseDate":"2022-03-14T18:26:44.3415816+00:00","cost":{"amount":1,"currencyCode":"USD","billingFrequency":"monthly"},"operatorId":"sanitized","operatorName":"Microsoft PPE (Dogfood)","phoneNumberSource":"cloud"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_isnt_owned.js b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_isnt_owned.js index 64d5ce869590..03bb32265816 100644 --- a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_isnt_owned.js +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_isnt_owned.js @@ -5,7 +5,7 @@ module.exports.hash = "bb0bb99bc6627e2b9c3ac870b03889d8"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint', {"encodedQueryParams":false}) - .patch('/phoneNumbers/%2B14155550100/capabilities', {"calling":"outbound","sms":"none"}) + .patch('/phoneNumbers/%2B14155550100/capabilities', {"calling":"none","sms":"outbound"}) .query(true) .reply(404, {"error":{"code":"InternalError","message":"The server encountered an internal error."}}, [ 'Transfer-Encoding', diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.js b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.js index ed90b7fd04a0..f8dc8c47ac04 100644 --- a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.js +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.js @@ -113,7 +113,7 @@ nock('https://endpoint', {"encodedQueryParams":true}) ]); nock('https://endpoint', {"encodedQueryParams":true}) - .patch('/phoneNumbers/%2B14155550100/capabilities', {"calling":"outbound","sms":"none"}) + .patch('/phoneNumbers/%2B14155550100/capabilities', {"calling":"none","sms":"outbound"}) .query(true) .reply(202, {"capabilitiesUpdateId":"sanitized"}, [ 'Transfer-Encoding', @@ -177,7 +177,7 @@ nock('https://endpoint', {"encodedQueryParams":true}) nock('https://endpoint', {"encodedQueryParams":true}) .get('/phoneNumbers/+14155550100') .query(true) - .reply(200, {"id":"14155550100","phoneNumber":"+14155550100","countryCode":"US","phoneNumberType":"geographic","capabilities":{"calling":"outbound","sms":"none"},"assignmentType":"application","purchaseDate":"2022-03-14T18:26:44.3415816+00:00","cost":{"amount":1,"currencyCode":"USD","billingFrequency":"monthly"},"operatorId":"sanitized","operatorName":"Microsoft PPE (Dogfood)","phoneNumberSource":"cloud"}, [ + .reply(200, {"id":"14155550100","phoneNumber":"+14155550100","countryCode":"US","phoneNumberType":"geographic","capabilities":{"calling":"none","sms":"outbound"},"assignmentType":"application","purchaseDate":"2022-03-14T18:26:44.3415816+00:00","cost":{"amount":1,"currencyCode":"USD","billingFrequency":"monthly"},"operatorId":"sanitized","operatorName":"Microsoft PPE (Dogfood)","phoneNumberSource":"cloud"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -201,7 +201,7 @@ nock('https://endpoint', {"encodedQueryParams":true}) nock('https://endpoint', {"encodedQueryParams":true}) .get('/phoneNumbers/+14155550100') .query(true) - .reply(200, {"id":"14155550100","phoneNumber":"+14155550100","countryCode":"US","phoneNumberType":"geographic","capabilities":{"calling":"outbound","sms":"none"},"assignmentType":"application","purchaseDate":"2022-03-14T18:26:44.3415816+00:00","cost":{"amount":1,"currencyCode":"USD","billingFrequency":"monthly"},"operatorId":"sanitized","operatorName":"Microsoft PPE (Dogfood)","phoneNumberSource":"cloud"}, [ + .reply(200, {"id":"14155550100","phoneNumber":"+14155550100","countryCode":"US","phoneNumberType":"geographic","capabilities":{"calling":"none","sms":"outbound"},"assignmentType":"application","purchaseDate":"2022-03-14T18:26:44.3415816+00:00","cost":{"amount":1,"currencyCode":"USD","billingFrequency":"monthly"},"operatorId":"sanitized","operatorName":"Microsoft PPE (Dogfood)","phoneNumberSource":"cloud"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_isnt_owned.js b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_isnt_owned.js index 453635019f11..7b820a687acc 100644 --- a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_isnt_owned.js +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_isnt_owned.js @@ -113,7 +113,7 @@ nock('https://endpoint', {"encodedQueryParams":true}) ]); nock('https://endpoint', {"encodedQueryParams":true}) - .patch('/phoneNumbers/%2B14155550100/capabilities', {"calling":"outbound","sms":"none"}) + .patch('/phoneNumbers/%2B14155550100/capabilities', {"calling":"none","sms":"outbound"}) .query(true) .reply(404, {"error":{"code":"InternalError","message":"The server encountered an internal error."}}, [ 'Transfer-Encoding', diff --git a/sdk/communication/communication-phone-numbers/test/public/lro.purchaseAndRelease.spec.ts b/sdk/communication/communication-phone-numbers/test/public/lro.purchaseAndRelease.spec.ts index ad2589d9bf58..327b4c89c768 100644 --- a/sdk/communication/communication-phone-numbers/test/public/lro.purchaseAndRelease.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/public/lro.purchaseAndRelease.spec.ts @@ -39,8 +39,8 @@ matrix([[true, false]], async function (useAad) { phoneNumberType: "tollFree", assignmentType: "application", capabilities: { - sms: "none", - calling: "outbound", + sms: "inbound+outbound", + calling: "none", }, }; const searchPoller = await client.beginSearchAvailablePhoneNumbers(searchRequest); diff --git a/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts b/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts index 77224c0cf31c..f5dfad97d77d 100644 --- a/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts @@ -12,7 +12,7 @@ import { getPhoneNumber } from "./utils/testPhoneNumber"; matrix([[true, false]], async function (useAad) { describe(`PhoneNumbersClient - lro - update${useAad ? " [AAD]" : ""}`, function () { const purchasedPhoneNumber = getPhoneNumber(); - const update: PhoneNumberCapabilitiesRequest = { calling: "outbound", sms: "none" }; + const update: PhoneNumberCapabilitiesRequest = { calling: "none", sms: "outbound" }; let recorder: Recorder; let client: PhoneNumbersClient;