From 9fc1c5dd3065f48905fcee5758bb8220522bdf83 Mon Sep 17 00:00:00 2001 From: Heli Wang Date: Tue, 17 Nov 2020 10:34:17 -0800 Subject: [PATCH 1/8] refactor the params of begin_reserve_phone_numbers --- .../_phone_number_administration_client.py | 40 +++++++++++++++---- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/sdk/communication/azure-communication-administration/azure/communication/administration/_phone_number_administration_client.py b/sdk/communication/azure-communication-administration/azure/communication/administration/_phone_number_administration_client.py index 54c7187c5e94..673382525ada 100644 --- a/sdk/communication/azure-communication-administration/azure/communication/administration/_phone_number_administration_client.py +++ b/sdk/communication/azure-communication-administration/azure/communication/administration/_phone_number_administration_client.py @@ -4,7 +4,7 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -from azure.communication.administration._phonenumber._generated.models import ReleaseStatus +from azure.communication.administration._phonenumber._generated.models import ReleaseStatus, CreateSearchOptions from azure.core.tracing.decorator import distributed_trace from azure.core.paging import ItemPaged from azure.core.polling import LROPoller @@ -444,10 +444,21 @@ def begin_reserve_phone_numbers( ): # type: (...) -> LROPoller[PhoneNumberReservation] """Begins creating a phone number search to reserve phone numbers. - Caller must provide either options, or continuation_token keywords to use the method. - If both options and continuation_token are specified, only continuation_token will be used to - restart a poller from a saved state, and keyword options will be ignored. - :keyword azure.communication.administration.CreateSearchOptions options: reservation options. + Caller must provide one of the following: + (1) all of keywords display_name, description, phone_plan_ids, area_code, quantity if all the phone plans + to reserve are toll-free plans. + (2) all of keywords display_name, description, phone_plan_ids, area_code, quantity, location_options + if at least one phone plan to reserve is not toll-free plans. + (3) only keyword continuation_token to restart a poller from a saved state. + If both continuation_token and other keywords are specified, only continuation_token will be used to + restart a poller from a saved state, and other keywords will be ignored. + :keyword str display_name: display name of the search. + :keyword str description: description of the search. + :keyword list[str] phone_plan_ids: the plan subtype ids from which to create the search. + :keyword str area_code: the area code from which to create the search. + :keyword int quantity: the quantity of phone numbers to request. + :keyword list[~azure.communication.administration.models.LocationOptionsDetails] location_options: + the location options of the search. :keyword str continuation_token: A continuation token to restart a poller from a saved state. :rtype: ~azure.core.polling.LROPoller[~azure.communication.administration.PhoneNumberReservation] """ @@ -470,10 +481,23 @@ def begin_reserve_phone_numbers( client=self._phone_number_administration_client.phone_number_administration ) - if "options" not in kwargs: - raise ValueError("Either kwarg 'options' or 'continuation_token' needs to be specified") + required_kwargs = ['display_name', 'description', 'phone_plan_ids', 'area_code', 'quantity'] + for required_kwarg in required_kwargs: + if required_kwarg not in kwargs: + raise ValueError("Either kwarg 'continuation_token', or a set of kwargs " + + "'display_name', 'description', 'phone_plan_ids', " + "'area_code', 'quantity' needs to be specified") + + reservation_options = CreateSearchOptions( + display_name=kwargs.pop('display_name'), + description=kwargs.pop('description'), + phone_plan_ids=kwargs.pop('phone_plan_ids'), + area_code=kwargs.pop('area_code'), + quantity=kwargs.pop('quantity') + ) - reservation_options = kwargs.pop('options') # type: str + if 'location_options' in kwargs: + reservation_options.location_options = kwargs.pop('location_options') create_reservation_response = self._phone_number_administration_client.\ phone_number_administration.create_search( From e5c4682d146b109bdaf3305111c48616bf7dc881 Mon Sep 17 00:00:00 2001 From: Heli Wang Date: Tue, 17 Nov 2020 16:31:55 -0800 Subject: [PATCH 2/8] update test and samples --- .../samples/phone_number_orders_sample.py | 5 +---- .../tests/test_phone_number_administration_client.py | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/sdk/communication/azure-communication-administration/samples/phone_number_orders_sample.py b/sdk/communication/azure-communication-administration/samples/phone_number_orders_sample.py index 311a65073445..26ba63c17af4 100644 --- a/sdk/communication/azure-communication-administration/samples/phone_number_orders_sample.py +++ b/sdk/communication/azure-communication-administration/samples/phone_number_orders_sample.py @@ -73,16 +73,13 @@ def get_reservation_by_id(): def begin_reserve_phone_numbers(): # [START begin_reserve_phone_numbers] - reservationOptions = CreateSearchOptions( + reserve_phone_numbers_response = phone_number_administration_client.begin_reserve_phone_numbers( area_code=area_code_for_reservation, description="testreservation20200014", display_name="testreservation20200014", phone_plan_ids=[phone_plan_id], quantity=1 ) - reserve_phone_numbers_response = phone_number_administration_client.begin_reserve_phone_numbers( - options=reservationOptions - ) # [END begin_reserve_phone_numbers] print('reserve phone numbers status:') print(reserve_phone_numbers_response.status()) diff --git a/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client.py b/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client.py index 8dfad1ebc73f..13ea571bcddc 100644 --- a/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client.py +++ b/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client.py @@ -250,16 +250,13 @@ def test_get_reservation_by_id(self): @pytest.mark.live_test_only @pytest.mark.skipif(SKIP_PHONE_NUMBER_TESTS, reason=PHONE_NUMBER_TEST_SKIP_REASON) def test_create_search(self): - searchOptions = CreateSearchOptions( + poller = self._phone_number_administration_client.begin_reserve_phone_numbers( area_code=self.area_code_for_reservation, description="testreservation20200014", display_name="testreservation20200014", phone_plan_ids=[self.phone_plan_id], quantity=1 ) - poller = self._phone_number_administration_client.begin_reserve_phone_numbers( - options=searchOptions - ) assert poller.result() @pytest.mark.live_test_only From 21343c4827dcf56e8e33aadf5128cfe4d4de4b21 Mon Sep 17 00:00:00 2001 From: Heli Wang Date: Mon, 23 Nov 2020 13:47:41 -0800 Subject: [PATCH 3/8] rename reserve_phone_numbers_response to create_reservation_poller --- .../administration/_phone_number_administration_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/communication/azure-communication-administration/azure/communication/administration/_phone_number_administration_client.py b/sdk/communication/azure-communication-administration/azure/communication/administration/_phone_number_administration_client.py index 673382525ada..607a16288719 100644 --- a/sdk/communication/azure-communication-administration/azure/communication/administration/_phone_number_administration_client.py +++ b/sdk/communication/azure-communication-administration/azure/communication/administration/_phone_number_administration_client.py @@ -499,14 +499,14 @@ def begin_reserve_phone_numbers( if 'location_options' in kwargs: reservation_options.location_options = kwargs.pop('location_options') - create_reservation_response = self._phone_number_administration_client.\ + create_reservation_poller = self._phone_number_administration_client.\ phone_number_administration.create_search( body=reservation_options, **kwargs ) initial_state = self._phone_number_administration_client.phone_number_administration.get_search_by_id( - search_id=create_reservation_response.search_id + search_id=create_reservation_poller.search_id ) return LROPoller(client=self._phone_number_administration_client.phone_number_administration, initial_response=initial_state, From 8f4db583bffa945cf86d522190fb5dfdd33a4005 Mon Sep 17 00:00:00 2001 From: Heli Wang Date: Mon, 23 Nov 2020 13:54:51 -0800 Subject: [PATCH 4/8] refactor async method begin_reserve_phone_numbers --- .../_phone_number_administration_client.py | 4 +- ...hone_number_administration_client_async.py | 46 ++++++++++++++----- 2 files changed, 37 insertions(+), 13 deletions(-) diff --git a/sdk/communication/azure-communication-administration/azure/communication/administration/_phone_number_administration_client.py b/sdk/communication/azure-communication-administration/azure/communication/administration/_phone_number_administration_client.py index 607a16288719..673382525ada 100644 --- a/sdk/communication/azure-communication-administration/azure/communication/administration/_phone_number_administration_client.py +++ b/sdk/communication/azure-communication-administration/azure/communication/administration/_phone_number_administration_client.py @@ -499,14 +499,14 @@ def begin_reserve_phone_numbers( if 'location_options' in kwargs: reservation_options.location_options = kwargs.pop('location_options') - create_reservation_poller = self._phone_number_administration_client.\ + create_reservation_response = self._phone_number_administration_client.\ phone_number_administration.create_search( body=reservation_options, **kwargs ) initial_state = self._phone_number_administration_client.phone_number_administration.get_search_by_id( - search_id=create_reservation_poller.search_id + search_id=create_reservation_response.search_id ) return LROPoller(client=self._phone_number_administration_client.phone_number_administration, initial_response=initial_state, diff --git a/sdk/communication/azure-communication-administration/azure/communication/administration/aio/_phone_number_administration_client_async.py b/sdk/communication/azure-communication-administration/azure/communication/administration/aio/_phone_number_administration_client_async.py index 21017613bb32..28fd16a2dd7c 100644 --- a/sdk/communication/azure-communication-administration/azure/communication/administration/aio/_phone_number_administration_client_async.py +++ b/sdk/communication/azure-communication-administration/azure/communication/administration/aio/_phone_number_administration_client_async.py @@ -6,7 +6,7 @@ # ------------------------------------ from typing import Dict, List -from azure.communication.administration._phonenumber._generated.models import ReleaseStatus +from azure.communication.administration._phonenumber._generated.models import ReleaseStatus, CreateSearchOptions from azure.core.async_paging import AsyncItemPaged from azure.core.tracing.decorator import distributed_trace from azure.core.tracing.decorator_async import distributed_trace_async @@ -454,10 +454,21 @@ async def begin_reserve_phone_numbers( ): # type: (...) -> AsyncLROPoller[PhoneNumberReservation] """Begins creating a phone number search to reserve phone numbers. - Caller must provide either options, or continuation_token keywords to use the method. - If both options and continuation_token are specified, only continuation_token will be used to - restart a poller from a saved state, and keyword options will be ignored. - :keyword azure.communication.administration.CreateSearchOptions options: reservation options. + Caller must provide one of the following: + (1) all of keywords display_name, description, phone_plan_ids, area_code, quantity if all the phone plans + to reserve are toll-free plans. + (2) all of keywords display_name, description, phone_plan_ids, area_code, quantity, location_options + if at least one phone plan to reserve is not toll-free plans. + (3) only keyword continuation_token to restart a poller from a saved state. + If both continuation_token and other keywords are specified, only continuation_token will be used to + restart a poller from a saved state, and other keywords will be ignored. + :keyword str display_name: display name of the search. + :keyword str description: description of the search. + :keyword list[str] phone_plan_ids: the plan subtype ids from which to create the search. + :keyword str area_code: the area code from which to create the search. + :keyword int quantity: the quantity of phone numbers to request. + :keyword list[~azure.communication.administration.models.LocationOptionsDetails] location_options: + the location options of the search. :keyword str continuation_token: A continuation token to restart a poller from a saved state. :rtype: ~azure.core.polling.AsyncLROPoller[~azure.communication.administration.PhoneNumberReservation] """ @@ -480,18 +491,31 @@ async def begin_reserve_phone_numbers( client=self._phone_number_administration_client.phone_number_administration ) - if "options" not in kwargs: - raise ValueError("Either kwarg 'options' or 'continuation_token' needs to be specified") + required_kwargs = ['display_name', 'description', 'phone_plan_ids', 'area_code', 'quantity'] + for required_kwarg in required_kwargs: + if required_kwarg not in kwargs: + raise ValueError("Either kwarg 'continuation_token', or a set of kwargs " + + "'display_name', 'description', 'phone_plan_ids', " + "'area_code', 'quantity' needs to be specified") + + reservation_options = CreateSearchOptions( + display_name=kwargs.pop('display_name'), + description=kwargs.pop('description'), + phone_plan_ids=kwargs.pop('phone_plan_ids'), + area_code=kwargs.pop('area_code'), + quantity=kwargs.pop('quantity') + ) - reservation_options = kwargs.pop('options') # type: str + if 'location_options' in kwargs: + reservation_options.location_options = kwargs.pop('location_options') - create_search_response = await self._phone_number_administration_client.\ + create_reservation_response = self._phone_number_administration_client.\ phone_number_administration.create_search( body=reservation_options, **kwargs - ) + ) initial_state = await self._phone_number_administration_client.phone_number_administration.get_search_by_id( - search_id=create_search_response.search_id + search_id=create_reservation_response.search_id ) return AsyncLROPoller(client=self._phone_number_administration_client.phone_number_administration, initial_response=initial_state, From eab147c227673ea76cd5bf4f044d53e6dcc21812 Mon Sep 17 00:00:00 2001 From: Heli Wang Date: Mon, 23 Nov 2020 14:01:43 -0800 Subject: [PATCH 5/8] update samples for reserve_phone_numbers_poller --- .../samples/phone_number_orders_sample.py | 4 ++-- .../samples/phone_number_orders_sample_async.py | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/sdk/communication/azure-communication-administration/samples/phone_number_orders_sample.py b/sdk/communication/azure-communication-administration/samples/phone_number_orders_sample.py index 26ba63c17af4..4556dcefe92b 100644 --- a/sdk/communication/azure-communication-administration/samples/phone_number_orders_sample.py +++ b/sdk/communication/azure-communication-administration/samples/phone_number_orders_sample.py @@ -73,7 +73,7 @@ def get_reservation_by_id(): def begin_reserve_phone_numbers(): # [START begin_reserve_phone_numbers] - reserve_phone_numbers_response = phone_number_administration_client.begin_reserve_phone_numbers( + reserve_phone_numbers_poller = phone_number_administration_client.begin_reserve_phone_numbers( area_code=area_code_for_reservation, description="testreservation20200014", display_name="testreservation20200014", @@ -82,7 +82,7 @@ def begin_reserve_phone_numbers(): ) # [END begin_reserve_phone_numbers] print('reserve phone numbers status:') - print(reserve_phone_numbers_response.status()) + print(reserve_phone_numbers_poller.status()) def cancel_reservation(): diff --git a/sdk/communication/azure-communication-administration/samples/phone_number_orders_sample_async.py b/sdk/communication/azure-communication-administration/samples/phone_number_orders_sample_async.py index d2d2cc82d6e1..0f7df82d29ef 100644 --- a/sdk/communication/azure-communication-administration/samples/phone_number_orders_sample_async.py +++ b/sdk/communication/azure-communication-administration/samples/phone_number_orders_sample_async.py @@ -87,11 +87,15 @@ async def begin_reserve_phone_numbers(): quantity=1 ) async with phone_number_administration_client: - reserve_phone_numbers_response = await phone_number_administration_client.begin_reserve_phone_numbers( - options=reservationOptions + reserve_phone_numbers_poller = await phone_number_administration_client.begin_reserve_phone_numbers( + area_code=area_code_for_reservation, + description="testreservation20200014", + display_name="testreservation20200014", + phone_plan_ids=[phone_plan_id], + quantity=1 ) print('reserve phone numbers status:') - print(reserve_phone_numbers_response.status()) + print(reserve_phone_numbers_poller.status()) # [END begin_reserve_phone_numbers] From 46ad3d2a2065e2254c2cf3264385c2113a68b402 Mon Sep 17 00:00:00 2001 From: Heli Wang Date: Mon, 23 Nov 2020 14:16:26 -0800 Subject: [PATCH 6/8] correct missed async calls --- .../aio/_phone_number_administration_client_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/communication/azure-communication-administration/azure/communication/administration/aio/_phone_number_administration_client_async.py b/sdk/communication/azure-communication-administration/azure/communication/administration/aio/_phone_number_administration_client_async.py index 28fd16a2dd7c..8e49e221da2d 100644 --- a/sdk/communication/azure-communication-administration/azure/communication/administration/aio/_phone_number_administration_client_async.py +++ b/sdk/communication/azure-communication-administration/azure/communication/administration/aio/_phone_number_administration_client_async.py @@ -509,7 +509,7 @@ async def begin_reserve_phone_numbers( if 'location_options' in kwargs: reservation_options.location_options = kwargs.pop('location_options') - create_reservation_response = self._phone_number_administration_client.\ + create_reservation_response = await self._phone_number_administration_client.\ phone_number_administration.create_search( body=reservation_options, **kwargs From 307c43b52b7d2f8f65e588b92b059bf3004e935f Mon Sep 17 00:00:00 2001 From: Heli Wang Date: Mon, 23 Nov 2020 14:19:44 -0800 Subject: [PATCH 7/8] refresh tests and the generated test yaml files --- ...ration_client.test_cancel_reservation.yaml | 8 +- ...stration_client.test_configure_number.yaml | 10 +- ...inistration_client.test_create_search.yaml | 236 ++--------------- ...ration_client.test_get_all_area_codes.yaml | 8 +- ...n_client.test_get_capabilities_update.yaml | 8 +- ..._client.test_get_number_configuration.yaml | 12 +- ....test_get_phone_plan_location_options.yaml | 242 +++++++++--------- ...tration_client.test_get_release_by_id.yaml | 8 +- ...ion_client.test_get_reservation_by_id.yaml | 8 +- ...on_client.test_list_all_phone_numbers.yaml | 8 +- ...tration_client.test_list_all_releases.yaml | 8 +- ...ent.test_list_all_supported_countries.yaml | 12 +- ...on_client.test_list_phone_plan_groups.yaml | 8 +- ...stration_client.test_list_phone_plans.yaml | 8 +- ...tion_client.test_purchase_reservation.yaml | 16 +- ...ion_client.test_release_phone_numbers.yaml | 81 ++---- ...ion_client.test_reserve_phone_numbers.yaml | 150 +++++++++++ ...ation_client.test_update_capabilities.yaml | 10 +- ..._client_async.test_cancel_reservation.yaml | 8 +- ...on_client_async.test_configure_number.yaml | 10 +- ..._client_async.test_get_all_area_codes.yaml | 8 +- ...nt_async.test_get_capabilities_update.yaml | 8 +- ...t_async.test_get_number_configuration.yaml | 12 +- ....test_get_phone_plan_location_options.yaml | 242 +++++++++--------- ...n_client_async.test_get_release_by_id.yaml | 8 +- ...ient_async.test_get_reservation_by_id.yaml | 8 +- ...ent_async.test_list_all_phone_numbers.yaml | 8 +- ...n_client_async.test_list_all_releases.yaml | 8 +- ...ync.test_list_all_supported_countries.yaml | 12 +- ...ent_async.test_list_phone_plan_groups.yaml | 8 +- ...on_client_async.test_list_phone_plans.yaml | 8 +- ...lient_async.test_purchase_reservation.yaml | 16 +- ...ient_async.test_release_phone_numbers.yaml | 47 ++-- ...ent_async.test_reserve_phone_numbers.yaml} | 56 ++-- ...client_async.test_update_capabilities.yaml | 10 +- ...test_phone_number_administration_client.py | 2 +- ...hone_number_administration_client_async.py | 15 +- 37 files changed, 635 insertions(+), 700 deletions(-) create mode 100644 sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_reserve_phone_numbers.yaml rename sdk/communication/azure-communication-administration/tests/recordings/{test_phone_number_administration_client_async.test_create_search.yaml => test_phone_number_administration_client_async.test_reserve_phone_numbers.yaml} (78%) diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_cancel_reservation.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_cancel_reservation.yaml index 0b08ba2b9ab5..cd8e3ca107b6 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_cancel_reservation.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_cancel_reservation.yaml @@ -11,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Tue, 27 Oct 2020 17:26:49 GMT + - Mon, 23 Nov 2020 22:11:17 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Tue, 27 Oct 2020 17:26:50 GMT + - Mon, 23 Nov 2020 22:11:17 GMT ms-cv: - - QytXiS0WYUWt+Aklz2RkDQ.0 + - mbCpJZCKiUK4caapFCbzQg.0 x-processing-time: - - 472ms + - 258ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_configure_number.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_configure_number.yaml index fb6db335580d..86df837dc773 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_configure_number.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_configure_number.yaml @@ -1,7 +1,7 @@ interactions: - request: body: 'b''{"pstnConfiguration": {"callbackUrl": "https://callbackurl", "applicationId": - "ApplicationId"}, "phoneNumber": "+1area_code_for_reservation7840394"}''' + "ApplicationId"}, "phoneNumber": "+1area_code_for_reservation4501240"}''' headers: Accept: - '*/*' @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Oct 2020 17:26:50 GMT + - Mon, 23 Nov 2020 22:11:17 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -28,11 +28,11 @@ interactions: content-length: - '0' date: - - Tue, 27 Oct 2020 17:26:50 GMT + - Mon, 23 Nov 2020 22:11:18 GMT ms-cv: - - Bv+CA5160EOmb87qa0O06Q.0 + - G9imTJyYkkSUmuTD6LmwNg.0 x-processing-time: - - 552ms + - 886ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_create_search.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_create_search.yaml index 0c9c29b0729b..a2e75ba52d07 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_create_search.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_create_search.yaml @@ -15,7 +15,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Oct 2020 17:26:51 GMT + - Mon, 23 Nov 2020 22:08:38 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -28,13 +28,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:26:52 GMT + - Mon, 23 Nov 2020 22:08:39 GMT ms-cv: - - UIzFB1wmikCXl75B0v8rLw.0 + - HTqHTEW+FESz3w+S699+5g.0 transfer-encoding: - chunked x-processing-time: - - 1028ms + - 771ms status: code: 201 message: Created @@ -48,29 +48,29 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:26:52 GMT + - Mon, 23 Nov 2020 22:08:39 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/61b57e85-3735-4853-ae2e-fa3a86d1e74c?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/1aa3199c-2448-4734-8f8e-96330c8f6caa?api-version=2020-07-20-preview1 response: body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": - "2020-10-27T17:26:52.040194+00:00", "description": "testreservation20200014", + "2020-11-23T22:08:38.6944708+00:00", "description": "testreservation20200014", "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": 1, "locationOptions": [], "status": "Pending", "phoneNumbers": "sanitized"}' headers: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:26:52 GMT + - Mon, 23 Nov 2020 22:08:39 GMT ms-cv: - - j2CxIKZUEk2pVzQEp06xHg.0 + - lbxsJisVC0CUsQNU7JT2Eg.0 transfer-encoding: - chunked x-processing-time: - - 715ms + - 293ms status: code: 200 message: OK @@ -84,29 +84,29 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:26:53 GMT + - Mon, 23 Nov 2020 22:08:39 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/61b57e85-3735-4853-ae2e-fa3a86d1e74c?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/1aa3199c-2448-4734-8f8e-96330c8f6caa?api-version=2020-07-20-preview1 response: body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": - "2020-10-27T17:26:52.040194+00:00", "description": "testreservation20200014", + "2020-11-23T22:08:38.6944708+00:00", "description": "testreservation20200014", "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": 1, "locationOptions": [], "status": "Pending", "phoneNumbers": "sanitized"}' headers: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:26:53 GMT + - Mon, 23 Nov 2020 22:08:39 GMT ms-cv: - - ovJpbjvLGkqIa99xthDEVA.0 + - R0qCoiwGdEu/iH8sS5ViZw.0 transfer-encoding: - chunked x-processing-time: - - 297ms + - 408ms status: code: 200 message: OK @@ -120,29 +120,29 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:26:58 GMT + - Mon, 23 Nov 2020 22:08:45 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/61b57e85-3735-4853-ae2e-fa3a86d1e74c?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/1aa3199c-2448-4734-8f8e-96330c8f6caa?api-version=2020-07-20-preview1 response: body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": - "2020-10-27T17:26:52.040194+00:00", "description": "testreservation20200014", + "2020-11-23T22:08:38.6944708+00:00", "description": "testreservation20200014", "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": 1, "locationOptions": [], "status": "Pending", "phoneNumbers": "sanitized"}' headers: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:26:58 GMT + - Mon, 23 Nov 2020 22:08:45 GMT ms-cv: - - Lg9YDZASy0yFH0cv2NRr7w.0 + - cx/vg1Ggike+C0L6hX+BEg.0 transfer-encoding: - chunked x-processing-time: - - 279ms + - 263ms status: code: 200 message: OK @@ -156,196 +156,16 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:27:04 GMT + - Mon, 23 Nov 2020 22:08:50 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/61b57e85-3735-4853-ae2e-fa3a86d1e74c?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/1aa3199c-2448-4734-8f8e-96330c8f6caa?api-version=2020-07-20-preview1 response: body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": - "2020-10-27T17:26:52.040194+00:00", "description": "testreservation20200014", - "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": - 1, "locationOptions": [], "status": "Pending", "phoneNumbers": "sanitized"}' - headers: - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Oct 2020 17:27:03 GMT - ms-cv: - - Px9zSRvpS0ynHcHPCfe3NQ.0 - transfer-encoding: - - chunked - x-processing-time: - - 277ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Tue, 27 Oct 2020 17:27:09 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/61b57e85-3735-4853-ae2e-fa3a86d1e74c?api-version=2020-07-20-preview1 - response: - body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": - "2020-10-27T17:26:52.040194+00:00", "description": "testreservation20200014", - "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": - 1, "locationOptions": [], "status": "Pending", "phoneNumbers": "sanitized"}' - headers: - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Oct 2020 17:27:09 GMT - ms-cv: - - jtIwBG31Zkeu7S5nOqoOrg.0 - transfer-encoding: - - chunked - x-processing-time: - - 279ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Tue, 27 Oct 2020 17:27:14 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/61b57e85-3735-4853-ae2e-fa3a86d1e74c?api-version=2020-07-20-preview1 - response: - body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": - "2020-10-27T17:26:52.040194+00:00", "description": "testreservation20200014", - "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": - 1, "locationOptions": [], "status": "Pending", "phoneNumbers": "sanitized"}' - headers: - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Oct 2020 17:27:14 GMT - ms-cv: - - +cP1/6eKG0yPh/yVp88C4Q.0 - transfer-encoding: - - chunked - x-processing-time: - - 276ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Tue, 27 Oct 2020 17:27:20 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/61b57e85-3735-4853-ae2e-fa3a86d1e74c?api-version=2020-07-20-preview1 - response: - body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": - "2020-10-27T17:26:52.040194+00:00", "description": "testreservation20200014", - "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": - 1, "locationOptions": [], "status": "Pending", "phoneNumbers": "sanitized"}' - headers: - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Oct 2020 17:27:19 GMT - ms-cv: - - Fr9OtgGwVE+D10JEi2QVvQ.0 - transfer-encoding: - - chunked - x-processing-time: - - 352ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Tue, 27 Oct 2020 17:27:25 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/61b57e85-3735-4853-ae2e-fa3a86d1e74c?api-version=2020-07-20-preview1 - response: - body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": - "2020-10-27T17:26:52.040194+00:00", "description": "testreservation20200014", - "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": - 1, "locationOptions": [], "status": "Pending", "phoneNumbers": "sanitized"}' - headers: - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Oct 2020 17:27:25 GMT - ms-cv: - - DRz0C83MUkiZMEJMS5Bp5w.0 - transfer-encoding: - - chunked - x-processing-time: - - 278ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Tue, 27 Oct 2020 17:27:30 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/61b57e85-3735-4853-ae2e-fa3a86d1e74c?api-version=2020-07-20-preview1 - response: - body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": - "2020-10-27T17:26:52.040194+00:00", "description": "testreservation20200014", + "2020-11-23T22:08:38.6944708+00:00", "description": "testreservation20200014", "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": 1, "locationOptions": [], "status": "Error", "phoneNumbers": "sanitized", "errorCode": 1000}' @@ -353,13 +173,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:30 GMT + - Mon, 23 Nov 2020 22:08:50 GMT ms-cv: - - nxbL+EK8l0u15JttDKkDQg.0 + - jHWx/MVzNUudhIJdiQMyWg.0 transfer-encoding: - chunked x-processing-time: - - 271ms + - 266ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_all_area_codes.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_all_area_codes.yaml index 683107e7d2aa..cfcf405f1688 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_all_area_codes.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_all_area_codes.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Oct 2020 17:27:31 GMT + - Mon, 23 Nov 2020 22:11:18 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -27,13 +27,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:31 GMT + - Mon, 23 Nov 2020 22:11:18 GMT ms-cv: - - yEd7id55fEq0MJ65ihpOgQ.0 + - 7EdJRpBmQkyxpwPMjLC0aA.0 transfer-encoding: - chunked x-processing-time: - - 377ms + - 262ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_capabilities_update.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_capabilities_update.yaml index 7ebcd2074917..38b88c38b27e 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_capabilities_update.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_capabilities_update.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:27:31 GMT + - Mon, 23 Nov 2020 22:11:19 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -23,13 +23,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:31 GMT + - Mon, 23 Nov 2020 22:11:18 GMT ms-cv: - - CAIUz6ClaUS/HM3g7AqOXg.0 + - EzXo3vmXrkGjsGovhnBqPw.0 transfer-encoding: - chunked x-processing-time: - - 449ms + - 266ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_number_configuration.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_number_configuration.yaml index c69db55b188e..b2b568fe6fbb 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_number_configuration.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_number_configuration.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: 'b''{"phoneNumber": "+1area_code_for_reservation7840394"}''' + body: 'b''{"phoneNumber": "+1area_code_for_reservation4501240"}''' headers: Accept: - application/json @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Oct 2020 17:27:32 GMT + - Mon, 23 Nov 2020 22:11:19 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -22,18 +22,18 @@ interactions: uri: https://sanitized.communication.azure.com/administration/phonenumbers/numberconfiguration?api-version=2020-07-20-preview1 response: body: '{"pstnConfiguration": {"callbackUrl": "https://callbackurl", "applicationId": - "ApplicationId"}}' + "ApplicationId", "azurePstnTargetId": "85c9239f-0b81-47e6-b25e-95ccaf48581f"}}' headers: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:32 GMT + - Mon, 23 Nov 2020 22:11:19 GMT ms-cv: - - UCdn5KAu5UKL59qQRXz4QQ.0 + - B7d4g2aBsEy/41s1bLygcA.0 transfer-encoding: - chunked x-processing-time: - - 300ms + - 327ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_phone_plan_location_options.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_phone_plan_location_options.yaml index cd2ec6015e70..85fdb9178888 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_phone_plan_location_options.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_phone_plan_location_options.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:27:32 GMT + - Mon, 23 Nov 2020 22:11:20 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -53,21 +53,21 @@ interactions: []}, {"name": "Pueblo", "value": "NOAM-US-CO-PU", "locationOptions": []}]}]}, {"name": "CT", "value": "CT", "locationOptions": [{"labelId": "city", "labelName": "City", "options": [{"name": "Bridgeport", "value": "NOAM-US-CT-BR", "locationOptions": - []}, {"name": "Hartford", "value": "NOAM-US-CT-HA", "locationOptions": []}]}]}, - {"name": "DE", "value": "DE", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Wilmington", "value": "NOAM-US-DE-WI", "locationOptions": - []}]}]}, {"name": "FL", "value": "FL", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Daytona Beach", "value": "NOAM-US-FL-DB", - "locationOptions": []}, {"name": "Fort Lauderdale", "value": "NOAM-US-FL-FL", - "locationOptions": []}, {"name": "Gainesville", "value": "NOAM-US-FL-GA", "locationOptions": - []}, {"name": "Jacksonville", "value": "NOAM-US-FL-JA", "locationOptions": []}, - {"name": "Lakeland", "value": "NOAM-US-FL-LA", "locationOptions": []}, {"name": - "Miami", "value": "NOAM-US-FL-MI", "locationOptions": []}, {"name": "Orlando", - "value": "NOAM-US-FL-OR", "locationOptions": []}, {"name": "Port St Lucie", - "value": "NOAM-US-FL-PS", "locationOptions": []}, {"name": "Sarasota", "value": - "NOAM-US-FL-SA", "locationOptions": []}, {"name": "Tallahassee", "value": "NOAM-US-FL-TA", - "locationOptions": []}, {"name": "West Palm Beach", "value": "NOAM-US-FL-WP", - "locationOptions": []}]}]}, {"name": "GA", "value": "GA", "locationOptions": + []}]}]}, {"name": "DE", "value": "DE", "locationOptions": [{"labelId": "city", + "labelName": "City", "options": [{"name": "Wilmington", "value": "NOAM-US-DE-WI", + "locationOptions": []}]}]}, {"name": "FL", "value": "FL", "locationOptions": + [{"labelId": "city", "labelName": "City", "options": [{"name": "Cape Coral", + "value": "NOAM-US-FL-CC", "locationOptions": []}, {"name": "Daytona Beach", + "value": "NOAM-US-FL-DB", "locationOptions": []}, {"name": "Fort Lauderdale", + "value": "NOAM-US-FL-FL", "locationOptions": []}, {"name": "Gainesville", "value": + "NOAM-US-FL-GA", "locationOptions": []}, {"name": "Jacksonville", "value": "NOAM-US-FL-JA", + "locationOptions": []}, {"name": "Lakeland", "value": "NOAM-US-FL-LA", "locationOptions": + []}, {"name": "Miami", "value": "NOAM-US-FL-MI", "locationOptions": []}, {"name": + "Orlando", "value": "NOAM-US-FL-OR", "locationOptions": []}, {"name": "Port + St Lucie", "value": "NOAM-US-FL-PS", "locationOptions": []}, {"name": "Sarasota", + "value": "NOAM-US-FL-SA", "locationOptions": []}, {"name": "Tallahassee", "value": + "NOAM-US-FL-TA", "locationOptions": []}, {"name": "West Palm Beach", "value": + "NOAM-US-FL-WP", "locationOptions": []}]}]}, {"name": "GA", "value": "GA", "locationOptions": [{"labelId": "city", "labelName": "City", "options": [{"name": "Albany", "value": "NOAM-US-GA-AL", "locationOptions": []}, {"name": "Atlanta", "value": "NOAM-US-GA-AT", "locationOptions": []}, {"name": "Augusta", "value": "NOAM-US-GA-AU", "locationOptions": @@ -96,8 +96,9 @@ interactions: "locationOptions": []}, {"name": "Indianapolis", "value": "NOAM-US-IN-IN", "locationOptions": []}, {"name": "South Bend", "value": "NOAM-US-IN-SB", "locationOptions": []}]}]}, {"name": "KS", "value": "KS", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Kansas City", "value": "NOAM-US-KS-KS", "locationOptions": - []}, {"name": "Topeka", "value": "NOAM-US-KS-TO", "locationOptions": []}, {"name": + "City", "options": [{"name": "Dodge City", "value": "NOAM-US-KS-DC", "locationOptions": + []}, {"name": "Kansas City", "value": "NOAM-US-KS-KS", "locationOptions": []}, + {"name": "Topeka", "value": "NOAM-US-KS-TO", "locationOptions": []}, {"name": "Wichita", "value": "NOAM-US-KS-WI", "locationOptions": []}]}]}, {"name": "KY", "value": "KY", "locationOptions": [{"labelId": "city", "labelName": "City", "options": [{"name": "Ashland", "value": "NOAM-US-KY-AS", "locationOptions": @@ -111,29 +112,29 @@ interactions: "MA", "value": "MA", "locationOptions": [{"labelId": "city", "labelName": "City", "options": [{"name": "Boston", "value": "NOAM-US-MA-BO", "locationOptions": []}, {"name": "Chicopee", "value": "NOAM-US-MA-CH", "locationOptions": []}]}]}, - {"name": "ME", "value": "ME", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Portland", "value": "NOAM-US-ME-PO", "locationOptions": - []}]}]}, {"name": "MI", "value": "MI", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Detroit", "value": "NOAM-US-MI-DE", - "locationOptions": []}, {"name": "Flint", "value": "NOAM-US-MI-FL", "locationOptions": - []}, {"name": "Grand Rapids", "value": "NOAM-US-MI-GP", "locationOptions": []}, - {"name": "Grant", "value": "NOAM-US-MI-GR", "locationOptions": []}, {"name": + {"name": "MD", "value": "MD", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Baltimore", "value": "NOAM-US-MD-BA", "locationOptions": + []}]}]}, {"name": "ME", "value": "ME", "locationOptions": [{"labelId": "city", + "labelName": "City", "options": [{"name": "Portland", "value": "NOAM-US-ME-PO", + "locationOptions": []}]}]}, {"name": "MI", "value": "MI", "locationOptions": + [{"labelId": "city", "labelName": "City", "options": [{"name": "Detroit", "value": + "NOAM-US-MI-DE", "locationOptions": []}, {"name": "Flint", "value": "NOAM-US-MI-FL", + "locationOptions": []}, {"name": "Grand Rapids", "value": "NOAM-US-MI-GP", "locationOptions": + []}, {"name": "Grant", "value": "NOAM-US-MI-GR", "locationOptions": []}, {"name": "Lansing", "value": "NOAM-US-MI-LA", "locationOptions": []}, {"name": "Saginaw", "value": "NOAM-US-MI-SA", "locationOptions": []}, {"name": "Sault Ste Marie", "value": "NOAM-US-MI-SS", "locationOptions": []}, {"name": "Troy", "value": - "NOAM-US-MI-TR", "locationOptions": []}, {"name": "Warren", "value": "NOAM-US-MI-WA", - "locationOptions": []}]}]}, {"name": "MN", "value": "MN", "locationOptions": + "NOAM-US-MI-TR", "locationOptions": []}]}]}, {"name": "MN", "value": "MN", "locationOptions": [{"labelId": "city", "labelName": "City", "options": [{"name": "Duluth", "value": "NOAM-US-MN-DU", "locationOptions": []}, {"name": "Minneapolis", "value": "NOAM-US-MN-MI", "locationOptions": []}]}]}, {"name": "MO", "value": "MO", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Columbia", "value": - "NOAM-US-MO-CO", "locationOptions": []}, {"name": "Kansas City", "value": "NOAM-US-MO-KS", - "locationOptions": []}, {"name": "Marshall", "value": "NOAM-US-MO-MA", "locationOptions": - []}, {"name": "Springfield", "value": "NOAM-US-MO-SP", "locationOptions": []}, - {"name": "St. Charles", "value": "NOAM-US-MO-SC", "locationOptions": []}, {"name": - "St. Louis", "value": "NOAM-US-MO-SL", "locationOptions": []}]}]}, {"name": - "MS", "value": "MS", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Biloxi", "value": "NOAM-US-MS-BI", "locationOptions": + [{"labelId": "city", "labelName": "City", "options": [{"name": "Kansas City", + "value": "NOAM-US-MO-KS", "locationOptions": []}, {"name": "Marshall", "value": + "NOAM-US-MO-MA", "locationOptions": []}, {"name": "Springfield", "value": "NOAM-US-MO-SP", + "locationOptions": []}, {"name": "St. Charles", "value": "NOAM-US-MO-SC", "locationOptions": + []}, {"name": "St. Louis", "value": "NOAM-US-MO-SL", "locationOptions": []}]}]}, + {"name": "MS", "value": "MS", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Biloxi", "value": "NOAM-US-MS-BI", "locationOptions": []}, {"name": "Jackson", "value": "NOAM-US-MS-JA", "locationOptions": []}, {"name": "Starkville", "value": "NOAM-US-MS-ST", "locationOptions": []}]}]}, {"name": "MT", "value": "MT", "locationOptions": [{"labelId": "city", "labelName": "City", @@ -143,107 +144,106 @@ interactions: "locationOptions": []}, {"name": "Fayetteville", "value": "NOAM-US-NC-FA", "locationOptions": []}, {"name": "Greensboro", "value": "NOAM-US-NC-GR", "locationOptions": []}, {"name": "Raleigh", "value": "NOAM-US-NC-RA", "locationOptions": []}]}]}, {"name": - "ND", "value": "ND", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Fargo", "value": "NOAM-US-ND-FA", "locationOptions": []}]}]}, - {"name": "NE", "value": "NE", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Kearney", "value": "NOAM-US-NE-KE", "locationOptions": + "NE", "value": "NE", "locationOptions": [{"labelId": "city", "labelName": "City", + "options": [{"name": "Kearney", "value": "NOAM-US-NE-KE", "locationOptions": []}, {"name": "Omaha", "value": "NOAM-US-NE-OM", "locationOptions": []}]}]}, {"name": "NJ", "value": "NJ", "locationOptions": [{"labelId": "city", "labelName": "City", "options": [{"name": "Atlantic City", "value": "NOAM-US-NJ-AC", "locationOptions": []}, {"name": "Camden", "value": "NOAM-US-NJ-CA", "locationOptions": []}, {"name": - "Newark", "value": "NOAM-US-NJ-NE", "locationOptions": []}]}]}, {"name": "NM", - "value": "NM", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Las Cruces", "value": "NOAM-US-NM-LC", "locationOptions": - []}]}]}, {"name": "NV", "value": "NV", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Las Vegas", "value": "NOAM-US-NV-LV", - "locationOptions": []}, {"name": "Reno", "value": "NOAM-US-NV-RE", "locationOptions": - []}]}]}, {"name": "NY", "value": "NY", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Albany", "value": "NOAM-US-NY-AL", - "locationOptions": []}, {"name": "Elmira", "value": "NOAM-US-NY-EL", "locationOptions": - []}, {"name": "Kingston", "value": "NOAM-US-NY-KI", "locationOptions": []}, - {"name": "New York City", "value": "NOAM-US-NY-NY", "locationOptions": []}, - {"name": "Niagara Falls", "value": "NOAM-US-NY-NF", "locationOptions": []}, - {"name": "Rochester", "value": "NOAM-US-NY-RO", "locationOptions": []}, {"name": - "Syracuse", "value": "NOAM-US-NY-SY", "locationOptions": []}]}]}, {"name": "OH", - "value": "OH", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Akron", "value": "NOAM-US-OH-AK", "locationOptions": []}, - {"name": "Cincinnati", "value": "NOAM-US-OH-CI", "locationOptions": []}, {"name": - "Cleveland", "value": "NOAM-US-OH-CL", "locationOptions": []}, {"name": "Columbus", - "value": "NOAM-US-OH-CO", "locationOptions": []}, {"name": "Dayton", "value": - "NOAM-US-OH-DA", "locationOptions": []}, {"name": "Toledo", "value": "NOAM-US-OH-TO", - "locationOptions": []}]}]}, {"name": "OK", "value": "OK", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Lawton", "value": - "NOAM-US-OK-LA", "locationOptions": []}, {"name": "Oklahoma City", "value": - "NOAM-US-OK-OC", "locationOptions": []}, {"name": "Tulsa", "value": "NOAM-US-OK-TU", - "locationOptions": []}]}]}, {"name": "PA", "value": "PA", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Erie", "value": - "NOAM-US-PA-ER", "locationOptions": []}, {"name": "Lancaster", "value": "NOAM-US-PA-LA", - "locationOptions": []}, {"name": "New Castle", "value": "NOAM-US-PA-NC", "locationOptions": - []}, {"name": "Philadelphia", "value": "NOAM-US-PA-PI", "locationOptions": []}, - {"name": "Pittsburgh", "value": "NOAM-US-PA-PT", "locationOptions": []}, {"name": - "Scranton", "value": "NOAM-US-PA-SC", "locationOptions": []}]}]}, {"name": "RI", - "value": "RI", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Providence", "value": "NOAM-US-RI-PR", "locationOptions": - []}]}]}, {"name": "SC", "value": "SC", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Charleston", "value": "NOAM-US-SC-CH", - "locationOptions": []}, {"name": "Columbia", "value": "NOAM-US-SC-CO", "locationOptions": - []}, {"name": "Greenville", "value": "NOAM-US-SC-GR", "locationOptions": []}]}]}, - {"name": "SD", "value": "SD", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Sioux Falls", "value": "NOAM-US-SD-SF", "locationOptions": - []}]}]}, {"name": "TN", "value": "TN", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Chattanooga", "value": "NOAM-US-TN-CH", - "locationOptions": []}, {"name": "Clarksville", "value": "NOAM-US-TN-CL", "locationOptions": - []}, {"name": "Jackson", "value": "NOAM-US-TN-JA", "locationOptions": []}, {"name": + "Elizabeth", "value": "NOAM-US-NJ-EL", "locationOptions": []}, {"name": "Jersey + City", "value": "NOAM-US-NJ-JC", "locationOptions": []}, {"name": "Newark", + "value": "NOAM-US-NJ-NE", "locationOptions": []}]}]}, {"name": "NM", "value": + "NM", "locationOptions": [{"labelId": "city", "labelName": "City", "options": + [{"name": "Las Cruces", "value": "NOAM-US-NM-LC", "locationOptions": []}]}]}, + {"name": "NV", "value": "NV", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Las Vegas", "value": "NOAM-US-NV-LV", "locationOptions": + []}, {"name": "Reno", "value": "NOAM-US-NV-RE", "locationOptions": []}]}]}, + {"name": "NY", "value": "NY", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Albany", "value": "NOAM-US-NY-AL", "locationOptions": + []}, {"name": "Elmira", "value": "NOAM-US-NY-EL", "locationOptions": []}, {"name": + "Kingston", "value": "NOAM-US-NY-KI", "locationOptions": []}, {"name": "New + York City", "value": "NOAM-US-NY-NY", "locationOptions": []}, {"name": "Niagara + Falls", "value": "NOAM-US-NY-NF", "locationOptions": []}, {"name": "Rochester", + "value": "NOAM-US-NY-RO", "locationOptions": []}, {"name": "Syracuse", "value": + "NOAM-US-NY-SY", "locationOptions": []}]}]}, {"name": "OH", "value": "OH", "locationOptions": + [{"labelId": "city", "labelName": "City", "options": [{"name": "Akron", "value": + "NOAM-US-OH-AK", "locationOptions": []}, {"name": "Cincinnati", "value": "NOAM-US-OH-CI", + "locationOptions": []}, {"name": "Cleveland", "value": "NOAM-US-OH-CL", "locationOptions": + []}, {"name": "Columbus", "value": "NOAM-US-OH-CO", "locationOptions": []}, + {"name": "Dayton", "value": "NOAM-US-OH-DA", "locationOptions": []}, {"name": + "Toledo", "value": "NOAM-US-OH-TO", "locationOptions": []}]}]}, {"name": "OK", + "value": "OK", "locationOptions": [{"labelId": "city", "labelName": "City", + "options": [{"name": "Lawton", "value": "NOAM-US-OK-LA", "locationOptions": + []}, {"name": "Oklahoma City", "value": "NOAM-US-OK-OC", "locationOptions": + []}, {"name": "Tulsa", "value": "NOAM-US-OK-TU", "locationOptions": []}]}]}, + {"name": "PA", "value": "PA", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Erie", "value": "NOAM-US-PA-ER", "locationOptions": + []}, {"name": "Lancaster", "value": "NOAM-US-PA-LA", "locationOptions": []}, + {"name": "New Castle", "value": "NOAM-US-PA-NC", "locationOptions": []}, {"name": + "Philadelphia", "value": "NOAM-US-PA-PI", "locationOptions": []}, {"name": "Pittsburgh", + "value": "NOAM-US-PA-PT", "locationOptions": []}, {"name": "Scranton", "value": + "NOAM-US-PA-SC", "locationOptions": []}]}]}, {"name": "RI", "value": "RI", "locationOptions": + [{"labelId": "city", "labelName": "City", "options": [{"name": "Providence", + "value": "NOAM-US-RI-PR", "locationOptions": []}]}]}, {"name": "SC", "value": + "SC", "locationOptions": [{"labelId": "city", "labelName": "City", "options": + [{"name": "Charleston", "value": "NOAM-US-SC-CH", "locationOptions": []}, {"name": + "Columbia", "value": "NOAM-US-SC-CO", "locationOptions": []}, {"name": "Greenville", + "value": "NOAM-US-SC-GR", "locationOptions": []}]}]}, {"name": "SD", "value": + "SD", "locationOptions": [{"labelId": "city", "labelName": "City", "options": + [{"name": "Sioux Falls", "value": "NOAM-US-SD-SF", "locationOptions": []}]}]}, + {"name": "TN", "value": "TN", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Chattanooga", "value": "NOAM-US-TN-CH", "locationOptions": + []}, {"name": "Clarksville", "value": "NOAM-US-TN-CL", "locationOptions": []}, + {"name": "Jackson", "value": "NOAM-US-TN-JA", "locationOptions": []}, {"name": "Knoxville", "value": "NOAM-US-TN-KN", "locationOptions": []}, {"name": "Memphis", "value": "NOAM-US-TN-ME", "locationOptions": []}, {"name": "Nashville", "value": "NOAM-US-TN-NA", "locationOptions": []}]}]}, {"name": "TX", "value": "TX", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Austin", "value": - "NOAM-US-TX-AU", "locationOptions": []}, {"name": "Bryan", "value": "NOAM-US-TX-BR", - "locationOptions": []}, {"name": "Corpus Christi", "value": "NOAM-US-TX-CC", - "locationOptions": []}, {"name": "Denton", "value": "NOAM-US-TX-DE", "locationOptions": - []}, {"name": "El Paso", "value": "NOAM-US-TX-EP", "locationOptions": []}, {"name": - "Fort Worth", "value": "NOAM-US-TX-FW", "locationOptions": []}, {"name": "Galveston", - "value": "NOAM-US-TX-GA", "locationOptions": []}, {"name": "Hamilton", "value": - "NOAM-US-TX-HA", "locationOptions": []}, {"name": "Houston", "value": "NOAM-US-TX-HO", - "locationOptions": []}, {"name": "Huntsville", "value": "NOAM-US-TX-HU", "locationOptions": - []}, {"name": "Laredo", "value": "NOAM-US-TX-LA", "locationOptions": []}, {"name": - "Lubbock", "value": "NOAM-US-TX-LU", "locationOptions": []}, {"name": "Medina", - "value": "NOAM-US-TX-ME", "locationOptions": []}, {"name": "Tyler", "value": - "NOAM-US-TX-TY", "locationOptions": []}]}]}, {"name": "UT", "value": "UT", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Salt Lake City", - "value": "NOAM-US-UT-SL", "locationOptions": []}, {"name": "St. George", "value": - "NOAM-US-UT-SG", "locationOptions": []}]}]}, {"name": "VA", "value": "VA", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Lynchburg", - "value": "NOAM-US-VA-LY", "locationOptions": []}, {"name": "Richmond", "value": - "NOAM-US-VA-RI", "locationOptions": []}, {"name": "Virginia Beach", "value": - "NOAM-US-VA-VB", "locationOptions": []}]}]}, {"name": "VT", "value": "VT", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Bennington", - "value": "NOAM-US-VT-BE", "locationOptions": []}, {"name": "Brattleboro", "value": - "NOAM-US-VT-BR", "locationOptions": []}, {"name": "Burlington", "value": "NOAM-US-VT-BU", - "locationOptions": []}, {"name": "Middlebury", "value": "NOAM-US-VT-MB", "locationOptions": - []}, {"name": "Montpelier", "value": "NOAM-US-VT-MP", "locationOptions": []}, - {"name": "Newport", "value": "NOAM-US-VT-NE", "locationOptions": []}]}]}, {"name": - "WI", "value": "WI", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Green Bay", "value": "NOAM-US-WI-GB", "locationOptions": - []}, {"name": "Kenosha", "value": "NOAM-US-WI-KE", "locationOptions": []}, {"name": - "Madison", "value": "NOAM-US-WI-MA", "locationOptions": []}, {"name": "Milwaukee", - "value": "NOAM-US-WI-MI", "locationOptions": []}]}]}, {"name": "WV", "value": - "WV", "locationOptions": [{"labelId": "city", "labelName": "City", "options": - [{"name": "Charleston", "value": "NOAM-US-WV-CH", "locationOptions": []}]}]}, - {"name": "WY", "value": "WY", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Laramie", "value": "NOAM-US-WY-LA", "locationOptions": - []}]}]}]}}' + [{"labelId": "city", "labelName": "City", "options": [{"name": "Abilene", "value": + "NOAM-US-TX-AB", "locationOptions": []}, {"name": "Austin", "value": "NOAM-US-TX-AU", + "locationOptions": []}, {"name": "Bryan", "value": "NOAM-US-TX-BR", "locationOptions": + []}, {"name": "Corpus Christi", "value": "NOAM-US-TX-CC", "locationOptions": + []}, {"name": "Dallas", "value": "NOAM-US-TX-DA", "locationOptions": []}, {"name": + "Denton", "value": "NOAM-US-TX-DE", "locationOptions": []}, {"name": "El Paso", + "value": "NOAM-US-TX-EP", "locationOptions": []}, {"name": "Fort Worth", "value": + "NOAM-US-TX-FW", "locationOptions": []}, {"name": "Galveston", "value": "NOAM-US-TX-GA", + "locationOptions": []}, {"name": "Houston", "value": "NOAM-US-TX-HO", "locationOptions": + []}, {"name": "Huntsville", "value": "NOAM-US-TX-HU", "locationOptions": []}, + {"name": "Lubbock", "value": "NOAM-US-TX-LU", "locationOptions": []}, {"name": + "Tyler", "value": "NOAM-US-TX-TY", "locationOptions": []}]}]}, {"name": "UT", + "value": "UT", "locationOptions": [{"labelId": "city", "labelName": "City", + "options": [{"name": "Salt Lake City", "value": "NOAM-US-UT-SL", "locationOptions": + []}, {"name": "St. George", "value": "NOAM-US-UT-SG", "locationOptions": []}]}]}, + {"name": "VA", "value": "VA", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Lynchburg", "value": "NOAM-US-VA-LY", "locationOptions": + []}, {"name": "Richmond", "value": "NOAM-US-VA-RI", "locationOptions": []}, + {"name": "Virginia Beach", "value": "NOAM-US-VA-VB", "locationOptions": []}]}]}, + {"name": "VT", "value": "VT", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Bennington", "value": "NOAM-US-VT-BE", "locationOptions": + []}, {"name": "Brattleboro", "value": "NOAM-US-VT-BR", "locationOptions": []}, + {"name": "Burlington", "value": "NOAM-US-VT-BU", "locationOptions": []}, {"name": + "Middlebury", "value": "NOAM-US-VT-MB", "locationOptions": []}, {"name": "Montpelier", + "value": "NOAM-US-VT-MP", "locationOptions": []}, {"name": "Newport", "value": + "NOAM-US-VT-NE", "locationOptions": []}]}]}, {"name": "WI", "value": "WI", "locationOptions": + [{"labelId": "city", "labelName": "City", "options": [{"name": "Green Bay", + "value": "NOAM-US-WI-GB", "locationOptions": []}, {"name": "Kenosha", "value": + "NOAM-US-WI-KE", "locationOptions": []}, {"name": "Madison", "value": "NOAM-US-WI-MA", + "locationOptions": []}, {"name": "Milwaukee", "value": "NOAM-US-WI-MI", "locationOptions": + []}]}]}, {"name": "WV", "value": "WV", "locationOptions": [{"labelId": "city", + "labelName": "City", "options": [{"name": "Charleston", "value": "NOAM-US-WV-CH", + "locationOptions": []}]}]}, {"name": "WY", "value": "WY", "locationOptions": + [{"labelId": "city", "labelName": "City", "options": [{"name": "Laramie", "value": + "NOAM-US-WY-LA", "locationOptions": []}]}]}]}}' headers: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:32 GMT + - Mon, 23 Nov 2020 22:11:20 GMT ms-cv: - - 8MWnupzmBEKCXdVEw4x1xQ.0 + - dFVVFMtfcEKwq/v6c+upYg.0 transfer-encoding: - chunked x-processing-time: - - 321ms + - 634ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_release_by_id.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_release_by_id.yaml index 49f26e8e82b3..dcc2f789fdd5 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_release_by_id.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_release_by_id.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:27:33 GMT + - Mon, 23 Nov 2020 22:11:21 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -24,13 +24,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:32 GMT + - Mon, 23 Nov 2020 22:11:20 GMT ms-cv: - - qoGW6Tth5UC9g60fsi60ng.0 + - iHfbGOpIvUmr6FaCORS7IA.0 transfer-encoding: - chunked x-processing-time: - - 216ms + - 189ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_reservation_by_id.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_reservation_by_id.yaml index 9ce21b599a07..79ac4a5380ed 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_reservation_by_id.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_get_reservation_by_id.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:27:33 GMT + - Mon, 23 Nov 2020 22:11:21 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:33 GMT + - Mon, 23 Nov 2020 22:11:20 GMT ms-cv: - - e9w1OXVOCUKmhkTg9wReSw.0 + - GEcLTOZhcE+beY8tntswXQ.0 transfer-encoding: - chunked x-processing-time: - - 284ms + - 273ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_phone_numbers.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_phone_numbers.yaml index ca0deb276789..cafe58c71c37 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_phone_numbers.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_phone_numbers.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:27:34 GMT + - Mon, 23 Nov 2020 22:11:21 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -22,13 +22,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:33 GMT + - Mon, 23 Nov 2020 22:11:21 GMT ms-cv: - - F3w6ule09EaXwNllKvECGQ.0 + - GdjTF54N3EGXupN74+JPoA.0 transfer-encoding: - chunked x-processing-time: - - 282ms + - 381ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_releases.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_releases.yaml index 83a4dd1d95f6..3758a111fc3f 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_releases.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_releases.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:27:34 GMT + - Mon, 23 Nov 2020 22:11:22 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -22,13 +22,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:34 GMT + - Mon, 23 Nov 2020 22:11:21 GMT ms-cv: - - XuD4YZrhuk6Lf3X1/XgmAA.0 + - jlH34pUZ8EmaRUyZ8PdkUA.0 transfer-encoding: - chunked x-processing-time: - - 297ms + - 284ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_supported_countries.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_supported_countries.yaml index cec8ff3e7070..21acc8e670dd 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_supported_countries.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_all_supported_countries.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:27:35 GMT + - Mon, 23 Nov 2020 22:11:22 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -17,19 +17,19 @@ interactions: method: GET uri: https://sanitized.communication.azure.com/administration/phonenumbers/countries?locale=en-US&skip=0&take=100&api-version=2020-07-20-preview1 response: - body: '{"countries": [{"localizedName": "United States", "countryCode": "US"}], - "nextLink": null}' + body: '{"countries": [{"localizedName": "Canada", "countryCode": "CA"}, {"localizedName": + "United States", "countryCode": "US"}], "nextLink": null}' headers: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:34 GMT + - Mon, 23 Nov 2020 22:11:22 GMT ms-cv: - - BF2AapBJ0UaaLd/zSYJmNQ.0 + - S3uepNKcDU+QjHoOeHSwvw.0 transfer-encoding: - chunked x-processing-time: - - 433ms + - 470ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plan_groups.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plan_groups.yaml index 61bc61bd2358..7c3a63e7043e 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plan_groups.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plan_groups.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:27:35 GMT + - Mon, 23 Nov 2020 22:11:23 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -22,13 +22,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:35 GMT + - Mon, 23 Nov 2020 22:11:22 GMT ms-cv: - - LE0KMV2+EUOIXtx0q5Nj0A.0 + - GoJpZDxc60iIeEWJCxLbwQ.0 transfer-encoding: - chunked x-processing-time: - - 607ms + - 275ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plans.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plans.yaml index 872bd633af87..e48e9bfb60e4 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plans.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_list_phone_plans.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:27:36 GMT + - Mon, 23 Nov 2020 22:11:23 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -22,13 +22,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:36 GMT + - Mon, 23 Nov 2020 22:11:23 GMT ms-cv: - - iusZaXjRvE+iAnjBqL6Kmg.0 + - PZtnMx1DpEyQdC4vCh0ghA.0 transfer-encoding: - chunked x-processing-time: - - 338ms + - 240ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_purchase_reservation.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_purchase_reservation.yaml index e9fedd472091..35f93df0f022 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_purchase_reservation.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_purchase_reservation.yaml @@ -11,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Tue, 27 Oct 2020 17:27:37 GMT + - Mon, 23 Nov 2020 22:11:24 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -25,11 +25,11 @@ interactions: content-length: - '0' date: - - Tue, 27 Oct 2020 17:27:36 GMT + - Mon, 23 Nov 2020 22:11:23 GMT ms-cv: - - 7ucu30fCUUuVdgHTILJFIA.0 + - fPAQ8fmvQU6WIzTu7zXQfw.0 x-processing-time: - - 275ms + - 308ms status: code: 202 message: Accepted @@ -43,7 +43,7 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:27:37 GMT + - Mon, 23 Nov 2020 22:11:24 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -60,13 +60,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:37 GMT + - Mon, 23 Nov 2020 22:11:24 GMT ms-cv: - - BFFW/VX7dk+p+AVjitOCvQ.0 + - SjlnGOq18E2MQ7uNxBB0fQ.0 transfer-encoding: - chunked x-processing-time: - - 282ms + - 263ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_release_phone_numbers.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_release_phone_numbers.yaml index ed1f7ffe6771..18fa6791abfd 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_release_phone_numbers.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_release_phone_numbers.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Oct 2020 17:27:37 GMT + - Mon, 23 Nov 2020 22:11:25 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:38 GMT + - Mon, 23 Nov 2020 22:11:25 GMT ms-cv: - - Y0vSpvBqn0S1tuL3JCZkrg.0 + - BgfaXNx4rkexq6yjjBA3Qw.0 transfer-encoding: - chunked x-processing-time: - - 821ms + - 602ms status: code: 200 message: OK @@ -46,27 +46,27 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:27:38 GMT + - Mon, 23 Nov 2020 22:11:25 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/releases/62ef8671-9d37-4750-82eb-0954be6ed8c0?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/releases/d9c3f4a8-3352-45f0-ad74-52b04698d78d?api-version=2020-07-20-preview1 response: - body: '{"releaseId": "sanitized", "createdAt": "2020-10-27T17:27:38.0331088+00:00", + body: '{"releaseId": "sanitized", "createdAt": "2020-11-23T22:11:25.2859582+00:00", "status": "Pending", "phoneNumberReleaseStatusDetails": "sanitized"}' headers: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:38 GMT + - Mon, 23 Nov 2020 22:11:25 GMT ms-cv: - - jLzFMwZU7UKy6NZuo2jjNA.0 + - qvL3hMhQlUmS92HYE/uBFQ.0 transfer-encoding: - chunked x-processing-time: - - 208ms + - 179ms status: code: 200 message: OK @@ -80,27 +80,27 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:27:38 GMT + - Mon, 23 Nov 2020 22:11:26 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/releases/62ef8671-9d37-4750-82eb-0954be6ed8c0?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/releases/d9c3f4a8-3352-45f0-ad74-52b04698d78d?api-version=2020-07-20-preview1 response: - body: '{"releaseId": "sanitized", "createdAt": "2020-10-27T17:27:38.0331088+00:00", + body: '{"releaseId": "sanitized", "createdAt": "2020-11-23T22:11:25.2859582+00:00", "status": "Pending", "phoneNumberReleaseStatusDetails": "sanitized"}' headers: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:38 GMT + - Mon, 23 Nov 2020 22:11:25 GMT ms-cv: - - JLJOVBYwZE6aZ293uejKOA.0 + - FRleW4iP7Ue74EGn6NV4lw.0 transfer-encoding: - chunked x-processing-time: - - 195ms + - 178ms status: code: 200 message: OK @@ -114,62 +114,29 @@ interactions: Connection: - keep-alive Date: - - Tue, 27 Oct 2020 17:27:44 GMT + - Mon, 23 Nov 2020 22:11:31 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/releases/62ef8671-9d37-4750-82eb-0954be6ed8c0?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/releases/d9c3f4a8-3352-45f0-ad74-52b04698d78d?api-version=2020-07-20-preview1 response: - body: '{"releaseId": "sanitized", "createdAt": "2020-10-27T17:27:38.0331088+00:00", - "status": "Pending", "phoneNumberReleaseStatusDetails": "sanitized"}' - headers: - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Oct 2020 17:27:43 GMT - ms-cv: - - aHgxcvrzSUio9uJsjAl2gQ.0 - transfer-encoding: - - chunked - x-processing-time: - - 186ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Date: - - Tue, 27 Oct 2020 17:27:49 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) - x-ms-return-client-request-id: - - 'true' - method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/releases/62ef8671-9d37-4750-82eb-0954be6ed8c0?api-version=2020-07-20-preview1 - response: - body: '{"releaseId": "sanitized", "createdAt": "2020-10-27T17:27:38.0331088+00:00", + body: '{"releaseId": "sanitized", "createdAt": "2020-11-23T22:11:25.2859582+00:00", "status": "Failed", "errorMessage": "Unknown exception in BeginReleaseQueueProcessor - : No acquired numbers to process", "phoneNumberReleaseStatusDetails": "sanitized"}' + : Cannot Process Order since phone number(s) do not belong to tenant:ec53533e-7d3b-4ad0-bf10-7222b049eb8e", + "phoneNumberReleaseStatusDetails": "sanitized"}' headers: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:49 GMT + - Mon, 23 Nov 2020 22:11:31 GMT ms-cv: - - KU2QoBXFdUug6U3T7AVqQA.0 + - IHoEJYxmyUqqT8V6isY9cQ.0 transfer-encoding: - chunked x-processing-time: - - 194ms + - 181ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_reserve_phone_numbers.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_reserve_phone_numbers.yaml new file mode 100644 index 000000000000..c2ec6d187f53 --- /dev/null +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_reserve_phone_numbers.yaml @@ -0,0 +1,150 @@ +interactions: +- request: + body: 'b''b\''{"displayName": "testreservation20200014", "description": "testreservation20200014", + "phonePlanIds": ["phone_plan_id"], "areaCode": "area_code_for_reservation", + "quantity": 1}\''''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '176' + Content-Type: + - application/json + Date: + - Mon, 23 Nov 2020 22:11:31 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches?api-version=2020-07-20-preview1 + response: + body: '{"searchId": "sanitized"}' + headers: + content-type: + - application/json; charset=utf-8 + date: + - Mon, 23 Nov 2020 22:11:31 GMT + ms-cv: + - 3zxwvfI1D0WBkknksFDVVg.0 + transfer-encoding: + - chunked + x-processing-time: + - 1082ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Mon, 23 Nov 2020 22:11:32 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/ae359f26-6a39-4d83-a4ea-612d6e851f15?api-version=2020-07-20-preview1 + response: + body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": + "2020-11-23T22:11:32.1671461+00:00", "description": "testreservation20200014", + "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": + 1, "locationOptions": [], "status": "Pending", "phoneNumbers": "sanitized"}' + headers: + content-type: + - application/json; charset=utf-8 + date: + - Mon, 23 Nov 2020 22:11:32 GMT + ms-cv: + - N6cJ9bQtd0mIRCtv2YiCQg.0 + transfer-encoding: + - chunked + x-processing-time: + - 328ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Mon, 23 Nov 2020 22:11:33 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/ae359f26-6a39-4d83-a4ea-612d6e851f15?api-version=2020-07-20-preview1 + response: + body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": + "2020-11-23T22:11:32.1671461+00:00", "description": "testreservation20200014", + "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": + 1, "locationOptions": [], "status": "Pending", "phoneNumbers": "sanitized"}' + headers: + content-type: + - application/json; charset=utf-8 + date: + - Mon, 23 Nov 2020 22:11:32 GMT + ms-cv: + - v+24/t7ilUqlQQS8d9BDNA.0 + transfer-encoding: + - chunked + x-processing-time: + - 257ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Date: + - Mon, 23 Nov 2020 22:11:38 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) + x-ms-return-client-request-id: + - 'true' + method: GET + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/ae359f26-6a39-4d83-a4ea-612d6e851f15?api-version=2020-07-20-preview1 + response: + body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": + "2020-11-23T22:11:32.1671461+00:00", "description": "testreservation20200014", + "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": + 1, "locationOptions": [], "status": "Error", "phoneNumbers": "sanitized", "errorCode": + 1000}' + headers: + content-type: + - application/json; charset=utf-8 + date: + - Mon, 23 Nov 2020 22:11:37 GMT + ms-cv: + - En3nEYmrU0i9swm5SyH7qg.0 + transfer-encoding: + - chunked + x-processing-time: + - 261ms + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_update_capabilities.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_update_capabilities.yaml index 215ceed20660..d975594f14dd 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_update_capabilities.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client.test_update_capabilities.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: 'b''{"phoneNumberCapabilitiesUpdate": {"+1area_code_for_reservation7840394": + body: 'b''{"phoneNumberCapabilitiesUpdate": {"+1area_code_for_reservation4501240": {"add": []}}}''' headers: Accept: @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Oct 2020 17:27:49 GMT + - Mon, 23 Nov 2020 22:11:38 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -27,13 +27,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Oct 2020 17:27:49 GMT + - Mon, 23 Nov 2020 22:11:39 GMT ms-cv: - - isXKz3y+vkC+LM2a0MN9lA.0 + - duZmwAa0FEKqQcP3eY0Z1w.0 transfer-encoding: - chunked x-processing-time: - - 658ms + - 860ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_cancel_reservation.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_cancel_reservation.yaml index c3ef0ea11760..93db36adc237 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_cancel_reservation.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_cancel_reservation.yaml @@ -3,7 +3,7 @@ interactions: body: '' headers: Date: - - Tue, 27 Oct 2020 17:30:46 GMT + - Mon, 23 Nov 2020 22:14:46 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -15,9 +15,9 @@ interactions: string: '' headers: content-length: '0' - date: Tue, 27 Oct 2020 17:30:48 GMT - ms-cv: 4TCZyuk80UicMiinK1hOYA.0 - x-processing-time: 1389ms + date: Mon, 23 Nov 2020 22:14:46 GMT + ms-cv: HI79prVtXkW5jqOrJGJWRw.0 + x-processing-time: 521ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_configure_number.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_configure_number.yaml index 1e52e644e4b5..7a2dc2423a82 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_configure_number.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_configure_number.yaml @@ -1,14 +1,14 @@ interactions: - request: body: 'b''{"pstnConfiguration": {"callbackUrl": "https://callbackurl", "applicationId": - "ApplicationId"}, "phoneNumber": "+1area_code_for_reservation7840394"}''' + "ApplicationId"}, "phoneNumber": "+1area_code_for_reservation4501240"}''' headers: Content-Length: - '126' Content-Type: - application/json Date: - - Tue, 27 Oct 2020 17:30:48 GMT + - Mon, 23 Nov 2020 22:14:47 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -20,9 +20,9 @@ interactions: string: '' headers: content-length: '0' - date: Tue, 27 Oct 2020 17:30:48 GMT - ms-cv: BN+yf7hn4UeOE4N3Xhnhhg.0 - x-processing-time: 274ms + date: Mon, 23 Nov 2020 22:14:48 GMT + ms-cv: gkH/fRlDTkKsBLC5WTNKFg.0 + x-processing-time: 953ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_all_area_codes.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_all_area_codes.yaml index c872d8268264..4fe7e57101c2 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_all_area_codes.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_all_area_codes.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Oct 2020 17:31:04 GMT + - Mon, 23 Nov 2020 22:14:48 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -21,10 +21,10 @@ interactions: [], "nextLink": null}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:04 GMT - ms-cv: k5YRMr8/GUq/plhaGzH87g.0 + date: Mon, 23 Nov 2020 22:14:48 GMT + ms-cv: t5ZSuiiwCEe0L7XH6nksWA.0 transfer-encoding: chunked - x-processing-time: 440ms + x-processing-time: 347ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_capabilities_update.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_capabilities_update.yaml index 99d43ae9a7e0..9cea23a757ed 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_capabilities_update.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_capabilities_update.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:31:05 GMT + - Mon, 23 Nov 2020 22:14:49 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -17,10 +17,10 @@ interactions: "capabilitiesUpdateStatus": "Complete", "phoneNumberCapabilitiesUpdates": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:05 GMT - ms-cv: iMYhMtm50kGmXMPhudKOGQ.0 + date: Mon, 23 Nov 2020 22:14:53 GMT + ms-cv: 9Nc5gaDqzkWSizDfDt3f3A.0 transfer-encoding: chunked - x-processing-time: 649ms + x-processing-time: 607ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_number_configuration.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_number_configuration.yaml index 11ef2acf088d..679d691bfb23 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_number_configuration.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_number_configuration.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: 'b''{"phoneNumber": "+1area_code_for_reservation7840394"}''' + body: 'b''{"phoneNumber": "+1area_code_for_reservation4501240"}''' headers: Accept: - application/json @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Oct 2020 17:31:06 GMT + - Mon, 23 Nov 2020 22:14:53 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -18,13 +18,13 @@ interactions: uri: https://sanitized.communication.azure.com/administration/phonenumbers/numberconfiguration?api-version=2020-07-20-preview1 response: body: '{"pstnConfiguration": {"callbackUrl": "https://callbackurl", "applicationId": - "ApplicationId"}}' + "ApplicationId", "azurePstnTargetId": "85c9239f-0b81-47e6-b25e-95ccaf48581f"}}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:06 GMT - ms-cv: 7FcFpum3zUWbqBWvXWXmVQ.0 + date: Mon, 23 Nov 2020 22:14:54 GMT + ms-cv: FuDCzDwaikSDMeCKWEIxeQ.0 transfer-encoding: chunked - x-processing-time: 409ms + x-processing-time: 343ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_phone_plan_location_options.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_phone_plan_location_options.yaml index c841c5842001..de690eaa2551 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_phone_plan_location_options.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_phone_plan_location_options.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:31:06 GMT + - Mon, 23 Nov 2020 22:14:54 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -49,21 +49,21 @@ interactions: []}, {"name": "Pueblo", "value": "NOAM-US-CO-PU", "locationOptions": []}]}]}, {"name": "CT", "value": "CT", "locationOptions": [{"labelId": "city", "labelName": "City", "options": [{"name": "Bridgeport", "value": "NOAM-US-CT-BR", "locationOptions": - []}, {"name": "Hartford", "value": "NOAM-US-CT-HA", "locationOptions": []}]}]}, - {"name": "DE", "value": "DE", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Wilmington", "value": "NOAM-US-DE-WI", "locationOptions": - []}]}]}, {"name": "FL", "value": "FL", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Daytona Beach", "value": "NOAM-US-FL-DB", - "locationOptions": []}, {"name": "Fort Lauderdale", "value": "NOAM-US-FL-FL", - "locationOptions": []}, {"name": "Gainesville", "value": "NOAM-US-FL-GA", "locationOptions": - []}, {"name": "Jacksonville", "value": "NOAM-US-FL-JA", "locationOptions": []}, - {"name": "Lakeland", "value": "NOAM-US-FL-LA", "locationOptions": []}, {"name": - "Miami", "value": "NOAM-US-FL-MI", "locationOptions": []}, {"name": "Orlando", - "value": "NOAM-US-FL-OR", "locationOptions": []}, {"name": "Port St Lucie", - "value": "NOAM-US-FL-PS", "locationOptions": []}, {"name": "Sarasota", "value": - "NOAM-US-FL-SA", "locationOptions": []}, {"name": "Tallahassee", "value": "NOAM-US-FL-TA", - "locationOptions": []}, {"name": "West Palm Beach", "value": "NOAM-US-FL-WP", - "locationOptions": []}]}]}, {"name": "GA", "value": "GA", "locationOptions": + []}]}]}, {"name": "DE", "value": "DE", "locationOptions": [{"labelId": "city", + "labelName": "City", "options": [{"name": "Wilmington", "value": "NOAM-US-DE-WI", + "locationOptions": []}]}]}, {"name": "FL", "value": "FL", "locationOptions": + [{"labelId": "city", "labelName": "City", "options": [{"name": "Cape Coral", + "value": "NOAM-US-FL-CC", "locationOptions": []}, {"name": "Daytona Beach", + "value": "NOAM-US-FL-DB", "locationOptions": []}, {"name": "Fort Lauderdale", + "value": "NOAM-US-FL-FL", "locationOptions": []}, {"name": "Gainesville", "value": + "NOAM-US-FL-GA", "locationOptions": []}, {"name": "Jacksonville", "value": "NOAM-US-FL-JA", + "locationOptions": []}, {"name": "Lakeland", "value": "NOAM-US-FL-LA", "locationOptions": + []}, {"name": "Miami", "value": "NOAM-US-FL-MI", "locationOptions": []}, {"name": + "Orlando", "value": "NOAM-US-FL-OR", "locationOptions": []}, {"name": "Port + St Lucie", "value": "NOAM-US-FL-PS", "locationOptions": []}, {"name": "Sarasota", + "value": "NOAM-US-FL-SA", "locationOptions": []}, {"name": "Tallahassee", "value": + "NOAM-US-FL-TA", "locationOptions": []}, {"name": "West Palm Beach", "value": + "NOAM-US-FL-WP", "locationOptions": []}]}]}, {"name": "GA", "value": "GA", "locationOptions": [{"labelId": "city", "labelName": "City", "options": [{"name": "Albany", "value": "NOAM-US-GA-AL", "locationOptions": []}, {"name": "Atlanta", "value": "NOAM-US-GA-AT", "locationOptions": []}, {"name": "Augusta", "value": "NOAM-US-GA-AU", "locationOptions": @@ -92,8 +92,9 @@ interactions: "locationOptions": []}, {"name": "Indianapolis", "value": "NOAM-US-IN-IN", "locationOptions": []}, {"name": "South Bend", "value": "NOAM-US-IN-SB", "locationOptions": []}]}]}, {"name": "KS", "value": "KS", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Kansas City", "value": "NOAM-US-KS-KS", "locationOptions": - []}, {"name": "Topeka", "value": "NOAM-US-KS-TO", "locationOptions": []}, {"name": + "City", "options": [{"name": "Dodge City", "value": "NOAM-US-KS-DC", "locationOptions": + []}, {"name": "Kansas City", "value": "NOAM-US-KS-KS", "locationOptions": []}, + {"name": "Topeka", "value": "NOAM-US-KS-TO", "locationOptions": []}, {"name": "Wichita", "value": "NOAM-US-KS-WI", "locationOptions": []}]}]}, {"name": "KY", "value": "KY", "locationOptions": [{"labelId": "city", "labelName": "City", "options": [{"name": "Ashland", "value": "NOAM-US-KY-AS", "locationOptions": @@ -107,29 +108,29 @@ interactions: "MA", "value": "MA", "locationOptions": [{"labelId": "city", "labelName": "City", "options": [{"name": "Boston", "value": "NOAM-US-MA-BO", "locationOptions": []}, {"name": "Chicopee", "value": "NOAM-US-MA-CH", "locationOptions": []}]}]}, - {"name": "ME", "value": "ME", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Portland", "value": "NOAM-US-ME-PO", "locationOptions": - []}]}]}, {"name": "MI", "value": "MI", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Detroit", "value": "NOAM-US-MI-DE", - "locationOptions": []}, {"name": "Flint", "value": "NOAM-US-MI-FL", "locationOptions": - []}, {"name": "Grand Rapids", "value": "NOAM-US-MI-GP", "locationOptions": []}, - {"name": "Grant", "value": "NOAM-US-MI-GR", "locationOptions": []}, {"name": + {"name": "MD", "value": "MD", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Baltimore", "value": "NOAM-US-MD-BA", "locationOptions": + []}]}]}, {"name": "ME", "value": "ME", "locationOptions": [{"labelId": "city", + "labelName": "City", "options": [{"name": "Portland", "value": "NOAM-US-ME-PO", + "locationOptions": []}]}]}, {"name": "MI", "value": "MI", "locationOptions": + [{"labelId": "city", "labelName": "City", "options": [{"name": "Detroit", "value": + "NOAM-US-MI-DE", "locationOptions": []}, {"name": "Flint", "value": "NOAM-US-MI-FL", + "locationOptions": []}, {"name": "Grand Rapids", "value": "NOAM-US-MI-GP", "locationOptions": + []}, {"name": "Grant", "value": "NOAM-US-MI-GR", "locationOptions": []}, {"name": "Lansing", "value": "NOAM-US-MI-LA", "locationOptions": []}, {"name": "Saginaw", "value": "NOAM-US-MI-SA", "locationOptions": []}, {"name": "Sault Ste Marie", "value": "NOAM-US-MI-SS", "locationOptions": []}, {"name": "Troy", "value": - "NOAM-US-MI-TR", "locationOptions": []}, {"name": "Warren", "value": "NOAM-US-MI-WA", - "locationOptions": []}]}]}, {"name": "MN", "value": "MN", "locationOptions": + "NOAM-US-MI-TR", "locationOptions": []}]}]}, {"name": "MN", "value": "MN", "locationOptions": [{"labelId": "city", "labelName": "City", "options": [{"name": "Duluth", "value": "NOAM-US-MN-DU", "locationOptions": []}, {"name": "Minneapolis", "value": "NOAM-US-MN-MI", "locationOptions": []}]}]}, {"name": "MO", "value": "MO", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Columbia", "value": - "NOAM-US-MO-CO", "locationOptions": []}, {"name": "Kansas City", "value": "NOAM-US-MO-KS", - "locationOptions": []}, {"name": "Marshall", "value": "NOAM-US-MO-MA", "locationOptions": - []}, {"name": "Springfield", "value": "NOAM-US-MO-SP", "locationOptions": []}, - {"name": "St. Charles", "value": "NOAM-US-MO-SC", "locationOptions": []}, {"name": - "St. Louis", "value": "NOAM-US-MO-SL", "locationOptions": []}]}]}, {"name": - "MS", "value": "MS", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Biloxi", "value": "NOAM-US-MS-BI", "locationOptions": + [{"labelId": "city", "labelName": "City", "options": [{"name": "Kansas City", + "value": "NOAM-US-MO-KS", "locationOptions": []}, {"name": "Marshall", "value": + "NOAM-US-MO-MA", "locationOptions": []}, {"name": "Springfield", "value": "NOAM-US-MO-SP", + "locationOptions": []}, {"name": "St. Charles", "value": "NOAM-US-MO-SC", "locationOptions": + []}, {"name": "St. Louis", "value": "NOAM-US-MO-SL", "locationOptions": []}]}]}, + {"name": "MS", "value": "MS", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Biloxi", "value": "NOAM-US-MS-BI", "locationOptions": []}, {"name": "Jackson", "value": "NOAM-US-MS-JA", "locationOptions": []}, {"name": "Starkville", "value": "NOAM-US-MS-ST", "locationOptions": []}]}]}, {"name": "MT", "value": "MT", "locationOptions": [{"labelId": "city", "labelName": "City", @@ -139,102 +140,101 @@ interactions: "locationOptions": []}, {"name": "Fayetteville", "value": "NOAM-US-NC-FA", "locationOptions": []}, {"name": "Greensboro", "value": "NOAM-US-NC-GR", "locationOptions": []}, {"name": "Raleigh", "value": "NOAM-US-NC-RA", "locationOptions": []}]}]}, {"name": - "ND", "value": "ND", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Fargo", "value": "NOAM-US-ND-FA", "locationOptions": []}]}]}, - {"name": "NE", "value": "NE", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Kearney", "value": "NOAM-US-NE-KE", "locationOptions": + "NE", "value": "NE", "locationOptions": [{"labelId": "city", "labelName": "City", + "options": [{"name": "Kearney", "value": "NOAM-US-NE-KE", "locationOptions": []}, {"name": "Omaha", "value": "NOAM-US-NE-OM", "locationOptions": []}]}]}, {"name": "NJ", "value": "NJ", "locationOptions": [{"labelId": "city", "labelName": "City", "options": [{"name": "Atlantic City", "value": "NOAM-US-NJ-AC", "locationOptions": []}, {"name": "Camden", "value": "NOAM-US-NJ-CA", "locationOptions": []}, {"name": - "Newark", "value": "NOAM-US-NJ-NE", "locationOptions": []}]}]}, {"name": "NM", - "value": "NM", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Las Cruces", "value": "NOAM-US-NM-LC", "locationOptions": - []}]}]}, {"name": "NV", "value": "NV", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Las Vegas", "value": "NOAM-US-NV-LV", - "locationOptions": []}, {"name": "Reno", "value": "NOAM-US-NV-RE", "locationOptions": - []}]}]}, {"name": "NY", "value": "NY", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Albany", "value": "NOAM-US-NY-AL", - "locationOptions": []}, {"name": "Elmira", "value": "NOAM-US-NY-EL", "locationOptions": - []}, {"name": "Kingston", "value": "NOAM-US-NY-KI", "locationOptions": []}, - {"name": "New York City", "value": "NOAM-US-NY-NY", "locationOptions": []}, - {"name": "Niagara Falls", "value": "NOAM-US-NY-NF", "locationOptions": []}, - {"name": "Rochester", "value": "NOAM-US-NY-RO", "locationOptions": []}, {"name": - "Syracuse", "value": "NOAM-US-NY-SY", "locationOptions": []}]}]}, {"name": "OH", - "value": "OH", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Akron", "value": "NOAM-US-OH-AK", "locationOptions": []}, - {"name": "Cincinnati", "value": "NOAM-US-OH-CI", "locationOptions": []}, {"name": - "Cleveland", "value": "NOAM-US-OH-CL", "locationOptions": []}, {"name": "Columbus", - "value": "NOAM-US-OH-CO", "locationOptions": []}, {"name": "Dayton", "value": - "NOAM-US-OH-DA", "locationOptions": []}, {"name": "Toledo", "value": "NOAM-US-OH-TO", - "locationOptions": []}]}]}, {"name": "OK", "value": "OK", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Lawton", "value": - "NOAM-US-OK-LA", "locationOptions": []}, {"name": "Oklahoma City", "value": - "NOAM-US-OK-OC", "locationOptions": []}, {"name": "Tulsa", "value": "NOAM-US-OK-TU", - "locationOptions": []}]}]}, {"name": "PA", "value": "PA", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Erie", "value": - "NOAM-US-PA-ER", "locationOptions": []}, {"name": "Lancaster", "value": "NOAM-US-PA-LA", - "locationOptions": []}, {"name": "New Castle", "value": "NOAM-US-PA-NC", "locationOptions": - []}, {"name": "Philadelphia", "value": "NOAM-US-PA-PI", "locationOptions": []}, - {"name": "Pittsburgh", "value": "NOAM-US-PA-PT", "locationOptions": []}, {"name": - "Scranton", "value": "NOAM-US-PA-SC", "locationOptions": []}]}]}, {"name": "RI", - "value": "RI", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Providence", "value": "NOAM-US-RI-PR", "locationOptions": - []}]}]}, {"name": "SC", "value": "SC", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Charleston", "value": "NOAM-US-SC-CH", - "locationOptions": []}, {"name": "Columbia", "value": "NOAM-US-SC-CO", "locationOptions": - []}, {"name": "Greenville", "value": "NOAM-US-SC-GR", "locationOptions": []}]}]}, - {"name": "SD", "value": "SD", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Sioux Falls", "value": "NOAM-US-SD-SF", "locationOptions": - []}]}]}, {"name": "TN", "value": "TN", "locationOptions": [{"labelId": "city", - "labelName": "City", "options": [{"name": "Chattanooga", "value": "NOAM-US-TN-CH", - "locationOptions": []}, {"name": "Clarksville", "value": "NOAM-US-TN-CL", "locationOptions": - []}, {"name": "Jackson", "value": "NOAM-US-TN-JA", "locationOptions": []}, {"name": + "Elizabeth", "value": "NOAM-US-NJ-EL", "locationOptions": []}, {"name": "Jersey + City", "value": "NOAM-US-NJ-JC", "locationOptions": []}, {"name": "Newark", + "value": "NOAM-US-NJ-NE", "locationOptions": []}]}]}, {"name": "NM", "value": + "NM", "locationOptions": [{"labelId": "city", "labelName": "City", "options": + [{"name": "Las Cruces", "value": "NOAM-US-NM-LC", "locationOptions": []}]}]}, + {"name": "NV", "value": "NV", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Las Vegas", "value": "NOAM-US-NV-LV", "locationOptions": + []}, {"name": "Reno", "value": "NOAM-US-NV-RE", "locationOptions": []}]}]}, + {"name": "NY", "value": "NY", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Albany", "value": "NOAM-US-NY-AL", "locationOptions": + []}, {"name": "Elmira", "value": "NOAM-US-NY-EL", "locationOptions": []}, {"name": + "Kingston", "value": "NOAM-US-NY-KI", "locationOptions": []}, {"name": "New + York City", "value": "NOAM-US-NY-NY", "locationOptions": []}, {"name": "Niagara + Falls", "value": "NOAM-US-NY-NF", "locationOptions": []}, {"name": "Rochester", + "value": "NOAM-US-NY-RO", "locationOptions": []}, {"name": "Syracuse", "value": + "NOAM-US-NY-SY", "locationOptions": []}]}]}, {"name": "OH", "value": "OH", "locationOptions": + [{"labelId": "city", "labelName": "City", "options": [{"name": "Akron", "value": + "NOAM-US-OH-AK", "locationOptions": []}, {"name": "Cincinnati", "value": "NOAM-US-OH-CI", + "locationOptions": []}, {"name": "Cleveland", "value": "NOAM-US-OH-CL", "locationOptions": + []}, {"name": "Columbus", "value": "NOAM-US-OH-CO", "locationOptions": []}, + {"name": "Dayton", "value": "NOAM-US-OH-DA", "locationOptions": []}, {"name": + "Toledo", "value": "NOAM-US-OH-TO", "locationOptions": []}]}]}, {"name": "OK", + "value": "OK", "locationOptions": [{"labelId": "city", "labelName": "City", + "options": [{"name": "Lawton", "value": "NOAM-US-OK-LA", "locationOptions": + []}, {"name": "Oklahoma City", "value": "NOAM-US-OK-OC", "locationOptions": + []}, {"name": "Tulsa", "value": "NOAM-US-OK-TU", "locationOptions": []}]}]}, + {"name": "PA", "value": "PA", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Erie", "value": "NOAM-US-PA-ER", "locationOptions": + []}, {"name": "Lancaster", "value": "NOAM-US-PA-LA", "locationOptions": []}, + {"name": "New Castle", "value": "NOAM-US-PA-NC", "locationOptions": []}, {"name": + "Philadelphia", "value": "NOAM-US-PA-PI", "locationOptions": []}, {"name": "Pittsburgh", + "value": "NOAM-US-PA-PT", "locationOptions": []}, {"name": "Scranton", "value": + "NOAM-US-PA-SC", "locationOptions": []}]}]}, {"name": "RI", "value": "RI", "locationOptions": + [{"labelId": "city", "labelName": "City", "options": [{"name": "Providence", + "value": "NOAM-US-RI-PR", "locationOptions": []}]}]}, {"name": "SC", "value": + "SC", "locationOptions": [{"labelId": "city", "labelName": "City", "options": + [{"name": "Charleston", "value": "NOAM-US-SC-CH", "locationOptions": []}, {"name": + "Columbia", "value": "NOAM-US-SC-CO", "locationOptions": []}, {"name": "Greenville", + "value": "NOAM-US-SC-GR", "locationOptions": []}]}]}, {"name": "SD", "value": + "SD", "locationOptions": [{"labelId": "city", "labelName": "City", "options": + [{"name": "Sioux Falls", "value": "NOAM-US-SD-SF", "locationOptions": []}]}]}, + {"name": "TN", "value": "TN", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Chattanooga", "value": "NOAM-US-TN-CH", "locationOptions": + []}, {"name": "Clarksville", "value": "NOAM-US-TN-CL", "locationOptions": []}, + {"name": "Jackson", "value": "NOAM-US-TN-JA", "locationOptions": []}, {"name": "Knoxville", "value": "NOAM-US-TN-KN", "locationOptions": []}, {"name": "Memphis", "value": "NOAM-US-TN-ME", "locationOptions": []}, {"name": "Nashville", "value": "NOAM-US-TN-NA", "locationOptions": []}]}]}, {"name": "TX", "value": "TX", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Austin", "value": - "NOAM-US-TX-AU", "locationOptions": []}, {"name": "Bryan", "value": "NOAM-US-TX-BR", - "locationOptions": []}, {"name": "Corpus Christi", "value": "NOAM-US-TX-CC", - "locationOptions": []}, {"name": "Denton", "value": "NOAM-US-TX-DE", "locationOptions": - []}, {"name": "El Paso", "value": "NOAM-US-TX-EP", "locationOptions": []}, {"name": - "Fort Worth", "value": "NOAM-US-TX-FW", "locationOptions": []}, {"name": "Galveston", - "value": "NOAM-US-TX-GA", "locationOptions": []}, {"name": "Hamilton", "value": - "NOAM-US-TX-HA", "locationOptions": []}, {"name": "Houston", "value": "NOAM-US-TX-HO", - "locationOptions": []}, {"name": "Huntsville", "value": "NOAM-US-TX-HU", "locationOptions": - []}, {"name": "Laredo", "value": "NOAM-US-TX-LA", "locationOptions": []}, {"name": - "Lubbock", "value": "NOAM-US-TX-LU", "locationOptions": []}, {"name": "Medina", - "value": "NOAM-US-TX-ME", "locationOptions": []}, {"name": "Tyler", "value": - "NOAM-US-TX-TY", "locationOptions": []}]}]}, {"name": "UT", "value": "UT", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Salt Lake City", - "value": "NOAM-US-UT-SL", "locationOptions": []}, {"name": "St. George", "value": - "NOAM-US-UT-SG", "locationOptions": []}]}]}, {"name": "VA", "value": "VA", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Lynchburg", - "value": "NOAM-US-VA-LY", "locationOptions": []}, {"name": "Richmond", "value": - "NOAM-US-VA-RI", "locationOptions": []}, {"name": "Virginia Beach", "value": - "NOAM-US-VA-VB", "locationOptions": []}]}]}, {"name": "VT", "value": "VT", "locationOptions": - [{"labelId": "city", "labelName": "City", "options": [{"name": "Bennington", - "value": "NOAM-US-VT-BE", "locationOptions": []}, {"name": "Brattleboro", "value": - "NOAM-US-VT-BR", "locationOptions": []}, {"name": "Burlington", "value": "NOAM-US-VT-BU", - "locationOptions": []}, {"name": "Middlebury", "value": "NOAM-US-VT-MB", "locationOptions": - []}, {"name": "Montpelier", "value": "NOAM-US-VT-MP", "locationOptions": []}, - {"name": "Newport", "value": "NOAM-US-VT-NE", "locationOptions": []}]}]}, {"name": - "WI", "value": "WI", "locationOptions": [{"labelId": "city", "labelName": "City", - "options": [{"name": "Green Bay", "value": "NOAM-US-WI-GB", "locationOptions": - []}, {"name": "Kenosha", "value": "NOAM-US-WI-KE", "locationOptions": []}, {"name": - "Madison", "value": "NOAM-US-WI-MA", "locationOptions": []}, {"name": "Milwaukee", - "value": "NOAM-US-WI-MI", "locationOptions": []}]}]}, {"name": "WV", "value": - "WV", "locationOptions": [{"labelId": "city", "labelName": "City", "options": - [{"name": "Charleston", "value": "NOAM-US-WV-CH", "locationOptions": []}]}]}, - {"name": "WY", "value": "WY", "locationOptions": [{"labelId": "city", "labelName": - "City", "options": [{"name": "Laramie", "value": "NOAM-US-WY-LA", "locationOptions": - []}]}]}]}}' + [{"labelId": "city", "labelName": "City", "options": [{"name": "Abilene", "value": + "NOAM-US-TX-AB", "locationOptions": []}, {"name": "Austin", "value": "NOAM-US-TX-AU", + "locationOptions": []}, {"name": "Bryan", "value": "NOAM-US-TX-BR", "locationOptions": + []}, {"name": "Corpus Christi", "value": "NOAM-US-TX-CC", "locationOptions": + []}, {"name": "Dallas", "value": "NOAM-US-TX-DA", "locationOptions": []}, {"name": + "Denton", "value": "NOAM-US-TX-DE", "locationOptions": []}, {"name": "El Paso", + "value": "NOAM-US-TX-EP", "locationOptions": []}, {"name": "Fort Worth", "value": + "NOAM-US-TX-FW", "locationOptions": []}, {"name": "Galveston", "value": "NOAM-US-TX-GA", + "locationOptions": []}, {"name": "Houston", "value": "NOAM-US-TX-HO", "locationOptions": + []}, {"name": "Huntsville", "value": "NOAM-US-TX-HU", "locationOptions": []}, + {"name": "Lubbock", "value": "NOAM-US-TX-LU", "locationOptions": []}, {"name": + "Tyler", "value": "NOAM-US-TX-TY", "locationOptions": []}]}]}, {"name": "UT", + "value": "UT", "locationOptions": [{"labelId": "city", "labelName": "City", + "options": [{"name": "Salt Lake City", "value": "NOAM-US-UT-SL", "locationOptions": + []}, {"name": "St. George", "value": "NOAM-US-UT-SG", "locationOptions": []}]}]}, + {"name": "VA", "value": "VA", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Lynchburg", "value": "NOAM-US-VA-LY", "locationOptions": + []}, {"name": "Richmond", "value": "NOAM-US-VA-RI", "locationOptions": []}, + {"name": "Virginia Beach", "value": "NOAM-US-VA-VB", "locationOptions": []}]}]}, + {"name": "VT", "value": "VT", "locationOptions": [{"labelId": "city", "labelName": + "City", "options": [{"name": "Bennington", "value": "NOAM-US-VT-BE", "locationOptions": + []}, {"name": "Brattleboro", "value": "NOAM-US-VT-BR", "locationOptions": []}, + {"name": "Burlington", "value": "NOAM-US-VT-BU", "locationOptions": []}, {"name": + "Middlebury", "value": "NOAM-US-VT-MB", "locationOptions": []}, {"name": "Montpelier", + "value": "NOAM-US-VT-MP", "locationOptions": []}, {"name": "Newport", "value": + "NOAM-US-VT-NE", "locationOptions": []}]}]}, {"name": "WI", "value": "WI", "locationOptions": + [{"labelId": "city", "labelName": "City", "options": [{"name": "Green Bay", + "value": "NOAM-US-WI-GB", "locationOptions": []}, {"name": "Kenosha", "value": + "NOAM-US-WI-KE", "locationOptions": []}, {"name": "Madison", "value": "NOAM-US-WI-MA", + "locationOptions": []}, {"name": "Milwaukee", "value": "NOAM-US-WI-MI", "locationOptions": + []}]}]}, {"name": "WV", "value": "WV", "locationOptions": [{"labelId": "city", + "labelName": "City", "options": [{"name": "Charleston", "value": "NOAM-US-WV-CH", + "locationOptions": []}]}]}, {"name": "WY", "value": "WY", "locationOptions": + [{"labelId": "city", "labelName": "City", "options": [{"name": "Laramie", "value": + "NOAM-US-WY-LA", "locationOptions": []}]}]}]}}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:07 GMT - ms-cv: C4FFSccs5UWYVbh2sy8Gdw.0 + date: Mon, 23 Nov 2020 22:14:56 GMT + ms-cv: kJvwrGRCM0e2ipPNM0gSVg.0 transfer-encoding: chunked - x-processing-time: 411ms + x-processing-time: 371ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_release_by_id.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_release_by_id.yaml index cc1cf53142a5..353177013bea 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_release_by_id.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_release_by_id.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:31:07 GMT + - Mon, 23 Nov 2020 22:14:57 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -18,10 +18,10 @@ interactions: "phoneNumberReleaseStatusDetails": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:07 GMT - ms-cv: Pqw2ZS1cvUuIH/lwcBJ4Bw.0 + date: Mon, 23 Nov 2020 22:14:57 GMT + ms-cv: thMMTFXbZEKNJWphHbZokg.0 transfer-encoding: chunked - x-processing-time: 549ms + x-processing-time: 469ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_reservation_by_id.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_reservation_by_id.yaml index b4faa0688426..f2a79cb410b8 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_reservation_by_id.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_get_reservation_by_id.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:31:08 GMT + - Mon, 23 Nov 2020 22:14:58 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -20,10 +20,10 @@ interactions: "2020-10-02T21:55:47.9734151+00:00"}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:08 GMT - ms-cv: LvHHxbMc8UGPnuTtnxMbPA.0 + date: Mon, 23 Nov 2020 22:14:57 GMT + ms-cv: BG/74cPPNUGIVKPwJs2gKw.0 transfer-encoding: chunked - x-processing-time: 454ms + x-processing-time: 310ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_phone_numbers.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_phone_numbers.yaml index bf25fa7d812f..37e61c8e4e32 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_phone_numbers.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_phone_numbers.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:31:08 GMT + - Mon, 23 Nov 2020 22:14:58 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -16,10 +16,10 @@ interactions: body: '{"phoneNumbers": "sanitized", "nextLink": null}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:08 GMT - ms-cv: msKpomhyJUGTeDnCFkxZbA.0 + date: Mon, 23 Nov 2020 22:14:59 GMT + ms-cv: Du1G8mMBDEyacpYn33iUJg.0 transfer-encoding: chunked - x-processing-time: 275ms + x-processing-time: 649ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_releases.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_releases.yaml index bf7cf96feb0f..d7cb62a5676a 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_releases.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_releases.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:31:09 GMT + - Mon, 23 Nov 2020 22:14:59 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -16,10 +16,10 @@ interactions: body: '{"entities": "sanitized", "nextLink": null}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:08 GMT - ms-cv: YB2BhbbaZkiTCmPTfzH3Hg.0 + date: Mon, 23 Nov 2020 22:14:59 GMT + ms-cv: 4PD9pQr43kKolsoYwM2Bgw.0 transfer-encoding: chunked - x-processing-time: 359ms + x-processing-time: 357ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_supported_countries.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_supported_countries.yaml index 9229f73a7b76..1f2143ae8e33 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_supported_countries.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_all_supported_countries.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:31:09 GMT + - Mon, 23 Nov 2020 22:15:00 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -13,14 +13,14 @@ interactions: method: GET uri: https://sanitized.communication.azure.com/administration/phonenumbers/countries?locale=en-US&skip=0&take=100&api-version=2020-07-20-preview1 response: - body: '{"countries": [{"localizedName": "United States", "countryCode": "US"}], - "nextLink": null}' + body: '{"countries": [{"localizedName": "Canada", "countryCode": "CA"}, {"localizedName": + "United States", "countryCode": "US"}], "nextLink": null}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:10 GMT - ms-cv: t7GNnFUNP0i0Z2VjDS1KCw.0 + date: Mon, 23 Nov 2020 22:14:59 GMT + ms-cv: 7tEvn8UWqEiFscQy1auozg.0 transfer-encoding: chunked - x-processing-time: 789ms + x-processing-time: 488ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plan_groups.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plan_groups.yaml index eef6af5f87af..d6424d373b40 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plan_groups.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plan_groups.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:31:10 GMT + - Mon, 23 Nov 2020 22:15:00 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -16,10 +16,10 @@ interactions: body: '{"phonePlanGroups": "sanitized", "nextLink": null}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:10 GMT - ms-cv: 2kytInk7tkKIZV74VoZ7cg.0 + date: Mon, 23 Nov 2020 22:15:01 GMT + ms-cv: fl11HT80PkG+GKZqDsSbfQ.0 transfer-encoding: chunked - x-processing-time: 474ms + x-processing-time: 762ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plans.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plans.yaml index c81fe4c745f1..b9bbb45f59bb 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plans.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_list_phone_plans.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:31:11 GMT + - Mon, 23 Nov 2020 22:15:01 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -16,10 +16,10 @@ interactions: body: '{"phonePlans": "sanitized", "nextLink": null}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:11 GMT - ms-cv: RAZsxf/o8UeLlvEUgs5bdQ.0 + date: Mon, 23 Nov 2020 22:15:01 GMT + ms-cv: anGjQcg2C0WcRKun92ShUw.0 transfer-encoding: chunked - x-processing-time: 541ms + x-processing-time: 354ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_purchase_reservation.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_purchase_reservation.yaml index 304e4b6a7488..0cccf09cbf02 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_purchase_reservation.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_purchase_reservation.yaml @@ -3,7 +3,7 @@ interactions: body: '' headers: Date: - - Tue, 27 Oct 2020 17:31:11 GMT + - Mon, 23 Nov 2020 22:15:02 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -15,9 +15,9 @@ interactions: string: '' headers: content-length: '0' - date: Tue, 27 Oct 2020 17:31:11 GMT - ms-cv: TfdGYsbLBkG05PGW2ysA3A.0 - x-processing-time: 291ms + date: Mon, 23 Nov 2020 22:15:02 GMT + ms-cv: bHM865RpP0SiUNt4qxdlDw.0 + x-processing-time: 529ms status: code: 202 message: Accepted @@ -28,7 +28,7 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:31:12 GMT + - Mon, 23 Nov 2020 22:15:02 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -43,10 +43,10 @@ interactions: "2020-10-02T21:55:47.9734151+00:00"}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:12 GMT - ms-cv: vH6CINuIJ0Cko3LhAlEfCA.0 + date: Mon, 23 Nov 2020 22:15:02 GMT + ms-cv: yPreFWnm30S6Zotx337N/Q.0 transfer-encoding: chunked - x-processing-time: 275ms + x-processing-time: 563ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_release_phone_numbers.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_release_phone_numbers.yaml index b5b1abefcf09..8ddf05ce5f35 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_release_phone_numbers.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_release_phone_numbers.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Oct 2020 17:31:12 GMT + - Mon, 23 Nov 2020 22:15:03 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -20,10 +20,10 @@ interactions: body: '{"releaseId": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:13 GMT - ms-cv: N6ZeEAxBDkyPJ7+68bjr9g.0 + date: Mon, 23 Nov 2020 22:15:03 GMT + ms-cv: C+e6Bsl04EOYzASUKe+jWA.0 transfer-encoding: chunked - x-processing-time: 867ms + x-processing-time: 719ms status: code: 200 message: OK @@ -34,22 +34,22 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:31:13 GMT + - Mon, 23 Nov 2020 22:15:04 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/releases/02b73a14-5409-454e-8cde-4fb94beec54c?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/releases/ffff1f34-bcdd-42c3-8281-d7dc9b79264d?api-version=2020-07-20-preview1 response: - body: '{"releaseId": "sanitized", "createdAt": "2020-10-27T17:31:13.0251029+00:00", + body: '{"releaseId": "sanitized", "createdAt": "2020-11-23T22:15:03.8078455+00:00", "status": "Pending", "phoneNumberReleaseStatusDetails": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:13 GMT - ms-cv: ZCL7Ia9Vj0awyznSUKmUsA.0 + date: Mon, 23 Nov 2020 22:15:03 GMT + ms-cv: v8ERLmL2JUqitcrp28xrxg.0 transfer-encoding: chunked - x-processing-time: 231ms + x-processing-time: 191ms status: code: 200 message: OK @@ -60,22 +60,22 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:31:13 GMT + - Mon, 23 Nov 2020 22:15:04 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/releases/02b73a14-5409-454e-8cde-4fb94beec54c?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/releases/ffff1f34-bcdd-42c3-8281-d7dc9b79264d?api-version=2020-07-20-preview1 response: - body: '{"releaseId": "sanitized", "createdAt": "2020-10-27T17:31:13.0251029+00:00", + body: '{"releaseId": "sanitized", "createdAt": "2020-11-23T22:15:03.8078455+00:00", "status": "Pending", "phoneNumberReleaseStatusDetails": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:13 GMT - ms-cv: bEqHnELM+EOGHXngc6PUxw.0 + date: Mon, 23 Nov 2020 22:15:04 GMT + ms-cv: nFuzE/NYDEOntsaMNmdJSw.0 transfer-encoding: chunked - x-processing-time: 200ms + x-processing-time: 288ms status: code: 200 message: OK @@ -86,23 +86,24 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:31:19 GMT + - Mon, 23 Nov 2020 22:15:10 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/releases/02b73a14-5409-454e-8cde-4fb94beec54c?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/releases/ffff1f34-bcdd-42c3-8281-d7dc9b79264d?api-version=2020-07-20-preview1 response: - body: '{"releaseId": "sanitized", "createdAt": "2020-10-27T17:31:13.0251029+00:00", + body: '{"releaseId": "sanitized", "createdAt": "2020-11-23T22:15:03.8078455+00:00", "status": "Failed", "errorMessage": "Unknown exception in BeginReleaseQueueProcessor - : No acquired numbers to process", "phoneNumberReleaseStatusDetails": "sanitized"}' + : Cannot Process Order since phone number(s) do not belong to tenant:ec53533e-7d3b-4ad0-bf10-7222b049eb8e", + "phoneNumberReleaseStatusDetails": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:19 GMT - ms-cv: tZNeP1unLUKFFtFVJnmXhg.0 + date: Mon, 23 Nov 2020 22:15:09 GMT + ms-cv: qpn1QSP33kO2OqJnvbwHew.0 transfer-encoding: chunked - x-processing-time: 200ms + x-processing-time: 195ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_create_search.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_reserve_phone_numbers.yaml similarity index 78% rename from sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_create_search.yaml rename to sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_reserve_phone_numbers.yaml index 432bbb42060a..2b53d7788bc6 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_create_search.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_reserve_phone_numbers.yaml @@ -11,7 +11,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Oct 2020 17:30:48 GMT + - Mon, 23 Nov 2020 22:15:10 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -22,10 +22,10 @@ interactions: body: '{"searchId": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:30:51 GMT - ms-cv: yV+eD2we802BzEQf1WMNYA.0 + date: Mon, 23 Nov 2020 22:15:11 GMT + ms-cv: wHNKvhhrIEmoyxIvpQtpVQ.0 transfer-encoding: chunked - x-processing-time: 2922ms + x-processing-time: 1050ms status: code: 201 message: Created @@ -36,24 +36,24 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:30:52 GMT + - Mon, 23 Nov 2020 22:15:11 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/914329ca-b1e9-4182-bb91-21589196e9bc?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/6ec3963c-33a1-4d99-ad49-8f455205bf24?api-version=2020-07-20-preview1 response: body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": - "2020-10-27T17:30:49.7787057+00:00", "description": "testreservation20200014", + "2020-11-23T22:15:10.79994+00:00", "description": "testreservation20200014", "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": 1, "locationOptions": [], "status": "Pending", "phoneNumbers": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:30:52 GMT - ms-cv: cova3SkoSUuIeIxsJ0+C+Q.0 + date: Mon, 23 Nov 2020 22:15:11 GMT + ms-cv: 1uEUtAIVP0ixbJJ6at1t6w.0 transfer-encoding: chunked - x-processing-time: 936ms + x-processing-time: 353ms status: code: 200 message: OK @@ -64,24 +64,24 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:30:52 GMT + - Mon, 23 Nov 2020 22:15:11 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/914329ca-b1e9-4182-bb91-21589196e9bc?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/6ec3963c-33a1-4d99-ad49-8f455205bf24?api-version=2020-07-20-preview1 response: body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": - "2020-10-27T17:30:49.7787057+00:00", "description": "testreservation20200014", + "2020-11-23T22:15:10.79994+00:00", "description": "testreservation20200014", "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": 1, "locationOptions": [], "status": "Pending", "phoneNumbers": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:30:52 GMT - ms-cv: HC5rXTY2pUiwpTYGacDv5Q.0 + date: Mon, 23 Nov 2020 22:15:12 GMT + ms-cv: ahwC8rgZdEODKQ3PFclPiA.0 transfer-encoding: chunked - x-processing-time: 278ms + x-processing-time: 268ms status: code: 200 message: OK @@ -92,24 +92,24 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:30:58 GMT + - Mon, 23 Nov 2020 22:15:17 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/914329ca-b1e9-4182-bb91-21589196e9bc?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/6ec3963c-33a1-4d99-ad49-8f455205bf24?api-version=2020-07-20-preview1 response: body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": - "2020-10-27T17:30:49.7787057+00:00", "description": "testreservation20200014", + "2020-11-23T22:15:10.79994+00:00", "description": "testreservation20200014", "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": 1, "locationOptions": [], "status": "InProgress", "phoneNumbers": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:30:58 GMT - ms-cv: z1B4TFEsKE2atSgeyPQCuw.0 + date: Mon, 23 Nov 2020 22:15:17 GMT + ms-cv: cy0GEqT0NUewZf2v3XLVcw.0 transfer-encoding: chunked - x-processing-time: 641ms + x-processing-time: 271ms status: code: 200 message: OK @@ -120,25 +120,25 @@ interactions: Accept: - application/json Date: - - Tue, 27 Oct 2020 17:31:04 GMT + - Mon, 23 Nov 2020 22:15:22 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/914329ca-b1e9-4182-bb91-21589196e9bc?api-version=2020-07-20-preview1 + uri: https://sanitized.communication.azure.com/administration/phonenumbers/searches/6ec3963c-33a1-4d99-ad49-8f455205bf24?api-version=2020-07-20-preview1 response: body: '{"searchId": "sanitized", "displayName": "testreservation20200014", "createdAt": - "2020-10-27T17:30:49.7787057+00:00", "description": "testreservation20200014", + "2020-11-23T22:15:10.79994+00:00", "description": "testreservation20200014", "phonePlanIds": "sanitized", "areaCode": "area_code_for_reservation", "quantity": 1, "locationOptions": [], "status": "Error", "phoneNumbers": "sanitized", "errorCode": 1000}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:04 GMT - ms-cv: GNdYns7JqEWi9B65Yi/v5g.0 + date: Mon, 23 Nov 2020 22:15:22 GMT + ms-cv: ormTTpdelUe7v7WzL6x7mw.0 transfer-encoding: chunked - x-processing-time: 584ms + x-processing-time: 265ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_update_capabilities.yaml b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_update_capabilities.yaml index a0f168dbd11b..0f12b8d77b9e 100644 --- a/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_update_capabilities.yaml +++ b/sdk/communication/azure-communication-administration/tests/recordings/test_phone_number_administration_client_async.test_update_capabilities.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: 'b''{"phoneNumberCapabilitiesUpdate": {"+1area_code_for_reservation7840394": + body: 'b''{"phoneNumberCapabilitiesUpdate": {"+1area_code_for_reservation4501240": {"add": []}}}''' headers: Accept: @@ -10,7 +10,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 27 Oct 2020 17:31:19 GMT + - Mon, 23 Nov 2020 22:15:22 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b2 Python/3.6.9 (Linux-5.4.0-48-generic-x86_64-with-Ubuntu-18.04-bionic) x-ms-return-client-request-id: @@ -21,10 +21,10 @@ interactions: body: '{"capabilitiesUpdateId": "sanitized"}' headers: content-type: application/json; charset=utf-8 - date: Tue, 27 Oct 2020 17:31:19 GMT - ms-cv: ZDMAyAsSsEas975WLrL2zw.0 + date: Mon, 23 Nov 2020 22:15:23 GMT + ms-cv: lCj9rXv4rkWJUHX1XbaQog.0 transfer-encoding: chunked - x-processing-time: 576ms + x-processing-time: 1068ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client.py b/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client.py index 13ea571bcddc..694f899affb0 100644 --- a/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client.py +++ b/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client.py @@ -249,7 +249,7 @@ def test_get_reservation_by_id(self): @pytest.mark.live_test_only @pytest.mark.skipif(SKIP_PHONE_NUMBER_TESTS, reason=PHONE_NUMBER_TEST_SKIP_REASON) - def test_create_search(self): + def test_reserve_phone_numbers(self): poller = self._phone_number_administration_client.begin_reserve_phone_numbers( area_code=self.area_code_for_reservation, description="testreservation20200014", diff --git a/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client_async.py b/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client_async.py index 28dc786ec4f8..2ef1b44aef54 100644 --- a/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client_async.py +++ b/sdk/communication/azure-communication-administration/tests/test_phone_number_administration_client_async.py @@ -303,17 +303,14 @@ async def test_get_reservation_by_id(self): @AsyncPhoneNumberCommunicationTestCase.await_prepared_test @pytest.mark.live_test_only @pytest.mark.skipif(SKIP_PHONE_NUMBER_TESTS, reason=PHONE_NUMBER_TEST_SKIP_REASON) - async def test_create_search(self): - searchOptions = CreateSearchOptions( - area_code=self.area_code_for_reservation, - description="testreservation20200014", - display_name="testreservation20200014", - phone_plan_ids=[self.phone_plan_id], - quantity=1 - ) + async def test_reserve_phone_numbers(self): async with self._phone_number_administration_client: poller = await self._phone_number_administration_client.begin_reserve_phone_numbers( - options=searchOptions + area_code=self.area_code_for_reservation, + description="testreservation20200014", + display_name="testreservation20200014", + phone_plan_ids=[self.phone_plan_id], + quantity=1 ) result = await poller.result() assert result From 8a00feb46ded6c538027eebb59697b5a0aef0a7f Mon Sep 17 00:00:00 2001 From: Heli Wang Date: Mon, 23 Nov 2020 14:49:22 -0800 Subject: [PATCH 8/8] refresh CHANGELOG --- .../azure-communication-administration/CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sdk/communication/azure-communication-administration/CHANGELOG.md b/sdk/communication/azure-communication-administration/CHANGELOG.md index df41da2e0480..5d0856e3452e 100644 --- a/sdk/communication/azure-communication-administration/CHANGELOG.md +++ b/sdk/communication/azure-communication-administration/CHANGELOG.md @@ -2,6 +2,15 @@ ## 1.0.0b4 (Unreleased) +##### `PhoneNumberAdministrationClient` +- `begin_reserve_phone_numbers` now takes `display_name`, `description`, `phone_plan_ids`, +`area_code`, `quantity`, `location_options`, or `continuation_token` keywords as input. +Caller must provide one of the following: + (1) all of keywords `display_name`, `description`, `phone_plan_ids`, `area_code`, `quantity` if all the phone plans + to reserve are toll-free plans. + (2) all of keywords `display_name`, `description`, `phone_plan_ids`, `area_code`, `quantity`, `location_options` + if at least one phone plan to reserve is not toll-free plans. + (3) only keyword `continuation_token` to restart a poller from a saved state. ## 1.0.0b3 (2020-11-16)