diff --git a/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md b/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md index f0cc2e844640..3356f8d1d994 100644 --- a/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md +++ b/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md @@ -1,14 +1,10 @@ # Release History -## 1.1.1 (Unreleased) +## 1.2.0b1 (2023-08-04) ### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Number Lookup API public preview +- API version `2023-05-01-preview` is the default ## 1.1.0 (2023-03-28) diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/__init__.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/__init__.py index 1fb5be72ea76..ab180ebada62 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/__init__.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/__init__.py @@ -20,6 +20,7 @@ PhoneNumberCountry, PhoneNumberLocality, PhoneNumberOffering, + OperatorInformationResult, ) __all__ = [ @@ -36,5 +37,6 @@ 'PhoneNumberCountry', 'PhoneNumberLocality', 'PhoneNumberOffering', + 'OperatorInformationResult', 'PhoneNumbersClient' ] diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_api_versions.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_api_versions.py index 37c7445dc8d1..1517ea3e061d 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_api_versions.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_api_versions.py @@ -10,6 +10,7 @@ class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): V2022_01_11_PREVIEW2 = "2022-01-11-preview2" V2022_12_01 = "2022-12-01" + V2023_05_01_PREVIEW = "2023-05-01-preview" -DEFAULT_VERSION = ApiVersion.V2022_12_01 +DEFAULT_VERSION = ApiVersion.V2023_05_01_PREVIEW diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_client.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_client.py index cbb587ccad9a..e7853900fa74 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_client.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_client.py @@ -27,8 +27,8 @@ class PhoneNumbersClient: # pylint: disable=client-accepts-api-version-keyword :param endpoint: The communication resource, for example https://resourcename.communication.azure.com. Required. :type endpoint: str - :keyword api_version: Api Version. Default value is "2022-12-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: Api Version. Default value is "2023-05-01-preview". Note that overriding + this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. @@ -39,7 +39,7 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential ) -> None: _endpoint = "{endpoint}" self._config = PhoneNumbersClientConfiguration(endpoint=endpoint, **kwargs) - self._client = PipelineClient(base_url=_endpoint, config=self._config, **kwargs) + self._client: PipelineClient = PipelineClient(base_url=_endpoint, config=self._config, **kwargs) client_models = {k: v for k, v in _models._models.__dict__.items() if isinstance(v, type)} client_models.update({k: v for k, v in _models.__dict__.items() if isinstance(v, type)}) @@ -81,5 +81,5 @@ def __enter__(self) -> "PhoneNumbersClient": self._client.__enter__() return self - def __exit__(self, *exc_details) -> None: + def __exit__(self, *exc_details: Any) -> None: self._client.__exit__(*exc_details) diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_configuration.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_configuration.py index 2e129056b750..37b29fbd8621 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_configuration.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_configuration.py @@ -6,17 +6,11 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any from azure.core.configuration import Configuration from azure.core.pipeline import policies -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports - VERSION = "unknown" @@ -29,14 +23,14 @@ class PhoneNumbersClientConfiguration(Configuration): # pylint: disable=too-man :param endpoint: The communication resource, for example https://resourcename.communication.azure.com. Required. :type endpoint: str - :keyword api_version: Api Version. Default value is "2022-12-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: Api Version. Default value is "2023-05-01-preview". Note that overriding + this default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, endpoint: str, **kwargs: Any) -> None: super(PhoneNumbersClientConfiguration, self).__init__(**kwargs) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", "2022-12-01") + api_version: str = kwargs.pop("api_version", "2023-05-01-preview") if endpoint is None: raise ValueError("Parameter 'endpoint' must not be None.") diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_serialization.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_serialization.py index 783bd7913f6e..4bae2292227b 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_serialization.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_serialization.py @@ -38,7 +38,22 @@ import re import sys import codecs -from typing import Dict, Any, cast, Optional, Union, AnyStr, IO, Mapping, Callable, TypeVar, MutableMapping, Type +from typing import ( + Dict, + Any, + cast, + Optional, + Union, + AnyStr, + IO, + Mapping, + Callable, + TypeVar, + MutableMapping, + Type, + List, + Mapping, +) try: from urllib import quote # type: ignore @@ -49,6 +64,7 @@ import isodate # type: ignore from azure.core.exceptions import DeserializationError, SerializationError, raise_with_traceback +from azure.core.serialization import NULL as AzureCoreNull _BOM = codecs.BOM_UTF8.decode(encoding="utf-8") @@ -343,7 +359,7 @@ def as_dict( key_transformer: Callable[[str, Dict[str, Any], Any], Any] = attribute_transformer, **kwargs: Any ) -> JSON: - """Return a dict that can be JSONify using json.dump. + """Return a dict that can be serialized using json.dump. Advanced usage might optionally use a callback as parameter: @@ -421,7 +437,7 @@ def from_dict( """ deserializer = Deserializer(cls._infer_class_models()) deserializer.key_extractors = ( # type: ignore - [ + [ # type: ignore attribute_key_case_insensitive_extractor, rest_key_case_insensitive_extractor, last_rest_key_case_insensitive_extractor, @@ -529,7 +545,7 @@ class Serializer(object): "multiple": lambda x, y: x % y != 0, } - def __init__(self, classes=None): + def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None): self.serialize_type = { "iso-8601": Serializer.serialize_iso, "rfc-1123": Serializer.serialize_rfc, @@ -545,7 +561,7 @@ def __init__(self, classes=None): "[]": self.serialize_iter, "{}": self.serialize_dict, } - self.dependencies = dict(classes) if classes else {} + self.dependencies: Dict[str, Type[ModelType]] = dict(classes) if classes else {} self.key_transformer = full_restapi_key_transformer self.client_side_validation = True @@ -613,7 +629,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs): if xml_desc.get("attr", False): if xml_ns: ET.register_namespace(xml_prefix, xml_ns) - xml_name = "{}{}".format(xml_ns, xml_name) + xml_name = "{{{}}}{}".format(xml_ns, xml_name) serialized.set(xml_name, new_attr) # type: ignore continue if xml_desc.get("text", False): @@ -637,8 +653,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs): serialized.append(local_node) # type: ignore else: # JSON for k in reversed(keys): # type: ignore - unflattened = {k: new_attr} - new_attr = unflattened + new_attr = {k: new_attr} _new_attr = new_attr _serialized = serialized @@ -647,8 +662,9 @@ def _serialize(self, target_obj, data_type=None, **kwargs): _serialized.update(_new_attr) # type: ignore _new_attr = _new_attr[k] # type: ignore _serialized = _serialized[k] - except ValueError: - continue + except ValueError as err: + if isinstance(err, SerializationError): + raise except (AttributeError, KeyError, TypeError) as err: msg = "Attribute {} in object {} cannot be serialized.\n{}".format(attr_name, class_name, str(target_obj)) @@ -667,8 +683,8 @@ def body(self, data, data_type, **kwargs): """ # Just in case this is a dict - internal_data_type = data_type.strip("[]{}") - internal_data_type = self.dependencies.get(internal_data_type, None) + internal_data_type_str = data_type.strip("[]{}") + internal_data_type = self.dependencies.get(internal_data_type_str, None) try: is_xml_model_serialization = kwargs["is_xml"] except KeyError: @@ -726,6 +742,8 @@ def query(self, name, data, data_type, **kwargs): :param data: The data to be serialized. :param str data_type: The type to be serialized from. + :keyword bool skip_quote: Whether to skip quote the serialized result. + Defaults to False. :rtype: str :raises: TypeError if serialization fails. :raises: ValueError if data is None @@ -734,10 +752,8 @@ def query(self, name, data, data_type, **kwargs): # Treat the list aside, since we don't want to encode the div separator if data_type.startswith("["): internal_data_type = data_type[1:-1] - data = [self.serialize_data(d, internal_data_type, **kwargs) if d is not None else "" for d in data] - if not kwargs.get("skip_quote", False): - data = [quote(str(d), safe="") for d in data] - return str(self.serialize_iter(data, internal_data_type, **kwargs)) + do_quote = not kwargs.get("skip_quote", False) + return str(self.serialize_iter(data, internal_data_type, do_quote=do_quote, **kwargs)) # Not a list, regular serialization output = self.serialize_data(data, data_type, **kwargs) @@ -788,6 +804,8 @@ def serialize_data(self, data, data_type, **kwargs): raise ValueError("No value for given attribute") try: + if data is AzureCoreNull: + return None if data_type in self.basic_types.values(): return self.serialize_basic(data, data_type, **kwargs) @@ -874,6 +892,8 @@ def serialize_iter(self, data, iter_type, div=None, **kwargs): not be None or empty. :param str div: If set, this str will be used to combine the elements in the iterable into a combined string. Default is 'None'. + :keyword bool do_quote: Whether to quote the serialized result of each iterable element. + Defaults to False. :rtype: list, str """ if isinstance(data, str): @@ -886,9 +906,14 @@ def serialize_iter(self, data, iter_type, div=None, **kwargs): for d in data: try: serialized.append(self.serialize_data(d, iter_type, **kwargs)) - except ValueError: + except ValueError as err: + if isinstance(err, SerializationError): + raise serialized.append(None) + if kwargs.get("do_quote", False): + serialized = ["" if s is None else quote(str(s), safe="") for s in serialized] + if div: serialized = ["" if s is None else str(s) for s in serialized] serialized = div.join(serialized) @@ -933,7 +958,9 @@ def serialize_dict(self, attr, dict_type, **kwargs): for key, value in attr.items(): try: serialized[self.serialize_unicode(key)] = self.serialize_data(value, dict_type, **kwargs) - except ValueError: + except ValueError as err: + if isinstance(err, SerializationError): + raise serialized[self.serialize_unicode(key)] = None if "xml" in serialization_ctxt: @@ -1172,7 +1199,8 @@ def rest_key_extractor(attr, attr_desc, data): working_data = data while "." in key: - dict_keys = _FLATTEN.split(key) + # Need the cast, as for some reasons "split" is typed as list[str | Any] + dict_keys = cast(List[str], _FLATTEN.split(key)) if len(dict_keys) == 1: key = _decode_attribute_map_key(dict_keys[0]) break @@ -1253,7 +1281,7 @@ def _extract_name_from_internal_type(internal_type): xml_name = internal_type_xml_map.get("name", internal_type.__name__) xml_ns = internal_type_xml_map.get("ns", None) if xml_ns: - xml_name = "{}{}".format(xml_ns, xml_name) + xml_name = "{{{}}}{}".format(xml_ns, xml_name) return xml_name @@ -1277,7 +1305,7 @@ def xml_key_extractor(attr, attr_desc, data): # Integrate namespace if necessary xml_ns = xml_desc.get("ns", internal_type_xml_map.get("ns", None)) if xml_ns: - xml_name = "{}{}".format(xml_ns, xml_name) + xml_name = "{{{}}}{}".format(xml_ns, xml_name) # If it's an attribute, that's simple if xml_desc.get("attr", False): @@ -1343,7 +1371,7 @@ class Deserializer(object): valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?") - def __init__(self, classes=None): + def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None): self.deserialize_type = { "iso-8601": Deserializer.deserialize_iso, "rfc-1123": Deserializer.deserialize_rfc, @@ -1363,7 +1391,7 @@ def __init__(self, classes=None): "duration": (isodate.Duration, datetime.timedelta), "iso-8601": (datetime.datetime), } - self.dependencies = dict(classes) if classes else {} + self.dependencies: Dict[str, Type[ModelType]] = dict(classes) if classes else {} self.key_extractors = [rest_key_extractor, xml_key_extractor] # Additional properties only works if the "rest_key_extractor" is used to # extract the keys. Making it to work whatever the key extractor is too much @@ -1482,7 +1510,7 @@ def _classify_target(self, target, data): Once classification has been determined, initialize object. :param str target: The target object type to deserialize to. - :param str/dict data: The response data to deseralize. + :param str/dict data: The response data to deserialize. """ if target is None: return None, None @@ -1497,7 +1525,7 @@ def _classify_target(self, target, data): target = target._classify(data, self.dependencies) except AttributeError: pass # Target is not a Model, no classify - return target, target.__class__.__name__ + return target, target.__class__.__name__ # type: ignore def failsafe_deserialize(self, target_obj, data, content_type=None): """Ignores any errors encountered in deserialization, @@ -1507,7 +1535,7 @@ def failsafe_deserialize(self, target_obj, data, content_type=None): a deserialization error. :param str target_obj: The target object type to deserialize to. - :param str/dict data: The response data to deseralize. + :param str/dict data: The response data to deserialize. :param str content_type: Swagger "produces" if available. """ try: diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_vendor.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_vendor.py deleted file mode 100644 index 54f238858ed8..000000000000 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/_vendor.py +++ /dev/null @@ -1,17 +0,0 @@ -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - - -def _format_url_section(template, **kwargs): - components = template.split("/") - while components: - try: - return template.format(**kwargs) - except KeyError as key: - formatted_components = template.split("/") - components = [c for c in formatted_components if "{}".format(key.args[0]) not in c] - template = "/".join(components) diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/_client.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/_client.py index 10e7aa67b6a3..addd49fe906f 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/_client.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/_client.py @@ -27,8 +27,8 @@ class PhoneNumbersClient: # pylint: disable=client-accepts-api-version-keyword :param endpoint: The communication resource, for example https://resourcename.communication.azure.com. Required. :type endpoint: str - :keyword api_version: Api Version. Default value is "2022-12-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: Api Version. Default value is "2023-05-01-preview". Note that overriding + this default value may result in unsupported behavior. :paramtype api_version: str :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. @@ -39,7 +39,7 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential ) -> None: _endpoint = "{endpoint}" self._config = PhoneNumbersClientConfiguration(endpoint=endpoint, **kwargs) - self._client = AsyncPipelineClient(base_url=_endpoint, config=self._config, **kwargs) + self._client: AsyncPipelineClient = AsyncPipelineClient(base_url=_endpoint, config=self._config, **kwargs) client_models = {k: v for k, v in _models._models.__dict__.items() if isinstance(v, type)} client_models.update({k: v for k, v in _models.__dict__.items() if isinstance(v, type)}) @@ -81,5 +81,5 @@ async def __aenter__(self) -> "PhoneNumbersClient": await self._client.__aenter__() return self - async def __aexit__(self, *exc_details) -> None: + async def __aexit__(self, *exc_details: Any) -> None: await self._client.__aexit__(*exc_details) diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/_configuration.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/_configuration.py index 8df43985d985..2759248037cc 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/_configuration.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/_configuration.py @@ -6,17 +6,11 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys from typing import Any from azure.core.configuration import Configuration from azure.core.pipeline import policies -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports - VERSION = "unknown" @@ -29,14 +23,14 @@ class PhoneNumbersClientConfiguration(Configuration): # pylint: disable=too-man :param endpoint: The communication resource, for example https://resourcename.communication.azure.com. Required. :type endpoint: str - :keyword api_version: Api Version. Default value is "2022-12-01". Note that overriding this - default value may result in unsupported behavior. + :keyword api_version: Api Version. Default value is "2023-05-01-preview". Note that overriding + this default value may result in unsupported behavior. :paramtype api_version: str """ def __init__(self, endpoint: str, **kwargs: Any) -> None: super(PhoneNumbersClientConfiguration, self).__init__(**kwargs) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", "2022-12-01") + api_version: str = kwargs.pop("api_version", "2023-05-01-preview") if endpoint is None: raise ValueError("Parameter 'endpoint' must not be None.") diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/operations/_operations.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/operations/_operations.py index 8f0f628857f6..5807b518f619 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/operations/_operations.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/aio/operations/_operations.py @@ -6,6 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse @@ -19,10 +20,9 @@ map_error, ) from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod from azure.core.polling.async_base_polling import AsyncLROBasePolling -from azure.core.rest import HttpRequest +from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.core.tracing.decorator import distributed_trace from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.utils import case_insensitive_dict @@ -38,6 +38,7 @@ build_phone_numbers_list_available_localities_request, build_phone_numbers_list_offerings_request, build_phone_numbers_list_phone_numbers_request, + build_phone_numbers_operator_information_search_request, build_phone_numbers_purchase_phone_numbers_request, build_phone_numbers_release_phone_number_request, build_phone_numbers_search_available_phone_numbers_request, @@ -92,7 +93,7 @@ def list_area_codes( :keyword skip: An optional parameter for how many entries to skip, for pagination purposes. The default value is 0. Default value is 0. :paramtype skip: int - :keyword assignment_type: Filter by assignmentType, e.g. User, Application. Known values are: + :keyword assignment_type: Filter by assignmentType, e.g. Person, Application. Known values are: "person" and "application". Default value is None. :paramtype assignment_type: str or ~azure.communication.phonenumbers.models.PhoneNumberAssignmentType @@ -179,12 +180,15 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + await response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -276,12 +280,15 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + await response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -323,9 +330,9 @@ def list_available_localities( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models._models.PhoneNumberLocalities] = kwargs.pop( + cls: ClsType[_models._models.PhoneNumberLocalities] = kwargs.pop( # pylint: disable=protected-access "cls", None - ) # pylint: disable=protected-access + ) error_map = { 401: ClientAuthenticationError, @@ -388,12 +395,15 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + await response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -504,12 +514,15 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + await response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -538,7 +551,7 @@ async def _search_available_phone_numbers_initial( content_type = content_type or "application/json" _json = None _content = None - if isinstance(body, (IO, bytes)): + if isinstance(body, (IOBase, bytes)): _content = body else: _json = self._serialize.body(body, "PhoneNumberSearchRequest") @@ -557,13 +570,16 @@ async def _search_available_phone_numbers_initial( } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202]: + if _stream: + await response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -652,7 +668,8 @@ async def begin_search_available_phone_numbers( :param country_code: The ISO 3166-2 country code, e.g. US. Required. :type country_code: str - :param body: The phone number search request. Is either a model type or a IO type. Required. + :param body: The phone number search request. Is either a PhoneNumberSearchRequest type or a IO + type. Required. :type body: ~azure.communication.phonenumbers.models.PhoneNumberSearchRequest or IO :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. Default value is None. @@ -767,13 +784,16 @@ async def get_search_result(self, search_id: str, **kwargs: Any) -> _models.Phon } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + await response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -805,7 +825,7 @@ async def _purchase_phone_numbers_initial( # pylint: disable=inconsistent-retur content_type = content_type or "application/json" _json = None _content = None - if isinstance(body, (IO, bytes)): + if isinstance(body, (IOBase, bytes)): _content = body else: _json = self._serialize.body(body, "PhoneNumberPurchaseRequest") @@ -823,13 +843,16 @@ async def _purchase_phone_numbers_initial( # pylint: disable=inconsistent-retur } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202]: + if _stream: + await response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -900,7 +923,8 @@ async def begin_purchase_phone_numbers( Purchases phone numbers. - :param body: The phone number purchase request. Is either a model type or a IO type. Required. + :param body: The phone number purchase request. Is either a PhoneNumberPurchaseRequest type or + a IO type. Required. :type body: ~azure.communication.phonenumbers.models.PhoneNumberPurchaseRequest or IO :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. Default value is None. @@ -992,13 +1016,16 @@ async def get_operation(self, operation_id: str, **kwargs: Any) -> _models.Phone } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + await response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1051,13 +1078,16 @@ async def cancel_operation( # pylint: disable=inconsistent-return-statements } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [204]: + if _stream: + await response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1085,7 +1115,7 @@ async def _update_capabilities_initial( content_type = content_type or "application/merge-patch+json" _json = None _content = None - if isinstance(body, (IO, bytes)): + if isinstance(body, (IOBase, bytes)): _content = body else: if body is not None: @@ -1107,13 +1137,16 @@ async def _update_capabilities_initial( } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202]: + if _stream: + await response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1210,8 +1243,8 @@ async def begin_update_capabilities( :param phone_number: The phone number id in E.164 format. The leading plus can be either + or encoded as %2B, e.g. +11234567890. Required. :type phone_number: str - :param body: Defines the update capabilities request. Is either a model type or a IO type. - Default value is None. + :param body: Defines the update capabilities request. Is either a + PhoneNumberCapabilitiesRequest type or a IO type. Default value is None. :type body: ~azure.communication.phonenumbers.models.PhoneNumberCapabilitiesRequest or IO :keyword content_type: Body Parameter content-type. Known values are: 'application/merge-patch+json'. Default value is None. @@ -1327,13 +1360,16 @@ async def get_by_number(self, phone_number: str, **kwargs: Any) -> _models.Purch } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + await response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1372,13 +1408,16 @@ async def _release_phone_number_initial( # pylint: disable=inconsistent-return- } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202]: + if _stream: + await response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1471,9 +1510,9 @@ def list_phone_numbers( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models._models.PurchasedPhoneNumbers] = kwargs.pop( + cls: ClsType[_models._models.PurchasedPhoneNumbers] = kwargs.pop( # pylint: disable=protected-access "cls", None - ) # pylint: disable=protected-access + ) error_map = { 401: ClientAuthenticationError, @@ -1534,12 +1573,15 @@ async def extract_data(pipeline_response): async def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + await response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1547,3 +1589,113 @@ async def get_next(next_link=None): return pipeline_response return AsyncItemPaged(get_next, extract_data) + + @overload + async def operator_information_search( + self, body: _models.OperatorInformationRequest, *, content_type: str = "application/json", **kwargs: Any + ) -> _models.OperatorInformationResult: + """Searches for operator information for a given list of phone numbers. + + Searches for operator information for a given list of phone numbers. + + :param body: The phone number(s) whose operator information should be searched. Required. + :type body: ~azure.communication.phonenumbers.models.OperatorInformationRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: OperatorInformationResult + :rtype: ~azure.communication.phonenumbers.models.OperatorInformationResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def operator_information_search( + self, body: IO, *, content_type: str = "application/json", **kwargs: Any + ) -> _models.OperatorInformationResult: + """Searches for operator information for a given list of phone numbers. + + Searches for operator information for a given list of phone numbers. + + :param body: The phone number(s) whose operator information should be searched. Required. + :type body: IO + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: OperatorInformationResult + :rtype: ~azure.communication.phonenumbers.models.OperatorInformationResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace_async + async def operator_information_search( + self, body: Union[_models.OperatorInformationRequest, IO], **kwargs: Any + ) -> _models.OperatorInformationResult: + """Searches for operator information for a given list of phone numbers. + + Searches for operator information for a given list of phone numbers. + + :param body: The phone number(s) whose operator information should be searched. Is either a + OperatorInformationRequest type or a IO type. Required. + :type body: ~azure.communication.phonenumbers.models.OperatorInformationRequest or IO + :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. + Default value is None. + :paramtype content_type: str + :return: OperatorInformationResult + :rtype: ~azure.communication.phonenumbers.models.OperatorInformationResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.OperatorInformationResult] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _json = self._serialize.body(body, "OperatorInformationRequest") + + request = build_phone_numbers_operator_information_search_request( + content_type=content_type, + api_version=self._config.api_version, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access + request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + await response.read() # Load the body in memory and close the socket + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize("OperatorInformationResult", pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/__init__.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/__init__.py index b109c061782d..b51be8842bdc 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/__init__.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/__init__.py @@ -8,6 +8,10 @@ from ._models import CommunicationError from ._models import CommunicationErrorResponse +from ._models import OperatorDetails +from ._models import OperatorInformation +from ._models import OperatorInformationRequest +from ._models import OperatorInformationResult from ._models import PhoneNumberAdministrativeDivision from ._models import PhoneNumberAreaCode from ._models import PhoneNumberCapabilities @@ -23,10 +27,12 @@ from ._models import PurchasedPhoneNumber from ._enums import BillingFrequency +from ._enums import OperatorNumberType from ._enums import PhoneNumberAssignmentType from ._enums import PhoneNumberCapabilityType from ._enums import PhoneNumberOperationStatus from ._enums import PhoneNumberOperationType +from ._enums import PhoneNumberSearchResultError from ._enums import PhoneNumberType from ._patch import __all__ as _patch_all from ._patch import * # pylint: disable=unused-wildcard-import @@ -35,6 +41,10 @@ __all__ = [ "CommunicationError", "CommunicationErrorResponse", + "OperatorDetails", + "OperatorInformation", + "OperatorInformationRequest", + "OperatorInformationResult", "PhoneNumberAdministrativeDivision", "PhoneNumberAreaCode", "PhoneNumberCapabilities", @@ -49,10 +59,12 @@ "PhoneNumberSearchResult", "PurchasedPhoneNumber", "BillingFrequency", + "OperatorNumberType", "PhoneNumberAssignmentType", "PhoneNumberCapabilityType", "PhoneNumberOperationStatus", "PhoneNumberOperationType", + "PhoneNumberSearchResultError", "PhoneNumberType", ] __all__.extend([p for p in _patch_all if p not in __all__]) diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/_enums.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/_enums.py index f05059af9f7f..eb5d3091762d 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/_enums.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/_enums.py @@ -16,6 +16,15 @@ class BillingFrequency(str, Enum, metaclass=CaseInsensitiveEnumMeta): MONTHLY = "monthly" +class OperatorNumberType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Type of service associated with the phone number.""" + + UNKNOWN = "unknown" + OTHER = "other" + GEOGRAPHIC = "geographic" + MOBILE = "mobile" + + class PhoneNumberAssignmentType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Represents the assignment type of the offering.""" @@ -50,6 +59,28 @@ class PhoneNumberOperationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): UPDATE_PHONE_NUMBER_CAPABILITIES = "updatePhoneNumberCapabilities" +class PhoneNumberSearchResultError(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Mapping Error Messages to Codes.""" + + NO_ERROR = "NoError" + UNKNOWN_ERROR_CODE = "UnknownErrorCode" + OUT_OF_STOCK = "OutOfStock" + AUTHORIZATION_DENIED = "AuthorizationDenied" + MISSING_ADDRESS = "MissingAddress" + INVALID_ADDRESS = "InvalidAddress" + INVALID_OFFER_MODEL = "InvalidOfferModel" + NOT_ENOUGH_LICENSES = "NotEnoughLicenses" + NO_WALLET = "NoWallet" + NOT_ENOUGH_CREDIT = "NotEnoughCredit" + NUMBERS_PARTIALLY_ACQUIRED = "NumbersPartiallyAcquired" + ALL_NUMBERS_NOT_ACQUIRED = "AllNumbersNotAcquired" + RESERVATION_EXPIRED = "ReservationExpired" + PURCHASE_FAILED = "PurchaseFailed" + BILLING_UNAVAILABLE = "BillingUnavailable" + PROVISIONING_FAILED = "ProvisioningFailed" + UNKNOWN_SEARCH_ERROR = "UnknownSearchError" + + class PhoneNumberType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Represents the number type of the offering.""" diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/_models.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/_models.py index 041d9f785e92..985579c64b34 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/_models.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/models/_models.py @@ -127,6 +127,141 @@ def __init__( self.next_link = next_link +class OperatorDetails(_serialization.Model): + """Represents metadata describing the operator of a phone number. + + :ivar name: Name of the phone operator. + :vartype name: str + :ivar mobile_network_code: Mobile Network Code. + :vartype mobile_network_code: str + :ivar mobile_country_code: Mobile Country Code. + :vartype mobile_country_code: str + """ + + _attribute_map = { + "name": {"key": "name", "type": "str"}, + "mobile_network_code": {"key": "mobileNetworkCode", "type": "str"}, + "mobile_country_code": {"key": "mobileCountryCode", "type": "str"}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + mobile_network_code: Optional[str] = None, + mobile_country_code: Optional[str] = None, + **kwargs: Any + ) -> None: + """ + :keyword name: Name of the phone operator. + :paramtype name: str + :keyword mobile_network_code: Mobile Network Code. + :paramtype mobile_network_code: str + :keyword mobile_country_code: Mobile Country Code. + :paramtype mobile_country_code: str + """ + super().__init__(**kwargs) + self.name = name + self.mobile_network_code = mobile_network_code + self.mobile_country_code = mobile_country_code + + +class OperatorInformation(_serialization.Model): + """Represents metadata about a phone number that is controlled/provided by that phone number's + operator. + + :ivar phone_number: E.164 formatted string representation of the phone number. + :vartype phone_number: str + :ivar number_type: Type of service associated with the phone number. Known values are: + "unknown", "other", "geographic", and "mobile". + :vartype number_type: str or ~azure.communication.phonenumbers.models.OperatorNumberType + :ivar iso_country_code: ISO 3166-1 two character ('alpha-2') code associated with the phone + number. + :vartype iso_country_code: str + :ivar operator_details: Represents metadata describing the operator of a phone number. + :vartype operator_details: ~azure.communication.phonenumbers.models.OperatorDetails + """ + + _attribute_map = { + "phone_number": {"key": "phoneNumber", "type": "str"}, + "number_type": {"key": "numberType", "type": "str"}, + "iso_country_code": {"key": "isoCountryCode", "type": "str"}, + "operator_details": {"key": "operatorDetails", "type": "OperatorDetails"}, + } + + def __init__( + self, + *, + phone_number: Optional[str] = None, + number_type: Optional[Union[str, "_models.OperatorNumberType"]] = None, + iso_country_code: Optional[str] = None, + operator_details: Optional["_models.OperatorDetails"] = None, + **kwargs: Any + ) -> None: + """ + :keyword phone_number: E.164 formatted string representation of the phone number. + :paramtype phone_number: str + :keyword number_type: Type of service associated with the phone number. Known values are: + "unknown", "other", "geographic", and "mobile". + :paramtype number_type: str or ~azure.communication.phonenumbers.models.OperatorNumberType + :keyword iso_country_code: ISO 3166-1 two character ('alpha-2') code associated with the phone + number. + :paramtype iso_country_code: str + :keyword operator_details: Represents metadata describing the operator of a phone number. + :paramtype operator_details: ~azure.communication.phonenumbers.models.OperatorDetails + """ + super().__init__(**kwargs) + self.phone_number = phone_number + self.number_type = number_type + self.iso_country_code = iso_country_code + self.operator_details = operator_details + + +class OperatorInformationRequest(_serialization.Model): + """Represents a search request for operator information for the given phone numbers. + + :ivar phone_numbers: Phone number(s) whose operator information is being requested. + :vartype phone_numbers: list[str] + """ + + _attribute_map = { + "phone_numbers": {"key": "phoneNumbers", "type": "[str]"}, + } + + def __init__(self, *, phone_numbers: Optional[List[str]] = None, **kwargs: Any) -> None: + """ + :keyword phone_numbers: Phone number(s) whose operator information is being requested. + :paramtype phone_numbers: list[str] + """ + super().__init__(**kwargs) + self.phone_numbers = phone_numbers + + +class OperatorInformationResult(_serialization.Model): + """Represents a search result containing operator information associated with the requested phone + numbers. + + :ivar values: Results of a search. + This array will have one entry per requested phone number which will contain the relevant + operator information. + :vartype values: list[~azure.communication.phonenumbers.models.OperatorInformation] + """ + + _attribute_map = { + "values": {"key": "values", "type": "[OperatorInformation]"}, + } + + def __init__(self, *, values: Optional[List["_models.OperatorInformation"]] = None, **kwargs: Any) -> None: + """ + :keyword values: Results of a search. + This array will have one entry per requested phone number which will contain the relevant + operator information. + :paramtype values: list[~azure.communication.phonenumbers.models.OperatorInformation] + """ + super().__init__(**kwargs) + self.values = values + + class PhoneNumberAdministrativeDivision(_serialization.Model): """Represents an administrative division. e.g. state or province. @@ -744,6 +879,14 @@ class PhoneNumberSearchResult(_serialization.Model): longer on hold. A search result expires in less than 15min, e.g. 2020-11-19T16:31:49.048Z. Required. :vartype search_expires_by: ~datetime.datetime + :ivar error_code: The error code of the search. + :vartype error_code: int + :ivar error: Mapping Error Messages to Codes. Known values are: "NoError", "UnknownErrorCode", + "OutOfStock", "AuthorizationDenied", "MissingAddress", "InvalidAddress", "InvalidOfferModel", + "NotEnoughLicenses", "NoWallet", "NotEnoughCredit", "NumbersPartiallyAcquired", + "AllNumbersNotAcquired", "ReservationExpired", "PurchaseFailed", "BillingUnavailable", + "ProvisioningFailed", and "UnknownSearchError". + :vartype error: str or ~azure.communication.phonenumbers.models.PhoneNumberSearchResultError """ _validation = { @@ -764,6 +907,8 @@ class PhoneNumberSearchResult(_serialization.Model): "capabilities": {"key": "capabilities", "type": "PhoneNumberCapabilities"}, "cost": {"key": "cost", "type": "PhoneNumberCost"}, "search_expires_by": {"key": "searchExpiresBy", "type": "iso-8601"}, + "error_code": {"key": "errorCode", "type": "int"}, + "error": {"key": "error", "type": "str"}, } def __init__( @@ -776,6 +921,8 @@ def __init__( capabilities: "_models.PhoneNumberCapabilities", cost: "_models.PhoneNumberCost", search_expires_by: datetime.datetime, + error_code: Optional[int] = None, + error: Optional[Union[str, "_models.PhoneNumberSearchResultError"]] = None, **kwargs: Any ) -> None: """ @@ -799,6 +946,14 @@ def __init__( longer on hold. A search result expires in less than 15min, e.g. 2020-11-19T16:31:49.048Z. Required. :paramtype search_expires_by: ~datetime.datetime + :keyword error_code: The error code of the search. + :paramtype error_code: int + :keyword error: Mapping Error Messages to Codes. Known values are: "NoError", + "UnknownErrorCode", "OutOfStock", "AuthorizationDenied", "MissingAddress", "InvalidAddress", + "InvalidOfferModel", "NotEnoughLicenses", "NoWallet", "NotEnoughCredit", + "NumbersPartiallyAcquired", "AllNumbersNotAcquired", "ReservationExpired", "PurchaseFailed", + "BillingUnavailable", "ProvisioningFailed", and "UnknownSearchError". + :paramtype error: str or ~azure.communication.phonenumbers.models.PhoneNumberSearchResultError """ super().__init__(**kwargs) self.search_id = search_id @@ -808,6 +963,8 @@ def __init__( self.capabilities = capabilities self.cost = cost self.search_expires_by = search_expires_by + self.error_code = error_code + self.error = error class PurchasedPhoneNumber(_serialization.Model): diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/operations/_operations.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/operations/_operations.py index 7b299a67dd5c..09838dcdbb1a 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/operations/_operations.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/operations/_operations.py @@ -6,7 +6,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -import sys +from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload import urllib.parse @@ -20,21 +20,15 @@ ) from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpResponse from azure.core.polling import LROPoller, NoPolling, PollingMethod from azure.core.polling.base_polling import LROBasePolling -from azure.core.rest import HttpRequest +from azure.core.rest import HttpRequest, HttpResponse from azure.core.tracing.decorator import distributed_trace from azure.core.utils import case_insensitive_dict from .. import models as _models from .._serialization import Serializer -from .._vendor import _format_url_section -if sys.version_info >= (3, 8): - from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports -else: - from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -56,7 +50,7 @@ def build_phone_numbers_list_area_codes_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -65,7 +59,7 @@ def build_phone_numbers_list_area_codes_request( "countryCode": _SERIALIZER.url("country_code", country_code, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["phoneNumberType"] = _SERIALIZER.query("phone_number_type", phone_number_type, "str") @@ -93,7 +87,7 @@ def build_phone_numbers_list_available_countries_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -123,7 +117,7 @@ def build_phone_numbers_list_available_localities_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -132,7 +126,7 @@ def build_phone_numbers_list_available_localities_request( "countryCode": _SERIALIZER.url("country_code", country_code, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters if skip is not None: @@ -161,7 +155,7 @@ def build_phone_numbers_list_offerings_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -170,7 +164,7 @@ def build_phone_numbers_list_offerings_request( "countryCode": _SERIALIZER.url("country_code", country_code, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters if skip is not None: @@ -194,7 +188,7 @@ def build_phone_numbers_search_available_phone_numbers_request(country_code: str _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -203,7 +197,7 @@ def build_phone_numbers_search_available_phone_numbers_request(country_code: str "countryCode": _SERIALIZER.url("country_code", country_code, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -220,7 +214,7 @@ def build_phone_numbers_get_search_result_request(search_id: str, **kwargs: Any) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -229,7 +223,7 @@ def build_phone_numbers_get_search_result_request(search_id: str, **kwargs: Any) "searchId": _SERIALIZER.url("search_id", search_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -245,7 +239,7 @@ def build_phone_numbers_purchase_phone_numbers_request(**kwargs: Any) -> HttpReq _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -266,7 +260,7 @@ def build_phone_numbers_get_operation_request(operation_id: str, **kwargs: Any) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -275,7 +269,7 @@ def build_phone_numbers_get_operation_request(operation_id: str, **kwargs: Any) "operationId": _SERIALIZER.url("operation_id", operation_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -290,7 +284,7 @@ def build_phone_numbers_cancel_operation_request(operation_id: str, **kwargs: An _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -299,7 +293,7 @@ def build_phone_numbers_cancel_operation_request(operation_id: str, **kwargs: An "operationId": _SERIALIZER.url("operation_id", operation_id, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -315,7 +309,7 @@ def build_phone_numbers_update_capabilities_request(phone_number: str, **kwargs: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -324,7 +318,7 @@ def build_phone_numbers_update_capabilities_request(phone_number: str, **kwargs: "phoneNumber": _SERIALIZER.url("phone_number", phone_number, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -341,7 +335,7 @@ def build_phone_numbers_get_by_number_request(phone_number: str, **kwargs: Any) _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -350,7 +344,7 @@ def build_phone_numbers_get_by_number_request(phone_number: str, **kwargs: Any) "phoneNumber": _SERIALIZER.url("phone_number", phone_number, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -365,7 +359,7 @@ def build_phone_numbers_release_phone_number_request(phone_number: str, **kwargs _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -374,7 +368,7 @@ def build_phone_numbers_release_phone_number_request(phone_number: str, **kwargs "phoneNumber": _SERIALIZER.url("phone_number", phone_number, "str"), } - _url: str = _format_url_section(_url, **path_format_arguments) # type: ignore + _url: str = _url.format(**path_format_arguments) # type: ignore # Construct parameters _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") @@ -389,7 +383,7 @@ def build_phone_numbers_list_phone_numbers_request(*, skip: int = 0, top: int = _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: Literal["2022-12-01"] = kwargs.pop("api_version", _params.pop("api-version", "2022-12-01")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -408,6 +402,28 @@ def build_phone_numbers_list_phone_numbers_request(*, skip: int = 0, top: int = return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) +def build_phone_numbers_operator_information_search_request(**kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2023-05-01-preview")) + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/operatorInformation/:search" + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + if content_type is not None: + _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str") + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + class PhoneNumbersOperations: """ .. warning:: @@ -452,7 +468,7 @@ def list_area_codes( :keyword skip: An optional parameter for how many entries to skip, for pagination purposes. The default value is 0. Default value is 0. :paramtype skip: int - :keyword assignment_type: Filter by assignmentType, e.g. User, Application. Known values are: + :keyword assignment_type: Filter by assignmentType, e.g. Person, Application. Known values are: "person" and "application". Default value is None. :paramtype assignment_type: str or ~azure.communication.phonenumbers.models.PhoneNumberAssignmentType @@ -539,12 +555,15 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -636,12 +655,15 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -683,9 +705,9 @@ def list_available_localities( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models._models.PhoneNumberLocalities] = kwargs.pop( + cls: ClsType[_models._models.PhoneNumberLocalities] = kwargs.pop( # pylint: disable=protected-access "cls", None - ) # pylint: disable=protected-access + ) error_map = { 401: ClientAuthenticationError, @@ -748,12 +770,15 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -864,12 +889,15 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -898,7 +926,7 @@ def _search_available_phone_numbers_initial( content_type = content_type or "application/json" _json = None _content = None - if isinstance(body, (IO, bytes)): + if isinstance(body, (IOBase, bytes)): _content = body else: _json = self._serialize.body(body, "PhoneNumberSearchRequest") @@ -917,13 +945,16 @@ def _search_available_phone_numbers_initial( } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202]: + if _stream: + response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1012,7 +1043,8 @@ def begin_search_available_phone_numbers( :param country_code: The ISO 3166-2 country code, e.g. US. Required. :type country_code: str - :param body: The phone number search request. Is either a model type or a IO type. Required. + :param body: The phone number search request. Is either a PhoneNumberSearchRequest type or a IO + type. Required. :type body: ~azure.communication.phonenumbers.models.PhoneNumberSearchRequest or IO :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. Default value is None. @@ -1127,13 +1159,16 @@ def get_search_result(self, search_id: str, **kwargs: Any) -> _models.PhoneNumbe } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1165,7 +1200,7 @@ def _purchase_phone_numbers_initial( # pylint: disable=inconsistent-return-stat content_type = content_type or "application/json" _json = None _content = None - if isinstance(body, (IO, bytes)): + if isinstance(body, (IOBase, bytes)): _content = body else: _json = self._serialize.body(body, "PhoneNumberPurchaseRequest") @@ -1183,13 +1218,16 @@ def _purchase_phone_numbers_initial( # pylint: disable=inconsistent-return-stat } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202]: + if _stream: + response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1260,7 +1298,8 @@ def begin_purchase_phone_numbers( Purchases phone numbers. - :param body: The phone number purchase request. Is either a model type or a IO type. Required. + :param body: The phone number purchase request. Is either a PhoneNumberPurchaseRequest type or + a IO type. Required. :type body: ~azure.communication.phonenumbers.models.PhoneNumberPurchaseRequest or IO :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. Default value is None. @@ -1351,13 +1390,16 @@ def get_operation(self, operation_id: str, **kwargs: Any) -> _models.PhoneNumber } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1410,13 +1452,16 @@ def cancel_operation( # pylint: disable=inconsistent-return-statements } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [204]: + if _stream: + response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1444,7 +1489,7 @@ def _update_capabilities_initial( content_type = content_type or "application/merge-patch+json" _json = None _content = None - if isinstance(body, (IO, bytes)): + if isinstance(body, (IOBase, bytes)): _content = body else: if body is not None: @@ -1466,13 +1511,16 @@ def _update_capabilities_initial( } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202]: + if _stream: + response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1569,8 +1617,8 @@ def begin_update_capabilities( :param phone_number: The phone number id in E.164 format. The leading plus can be either + or encoded as %2B, e.g. +11234567890. Required. :type phone_number: str - :param body: Defines the update capabilities request. Is either a model type or a IO type. - Default value is None. + :param body: Defines the update capabilities request. Is either a + PhoneNumberCapabilitiesRequest type or a IO type. Default value is None. :type body: ~azure.communication.phonenumbers.models.PhoneNumberCapabilitiesRequest or IO :keyword content_type: Body Parameter content-type. Known values are: 'application/merge-patch+json'. Default value is None. @@ -1686,13 +1734,16 @@ def get_by_number(self, phone_number: str, **kwargs: Any) -> _models.PurchasedPh } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1731,13 +1782,16 @@ def _release_phone_number_initial( # pylint: disable=inconsistent-return-statem } request.url = self._client.format_url(request.url, **path_format_arguments) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [202]: + if _stream: + response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1829,9 +1883,9 @@ def list_phone_numbers( _headers = kwargs.pop("headers", {}) or {} _params = kwargs.pop("params", {}) or {} - cls: ClsType[_models._models.PurchasedPhoneNumbers] = kwargs.pop( + cls: ClsType[_models._models.PurchasedPhoneNumbers] = kwargs.pop( # pylint: disable=protected-access "cls", None - ) # pylint: disable=protected-access + ) error_map = { 401: ClientAuthenticationError, @@ -1892,12 +1946,15 @@ def extract_data(pipeline_response): def get_next(next_link=None): request = prepare_request(next_link) + _stream = False pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - request, stream=False, **kwargs + request, stream=_stream, **kwargs ) response = pipeline_response.http_response if response.status_code not in [200]: + if _stream: + response.read() # Load the body in memory and close the socket map_error(status_code=response.status_code, response=response, error_map=error_map) error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) raise HttpResponseError(response=response, model=error) @@ -1905,3 +1962,113 @@ def get_next(next_link=None): return pipeline_response return ItemPaged(get_next, extract_data) + + @overload + def operator_information_search( + self, body: _models.OperatorInformationRequest, *, content_type: str = "application/json", **kwargs: Any + ) -> _models.OperatorInformationResult: + """Searches for operator information for a given list of phone numbers. + + Searches for operator information for a given list of phone numbers. + + :param body: The phone number(s) whose operator information should be searched. Required. + :type body: ~azure.communication.phonenumbers.models.OperatorInformationRequest + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: OperatorInformationResult + :rtype: ~azure.communication.phonenumbers.models.OperatorInformationResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def operator_information_search( + self, body: IO, *, content_type: str = "application/json", **kwargs: Any + ) -> _models.OperatorInformationResult: + """Searches for operator information for a given list of phone numbers. + + Searches for operator information for a given list of phone numbers. + + :param body: The phone number(s) whose operator information should be searched. Required. + :type body: IO + :keyword content_type: Body Parameter content-type. Content type parameter for binary body. + Default value is "application/json". + :paramtype content_type: str + :return: OperatorInformationResult + :rtype: ~azure.communication.phonenumbers.models.OperatorInformationResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @distributed_trace + def operator_information_search( + self, body: Union[_models.OperatorInformationRequest, IO], **kwargs: Any + ) -> _models.OperatorInformationResult: + """Searches for operator information for a given list of phone numbers. + + Searches for operator information for a given list of phone numbers. + + :param body: The phone number(s) whose operator information should be searched. Is either a + OperatorInformationRequest type or a IO type. Required. + :type body: ~azure.communication.phonenumbers.models.OperatorInformationRequest or IO + :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. + Default value is None. + :paramtype content_type: str + :return: OperatorInformationResult + :rtype: ~azure.communication.phonenumbers.models.OperatorInformationResult + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = kwargs.pop("params", {}) or {} + + content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) + cls: ClsType[_models.OperatorInformationResult] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _json = self._serialize.body(body, "OperatorInformationRequest") + + request = build_phone_numbers_operator_information_search_request( + content_type=content_type, + api_version=self._config.api_version, + json=_json, + content=_content, + headers=_headers, + params=_params, + ) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + request.url = self._client.format_url(request.url, **path_format_arguments) + + _stream = False + pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access + request, stream=_stream, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + if _stream: + response.read() # Load the body in memory and close the socket + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.CommunicationErrorResponse, pipeline_response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize("OperatorInformationResult", pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_phone_numbers_client.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_phone_numbers_client.py index 72e0a4b4d47e..cdcaca0c4ccb 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_phone_numbers_client.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_phone_numbers_client.py @@ -4,7 +4,7 @@ # license information. # -------------------------------------------------------------------------- -from typing import TYPE_CHECKING, Union +from typing import TYPE_CHECKING, cast, List, Union from azure.core.tracing.decorator import distributed_trace from azure.core.exceptions import HttpResponseError from ._generated._client import PhoneNumbersClient as PhoneNumbersClientGen @@ -13,6 +13,8 @@ PhoneNumberCapabilitiesRequest, PhoneNumberPurchaseRequest, PhoneNumberType, + OperatorInformationRequest, + OperatorInformationResult, ) from ._shared.utils import parse_connection_str, get_authentication_policy from ._version import SDK_MONIKER @@ -35,6 +37,10 @@ PurchasedPhoneNumber, ) +PhoneNumberSearchType = Union[ + str, + List[str], +] class PhoneNumbersClient(object): """A client to interact with the AzureCommunicationService Phone Numbers gateway. @@ -421,3 +427,25 @@ def list_available_area_codes( "administrative_division", None), **kwargs ) + + @distributed_trace + def search_operator_information( + self, + phone_numbers, # type: PhoneNumberSearchType + **kwargs # type: Any + ): + # type: (...) -> OperatorInformationResult + """Searches for operator information for a given list of phone numbers. + + :param phone_numbers: The phone number(s) whose operator information should be searched + :type phone_numbers: str or list(str) + :return: A search result containing operator information associated with the requested phone numbers + :rtype: ~azure.communication.phonenumbers.models.OperatorInformationResult + """ + if not isinstance(phone_numbers, list): + phone_numbers = cast(PhoneNumberSearchType, [ phone_numbers ]) + request = OperatorInformationRequest(phone_numbers = phone_numbers) + return self._phone_number_client.phone_numbers.operator_information_search( + request, + **kwargs + ) diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_version.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_version.py index c7ec790f1ffa..17e508edb0c2 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_version.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_version.py @@ -4,6 +4,6 @@ # license information. # -------------------------------------------------------------------------- -VERSION = "1.1.1" +VERSION = "1.2.0b1" SDK_MONIKER = "communication-phonenumbers/{}".format(VERSION) # type: str diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/aio/_phone_numbers_client_async.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/aio/_phone_numbers_client_async.py index 007569cacc14..8035a09787cf 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/aio/_phone_numbers_client_async.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/aio/_phone_numbers_client_async.py @@ -4,7 +4,7 @@ # license information. # -------------------------------------------------------------------------- -from typing import TYPE_CHECKING, Union +from typing import TYPE_CHECKING, List, cast, Union from azure.core.tracing.decorator import distributed_trace from azure.core.tracing.decorator_async import distributed_trace_async from .._generated.aio._client import PhoneNumbersClient as PhoneNumbersClientGen @@ -13,6 +13,8 @@ PhoneNumberCapabilitiesRequest, PhoneNumberPurchaseRequest, PhoneNumberType, + OperatorInformationRequest, + OperatorInformationResult, ) from .._shared.utils import parse_connection_str, get_authentication_policy from .._version import SDK_MONIKER @@ -35,6 +37,10 @@ PurchasedPhoneNumber, ) +PhoneNumberSearchType = Union[ + str, + List[str], +] class PhoneNumbersClient(object): """A client to interact with the AzureCommunicationService Phone Numbers gateway. @@ -419,6 +425,28 @@ def list_available_area_codes( **kwargs ) + @distributed_trace + def search_operator_information( + self, + phone_numbers, # type: PhoneNumberSearchType + **kwargs # type: Any + ): + # type: (...) -> OperatorInformationResult + """Searches for operator information for a given list of phone numbers. + + :param phone_numbers: The phone number(s) whose operator information should be searched + :type phone_numbers: str or list(str) + :return: A search result containing operator information associated with the requested phone numbers + :rtype: ~azure.communication.phonenumbers.models.OperatorInformationResult + """ + if not isinstance(phone_numbers, list): + phone_numbers = cast(PhoneNumberSearchType, [ phone_numbers ]) + request = OperatorInformationRequest(phone_numbers = phone_numbers) + return self._phone_number_client.phone_numbers.operator_information_search( + request, + **kwargs + ) + async def __aenter__(self) -> "PhoneNumbersClient": await self._phone_number_client.__aenter__() return self diff --git a/sdk/communication/azure-communication-phonenumbers/swagger/PHONE_NUMBER_SWAGGER.md b/sdk/communication/azure-communication-phonenumbers/swagger/PHONE_NUMBER_SWAGGER.md index 9cbde226df04..5b41765f3402 100644 --- a/sdk/communication/azure-communication-phonenumbers/swagger/PHONE_NUMBER_SWAGGER.md +++ b/sdk/communication/azure-communication-phonenumbers/swagger/PHONE_NUMBER_SWAGGER.md @@ -10,8 +10,8 @@ autorest ./PHONE_NUMBER_SWAGGER.md ### Settings ``` yaml -tag: package-phonenumber-2022-12-01 -require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/edf1d7365a436f0b124c0cecbefd63499e049af0/specification/communication/data-plane/PhoneNumbers/readme.md +tag: package-phonenumber-2023-05-01-preview +require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/dbd87dc39174b98d12566902c709a4b3af90c375/specification/communication/data-plane/PhoneNumbers/readme.md output-folder: ../azure/communication/phonenumbers/_generated namespace: azure.communication.phonenumbers license-header: MICROSOFT_MIT_NO_VERSION @@ -22,4 +22,20 @@ v3: true python: true title: Phone Numbers Client models-mode: msrest +``` + +``` yaml +directive: + from: swagger-document + where: $.definitions.PhoneNumberSearchResult.properties.error.x-ms-enum + transform: > + $["name"] = "PhoneNumberSearchResultError"; +``` + +``` yaml +directive: + from: swagger-document + where: $.parameters.Endpoint + transform: > + $["format"] = ""; ``` \ No newline at end of file diff --git a/sdk/communication/azure-communication-phonenumbers/test/conftest.py b/sdk/communication/azure-communication-phonenumbers/test/conftest.py index f44bdbb91462..1a3a61aee77c 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/conftest.py +++ b/sdk/communication/azure-communication-phonenumbers/test/conftest.py @@ -49,7 +49,7 @@ def add_sanitizers(test_proxy): add_general_regex_sanitizer( regex=r"-[0-9a-fA-F]{32}\.[0-9a-zA-Z\.]*(\.com|\.net|\.test)", value=".sanitized.com") - add_general_regex_sanitizer(regex=r"[%2B\d]{10,15}", value="sanitized") + add_general_regex_sanitizer(regex=r"(?:(?:%2B)|\+)\d{10,15}", value="sanitized") add_general_regex_sanitizer( regex=r"phoneNumbers/[%2B\d]{10,15}", value="phoneNumbers/sanitized") diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_get_purchased_phone_number.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_get_purchased_phone_number.json index 84a050f58c62..8ac18052adaa 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_get_purchased_phone_number.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_get_purchased_phone_number.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,15 +15,15 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "301", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1038ms" + "X-Processing-Time": "981ms" }, "ResponseBody": { "id": "sanitized", @@ -31,11 +31,11 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound", + "calling": "outbound", "sms": "outbound" }, "assignmentType": "application", - "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", "cost": { "amount": 2.0, "currencyCode": "USD", diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_get_purchased_phone_number_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_get_purchased_phone_number_from_managed_identity.json index 3f07b982aa9b..40df85df2089 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_get_purchased_phone_number_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_get_purchased_phone_number_from_managed_identity.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -23,7 +23,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -118,7 +116,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -178,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.20.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -204,7 +200,6 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -216,26 +211,26 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "301", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "901ms" + "X-Processing-Time": "980ms" }, "ResponseBody": { "id": "sanitized", @@ -243,11 +238,11 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound", + "calling": "outbound", "sms": "outbound" }, "assignmentType": "application", - "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", "cost": { "amount": 2.0, "currencyCode": "USD", diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_get_purchased_phone_number_with_invalid_phone_number.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_get_purchased_phone_number_with_invalid_phone_number.json index 8c4708acc72e..57dcc90140c2 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_get_purchased_phone_number_with_invalid_phone_number.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_get_purchased_phone_number_with_invalid_phone_number.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,7 +15,7 @@ "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json", "Date": "sanitized", "MS-CV": "sanitized", @@ -23,12 +23,12 @@ "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "664ms" + "X-Processing-Time": "182ms" }, "ResponseBody": { "error": { "code": "NotFound", - "message": "Input phoneNumber \u002Bsanitized cannot be found.", + "message": "Input phoneNumber sanitized cannot be found.", "target": "phonenumber" } } diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_countries.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_countries.json index 6fb58f44da19..bc1eeb268c7d 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_countries.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_countries.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,42 +15,135 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1539", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1822ms" + "X-Processing-Time": "1944ms" }, "ResponseBody": { "countries": [ + { + "localizedName": "Argentina", + "countryCode": "AR" + }, + { + "localizedName": "Brazil", + "countryCode": "BR" + }, { "localizedName": "Canada", "countryCode": "CA" }, + { + "localizedName": "Chile", + "countryCode": "CL" + }, + { + "localizedName": "China", + "countryCode": "CN" + }, + { + "localizedName": "Colombia", + "countryCode": "CO" + }, { "localizedName": "Denmark", "countryCode": "DK" }, + { + "localizedName": "Finland", + "countryCode": "FI" + }, + { + "localizedName": "France", + "countryCode": "FR" + }, + { + "localizedName": "Hong Kong SAR", + "countryCode": "HK" + }, + { + "localizedName": "Indonesia", + "countryCode": "ID" + }, { "localizedName": "Ireland", "countryCode": "IE" }, + { + "localizedName": "Israel", + "countryCode": "IL" + }, { "localizedName": "Italy", "countryCode": "IT" }, + { + "localizedName": "Korea", + "countryCode": "KR" + }, + { + "localizedName": "Malaysia", + "countryCode": "MY" + }, + { + "localizedName": "Mexico", + "countryCode": "MX" + }, + { + "localizedName": "Netherlands", + "countryCode": "NL" + }, + { + "localizedName": "New Zealand", + "countryCode": "NZ" + }, + { + "localizedName": "Philippines", + "countryCode": "PH" + }, + { + "localizedName": "Poland", + "countryCode": "PL" + }, { "localizedName": "Puerto Rico", "countryCode": "PR" }, + { + "localizedName": "Saudi Arabia", + "countryCode": "SA" + }, + { + "localizedName": "Singapore", + "countryCode": "SG" + }, + { + "localizedName": "South Africa", + "countryCode": "ZA" + }, { "localizedName": "Sweden", "countryCode": "SE" }, + { + "localizedName": "Taiwan", + "countryCode": "TW" + }, + { + "localizedName": "Thailand", + "countryCode": "TH" + }, + { + "localizedName": "United Arab Emirates", + "countryCode": "AE" + }, { "localizedName": "United Kingdom", "countryCode": "GB" diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_countries_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_countries_from_managed_identity.json index 0824245a6f0d..11f9cb499343 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_countries_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_countries_from_managed_identity.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -23,7 +23,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -118,7 +116,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -178,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.20.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -204,7 +200,6 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -216,53 +211,146 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1539", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "2870ms" + "X-Processing-Time": "1847ms" }, "ResponseBody": { "countries": [ + { + "localizedName": "Argentina", + "countryCode": "AR" + }, + { + "localizedName": "Brazil", + "countryCode": "BR" + }, { "localizedName": "Canada", "countryCode": "CA" }, + { + "localizedName": "Chile", + "countryCode": "CL" + }, + { + "localizedName": "China", + "countryCode": "CN" + }, + { + "localizedName": "Colombia", + "countryCode": "CO" + }, { "localizedName": "Denmark", "countryCode": "DK" }, + { + "localizedName": "Finland", + "countryCode": "FI" + }, + { + "localizedName": "France", + "countryCode": "FR" + }, + { + "localizedName": "Hong Kong SAR", + "countryCode": "HK" + }, + { + "localizedName": "Indonesia", + "countryCode": "ID" + }, { "localizedName": "Ireland", "countryCode": "IE" }, + { + "localizedName": "Israel", + "countryCode": "IL" + }, { "localizedName": "Italy", "countryCode": "IT" }, + { + "localizedName": "Korea", + "countryCode": "KR" + }, + { + "localizedName": "Malaysia", + "countryCode": "MY" + }, + { + "localizedName": "Mexico", + "countryCode": "MX" + }, + { + "localizedName": "Netherlands", + "countryCode": "NL" + }, + { + "localizedName": "New Zealand", + "countryCode": "NZ" + }, + { + "localizedName": "Philippines", + "countryCode": "PH" + }, + { + "localizedName": "Poland", + "countryCode": "PL" + }, { "localizedName": "Puerto Rico", "countryCode": "PR" }, + { + "localizedName": "Saudi Arabia", + "countryCode": "SA" + }, + { + "localizedName": "Singapore", + "countryCode": "SG" + }, + { + "localizedName": "South Africa", + "countryCode": "ZA" + }, { "localizedName": "Sweden", "countryCode": "SE" }, + { + "localizedName": "Taiwan", + "countryCode": "TW" + }, + { + "localizedName": "Thailand", + "countryCode": "TH" + }, + { + "localizedName": "United Arab Emirates", + "countryCode": "AE" + }, { "localizedName": "United Kingdom", "countryCode": "GB" diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_geographic_area_codes.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_geographic_area_codes.json index 0be731c8bc90..f1d7a5f3b5c7 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_geographic_area_codes.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_geographic_area_codes.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,19 +15,33 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01, 2022-12-02-preview2", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10222", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "317ms" + "X-Processing-Time": "226ms" }, "ResponseBody": { "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, { "localizedName": "Huntsville", "administrativeDivision": { @@ -78,28 +92,28 @@ } }, { - "localizedName": "Anaheim", + "localizedName": "Burbank", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "Burbank", + "localizedName": "Concord", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "Concord", + "localizedName": "Fresno", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "Fresno", + "localizedName": "Irvine", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" @@ -147,6 +161,13 @@ "abbreviatedName": "CA" } }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, { "localizedName": "Santa Clarita", "administrativeDivision": { @@ -217,6 +238,13 @@ "abbreviatedName": "CT" } }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, { "localizedName": "Daytona Beach", "administrativeDivision": { @@ -281,7 +309,7 @@ } }, { - "localizedName": "Tampa", + "localizedName": "Tallahassee", "administrativeDivision": { "localizedName": "FL", "abbreviatedName": "FL" @@ -357,6 +385,13 @@ "abbreviatedName": "IA" } }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, { "localizedName": "Sioux City", "administrativeDivision": { @@ -462,13 +497,6 @@ "abbreviatedName": "IN" } }, - { - "localizedName": "Dodge City", - "administrativeDivision": { - "localizedName": "KS", - "abbreviatedName": "KS" - } - }, { "localizedName": "Kansas City", "administrativeDivision": { @@ -547,31 +575,31 @@ } }, { - "localizedName": "Boston", + "localizedName": "Chicopee", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" } }, { - "localizedName": "Chicopee", + "localizedName": "Lowell", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" } }, { - "localizedName": "Lowell", + "localizedName": "Lynn", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" } }, { - "localizedName": "Worcester", + "localizedName": "Baltimore", "administrativeDivision": { - "localizedName": "MA", - "abbreviatedName": "MA" + "localizedName": "MD", + "abbreviatedName": "MD" } }, { @@ -581,6 +609,13 @@ "abbreviatedName": "MD" } }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, { "localizedName": "Portland", "administrativeDivision": { @@ -631,115 +666,80 @@ } }, { - "localizedName": "Saginaw", + "localizedName": "Otsego", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" } }, { - "localizedName": "Sault Ste Marie", + "localizedName": "Saginaw", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" } }, { - "localizedName": "Alexandria", + "localizedName": "Sault Ste Marie", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Duluth", + "localizedName": "Troy", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Mankato", + "localizedName": "Warren", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Minneapolis", + "localizedName": "Alexandria", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "St. Paul", + "localizedName": "Bloomington", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Kansas City", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "Marshall", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "Springfield", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "St. Charles", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "Biloxi", - "administrativeDivision": { - "localizedName": "MS", - "abbreviatedName": "MS" - } - }, - { - "localizedName": "Jackson", + "localizedName": "Duluth", "administrativeDivision": { - "localizedName": "MS", - "abbreviatedName": "MS" + "localizedName": "MN", + "abbreviatedName": "MN" } }, { - "localizedName": "Starkville", + "localizedName": "Mankato", "administrativeDivision": { - "localizedName": "MS", - "abbreviatedName": "MS" + "localizedName": "MN", + "abbreviatedName": "MN" } } ], - "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2022-12-01\u0026maxPageSize=100" + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2023-05-01-preview\u0026maxPageSize=100" } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026assignmentType=person\u0026locality=Huntsville\u0026administrativeDivision=AL\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026assignmentType=person\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -747,24 +747,21 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2", + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "895ms" + "X-Processing-Time": "1590ms" }, "ResponseBody": { "areaCodes": [ { - "areaCode": "256" - }, - { - "areaCode": "938" + "areaCode": "907" } ], "nextLink": null diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_geographic_area_codes_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_geographic_area_codes_from_managed_identity.json index 7cddc5eebee3..31cf9650b815 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_geographic_area_codes_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_geographic_area_codes_from_managed_identity.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.13.0b2 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -23,7 +23,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b2 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -118,7 +116,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -178,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b2 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.20.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -204,7 +200,6 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -216,30 +211,44 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01, 2022-12-02-preview2", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10222", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "322ms" + "X-Processing-Time": "242ms" }, "ResponseBody": { "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, { "localizedName": "Huntsville", "administrativeDivision": { @@ -290,28 +299,28 @@ } }, { - "localizedName": "Anaheim", + "localizedName": "Burbank", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "Burbank", + "localizedName": "Concord", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "Concord", + "localizedName": "Fresno", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "Fresno", + "localizedName": "Irvine", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" @@ -359,6 +368,13 @@ "abbreviatedName": "CA" } }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, { "localizedName": "Santa Clarita", "administrativeDivision": { @@ -429,6 +445,13 @@ "abbreviatedName": "CT" } }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, { "localizedName": "Daytona Beach", "administrativeDivision": { @@ -493,7 +516,7 @@ } }, { - "localizedName": "Tampa", + "localizedName": "Tallahassee", "administrativeDivision": { "localizedName": "FL", "abbreviatedName": "FL" @@ -569,6 +592,13 @@ "abbreviatedName": "IA" } }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, { "localizedName": "Sioux City", "administrativeDivision": { @@ -674,13 +704,6 @@ "abbreviatedName": "IN" } }, - { - "localizedName": "Dodge City", - "administrativeDivision": { - "localizedName": "KS", - "abbreviatedName": "KS" - } - }, { "localizedName": "Kansas City", "administrativeDivision": { @@ -759,31 +782,31 @@ } }, { - "localizedName": "Boston", + "localizedName": "Chicopee", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" } }, { - "localizedName": "Chicopee", + "localizedName": "Lowell", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" } }, { - "localizedName": "Lowell", + "localizedName": "Lynn", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" } }, { - "localizedName": "Worcester", + "localizedName": "Baltimore", "administrativeDivision": { - "localizedName": "MA", - "abbreviatedName": "MA" + "localizedName": "MD", + "abbreviatedName": "MD" } }, { @@ -793,6 +816,13 @@ "abbreviatedName": "MD" } }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, { "localizedName": "Portland", "administrativeDivision": { @@ -843,115 +873,80 @@ } }, { - "localizedName": "Saginaw", + "localizedName": "Otsego", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" } }, { - "localizedName": "Sault Ste Marie", + "localizedName": "Saginaw", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" } }, { - "localizedName": "Alexandria", + "localizedName": "Sault Ste Marie", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Duluth", + "localizedName": "Troy", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Mankato", + "localizedName": "Warren", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Minneapolis", + "localizedName": "Alexandria", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "St. Paul", + "localizedName": "Bloomington", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Kansas City", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "Marshall", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "Springfield", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "St. Charles", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "Biloxi", - "administrativeDivision": { - "localizedName": "MS", - "abbreviatedName": "MS" - } - }, - { - "localizedName": "Jackson", + "localizedName": "Duluth", "administrativeDivision": { - "localizedName": "MS", - "abbreviatedName": "MS" + "localizedName": "MN", + "abbreviatedName": "MN" } }, { - "localizedName": "Starkville", + "localizedName": "Mankato", "administrativeDivision": { - "localizedName": "MS", - "abbreviatedName": "MS" + "localizedName": "MN", + "abbreviatedName": "MN" } } ], - "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2022-12-01\u0026maxPageSize=100" + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2023-05-01-preview\u0026maxPageSize=100" } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026assignmentType=person\u0026locality=Huntsville\u0026administrativeDivision=AL\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026assignmentType=person\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -959,24 +954,21 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2", + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "888ms" + "X-Processing-Time": "1590ms" }, "ResponseBody": { "areaCodes": [ { - "areaCode": "256" - }, - { - "areaCode": "938" + "areaCode": "907" } ], "nextLink": null diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities.json index 62f55859147f..8e6cc4e5eef0 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,15 +15,16 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10222", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "370ms" + "X-Processing-Time": "224ms" }, "ResponseBody": { "phoneNumberLocalities": [ @@ -34,6 +35,13 @@ "abbreviatedName": "AK" } }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, { "localizedName": "Huntsville", "administrativeDivision": { @@ -83,13 +91,6 @@ "abbreviatedName": "AZ" } }, - { - "localizedName": "Anaheim", - "administrativeDivision": { - "localizedName": "CA", - "abbreviatedName": "CA" - } - }, { "localizedName": "Burbank", "administrativeDivision": { @@ -140,28 +141,28 @@ } }, { - "localizedName": "Salinas", + "localizedName": "San Diego", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Diego", + "localizedName": "San Francisco", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Francisco", + "localizedName": "San Jose", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Jose", + "localizedName": "Santa Barbara", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" @@ -202,6 +203,13 @@ "abbreviatedName": "CL" } }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, { "localizedName": "Grand Junction", "administrativeDivision": { @@ -237,13 +245,6 @@ "abbreviatedName": "DE" } }, - { - "localizedName": "Cape Coral", - "administrativeDivision": { - "localizedName": "FL", - "abbreviatedName": "FL" - } - }, { "localizedName": "Daytona Beach", "administrativeDivision": { @@ -293,6 +294,13 @@ "abbreviatedName": "FL" } }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, { "localizedName": "Sarasota", "administrativeDivision": { @@ -301,7 +309,7 @@ } }, { - "localizedName": "St. Petersburg", + "localizedName": "Tallahassee", "administrativeDivision": { "localizedName": "FL", "abbreviatedName": "FL" @@ -370,6 +378,13 @@ "abbreviatedName": "IA" } }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, { "localizedName": "Mason City", "administrativeDivision": { @@ -482,13 +497,6 @@ "abbreviatedName": "IN" } }, - { - "localizedName": "Dodge City", - "administrativeDivision": { - "localizedName": "KS", - "abbreviatedName": "KS" - } - }, { "localizedName": "Kansas City", "administrativeDivision": { @@ -581,7 +589,7 @@ } }, { - "localizedName": "Worcester", + "localizedName": "Lynn", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" @@ -658,7 +666,7 @@ } }, { - "localizedName": "Pontiac", + "localizedName": "Otsego", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" @@ -686,49 +694,42 @@ } }, { - "localizedName": "Alexandria", + "localizedName": "Warren", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Duluth", + "localizedName": "Alexandria", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Mankato", + "localizedName": "Bloomington", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Minneapolis", + "localizedName": "Duluth", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "St. Paul", + "localizedName": "Mankato", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } - }, - { - "localizedName": "Kansas City", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } } ], - "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2022-12-01\u0026maxPageSize=100" + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2023-05-01-preview\u0026maxPageSize=100" } } ], diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities_from_managed_identity.json index e47d1f891576..82d34d323e2f 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities_from_managed_identity.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -23,7 +23,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -118,7 +116,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -178,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.20.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -204,7 +200,6 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -216,26 +211,27 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10222", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "429ms" + "X-Processing-Time": "232ms" }, "ResponseBody": { "phoneNumberLocalities": [ @@ -246,6 +242,13 @@ "abbreviatedName": "AK" } }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, { "localizedName": "Huntsville", "administrativeDivision": { @@ -295,13 +298,6 @@ "abbreviatedName": "AZ" } }, - { - "localizedName": "Anaheim", - "administrativeDivision": { - "localizedName": "CA", - "abbreviatedName": "CA" - } - }, { "localizedName": "Burbank", "administrativeDivision": { @@ -352,28 +348,28 @@ } }, { - "localizedName": "Salinas", + "localizedName": "San Diego", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Diego", + "localizedName": "San Francisco", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Francisco", + "localizedName": "San Jose", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Jose", + "localizedName": "Santa Barbara", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" @@ -414,6 +410,13 @@ "abbreviatedName": "CL" } }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, { "localizedName": "Grand Junction", "administrativeDivision": { @@ -449,13 +452,6 @@ "abbreviatedName": "DE" } }, - { - "localizedName": "Cape Coral", - "administrativeDivision": { - "localizedName": "FL", - "abbreviatedName": "FL" - } - }, { "localizedName": "Daytona Beach", "administrativeDivision": { @@ -505,6 +501,13 @@ "abbreviatedName": "FL" } }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, { "localizedName": "Sarasota", "administrativeDivision": { @@ -513,7 +516,7 @@ } }, { - "localizedName": "St. Petersburg", + "localizedName": "Tallahassee", "administrativeDivision": { "localizedName": "FL", "abbreviatedName": "FL" @@ -582,6 +585,13 @@ "abbreviatedName": "IA" } }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, { "localizedName": "Mason City", "administrativeDivision": { @@ -694,13 +704,6 @@ "abbreviatedName": "IN" } }, - { - "localizedName": "Dodge City", - "administrativeDivision": { - "localizedName": "KS", - "abbreviatedName": "KS" - } - }, { "localizedName": "Kansas City", "administrativeDivision": { @@ -793,7 +796,7 @@ } }, { - "localizedName": "Worcester", + "localizedName": "Lynn", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" @@ -870,7 +873,7 @@ } }, { - "localizedName": "Pontiac", + "localizedName": "Otsego", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" @@ -898,49 +901,42 @@ } }, { - "localizedName": "Alexandria", + "localizedName": "Warren", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Duluth", + "localizedName": "Alexandria", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Mankato", + "localizedName": "Bloomington", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Minneapolis", + "localizedName": "Duluth", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "St. Paul", + "localizedName": "Mankato", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } - }, - { - "localizedName": "Kansas City", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } } ], - "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2022-12-01\u0026maxPageSize=100" + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2023-05-01-preview\u0026maxPageSize=100" } } ], diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities_with_ad.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities_with_ad.json index eda451ecf333..d72b304a7ae4 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities_with_ad.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities_with_ad.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,15 +15,16 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10222", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "446ms" + "X-Processing-Time": "231ms" }, "ResponseBody": { "phoneNumberLocalities": [ @@ -34,6 +35,13 @@ "abbreviatedName": "AK" } }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, { "localizedName": "Huntsville", "administrativeDivision": { @@ -83,13 +91,6 @@ "abbreviatedName": "AZ" } }, - { - "localizedName": "Anaheim", - "administrativeDivision": { - "localizedName": "CA", - "abbreviatedName": "CA" - } - }, { "localizedName": "Burbank", "administrativeDivision": { @@ -140,28 +141,28 @@ } }, { - "localizedName": "Salinas", + "localizedName": "San Diego", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Diego", + "localizedName": "San Francisco", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Francisco", + "localizedName": "San Jose", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Jose", + "localizedName": "Santa Barbara", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" @@ -202,6 +203,13 @@ "abbreviatedName": "CL" } }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, { "localizedName": "Grand Junction", "administrativeDivision": { @@ -237,13 +245,6 @@ "abbreviatedName": "DE" } }, - { - "localizedName": "Cape Coral", - "administrativeDivision": { - "localizedName": "FL", - "abbreviatedName": "FL" - } - }, { "localizedName": "Daytona Beach", "administrativeDivision": { @@ -293,6 +294,13 @@ "abbreviatedName": "FL" } }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, { "localizedName": "Sarasota", "administrativeDivision": { @@ -301,7 +309,7 @@ } }, { - "localizedName": "St. Petersburg", + "localizedName": "Tallahassee", "administrativeDivision": { "localizedName": "FL", "abbreviatedName": "FL" @@ -370,6 +378,13 @@ "abbreviatedName": "IA" } }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, { "localizedName": "Mason City", "administrativeDivision": { @@ -482,13 +497,6 @@ "abbreviatedName": "IN" } }, - { - "localizedName": "Dodge City", - "administrativeDivision": { - "localizedName": "KS", - "abbreviatedName": "KS" - } - }, { "localizedName": "Kansas City", "administrativeDivision": { @@ -581,7 +589,7 @@ } }, { - "localizedName": "Worcester", + "localizedName": "Lynn", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" @@ -658,7 +666,7 @@ } }, { - "localizedName": "Pontiac", + "localizedName": "Otsego", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" @@ -686,59 +694,52 @@ } }, { - "localizedName": "Alexandria", + "localizedName": "Warren", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Duluth", + "localizedName": "Alexandria", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Mankato", + "localizedName": "Bloomington", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Minneapolis", + "localizedName": "Duluth", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "St. Paul", + "localizedName": "Mankato", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } - }, - { - "localizedName": "Kansas City", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } } ], - "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2022-12-01\u0026maxPageSize=100" + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2023-05-01-preview\u0026maxPageSize=100" } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026administrativeDivision=AK\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -746,15 +747,16 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "354ms" + "X-Processing-Time": "956ms" }, "ResponseBody": { "phoneNumberLocalities": [ diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities_with_ad_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities_with_ad_from_managed_identity.json index ccf635352cca..515fc0437205 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities_with_ad_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_localities_with_ad_from_managed_identity.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -23,7 +23,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -118,7 +116,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -178,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.20.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -204,7 +200,6 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -216,26 +211,27 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10222", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "364ms" + "X-Processing-Time": "222ms" }, "ResponseBody": { "phoneNumberLocalities": [ @@ -246,6 +242,13 @@ "abbreviatedName": "AK" } }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, { "localizedName": "Huntsville", "administrativeDivision": { @@ -295,13 +298,6 @@ "abbreviatedName": "AZ" } }, - { - "localizedName": "Anaheim", - "administrativeDivision": { - "localizedName": "CA", - "abbreviatedName": "CA" - } - }, { "localizedName": "Burbank", "administrativeDivision": { @@ -352,28 +348,28 @@ } }, { - "localizedName": "Salinas", + "localizedName": "San Diego", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Diego", + "localizedName": "San Francisco", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Francisco", + "localizedName": "San Jose", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Jose", + "localizedName": "Santa Barbara", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" @@ -414,6 +410,13 @@ "abbreviatedName": "CL" } }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, { "localizedName": "Grand Junction", "administrativeDivision": { @@ -449,13 +452,6 @@ "abbreviatedName": "DE" } }, - { - "localizedName": "Cape Coral", - "administrativeDivision": { - "localizedName": "FL", - "abbreviatedName": "FL" - } - }, { "localizedName": "Daytona Beach", "administrativeDivision": { @@ -505,6 +501,13 @@ "abbreviatedName": "FL" } }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, { "localizedName": "Sarasota", "administrativeDivision": { @@ -513,7 +516,7 @@ } }, { - "localizedName": "St. Petersburg", + "localizedName": "Tallahassee", "administrativeDivision": { "localizedName": "FL", "abbreviatedName": "FL" @@ -582,6 +585,13 @@ "abbreviatedName": "IA" } }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, { "localizedName": "Mason City", "administrativeDivision": { @@ -694,13 +704,6 @@ "abbreviatedName": "IN" } }, - { - "localizedName": "Dodge City", - "administrativeDivision": { - "localizedName": "KS", - "abbreviatedName": "KS" - } - }, { "localizedName": "Kansas City", "administrativeDivision": { @@ -793,7 +796,7 @@ } }, { - "localizedName": "Worcester", + "localizedName": "Lynn", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" @@ -870,7 +873,7 @@ } }, { - "localizedName": "Pontiac", + "localizedName": "Otsego", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" @@ -898,72 +901,66 @@ } }, { - "localizedName": "Alexandria", + "localizedName": "Warren", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Duluth", + "localizedName": "Alexandria", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Mankato", + "localizedName": "Bloomington", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Minneapolis", + "localizedName": "Duluth", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "St. Paul", + "localizedName": "Mankato", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } - }, - { - "localizedName": "Kansas City", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } } ], - "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2022-12-01\u0026maxPageSize=100" + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2023-05-01-preview\u0026maxPageSize=100" } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026administrativeDivision=AK\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "346ms" + "X-Processing-Time": "220ms" }, "ResponseBody": { "phoneNumberLocalities": [ diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_offerings.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_offerings.json index 354e7644759b..c9a4560a3dbb 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_offerings.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_offerings.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/offerings?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/offerings?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,15 +15,16 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "844ms" + "X-Processing-Time": "692ms" }, "ResponseBody": { "phoneNumberOfferings": [ @@ -65,6 +66,19 @@ "currencyCode": "USD", "billingFrequency": "monthly" } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } } ], "nextLink": null diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_offerings_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_offerings_from_managed_identity.json index 6bc2916c6da5..99393d4576da 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_offerings_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_offerings_from_managed_identity.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -23,7 +23,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -118,7 +116,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -178,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.20.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -204,7 +200,6 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -216,26 +211,27 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/offerings?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/offerings?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "826ms" + "X-Processing-Time": "778ms" }, "ResponseBody": { "phoneNumberOfferings": [ @@ -277,6 +273,19 @@ "currencyCode": "USD", "billingFrequency": "monthly" } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } } ], "nextLink": null diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_purchased_phone_numbers.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_purchased_phone_numbers.json index 0f8688e7bd61..31092896de32 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_purchased_phone_numbers.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_purchased_phone_numbers.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers?skip=0\u0026top=100\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers?skip=0\u0026top=100\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,15 +15,15 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "31580", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1502ms" + "X-Processing-Time": "1400ms" }, "ResponseBody": { "phoneNumbers": [ @@ -322,8 +322,8 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound\u002Boutbound", - "sms": "inbound\u002Boutbound" + "calling": "outbound", + "sms": "outbound" }, "assignmentType": "application", "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", @@ -373,7 +373,7 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound", + "calling": "outbound", "sms": "outbound" }, "assignmentType": "application", @@ -877,6 +877,23 @@ "billingFrequency": "monthly" } }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:11:40.2093547\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, { "id": "sanitized", "phoneNumber": "sanitized", @@ -1709,26 +1726,9 @@ "currencyCode": "USD", "billingFrequency": "monthly" } - }, - { - "id": "sanitized", - "phoneNumber": "sanitized", - "countryCode": "US", - "phoneNumberType": "tollFree", - "capabilities": { - "calling": "inbound\u002Boutbound", - "sms": "inbound\u002Boutbound" - }, - "assignmentType": "application", - "purchaseDate": "2021-06-24T03:18:42.3038608\u002B00:00", - "cost": { - "amount": 2.0, - "currencyCode": "USD", - "billingFrequency": "monthly" - } } ], - "nextLink": "/phoneNumbers?skip=100\u0026top=100\u0026api-version=2022-12-01" + "nextLink": "/phoneNumbers?skip=100\u0026top=100\u0026api-version=2023-05-01-preview" } } ], diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_purchased_phone_numbers_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_purchased_phone_numbers_from_managed_identity.json index 5e28f0789eb9..2b2a25c238bb 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_purchased_phone_numbers_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_purchased_phone_numbers_from_managed_identity.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -23,7 +23,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -118,7 +116,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -178,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.20.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -204,7 +200,6 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -216,26 +211,26 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers?skip=0\u0026top=100\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers?skip=0\u0026top=100\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "31580", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "2656ms" + "X-Processing-Time": "2440ms" }, "ResponseBody": { "phoneNumbers": [ @@ -534,8 +529,8 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound\u002Boutbound", - "sms": "inbound\u002Boutbound" + "calling": "outbound", + "sms": "outbound" }, "assignmentType": "application", "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", @@ -585,7 +580,7 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound", + "calling": "outbound", "sms": "outbound" }, "assignmentType": "application", @@ -1089,6 +1084,23 @@ "billingFrequency": "monthly" } }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:11:40.2093547\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, { "id": "sanitized", "phoneNumber": "sanitized", @@ -1921,26 +1933,9 @@ "currencyCode": "USD", "billingFrequency": "monthly" } - }, - { - "id": "sanitized", - "phoneNumber": "sanitized", - "countryCode": "US", - "phoneNumberType": "tollFree", - "capabilities": { - "calling": "inbound\u002Boutbound", - "sms": "inbound\u002Boutbound" - }, - "assignmentType": "application", - "purchaseDate": "2021-06-24T03:18:42.3038608\u002B00:00", - "cost": { - "amount": 2.0, - "currencyCode": "USD", - "billingFrequency": "monthly" - } } ], - "nextLink": "/phoneNumbers?skip=100\u0026top=100\u0026api-version=2022-12-01" + "nextLink": "/phoneNumbers?skip=100\u0026top=100\u0026api-version=2023-05-01-preview" } } ], diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_toll_free_area_codes.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_toll_free_area_codes.json index 2848adfbbaf1..a8ba9acd8cf5 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_toll_free_area_codes.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_toll_free_area_codes.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026assignmentType=application\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026assignmentType=application\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,15 +15,16 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "182", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "3380ms" + "X-Processing-Time": "6420ms" }, "ResponseBody": { "areaCodes": [ diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_toll_free_area_codes_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_toll_free_area_codes_from_managed_identity.json index 4e159045f983..61f51ad02a03 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_toll_free_area_codes_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_list_toll_free_area_codes_from_managed_identity.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -23,7 +23,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -118,7 +116,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -178,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.20.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -204,7 +200,6 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -216,26 +211,27 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026assignmentType=application\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026assignmentType=application\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "182", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "3604ms" + "X-Processing-Time": "6168ms" }, "ResponseBody": { "areaCodes": [ diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_available_phone_numbers.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_available_phone_numbers.json index 7f6575482d8a..891fd250c11a 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_available_phone_numbers.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_available_phone_numbers.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -9,7 +9,7 @@ "Connection": "keep-alive", "Content-Length": "131", "Content-Type": "application/json", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -25,29 +25,29 @@ "StatusCode": 202, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Length": "0", "Date": "sanitized", - "Location": "/availablePhoneNumbers/searchResults/b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9?api-version=2022-12-01", + "Location": "/availablePhoneNumbers/searchResults/6f1f9d2a-0a54-4c05-ae02-650fb064a6eb?api-version=2023-05-01-preview", "MS-CV": "sanitized", - "operation-id": "search_b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9", - "Operation-Location": "/phoneNumbers/operations/search_b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9?api-version=2022-12-01", - "search-id": "b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9", + "operation-id": "search_6f1f9d2a-0a54-4c05-ae02-650fb064a6eb", + "Operation-Location": "/phoneNumbers/operations/search_6f1f9d2a-0a54-4c05-ae02-650fb064a6eb?api-version=2023-05-01-preview", + "search-id": "6f1f9d2a-0a54-4c05-ae02-650fb064a6eb", "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1394ms" + "X-Processing-Time": "1553ms" }, "ResponseBody": null }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/search_b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/search_6f1f9d2a-0a54-4c05-ae02-650fb064a6eb?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -56,34 +56,34 @@ "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/availablePhoneNumbers/searchResults/b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9?api-version=2022-12-01", + "Location": "/availablePhoneNumbers/searchResults/6f1f9d2a-0a54-4c05-ae02-650fb064a6eb?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "301ms" + "X-Processing-Time": "340ms" }, "ResponseBody": { "operationType": "search", "status": "notStarted", - "resourceLocation": "/availablePhoneNumbers/searchResults/b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:27:33.2337328\u002B00:00", + "resourceLocation": "/availablePhoneNumbers/searchResults/6f1f9d2a-0a54-4c05-ae02-650fb064a6eb?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:53:42.4516646\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/search_b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/search_6f1f9d2a-0a54-4c05-ae02-650fb064a6eb?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -92,46 +92,10 @@ "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/availablePhoneNumbers/searchResults/b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9?api-version=2022-12-01", - "MS-CV": "sanitized", - "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", - "X-Azure-Ref": "sanitized", - "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "271ms" - }, - "ResponseBody": { - "operationType": "search", - "status": "running", - "resourceLocation": "/availablePhoneNumbers/searchResults/b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:27:33.2337328\u002B00:00", - "id": "sanitized", - "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" - } - }, - { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/search_b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9?api-version=2022-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", - "x-ms-content-sha256": "sanitized", - "x-ms-date": "sanitized", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", - "Content-Type": "application/json; charset=utf-8", - "Date": "sanitized", - "Location": "/availablePhoneNumbers/searchResults/b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9?api-version=2022-12-01", + "Location": "/availablePhoneNumbers/searchResults/6f1f9d2a-0a54-4c05-ae02-650fb064a6eb?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", @@ -142,20 +106,20 @@ "ResponseBody": { "operationType": "search", "status": "succeeded", - "resourceLocation": "/availablePhoneNumbers/searchResults/b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:27:33.2337328\u002B00:00", + "resourceLocation": "/availablePhoneNumbers/searchResults/6f1f9d2a-0a54-4c05-ae02-650fb064a6eb?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:53:42.4516646\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/6f1f9d2a-0a54-4c05-ae02-650fb064a6eb?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -163,20 +127,20 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "346", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "614ms" + "X-Processing-Time": "455ms" }, "ResponseBody": { - "searchId": "b30f14e4-4c9c-42ae-afea-f1eb0ffa74f9", + "searchId": "6f1f9d2a-0a54-4c05-ae02-650fb064a6eb", "phoneNumbers": [ - "\u002Bsanitized" + "sanitized" ], "phoneNumberType": "tollFree", "assignmentType": "application", @@ -189,7 +153,8 @@ "currencyCode": "USD", "billingFrequency": "monthly" }, - "searchExpiresBy": "2022-12-20T23:43:37.3558741\u002B00:00" + "searchExpiresBy": "2023-08-04T04:09:44.5989225\u002B00:00", + "error": "NoError" } } ], diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_available_phone_numbers_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_available_phone_numbers_from_managed_identity.json index e314fba325dd..d5be56473b91 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_available_phone_numbers_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_available_phone_numbers_from_managed_identity.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -23,7 +23,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -118,7 +116,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -178,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.20.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -204,7 +200,6 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -216,7 +211,7 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -224,7 +219,7 @@ "Connection": "keep-alive", "Content-Length": "131", "Content-Type": "application/json", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "phoneNumberType": "tollFree", @@ -237,113 +232,113 @@ "StatusCode": 202, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Length": "0", "Date": "sanitized", - "Location": "/availablePhoneNumbers/searchResults/2f747f19-aadc-43bd-b61c-601bf94146dd?api-version=2022-12-01", + "Location": "/availablePhoneNumbers/searchResults/b3c50320-6241-4f5d-857c-ca04f99feca9?api-version=2023-05-01-preview", "MS-CV": "sanitized", - "operation-id": "search_2f747f19-aadc-43bd-b61c-601bf94146dd", - "Operation-Location": "/phoneNumbers/operations/search_2f747f19-aadc-43bd-b61c-601bf94146dd?api-version=2022-12-01", - "search-id": "2f747f19-aadc-43bd-b61c-601bf94146dd", + "operation-id": "search_b3c50320-6241-4f5d-857c-ca04f99feca9", + "Operation-Location": "/phoneNumbers/operations/search_b3c50320-6241-4f5d-857c-ca04f99feca9?api-version=2023-05-01-preview", + "search-id": "b3c50320-6241-4f5d-857c-ca04f99feca9", "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1419ms" + "X-Processing-Time": "1452ms" }, "ResponseBody": null }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/search_2f747f19-aadc-43bd-b61c-601bf94146dd?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/search_b3c50320-6241-4f5d-857c-ca04f99feca9?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/availablePhoneNumbers/searchResults/2f747f19-aadc-43bd-b61c-601bf94146dd?api-version=2022-12-01", + "Location": "/availablePhoneNumbers/searchResults/b3c50320-6241-4f5d-857c-ca04f99feca9?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "252ms" + "X-Processing-Time": "298ms" }, "ResponseBody": { "operationType": "search", "status": "notStarted", - "resourceLocation": "/availablePhoneNumbers/searchResults/2f747f19-aadc-43bd-b61c-601bf94146dd?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:27:28.1220729\u002B00:00", + "resourceLocation": "/availablePhoneNumbers/searchResults/b3c50320-6241-4f5d-857c-ca04f99feca9?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:53:37.3098463\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/search_2f747f19-aadc-43bd-b61c-601bf94146dd?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/search_b3c50320-6241-4f5d-857c-ca04f99feca9?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/availablePhoneNumbers/searchResults/2f747f19-aadc-43bd-b61c-601bf94146dd?api-version=2022-12-01", + "Location": "/availablePhoneNumbers/searchResults/b3c50320-6241-4f5d-857c-ca04f99feca9?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "425ms" + "X-Processing-Time": "406ms" }, "ResponseBody": { "operationType": "search", "status": "succeeded", - "resourceLocation": "/availablePhoneNumbers/searchResults/2f747f19-aadc-43bd-b61c-601bf94146dd?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:27:28.1220729\u002B00:00", + "resourceLocation": "/availablePhoneNumbers/searchResults/b3c50320-6241-4f5d-857c-ca04f99feca9?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:53:37.3098463\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/2f747f19-aadc-43bd-b61c-601bf94146dd?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/b3c50320-6241-4f5d-857c-ca04f99feca9?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "346", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "607ms" + "X-Processing-Time": "573ms" }, "ResponseBody": { - "searchId": "2f747f19-aadc-43bd-b61c-601bf94146dd", + "searchId": "b3c50320-6241-4f5d-857c-ca04f99feca9", "phoneNumbers": [ - "\u002Bsanitized" + "sanitized" ], "phoneNumberType": "tollFree", "assignmentType": "application", @@ -356,7 +351,8 @@ "currencyCode": "USD", "billingFrequency": "monthly" }, - "searchExpiresBy": "2022-12-20T23:43:29.6847905\u002B00:00" + "searchExpiresBy": "2023-08-04T04:09:39.1687779\u002B00:00", + "error": "NoError" } } ], diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_available_phone_numbers_with_invalid_country_code.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_available_phone_numbers_with_invalid_country_code.json index 8894055c49d5..d050bb30445e 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_available_phone_numbers_with_invalid_country_code.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_available_phone_numbers_with_invalid_country_code.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/XX/:search?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/XX/:search?api-version=2023-05-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -9,7 +9,7 @@ "Connection": "keep-alive", "Content-Length": "131", "Content-Type": "application/json", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -24,7 +24,7 @@ }, "StatusCode": 400, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json", "Date": "sanitized", "MS-CV": "sanitized", @@ -32,7 +32,7 @@ "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "36ms" + "X-Processing-Time": "11ms" }, "ResponseBody": { "error": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_operator_information.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_operator_information.json new file mode 100644 index 000000000000..e598e13dbd8c --- /dev/null +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_operator_information.json @@ -0,0 +1,51 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/operatorInformation/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "32", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", + "x-ms-content-sha256": "sanitized", + "x-ms-date": "sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002Bsanitized" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview", + "Content-Length": "184", + "Content-Type": "application/json; charset=utf-8", + "Date": "sanitized", + "MS-CV": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "sanitized", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1200ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "\u002Bsanitized", + "numberType": "other", + "operatorDetails": { + "name": "Multiple OCN Listing", + "mobileNetworkCode": null, + "mobileCountryCode": null + }, + "isoCountryCode": "US" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_operator_information_with_list.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_operator_information_with_list.json new file mode 100644 index 000000000000..47a23a2a4fdc --- /dev/null +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_operator_information_with_list.json @@ -0,0 +1,51 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/operatorInformation/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "31", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", + "x-ms-content-sha256": "sanitized", + "x-ms-date": "sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "phoneNumbers": [ + "sanitized" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview", + "Content-Length": "183", + "Content-Type": "application/json; charset=utf-8", + "Date": "sanitized", + "MS-CV": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "sanitized", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1245ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "sanitized", + "numberType": "other", + "operatorDetails": { + "name": "Multiple OCN Listing", + "mobileNetworkCode": null, + "mobileCountryCode": null + }, + "isoCountryCode": "US" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_operator_information_with_single_string.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_operator_information_with_single_string.json new file mode 100644 index 000000000000..8d37bd8fb48f --- /dev/null +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_operator_information_with_single_string.json @@ -0,0 +1,51 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/operatorInformation/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "31", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", + "x-ms-content-sha256": "sanitized", + "x-ms-date": "sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "phoneNumbers": [ + "sanitized" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview", + "Content-Length": "183", + "Content-Type": "application/json; charset=utf-8", + "Date": "sanitized", + "MS-CV": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "sanitized", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "327ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "sanitized", + "numberType": "other", + "operatorDetails": { + "name": "Multiple OCN Listing", + "mobileNetworkCode": null, + "mobileCountryCode": null + }, + "isoCountryCode": "US" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_operator_information_with_too_many_phone_numbers.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_operator_information_with_too_many_phone_numbers.json new file mode 100644 index 000000000000..363ec731cc64 --- /dev/null +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_search_operator_information_with_too_many_phone_numbers.json @@ -0,0 +1,44 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/operatorInformation/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "44", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", + "x-ms-content-sha256": "sanitized", + "x-ms-date": "sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "phoneNumbers": [ + "sanitized", + "sanitized" + ] + }, + "StatusCode": 400, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview", + "Content-Type": "application/json", + "Date": "sanitized", + "MS-CV": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "sanitized", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "8ms" + }, + "ResponseBody": { + "error": { + "code": "BadRequest", + "message": "Can only accept one phoneNumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities.json index 30a320a9f548..68f69b72c748 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,15 +15,15 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "308", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "914ms" + "X-Processing-Time": "1021ms" }, "ResponseBody": { "id": "sanitized", @@ -31,11 +31,11 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "outbound", + "calling": "inbound", "sms": "inbound\u002Boutbound" }, "assignmentType": "application", - "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", "cost": { "amount": 2.0, "currencyCode": "USD", @@ -44,52 +44,52 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2023-05-01-preview", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Content-Length": "41", + "Content-Length": "42", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "calling": "inbound", + "calling": "outbound", "sms": "outbound" }, "StatusCode": 202, "ResponseHeaders": { "Access-Control-Expose-Headers": "Operation-Location,Location,operation-id,capabilities-id", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", - "capabilities-id": "eecda5e3-52c9-4121-8c5b-4086c40a52d3", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "capabilities-id": "7375a542-3f69-4846-8642-814df947b76d", + "Content-Length": "63", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", - "operation-id": "capabilities_eecda5e3-52c9-4121-8c5b-4086c40a52d3", - "Operation-Location": "/phoneNumbers/operations/capabilities_eecda5e3-52c9-4121-8c5b-4086c40a52d3?api-version=2022-12-01", + "operation-id": "capabilities_7375a542-3f69-4846-8642-814df947b76d", + "Operation-Location": "/phoneNumbers/operations/capabilities_7375a542-3f69-4846-8642-814df947b76d?api-version=2023-05-01-preview", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1064ms" + "X-Processing-Time": "2266ms" }, "ResponseBody": { - "capabilitiesUpdateId": "eecda5e3-52c9-4121-8c5b-4086c40a52d3" + "capabilitiesUpdateId": "7375a542-3f69-4846-8642-814df947b76d" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_eecda5e3-52c9-4121-8c5b-4086c40a52d3?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_7375a542-3f69-4846-8642-814df947b76d?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -98,34 +98,34 @@ "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "278ms" + "X-Processing-Time": "163ms" }, "ResponseBody": { "operationType": "updatePhoneNumberCapabilities", "status": "running", - "resourceLocation": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:27:49.823191\u002B00:00", + "resourceLocation": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:53:58.486498\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_eecda5e3-52c9-4121-8c5b-4086c40a52d3?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_7375a542-3f69-4846-8642-814df947b76d?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -134,34 +134,34 @@ "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "290ms" + "X-Processing-Time": "148ms" }, "ResponseBody": { "operationType": "updatePhoneNumberCapabilities", "status": "running", - "resourceLocation": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:27:49.823191\u002B00:00", + "resourceLocation": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:53:58.486498\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_eecda5e3-52c9-4121-8c5b-4086c40a52d3?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_7375a542-3f69-4846-8642-814df947b76d?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -170,34 +170,34 @@ "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "215ms" + "X-Processing-Time": "156ms" }, "ResponseBody": { "operationType": "updatePhoneNumberCapabilities", "status": "succeeded", - "resourceLocation": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:27:49.823191\u002B00:00", + "resourceLocation": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:53:58.486498\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -205,15 +205,15 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "301", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "967ms" + "X-Processing-Time": "986ms" }, "ResponseBody": { "id": "sanitized", @@ -221,11 +221,11 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound", + "calling": "outbound", "sms": "outbound" }, "assignmentType": "application", - "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", "cost": { "amount": 2.0, "currencyCode": "USD", diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities_from_managed_identity.json index 01fc9be23c52..f674408895a2 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities_from_managed_identity.json @@ -7,7 +7,7 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -23,7 +23,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -101,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -118,7 +116,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -178,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.20.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -204,7 +200,6 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -216,26 +211,26 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "301", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "904ms" + "X-Processing-Time": "994ms" }, "ResponseBody": { "id": "sanitized", @@ -243,11 +238,11 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound", + "calling": "outbound", "sms": "outbound" }, "assignmentType": "application", - "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", "cost": { "amount": 2.0, "currencyCode": "USD", @@ -256,161 +251,161 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2023-05-01-preview", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Content-Length": "50", + "Content-Length": "49", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { - "calling": "outbound", + "calling": "inbound", "sms": "inbound\u002Boutbound" }, "StatusCode": 202, "ResponseHeaders": { "Access-Control-Expose-Headers": "Operation-Location,Location,operation-id,capabilities-id", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", - "capabilities-id": "e6f3932d-6171-4854-a059-0cd9ec9641c0", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "capabilities-id": "230dcab8-8f07-4bf1-a28d-f41d1aefa8ff", + "Content-Length": "63", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", - "operation-id": "capabilities_e6f3932d-6171-4854-a059-0cd9ec9641c0", - "Operation-Location": "/phoneNumbers/operations/capabilities_e6f3932d-6171-4854-a059-0cd9ec9641c0?api-version=2022-12-01", + "operation-id": "capabilities_230dcab8-8f07-4bf1-a28d-f41d1aefa8ff", + "Operation-Location": "/phoneNumbers/operations/capabilities_230dcab8-8f07-4bf1-a28d-f41d1aefa8ff?api-version=2023-05-01-preview", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1086ms" + "X-Processing-Time": "1848ms" }, "ResponseBody": { - "capabilitiesUpdateId": "e6f3932d-6171-4854-a059-0cd9ec9641c0" + "capabilitiesUpdateId": "230dcab8-8f07-4bf1-a28d-f41d1aefa8ff" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_e6f3932d-6171-4854-a059-0cd9ec9641c0?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_230dcab8-8f07-4bf1-a28d-f41d1aefa8ff?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "276ms" + "X-Processing-Time": "301ms" }, "ResponseBody": { "operationType": "updatePhoneNumberCapabilities", "status": "running", - "resourceLocation": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:27:41.637215\u002B00:00", + "resourceLocation": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:53:48.9742723\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_e6f3932d-6171-4854-a059-0cd9ec9641c0?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_230dcab8-8f07-4bf1-a28d-f41d1aefa8ff?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "217ms" + "X-Processing-Time": "146ms" }, "ResponseBody": { "operationType": "updatePhoneNumberCapabilities", "status": "running", - "resourceLocation": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:27:41.637215\u002B00:00", + "resourceLocation": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:53:48.9742723\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_e6f3932d-6171-4854-a059-0cd9ec9641c0?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_230dcab8-8f07-4bf1-a28d-f41d1aefa8ff?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "220ms" + "X-Processing-Time": "174ms" }, "ResponseBody": { "operationType": "updatePhoneNumberCapabilities", "status": "succeeded", - "resourceLocation": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:27:41.637215\u002B00:00", + "resourceLocation": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:53:48.9742723\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "308", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "885ms" + "X-Processing-Time": "1185ms" }, "ResponseBody": { "id": "sanitized", @@ -418,11 +413,11 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "outbound", + "calling": "inbound", "sms": "inbound\u002Boutbound" }, "assignmentType": "application", - "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", "cost": { "amount": 2.0, "currencyCode": "USD", diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities_with_invalid_number.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities_with_invalid_number.json index ee1a10fcab82..cfb1979f8d9d 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities_with_invalid_number.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities_with_invalid_number.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/invalid_phone_number/capabilities?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/invalid_phone_number/capabilities?api-version=2023-05-01-preview", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -9,7 +9,7 @@ "Connection": "keep-alive", "Content-Length": "49", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.10.10 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -18,9 +18,9 @@ "calling": "inbound", "sms": "inbound\u002Boutbound" }, - "StatusCode": 403, + "StatusCode": 400, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json", "Date": "sanitized", "MS-CV": "sanitized", @@ -28,12 +28,16 @@ "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "49ms" + "X-Processing-Time": "127ms" }, "ResponseBody": { "error": { - "code": "InsufficientPermissions", - "message": "Phone number not owned by this resource." + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "Invalid telephone number \u0027invalid_phone_number\u0027" + } } } } diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities_with_unauthorized_number.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities_with_unauthorized_number.json index 36533965b83e..cdb14f3edde5 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities_with_unauthorized_number.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.pyTestPhoneNumbersClienttest_update_phone_number_capabilities_with_unauthorized_number.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2023-05-01-preview", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -9,7 +9,7 @@ "Connection": "keep-alive", "Content-Length": "49", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.10.10 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -20,7 +20,7 @@ }, "StatusCode": 403, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json", "Date": "sanitized", "MS-CV": "sanitized", @@ -28,12 +28,13 @@ "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "93ms" + "X-Processing-Time": "194ms" }, "ResponseBody": { "error": { "code": "InsufficientPermissions", - "message": "Phone number not owned by this resource." + "message": "Phone number not owned by this resource.", + "target": "phonenumber" } } } diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_get_purchased_phone_number.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_get_purchased_phone_number.json index 7c5893b47682..62fa8459b987 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_get_purchased_phone_number.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_get_purchased_phone_number.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,15 +15,15 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "301", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1072ms" + "X-Processing-Time": "1237ms" }, "ResponseBody": { "id": "sanitized", @@ -31,11 +31,11 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound", + "calling": "outbound", "sms": "outbound" }, "assignmentType": "application", - "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", "cost": { "amount": 2.0, "currencyCode": "USD", diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_get_purchased_phone_number_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_get_purchased_phone_number_from_managed_identity.json index 70f091ff40ba..024cc07f490d 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_get_purchased_phone_number_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_get_purchased_phone_number_from_managed_identity.json @@ -6,11 +6,11 @@ "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", @@ -24,7 +24,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -35,25 +34,25 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "301", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "977ms" + "X-Processing-Time": "1249ms" }, "ResponseBody": { "id": "sanitized", @@ -61,11 +60,11 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound", + "calling": "outbound", "sms": "outbound" }, "assignmentType": "application", - "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", "cost": { "amount": 2.0, "currencyCode": "USD", diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_get_purchased_phone_number_with_invalid_phone_number.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_get_purchased_phone_number_with_invalid_phone_number.json index 26a107b4e800..6122978fa4ca 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_get_purchased_phone_number_with_invalid_phone_number.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_get_purchased_phone_number_with_invalid_phone_number.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,7 +15,7 @@ "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json", "Date": "sanitized", "MS-CV": "sanitized", @@ -23,12 +23,12 @@ "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "479ms" + "X-Processing-Time": "183ms" }, "ResponseBody": { "error": { "code": "NotFound", - "message": "Input phoneNumber \u002Bsanitized cannot be found.", + "message": "Input phoneNumber sanitized cannot be found.", "target": "phonenumber" } } diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_countries.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_countries.json index 339dced372dd..c256eb333934 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_countries.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_countries.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,42 +15,135 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1539", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "2373ms" + "X-Processing-Time": "2058ms" }, "ResponseBody": { "countries": [ + { + "localizedName": "Argentina", + "countryCode": "AR" + }, + { + "localizedName": "Brazil", + "countryCode": "BR" + }, { "localizedName": "Canada", "countryCode": "CA" }, + { + "localizedName": "Chile", + "countryCode": "CL" + }, + { + "localizedName": "China", + "countryCode": "CN" + }, + { + "localizedName": "Colombia", + "countryCode": "CO" + }, { "localizedName": "Denmark", "countryCode": "DK" }, + { + "localizedName": "Finland", + "countryCode": "FI" + }, + { + "localizedName": "France", + "countryCode": "FR" + }, + { + "localizedName": "Hong Kong SAR", + "countryCode": "HK" + }, + { + "localizedName": "Indonesia", + "countryCode": "ID" + }, { "localizedName": "Ireland", "countryCode": "IE" }, + { + "localizedName": "Israel", + "countryCode": "IL" + }, { "localizedName": "Italy", "countryCode": "IT" }, + { + "localizedName": "Korea", + "countryCode": "KR" + }, + { + "localizedName": "Malaysia", + "countryCode": "MY" + }, + { + "localizedName": "Mexico", + "countryCode": "MX" + }, + { + "localizedName": "Netherlands", + "countryCode": "NL" + }, + { + "localizedName": "New Zealand", + "countryCode": "NZ" + }, + { + "localizedName": "Philippines", + "countryCode": "PH" + }, + { + "localizedName": "Poland", + "countryCode": "PL" + }, { "localizedName": "Puerto Rico", "countryCode": "PR" }, + { + "localizedName": "Saudi Arabia", + "countryCode": "SA" + }, + { + "localizedName": "Singapore", + "countryCode": "SG" + }, + { + "localizedName": "South Africa", + "countryCode": "ZA" + }, { "localizedName": "Sweden", "countryCode": "SE" }, + { + "localizedName": "Taiwan", + "countryCode": "TW" + }, + { + "localizedName": "Thailand", + "countryCode": "TH" + }, + { + "localizedName": "United Arab Emirates", + "countryCode": "AE" + }, { "localizedName": "United Kingdom", "countryCode": "GB" diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_countries_with_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_countries_with_managed_identity.json index 4cf09ffe6ea6..ccfe4a1b3978 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_countries_with_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_countries_with_managed_identity.json @@ -6,11 +6,11 @@ "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", @@ -24,7 +24,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -35,52 +34,145 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1539", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "2028ms" + "X-Processing-Time": "2083ms" }, "ResponseBody": { "countries": [ + { + "localizedName": "Argentina", + "countryCode": "AR" + }, + { + "localizedName": "Brazil", + "countryCode": "BR" + }, { "localizedName": "Canada", "countryCode": "CA" }, + { + "localizedName": "Chile", + "countryCode": "CL" + }, + { + "localizedName": "China", + "countryCode": "CN" + }, + { + "localizedName": "Colombia", + "countryCode": "CO" + }, { "localizedName": "Denmark", "countryCode": "DK" }, + { + "localizedName": "Finland", + "countryCode": "FI" + }, + { + "localizedName": "France", + "countryCode": "FR" + }, + { + "localizedName": "Hong Kong SAR", + "countryCode": "HK" + }, + { + "localizedName": "Indonesia", + "countryCode": "ID" + }, { "localizedName": "Ireland", "countryCode": "IE" }, + { + "localizedName": "Israel", + "countryCode": "IL" + }, { "localizedName": "Italy", "countryCode": "IT" }, + { + "localizedName": "Korea", + "countryCode": "KR" + }, + { + "localizedName": "Malaysia", + "countryCode": "MY" + }, + { + "localizedName": "Mexico", + "countryCode": "MX" + }, + { + "localizedName": "Netherlands", + "countryCode": "NL" + }, + { + "localizedName": "New Zealand", + "countryCode": "NZ" + }, + { + "localizedName": "Philippines", + "countryCode": "PH" + }, + { + "localizedName": "Poland", + "countryCode": "PL" + }, { "localizedName": "Puerto Rico", "countryCode": "PR" }, + { + "localizedName": "Saudi Arabia", + "countryCode": "SA" + }, + { + "localizedName": "Singapore", + "countryCode": "SG" + }, + { + "localizedName": "South Africa", + "countryCode": "ZA" + }, { "localizedName": "Sweden", "countryCode": "SE" }, + { + "localizedName": "Taiwan", + "countryCode": "TW" + }, + { + "localizedName": "Thailand", + "countryCode": "TH" + }, + { + "localizedName": "United Arab Emirates", + "countryCode": "AE" + }, { "localizedName": "United Kingdom", "countryCode": "GB" diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_geographic_area_codes.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_geographic_area_codes.json index 5e432f8e026a..07a8842d7696 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_geographic_area_codes.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_geographic_area_codes.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,19 +15,33 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01, 2022-12-02-preview2", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10222", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "604ms" + "X-Processing-Time": "291ms" }, "ResponseBody": { "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, { "localizedName": "Huntsville", "administrativeDivision": { @@ -78,28 +92,28 @@ } }, { - "localizedName": "Anaheim", + "localizedName": "Burbank", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "Burbank", + "localizedName": "Concord", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "Concord", + "localizedName": "Fresno", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "Fresno", + "localizedName": "Irvine", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" @@ -147,6 +161,13 @@ "abbreviatedName": "CA" } }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, { "localizedName": "Santa Clarita", "administrativeDivision": { @@ -217,6 +238,13 @@ "abbreviatedName": "CT" } }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, { "localizedName": "Daytona Beach", "administrativeDivision": { @@ -281,7 +309,7 @@ } }, { - "localizedName": "Tampa", + "localizedName": "Tallahassee", "administrativeDivision": { "localizedName": "FL", "abbreviatedName": "FL" @@ -357,6 +385,13 @@ "abbreviatedName": "IA" } }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, { "localizedName": "Sioux City", "administrativeDivision": { @@ -462,13 +497,6 @@ "abbreviatedName": "IN" } }, - { - "localizedName": "Dodge City", - "administrativeDivision": { - "localizedName": "KS", - "abbreviatedName": "KS" - } - }, { "localizedName": "Kansas City", "administrativeDivision": { @@ -547,31 +575,31 @@ } }, { - "localizedName": "Boston", + "localizedName": "Chicopee", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" } }, { - "localizedName": "Chicopee", + "localizedName": "Lowell", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" } }, { - "localizedName": "Lowell", + "localizedName": "Lynn", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" } }, { - "localizedName": "Worcester", + "localizedName": "Baltimore", "administrativeDivision": { - "localizedName": "MA", - "abbreviatedName": "MA" + "localizedName": "MD", + "abbreviatedName": "MD" } }, { @@ -581,6 +609,13 @@ "abbreviatedName": "MD" } }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, { "localizedName": "Portland", "administrativeDivision": { @@ -631,115 +666,80 @@ } }, { - "localizedName": "Saginaw", + "localizedName": "Otsego", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" } }, { - "localizedName": "Sault Ste Marie", + "localizedName": "Saginaw", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" } }, { - "localizedName": "Alexandria", + "localizedName": "Sault Ste Marie", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Duluth", + "localizedName": "Troy", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Mankato", + "localizedName": "Warren", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Minneapolis", + "localizedName": "Alexandria", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "St. Paul", + "localizedName": "Bloomington", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Kansas City", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "Marshall", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "Springfield", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "St. Charles", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "Biloxi", - "administrativeDivision": { - "localizedName": "MS", - "abbreviatedName": "MS" - } - }, - { - "localizedName": "Jackson", + "localizedName": "Duluth", "administrativeDivision": { - "localizedName": "MS", - "abbreviatedName": "MS" + "localizedName": "MN", + "abbreviatedName": "MN" } }, { - "localizedName": "Starkville", + "localizedName": "Mankato", "administrativeDivision": { - "localizedName": "MS", - "abbreviatedName": "MS" + "localizedName": "MN", + "abbreviatedName": "MN" } } ], - "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2022-12-01\u0026maxPageSize=100" + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2023-05-01-preview\u0026maxPageSize=100" } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026assignmentType=person\u0026locality=Huntsville\u0026administrativeDivision=AL\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026assignmentType=person\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -747,24 +747,21 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2", + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "2416ms" + "X-Processing-Time": "2234ms" }, "ResponseBody": { "areaCodes": [ { - "areaCode": "256" - }, - { - "areaCode": "938" + "areaCode": "907" } ], "nextLink": null diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_geographic_area_codes_with_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_geographic_area_codes_with_managed_identity.json index 22766ece8ee8..35c627a4d912 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_geographic_area_codes_with_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_geographic_area_codes_with_managed_identity.json @@ -6,11 +6,11 @@ "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.13.0b2 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", @@ -24,7 +24,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -35,29 +34,43 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01, 2022-12-02-preview2", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10222", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "636ms" + "X-Processing-Time": "295ms" }, "ResponseBody": { "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, { "localizedName": "Huntsville", "administrativeDivision": { @@ -108,28 +121,28 @@ } }, { - "localizedName": "Anaheim", + "localizedName": "Burbank", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "Burbank", + "localizedName": "Concord", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "Concord", + "localizedName": "Fresno", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "Fresno", + "localizedName": "Irvine", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" @@ -177,6 +190,13 @@ "abbreviatedName": "CA" } }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, { "localizedName": "Santa Clarita", "administrativeDivision": { @@ -247,6 +267,13 @@ "abbreviatedName": "CT" } }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, { "localizedName": "Daytona Beach", "administrativeDivision": { @@ -311,7 +338,7 @@ } }, { - "localizedName": "Tampa", + "localizedName": "Tallahassee", "administrativeDivision": { "localizedName": "FL", "abbreviatedName": "FL" @@ -387,6 +414,13 @@ "abbreviatedName": "IA" } }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, { "localizedName": "Sioux City", "administrativeDivision": { @@ -492,13 +526,6 @@ "abbreviatedName": "IN" } }, - { - "localizedName": "Dodge City", - "administrativeDivision": { - "localizedName": "KS", - "abbreviatedName": "KS" - } - }, { "localizedName": "Kansas City", "administrativeDivision": { @@ -577,31 +604,31 @@ } }, { - "localizedName": "Boston", + "localizedName": "Chicopee", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" } }, { - "localizedName": "Chicopee", + "localizedName": "Lowell", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" } }, { - "localizedName": "Lowell", + "localizedName": "Lynn", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" } }, { - "localizedName": "Worcester", + "localizedName": "Baltimore", "administrativeDivision": { - "localizedName": "MA", - "abbreviatedName": "MA" + "localizedName": "MD", + "abbreviatedName": "MD" } }, { @@ -611,6 +638,13 @@ "abbreviatedName": "MD" } }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, { "localizedName": "Portland", "administrativeDivision": { @@ -661,115 +695,80 @@ } }, { - "localizedName": "Saginaw", + "localizedName": "Otsego", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" } }, { - "localizedName": "Sault Ste Marie", + "localizedName": "Saginaw", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" } }, { - "localizedName": "Alexandria", + "localizedName": "Sault Ste Marie", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Duluth", + "localizedName": "Troy", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Mankato", + "localizedName": "Warren", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Minneapolis", + "localizedName": "Alexandria", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "St. Paul", + "localizedName": "Bloomington", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Kansas City", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "Marshall", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "Springfield", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "St. Charles", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } - }, - { - "localizedName": "Biloxi", - "administrativeDivision": { - "localizedName": "MS", - "abbreviatedName": "MS" - } - }, - { - "localizedName": "Jackson", + "localizedName": "Duluth", "administrativeDivision": { - "localizedName": "MS", - "abbreviatedName": "MS" + "localizedName": "MN", + "abbreviatedName": "MN" } }, { - "localizedName": "Starkville", + "localizedName": "Mankato", "administrativeDivision": { - "localizedName": "MS", - "abbreviatedName": "MS" + "localizedName": "MN", + "abbreviatedName": "MN" } } ], - "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2022-12-01\u0026maxPageSize=100" + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2023-05-01-preview\u0026maxPageSize=100" } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026assignmentType=person\u0026locality=Huntsville\u0026administrativeDivision=AL\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026assignmentType=person\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -777,24 +776,21 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2", + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "2409ms" + "X-Processing-Time": "2356ms" }, "ResponseBody": { "areaCodes": [ { - "areaCode": "256" - }, - { - "areaCode": "938" + "areaCode": "907" } ], "nextLink": null diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities.json index 04f92768ccb8..cd000f25fac0 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,15 +15,16 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10222", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "349ms" + "X-Processing-Time": "279ms" }, "ResponseBody": { "phoneNumberLocalities": [ @@ -34,6 +35,13 @@ "abbreviatedName": "AK" } }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, { "localizedName": "Huntsville", "administrativeDivision": { @@ -83,13 +91,6 @@ "abbreviatedName": "AZ" } }, - { - "localizedName": "Anaheim", - "administrativeDivision": { - "localizedName": "CA", - "abbreviatedName": "CA" - } - }, { "localizedName": "Burbank", "administrativeDivision": { @@ -140,28 +141,28 @@ } }, { - "localizedName": "Salinas", + "localizedName": "San Diego", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Diego", + "localizedName": "San Francisco", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Francisco", + "localizedName": "San Jose", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Jose", + "localizedName": "Santa Barbara", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" @@ -202,6 +203,13 @@ "abbreviatedName": "CL" } }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, { "localizedName": "Grand Junction", "administrativeDivision": { @@ -237,13 +245,6 @@ "abbreviatedName": "DE" } }, - { - "localizedName": "Cape Coral", - "administrativeDivision": { - "localizedName": "FL", - "abbreviatedName": "FL" - } - }, { "localizedName": "Daytona Beach", "administrativeDivision": { @@ -293,6 +294,13 @@ "abbreviatedName": "FL" } }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, { "localizedName": "Sarasota", "administrativeDivision": { @@ -301,7 +309,7 @@ } }, { - "localizedName": "St. Petersburg", + "localizedName": "Tallahassee", "administrativeDivision": { "localizedName": "FL", "abbreviatedName": "FL" @@ -370,6 +378,13 @@ "abbreviatedName": "IA" } }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, { "localizedName": "Mason City", "administrativeDivision": { @@ -482,13 +497,6 @@ "abbreviatedName": "IN" } }, - { - "localizedName": "Dodge City", - "administrativeDivision": { - "localizedName": "KS", - "abbreviatedName": "KS" - } - }, { "localizedName": "Kansas City", "administrativeDivision": { @@ -581,7 +589,7 @@ } }, { - "localizedName": "Worcester", + "localizedName": "Lynn", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" @@ -658,7 +666,7 @@ } }, { - "localizedName": "Pontiac", + "localizedName": "Otsego", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" @@ -686,59 +694,52 @@ } }, { - "localizedName": "Alexandria", + "localizedName": "Warren", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Duluth", + "localizedName": "Alexandria", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Mankato", + "localizedName": "Bloomington", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Minneapolis", + "localizedName": "Duluth", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "St. Paul", + "localizedName": "Mankato", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } - }, - { - "localizedName": "Kansas City", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } } ], - "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2022-12-01\u0026maxPageSize=100" + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2023-05-01-preview\u0026maxPageSize=100" } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2022-12-01\u0026maxPageSize=100", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2023-05-01-preview\u0026maxPageSize=100", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -746,18 +747,40 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10012", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "350ms" + "X-Processing-Time": "265ms" }, "ResponseBody": { "phoneNumberLocalities": [ + { + "localizedName": "Minneapolis", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "St. Paul", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, { "localizedName": "Marshall", "administrativeDivision": { @@ -884,13 +907,6 @@ "abbreviatedName": "NG" } }, - { - "localizedName": "Manchester", - "administrativeDivision": { - "localizedName": "NH", - "abbreviatedName": "NH" - } - }, { "localizedName": "Atlantic City", "administrativeDivision": { @@ -961,13 +977,6 @@ "abbreviatedName": "NV" } }, - { - "localizedName": "Albany", - "administrativeDivision": { - "localizedName": "NY", - "abbreviatedName": "NY" - } - }, { "localizedName": "Brentwood", "administrativeDivision": { @@ -1101,6 +1110,27 @@ "abbreviatedName": "OR" } }, + { + "localizedName": "Lancaster", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "New Castle", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Philadelphia", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, { "localizedName": "Pittsburgh", "administrativeDivision": { @@ -1108,6 +1138,13 @@ "abbreviatedName": "PA" } }, + { + "localizedName": "Scranton", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, { "localizedName": "Weatherly", "administrativeDivision": { @@ -1158,24 +1195,24 @@ } }, { - "localizedName": "Jackson", + "localizedName": "Memphis", "administrativeDivision": { "localizedName": "TN", "abbreviatedName": "TN" } }, { - "localizedName": "Memphis", + "localizedName": "Nashville", "administrativeDivision": { "localizedName": "TN", "abbreviatedName": "TN" } }, { - "localizedName": "Nashville", + "localizedName": "Abilene", "administrativeDivision": { - "localizedName": "TN", - "abbreviatedName": "TN" + "localizedName": "TX", + "abbreviatedName": "TX" } }, { @@ -1199,6 +1236,20 @@ "abbreviatedName": "TX" } }, + { + "localizedName": "Dallas", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Denton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, { "localizedName": "El Paso", "administrativeDivision": { @@ -1220,6 +1271,13 @@ "abbreviatedName": "TX" } }, + { + "localizedName": "Hamilton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, { "localizedName": "Houston", "administrativeDivision": { @@ -1249,7 +1307,7 @@ } }, { - "localizedName": "Medina", + "localizedName": "Odessa", "administrativeDivision": { "localizedName": "TX", "abbreviatedName": "TX" @@ -1367,6 +1425,13 @@ "abbreviatedName": "WI" } }, + { + "localizedName": "Madison", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, { "localizedName": "Milwaukee", "administrativeDivision": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities_with_ad.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities_with_ad.json index b624eac9e411..f199d7a37a0c 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities_with_ad.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities_with_ad.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,15 +15,16 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10222", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "348ms" + "X-Processing-Time": "266ms" }, "ResponseBody": { "phoneNumberLocalities": [ @@ -34,6 +35,13 @@ "abbreviatedName": "AK" } }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, { "localizedName": "Huntsville", "administrativeDivision": { @@ -83,13 +91,6 @@ "abbreviatedName": "AZ" } }, - { - "localizedName": "Anaheim", - "administrativeDivision": { - "localizedName": "CA", - "abbreviatedName": "CA" - } - }, { "localizedName": "Burbank", "administrativeDivision": { @@ -140,28 +141,28 @@ } }, { - "localizedName": "Salinas", + "localizedName": "San Diego", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Diego", + "localizedName": "San Francisco", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Francisco", + "localizedName": "San Jose", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Jose", + "localizedName": "Santa Barbara", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" @@ -202,6 +203,13 @@ "abbreviatedName": "CL" } }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, { "localizedName": "Grand Junction", "administrativeDivision": { @@ -237,13 +245,6 @@ "abbreviatedName": "DE" } }, - { - "localizedName": "Cape Coral", - "administrativeDivision": { - "localizedName": "FL", - "abbreviatedName": "FL" - } - }, { "localizedName": "Daytona Beach", "administrativeDivision": { @@ -293,6 +294,13 @@ "abbreviatedName": "FL" } }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, { "localizedName": "Sarasota", "administrativeDivision": { @@ -301,7 +309,7 @@ } }, { - "localizedName": "St. Petersburg", + "localizedName": "Tallahassee", "administrativeDivision": { "localizedName": "FL", "abbreviatedName": "FL" @@ -370,6 +378,13 @@ "abbreviatedName": "IA" } }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, { "localizedName": "Mason City", "administrativeDivision": { @@ -482,13 +497,6 @@ "abbreviatedName": "IN" } }, - { - "localizedName": "Dodge City", - "administrativeDivision": { - "localizedName": "KS", - "abbreviatedName": "KS" - } - }, { "localizedName": "Kansas City", "administrativeDivision": { @@ -581,7 +589,7 @@ } }, { - "localizedName": "Worcester", + "localizedName": "Lynn", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" @@ -658,7 +666,7 @@ } }, { - "localizedName": "Pontiac", + "localizedName": "Otsego", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" @@ -686,59 +694,52 @@ } }, { - "localizedName": "Alexandria", + "localizedName": "Warren", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Duluth", + "localizedName": "Alexandria", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Mankato", + "localizedName": "Bloomington", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Minneapolis", + "localizedName": "Duluth", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "St. Paul", + "localizedName": "Mankato", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } - }, - { - "localizedName": "Kansas City", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } } ], - "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2022-12-01\u0026maxPageSize=100" + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2023-05-01-preview\u0026maxPageSize=100" } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026administrativeDivision=AK\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -746,15 +747,16 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "359ms" + "X-Processing-Time": "258ms" }, "ResponseBody": { "phoneNumberLocalities": [ diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities_with_ad_and_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities_with_ad_and_managed_identity.json index 5bdecf9409a2..76856e2067d9 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities_with_ad_and_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities_with_ad_and_managed_identity.json @@ -6,11 +6,11 @@ "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", @@ -24,7 +24,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -35,25 +34,26 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10222", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "376ms" + "X-Processing-Time": "435ms" }, "ResponseBody": { "phoneNumberLocalities": [ @@ -64,6 +64,13 @@ "abbreviatedName": "AK" } }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, { "localizedName": "Huntsville", "administrativeDivision": { @@ -113,13 +120,6 @@ "abbreviatedName": "AZ" } }, - { - "localizedName": "Anaheim", - "administrativeDivision": { - "localizedName": "CA", - "abbreviatedName": "CA" - } - }, { "localizedName": "Burbank", "administrativeDivision": { @@ -170,28 +170,28 @@ } }, { - "localizedName": "Salinas", + "localizedName": "San Diego", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Diego", + "localizedName": "San Francisco", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Francisco", + "localizedName": "San Jose", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Jose", + "localizedName": "Santa Barbara", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" @@ -232,6 +232,13 @@ "abbreviatedName": "CL" } }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, { "localizedName": "Grand Junction", "administrativeDivision": { @@ -267,13 +274,6 @@ "abbreviatedName": "DE" } }, - { - "localizedName": "Cape Coral", - "administrativeDivision": { - "localizedName": "FL", - "abbreviatedName": "FL" - } - }, { "localizedName": "Daytona Beach", "administrativeDivision": { @@ -323,6 +323,13 @@ "abbreviatedName": "FL" } }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, { "localizedName": "Sarasota", "administrativeDivision": { @@ -331,7 +338,7 @@ } }, { - "localizedName": "St. Petersburg", + "localizedName": "Tallahassee", "administrativeDivision": { "localizedName": "FL", "abbreviatedName": "FL" @@ -400,6 +407,13 @@ "abbreviatedName": "IA" } }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, { "localizedName": "Mason City", "administrativeDivision": { @@ -512,13 +526,6 @@ "abbreviatedName": "IN" } }, - { - "localizedName": "Dodge City", - "administrativeDivision": { - "localizedName": "KS", - "abbreviatedName": "KS" - } - }, { "localizedName": "Kansas City", "administrativeDivision": { @@ -611,7 +618,7 @@ } }, { - "localizedName": "Worcester", + "localizedName": "Lynn", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" @@ -688,7 +695,7 @@ } }, { - "localizedName": "Pontiac", + "localizedName": "Otsego", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" @@ -716,71 +723,65 @@ } }, { - "localizedName": "Alexandria", + "localizedName": "Warren", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Duluth", + "localizedName": "Alexandria", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Mankato", + "localizedName": "Bloomington", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Minneapolis", + "localizedName": "Duluth", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "St. Paul", + "localizedName": "Mankato", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } - }, - { - "localizedName": "Kansas City", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } } ], - "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2022-12-01\u0026maxPageSize=100" + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2023-05-01-preview\u0026maxPageSize=100" } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026administrativeDivision=AK\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "368ms" + "X-Processing-Time": "724ms" }, "ResponseBody": { "phoneNumberLocalities": [ diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities_with_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities_with_managed_identity.json index dd7cb60937f4..f9b5654ac27e 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities_with_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_localities_with_managed_identity.json @@ -6,11 +6,11 @@ "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", @@ -24,7 +24,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -35,25 +34,26 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10222", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "352ms" + "X-Processing-Time": "301ms" }, "ResponseBody": { "phoneNumberLocalities": [ @@ -64,6 +64,13 @@ "abbreviatedName": "AK" } }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, { "localizedName": "Huntsville", "administrativeDivision": { @@ -113,13 +120,6 @@ "abbreviatedName": "AZ" } }, - { - "localizedName": "Anaheim", - "administrativeDivision": { - "localizedName": "CA", - "abbreviatedName": "CA" - } - }, { "localizedName": "Burbank", "administrativeDivision": { @@ -170,28 +170,28 @@ } }, { - "localizedName": "Salinas", + "localizedName": "San Diego", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Diego", + "localizedName": "San Francisco", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Francisco", + "localizedName": "San Jose", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" } }, { - "localizedName": "San Jose", + "localizedName": "Santa Barbara", "administrativeDivision": { "localizedName": "CA", "abbreviatedName": "CA" @@ -232,6 +232,13 @@ "abbreviatedName": "CL" } }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, { "localizedName": "Grand Junction", "administrativeDivision": { @@ -267,13 +274,6 @@ "abbreviatedName": "DE" } }, - { - "localizedName": "Cape Coral", - "administrativeDivision": { - "localizedName": "FL", - "abbreviatedName": "FL" - } - }, { "localizedName": "Daytona Beach", "administrativeDivision": { @@ -323,6 +323,13 @@ "abbreviatedName": "FL" } }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, { "localizedName": "Sarasota", "administrativeDivision": { @@ -331,7 +338,7 @@ } }, { - "localizedName": "St. Petersburg", + "localizedName": "Tallahassee", "administrativeDivision": { "localizedName": "FL", "abbreviatedName": "FL" @@ -400,6 +407,13 @@ "abbreviatedName": "IA" } }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, { "localizedName": "Mason City", "administrativeDivision": { @@ -512,13 +526,6 @@ "abbreviatedName": "IN" } }, - { - "localizedName": "Dodge City", - "administrativeDivision": { - "localizedName": "KS", - "abbreviatedName": "KS" - } - }, { "localizedName": "Kansas City", "administrativeDivision": { @@ -611,7 +618,7 @@ } }, { - "localizedName": "Worcester", + "localizedName": "Lynn", "administrativeDivision": { "localizedName": "MA", "abbreviatedName": "MA" @@ -688,7 +695,7 @@ } }, { - "localizedName": "Pontiac", + "localizedName": "Otsego", "administrativeDivision": { "localizedName": "MI", "abbreviatedName": "MI" @@ -716,74 +723,89 @@ } }, { - "localizedName": "Alexandria", + "localizedName": "Warren", "administrativeDivision": { - "localizedName": "MN", - "abbreviatedName": "MN" + "localizedName": "MI", + "abbreviatedName": "MI" } }, { - "localizedName": "Duluth", + "localizedName": "Alexandria", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Mankato", + "localizedName": "Bloomington", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "Minneapolis", + "localizedName": "Duluth", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } }, { - "localizedName": "St. Paul", + "localizedName": "Mankato", "administrativeDivision": { "localizedName": "MN", "abbreviatedName": "MN" } - }, - { - "localizedName": "Kansas City", - "administrativeDivision": { - "localizedName": "MO", - "abbreviatedName": "MO" - } } ], - "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2022-12-01\u0026maxPageSize=100" + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2023-05-01-preview\u0026maxPageSize=100" } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2022-12-01\u0026maxPageSize=100", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/localities?skip=100\u0026api-version=2023-05-01-preview\u0026maxPageSize=100", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2022-12-01", + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10012", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "353ms" + "X-Processing-Time": "281ms" }, "ResponseBody": { "phoneNumberLocalities": [ + { + "localizedName": "Minneapolis", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "St. Paul", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, { "localizedName": "Marshall", "administrativeDivision": { @@ -910,13 +932,6 @@ "abbreviatedName": "NG" } }, - { - "localizedName": "Manchester", - "administrativeDivision": { - "localizedName": "NH", - "abbreviatedName": "NH" - } - }, { "localizedName": "Atlantic City", "administrativeDivision": { @@ -987,13 +1002,6 @@ "abbreviatedName": "NV" } }, - { - "localizedName": "Albany", - "administrativeDivision": { - "localizedName": "NY", - "abbreviatedName": "NY" - } - }, { "localizedName": "Brentwood", "administrativeDivision": { @@ -1127,6 +1135,27 @@ "abbreviatedName": "OR" } }, + { + "localizedName": "Lancaster", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "New Castle", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Philadelphia", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, { "localizedName": "Pittsburgh", "administrativeDivision": { @@ -1134,6 +1163,13 @@ "abbreviatedName": "PA" } }, + { + "localizedName": "Scranton", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, { "localizedName": "Weatherly", "administrativeDivision": { @@ -1184,24 +1220,24 @@ } }, { - "localizedName": "Jackson", + "localizedName": "Memphis", "administrativeDivision": { "localizedName": "TN", "abbreviatedName": "TN" } }, { - "localizedName": "Memphis", + "localizedName": "Nashville", "administrativeDivision": { "localizedName": "TN", "abbreviatedName": "TN" } }, { - "localizedName": "Nashville", + "localizedName": "Abilene", "administrativeDivision": { - "localizedName": "TN", - "abbreviatedName": "TN" + "localizedName": "TX", + "abbreviatedName": "TX" } }, { @@ -1225,6 +1261,20 @@ "abbreviatedName": "TX" } }, + { + "localizedName": "Dallas", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Denton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, { "localizedName": "El Paso", "administrativeDivision": { @@ -1246,6 +1296,13 @@ "abbreviatedName": "TX" } }, + { + "localizedName": "Hamilton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, { "localizedName": "Houston", "administrativeDivision": { @@ -1275,7 +1332,7 @@ } }, { - "localizedName": "Medina", + "localizedName": "Odessa", "administrativeDivision": { "localizedName": "TX", "abbreviatedName": "TX" @@ -1393,6 +1450,13 @@ "abbreviatedName": "WI" } }, + { + "localizedName": "Madison", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, { "localizedName": "Milwaukee", "administrativeDivision": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_offerings.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_offerings.json index d32b2230d258..1c82ab6a0f19 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_offerings.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_offerings.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/offerings?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/offerings?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,15 +15,16 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "895ms" + "X-Processing-Time": "480ms" }, "ResponseBody": { "phoneNumberOfferings": [ @@ -65,6 +66,19 @@ "currencyCode": "USD", "billingFrequency": "monthly" } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } } ], "nextLink": null diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_offerings_with_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_offerings_with_managed_identity.json index e45a67880aec..8951ada8ffe6 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_offerings_with_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_offerings_with_managed_identity.json @@ -6,11 +6,11 @@ "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", @@ -24,7 +24,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -35,25 +34,26 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/offerings?skip=0\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/offerings?skip=0\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "894ms" + "X-Processing-Time": "532ms" }, "ResponseBody": { "phoneNumberOfferings": [ @@ -95,6 +95,19 @@ "currencyCode": "USD", "billingFrequency": "monthly" } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } } ], "nextLink": null diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_purchased_phone_numbers.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_purchased_phone_numbers.json index 34fa94a7ff4c..1a813e226351 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_purchased_phone_numbers.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_purchased_phone_numbers.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers?skip=0\u0026top=100\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers?skip=0\u0026top=100\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,15 +15,15 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "31580", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1690ms" + "X-Processing-Time": "1462ms" }, "ResponseBody": { "phoneNumbers": [ @@ -322,8 +322,8 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound\u002Boutbound", - "sms": "inbound\u002Boutbound" + "calling": "outbound", + "sms": "outbound" }, "assignmentType": "application", "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", @@ -373,7 +373,7 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound", + "calling": "outbound", "sms": "outbound" }, "assignmentType": "application", @@ -877,6 +877,23 @@ "billingFrequency": "monthly" } }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:11:40.2093547\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, { "id": "sanitized", "phoneNumber": "sanitized", @@ -1709,36 +1726,19 @@ "currencyCode": "USD", "billingFrequency": "monthly" } - }, - { - "id": "sanitized", - "phoneNumber": "sanitized", - "countryCode": "US", - "phoneNumberType": "tollFree", - "capabilities": { - "calling": "inbound\u002Boutbound", - "sms": "inbound\u002Boutbound" - }, - "assignmentType": "application", - "purchaseDate": "2021-06-24T03:18:42.3038608\u002B00:00", - "cost": { - "amount": 2.0, - "currencyCode": "USD", - "billingFrequency": "monthly" - } } ], - "nextLink": "/phoneNumbers?skip=100\u0026top=100\u0026api-version=2022-12-01" + "nextLink": "/phoneNumbers?skip=100\u0026top=100\u0026api-version=2023-05-01-preview" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers?skip=100\u0026top=100\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers?skip=100\u0026top=100\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -1746,18 +1746,2396 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "31841", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "981ms" + "X-Processing-Time": "1879ms" }, "ResponseBody": { - "phoneNumbers": [] + "phoneNumbers": [ + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:18:42.3038608\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:12:13.538747\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:38:42.1281774\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-20T21:46:24.7072806\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:50:44.2721958\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:39:13.0650895\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-08-09T21:31:11.7335307\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:41:12.9270148\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:59:43.8702426\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:44:13.1870258\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:00:13.7898843\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:49:13.8501396\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:45:43.2412523\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:56:13.4198655\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:42:43.4785601\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:43:13.3329991\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:43:43.2644646\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:46:13.3693388\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:57:43.4206167\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:58:12.6113168\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:45:13.2256267\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:44:43.2018384\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:00:42.6467973\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:46:43.1901855\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:01:43.7661054\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:02:15.3937268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:06:41.01465\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:47:43.0690696\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:07:13.6917784\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:48:12.4350945\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:48:43.1996614\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:49:13.5431092\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:50:13.1026413\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:04:13.3157268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:04:43.1035835\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:22:13.3638878\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:08:43.5413541\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:09:13.8998904\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:51:13.0475026\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:20:05.8658511\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:54:16.6134103\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:11:13.7336785\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:12:58.6058156\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:56:43.0548698\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:11:42.604465\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:57:42.5799099\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:58:11.834285\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:15:28.6354088\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:00:13.1072593\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:30:43.8919494\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:31:13.4310333\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:21:49.9674396\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:45:13.7047676\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:14:13.6220104\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:44:44.6040573\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:54:13.9619565\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:29:43.161106\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:31:14.6037399\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:31:44.5667268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:56:43.3214042\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:54:13.8504347\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:03:14.7906887\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:15:42.8004345\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:31:13.2708013\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:06:43.0334527\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:04:42.9913305\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:05:13.4188656\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:25:42.7521989\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:09:12.8370429\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:30:43.1675112\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:10:43.1221045\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:07:13.1907406\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:23:43.0592468\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:07:42.9423531\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:08:12.9812814\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:12:13.4724025\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:08:42.9989053\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:27:13.8887667\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:10:12.8329204\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:11:16.1285436\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:11:43.2160866\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:28:28.4487656\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:14:43.1045845\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:30:12.1604917\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:12:43.3294475\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:29:43.4410627\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:14:13.2280446\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:19:17.7166571\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:25:43.4713207\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:08:13.3307166\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:26:13.092427\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:07:43.1286116\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:28:13.6303453\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:28:43.3758897\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:03:43.893635\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:17:43.5066285\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:04:13.9066513\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:18:43.0105843\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:19:13.3153527\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-05T18:13:14.3666161\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": "/phoneNumbers?skip=200\u0026top=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers?skip=200\u0026top=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "0", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", + "x-ms-content-sha256": "sanitized", + "x-ms-date": "sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "11894", + "Content-Type": "application/json; charset=utf-8", + "Date": "sanitized", + "MS-CV": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "sanitized", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1562ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-08T16:05:56.7000298\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-21T21:33:14.7628777\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-22T18:33:35.4149119\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-03T22:15:58.0819861\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T01:31:45.9762541\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:26:42.2419258\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:56.7009211\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:29.7383571\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-20T21:27:31.7369364\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:34:45.0763318\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:40:14.5388708\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:38:13.7766563\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:00.1600209\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:15.9484758\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:23.3515457\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:42:13.7459585\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:42.5645252\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:59:43.6806531\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:43:42.9562291\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:43:12.077177\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:55:14.1329393\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:57:13.8937202\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:44:12.4528756\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:13:13.4711145\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:46:42.2851739\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:14:15.1108491\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:49:12.0653887\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:25.0876521\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:49:42.2605522\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:50:13.2673166\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:51:13.1710277\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:14:44.8212216\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:50:43.5645432\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:23:08.4687205\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-29T22:41:40.755214\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T01:33:41.947644\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-02T10:50:53.3274521\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "GB", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "application", + "purchaseDate": "2023-05-25T22:00:08.1041229\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ] } } ], diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_purchased_phone_numbers_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_purchased_phone_numbers_from_managed_identity.json index 43f81706f04f..a6116063b431 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_purchased_phone_numbers_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_purchased_phone_numbers_from_managed_identity.json @@ -6,11 +6,11 @@ "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", @@ -24,7 +24,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -35,25 +34,25 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers?skip=0\u0026top=100\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers?skip=0\u0026top=100\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "31580", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "3590ms" + "X-Processing-Time": "1719ms" }, "ResponseBody": { "phoneNumbers": [ @@ -352,8 +351,8 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound\u002Boutbound", - "sms": "inbound\u002Boutbound" + "calling": "outbound", + "sms": "outbound" }, "assignmentType": "application", "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", @@ -403,7 +402,7 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound", + "calling": "outbound", "sms": "outbound" }, "assignmentType": "application", @@ -907,6 +906,23 @@ "billingFrequency": "monthly" } }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:11:40.2093547\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, { "id": "sanitized", "phoneNumber": "sanitized", @@ -1739,51 +1755,2408 @@ "currencyCode": "USD", "billingFrequency": "monthly" } - }, - { - "id": "sanitized", - "phoneNumber": "sanitized", - "countryCode": "US", - "phoneNumberType": "tollFree", - "capabilities": { - "calling": "inbound\u002Boutbound", - "sms": "inbound\u002Boutbound" - }, - "assignmentType": "application", - "purchaseDate": "2021-06-24T03:18:42.3038608\u002B00:00", - "cost": { - "amount": 2.0, - "currencyCode": "USD", - "billingFrequency": "monthly" - } } ], - "nextLink": "/phoneNumbers?skip=100\u0026top=100\u0026api-version=2022-12-01" + "nextLink": "/phoneNumbers?skip=100\u0026top=100\u0026api-version=2023-05-01-preview" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers?skip=100\u0026top=100\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers?skip=100\u0026top=100\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "31841", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1370ms" + "X-Processing-Time": "1762ms" }, "ResponseBody": { - "phoneNumbers": [] + "phoneNumbers": [ + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:18:42.3038608\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:12:13.538747\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:38:42.1281774\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-20T21:46:24.7072806\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:50:44.2721958\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:39:13.0650895\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-08-09T21:31:11.7335307\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:41:12.9270148\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:59:43.8702426\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:44:13.1870258\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:00:13.7898843\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:49:13.8501396\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:45:43.2412523\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:56:13.4198655\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:42:43.4785601\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:43:13.3329991\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:43:43.2644646\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:46:13.3693388\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:57:43.4206167\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:58:12.6113168\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:45:13.2256267\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:44:43.2018384\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:00:42.6467973\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:46:43.1901855\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:01:43.7661054\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:02:15.3937268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:06:41.01465\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:47:43.0690696\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:07:13.6917784\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:48:12.4350945\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:48:43.1996614\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:49:13.5431092\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:50:13.1026413\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:04:13.3157268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:04:43.1035835\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:22:13.3638878\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:08:43.5413541\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:09:13.8998904\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:51:13.0475026\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:20:05.8658511\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:54:16.6134103\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:11:13.7336785\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:12:58.6058156\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:56:43.0548698\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:11:42.604465\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:57:42.5799099\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:58:11.834285\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:15:28.6354088\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:00:13.1072593\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:30:43.8919494\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:31:13.4310333\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:21:49.9674396\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:45:13.7047676\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:14:13.6220104\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:44:44.6040573\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:54:13.9619565\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:29:43.161106\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:31:14.6037399\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:31:44.5667268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:56:43.3214042\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:54:13.8504347\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:03:14.7906887\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:15:42.8004345\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:31:13.2708013\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:06:43.0334527\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:04:42.9913305\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:05:13.4188656\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:25:42.7521989\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:09:12.8370429\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:30:43.1675112\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:10:43.1221045\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:07:13.1907406\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:23:43.0592468\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:07:42.9423531\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:08:12.9812814\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:12:13.4724025\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:08:42.9989053\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:27:13.8887667\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:10:12.8329204\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:11:16.1285436\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:11:43.2160866\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:28:28.4487656\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:14:43.1045845\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:30:12.1604917\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:12:43.3294475\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:29:43.4410627\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:14:13.2280446\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:19:17.7166571\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:25:43.4713207\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:08:13.3307166\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:26:13.092427\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:07:43.1286116\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:28:13.6303453\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:28:43.3758897\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:03:43.893635\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:17:43.5066285\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:04:13.9066513\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:18:43.0105843\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:19:13.3153527\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-05T18:13:14.3666161\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": "/phoneNumbers?skip=200\u0026top=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers?skip=200\u0026top=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "11894", + "Content-Type": "application/json; charset=utf-8", + "Date": "sanitized", + "MS-CV": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "sanitized", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1381ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-08T16:05:56.7000298\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-21T21:33:14.7628777\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-22T18:33:35.4149119\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-03T22:15:58.0819861\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T01:31:45.9762541\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:26:42.2419258\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:56.7009211\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:29.7383571\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-20T21:27:31.7369364\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:34:45.0763318\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:40:14.5388708\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:38:13.7766563\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:00.1600209\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:15.9484758\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:23.3515457\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:42:13.7459585\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:42.5645252\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:59:43.6806531\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:43:42.9562291\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:43:12.077177\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:55:14.1329393\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:57:13.8937202\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:44:12.4528756\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:13:13.4711145\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:46:42.2851739\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:14:15.1108491\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:49:12.0653887\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:25.0876521\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:49:42.2605522\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:50:13.2673166\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:51:13.1710277\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:14:44.8212216\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:50:43.5645432\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:23:08.4687205\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-29T22:41:40.755214\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T01:33:41.947644\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-02T10:50:53.3274521\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "sanitized", + "phoneNumber": "sanitized", + "countryCode": "GB", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "application", + "purchaseDate": "2023-05-25T22:00:08.1041229\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ] } } ], diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_toll_free_area_codes.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_toll_free_area_codes.json index d8a78827de35..ca75116c4094 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_toll_free_area_codes.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_toll_free_area_codes.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026assignmentType=application\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026assignmentType=application\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,15 +15,16 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "182", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "2974ms" + "X-Processing-Time": "9396ms" }, "ResponseBody": { "areaCodes": [ diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_toll_free_area_codes_with_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_toll_free_area_codes_with_managed_identity.json index 530c4b13e345..c84ba2874627 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_toll_free_area_codes_with_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_list_toll_free_area_codes_with_managed_identity.json @@ -6,11 +6,11 @@ "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", @@ -24,7 +24,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -35,25 +34,26 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026assignmentType=application\u0026api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026assignmentType=application\u0026api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "182", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "3008ms" + "X-Processing-Time": "9200ms" }, "ResponseBody": { "areaCodes": [ diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_available_phone_numbers.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_available_phone_numbers.json index bf13341ff756..078ca59103af 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_available_phone_numbers.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_available_phone_numbers.json @@ -1,14 +1,14 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "131", "Content-Type": "application/json", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -24,18 +24,18 @@ "StatusCode": 202, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Length": "0", "Date": "sanitized", - "Location": "/availablePhoneNumbers/searchResults/b26819db-052e-453f-976f-8b78648000e6?api-version=2022-12-01", + "Location": "/availablePhoneNumbers/searchResults/3b409287-faf3-4c97-b67f-f6b65ffd8532?api-version=2023-05-01-preview", "MS-CV": "sanitized", - "operation-id": "search_b26819db-052e-453f-976f-8b78648000e6", - "Operation-Location": "/phoneNumbers/operations/search_b26819db-052e-453f-976f-8b78648000e6?api-version=2022-12-01", - "search-id": "b26819db-052e-453f-976f-8b78648000e6", + "operation-id": "search_3b409287-faf3-4c97-b67f-f6b65ffd8532", + "Operation-Location": "/phoneNumbers/operations/search_3b409287-faf3-4c97-b67f-f6b65ffd8532?api-version=2023-05-01-preview", + "search-id": "3b409287-faf3-4c97-b67f-f6b65ffd8532", "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1400ms" + "X-Processing-Time": "869ms" }, "ResponseBody": null } diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_available_phone_numbers_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_available_phone_numbers_from_managed_identity.json index e4500fc2d9c5..d22a2ad638a9 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_available_phone_numbers_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_available_phone_numbers_from_managed_identity.json @@ -6,11 +6,11 @@ "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", @@ -24,7 +24,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -35,14 +34,14 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "131", "Content-Type": "application/json", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "phoneNumberType": "tollFree", @@ -55,18 +54,18 @@ "StatusCode": 202, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Length": "0", "Date": "sanitized", - "Location": "/availablePhoneNumbers/searchResults/dfd0adce-27ec-42bb-b865-50e29ce2fa94?api-version=2022-12-01", + "Location": "/availablePhoneNumbers/searchResults/0d421180-cd16-4338-b726-f391b50ea4cd?api-version=2023-05-01-preview", "MS-CV": "sanitized", - "operation-id": "search_dfd0adce-27ec-42bb-b865-50e29ce2fa94", - "Operation-Location": "/phoneNumbers/operations/search_dfd0adce-27ec-42bb-b865-50e29ce2fa94?api-version=2022-12-01", - "search-id": "dfd0adce-27ec-42bb-b865-50e29ce2fa94", + "operation-id": "search_0d421180-cd16-4338-b726-f391b50ea4cd", + "Operation-Location": "/phoneNumbers/operations/search_0d421180-cd16-4338-b726-f391b50ea4cd?api-version=2023-05-01-preview", + "search-id": "0d421180-cd16-4338-b726-f391b50ea4cd", "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "2501ms" + "X-Processing-Time": "1140ms" }, "ResponseBody": null } diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_available_phone_numbers_with_invalid_country_code.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_available_phone_numbers_with_invalid_country_code.json index 3c23490e56dc..00d3cd4be158 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_available_phone_numbers_with_invalid_country_code.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_available_phone_numbers_with_invalid_country_code.json @@ -1,14 +1,14 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/XX/:search?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/availablePhoneNumbers/countries/XX/:search?api-version=2023-05-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "131", "Content-Type": "application/json", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -23,7 +23,7 @@ }, "StatusCode": 400, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json", "Date": "sanitized", "MS-CV": "sanitized", @@ -31,7 +31,7 @@ "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "43ms" + "X-Processing-Time": "12ms" }, "ResponseBody": { "error": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_operator_information.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_operator_information.json new file mode 100644 index 000000000000..864334d2bcb6 --- /dev/null +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_operator_information.json @@ -0,0 +1,50 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/operatorInformation/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "31", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", + "x-ms-content-sha256": "sanitized", + "x-ms-date": "sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "phoneNumbers": [ + "sanitized" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview", + "Content-Length": "183", + "Content-Type": "application/json; charset=utf-8", + "Date": "sanitized", + "MS-CV": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "sanitized", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "21475ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "sanitized", + "numberType": "other", + "operatorDetails": { + "name": "Multiple OCN Listing", + "mobileNetworkCode": null, + "mobileCountryCode": null + }, + "isoCountryCode": "US" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_operator_information_with_list.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_operator_information_with_list.json new file mode 100644 index 000000000000..857f3b7122a3 --- /dev/null +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_operator_information_with_list.json @@ -0,0 +1,50 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/operatorInformation/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "31", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", + "x-ms-content-sha256": "sanitized", + "x-ms-date": "sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "phoneNumbers": [ + "sanitized" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview", + "Content-Length": "183", + "Content-Type": "application/json; charset=utf-8", + "Date": "sanitized", + "MS-CV": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "sanitized", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "865ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "sanitized", + "numberType": "other", + "operatorDetails": { + "name": "Multiple OCN Listing", + "mobileNetworkCode": null, + "mobileCountryCode": null + }, + "isoCountryCode": "US" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_operator_information_with_single_string.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_operator_information_with_single_string.json new file mode 100644 index 000000000000..7dac702e28d9 --- /dev/null +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_operator_information_with_single_string.json @@ -0,0 +1,50 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/operatorInformation/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "31", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", + "x-ms-content-sha256": "sanitized", + "x-ms-date": "sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "phoneNumbers": [ + "sanitized" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview", + "Content-Length": "183", + "Content-Type": "application/json; charset=utf-8", + "Date": "sanitized", + "MS-CV": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "sanitized", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "343ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "sanitized", + "numberType": "other", + "operatorDetails": { + "name": "Multiple OCN Listing", + "mobileNetworkCode": null, + "mobileCountryCode": null + }, + "isoCountryCode": "US" + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_operator_information_with_too_many_phone_numbers.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_operator_information_with_too_many_phone_numbers.json new file mode 100644 index 000000000000..272380e98402 --- /dev/null +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_search_operator_information_with_too_many_phone_numbers.json @@ -0,0 +1,43 @@ +{ + "Entries": [ + { + "RequestUri": "https://sanitized.communication.azure.com/operatorInformation/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "44", + "Content-Type": "application/json", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", + "x-ms-content-sha256": "sanitized", + "x-ms-date": "sanitized", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "phoneNumbers": [ + "sanitized", + "sanitized" + ] + }, + "StatusCode": 400, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview", + "Content-Type": "application/json", + "Date": "sanitized", + "MS-CV": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "sanitized", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "7ms" + }, + "ResponseBody": { + "error": { + "code": "BadRequest", + "message": "Can only accept one phoneNumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities.json index 51e407a88c90..faa5bf1d2bc9 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,15 +15,15 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "301", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "924ms" + "X-Processing-Time": "1206ms" }, "ResponseBody": { "id": "sanitized", @@ -31,11 +31,11 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound", + "calling": "outbound", "sms": "outbound" }, "assignmentType": "application", - "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", "cost": { "amount": 2.0, "currencyCode": "USD", @@ -44,51 +44,51 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2023-05-01-preview", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Content-Length": "50", + "Content-Length": "49", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" }, "RequestBody": { - "calling": "outbound", + "calling": "inbound", "sms": "inbound\u002Boutbound" }, "StatusCode": 202, "ResponseHeaders": { "Access-Control-Expose-Headers": "Operation-Location,Location,operation-id,capabilities-id", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", - "capabilities-id": "3ba80748-4f6a-4039-acbe-78851cba48f9", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "capabilities-id": "c5ecf39a-c3e5-4a1f-b1b1-bca2253e9685", + "Content-Length": "63", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", - "operation-id": "capabilities_3ba80748-4f6a-4039-acbe-78851cba48f9", - "Operation-Location": "/phoneNumbers/operations/capabilities_3ba80748-4f6a-4039-acbe-78851cba48f9?api-version=2022-12-01", + "operation-id": "capabilities_c5ecf39a-c3e5-4a1f-b1b1-bca2253e9685", + "Operation-Location": "/phoneNumbers/operations/capabilities_c5ecf39a-c3e5-4a1f-b1b1-bca2253e9685?api-version=2023-05-01-preview", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1316ms" + "X-Processing-Time": "2386ms" }, "ResponseBody": { - "capabilitiesUpdateId": "3ba80748-4f6a-4039-acbe-78851cba48f9" + "capabilitiesUpdateId": "c5ecf39a-c3e5-4a1f-b1b1-bca2253e9685" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_3ba80748-4f6a-4039-acbe-78851cba48f9?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_c5ecf39a-c3e5-4a1f-b1b1-bca2253e9685?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -97,34 +97,34 @@ "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "371ms" + "X-Processing-Time": "177ms" }, "ResponseBody": { "operationType": "updatePhoneNumberCapabilities", "status": "running", - "resourceLocation": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:26:29.6257421\u002B00:00", + "resourceLocation": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:54:52.5267367\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_3ba80748-4f6a-4039-acbe-78851cba48f9?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_c5ecf39a-c3e5-4a1f-b1b1-bca2253e9685?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -133,34 +133,34 @@ "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "207ms" + "X-Processing-Time": "176ms" }, "ResponseBody": { "operationType": "updatePhoneNumberCapabilities", "status": "running", - "resourceLocation": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:26:29.6257421\u002B00:00", + "resourceLocation": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:54:52.5267367\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_3ba80748-4f6a-4039-acbe-78851cba48f9?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_c5ecf39a-c3e5-4a1f-b1b1-bca2253e9685?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -169,34 +169,34 @@ "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "213ms" + "X-Processing-Time": "164ms" }, "ResponseBody": { "operationType": "updatePhoneNumberCapabilities", "status": "succeeded", - "resourceLocation": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:26:29.6257421\u002B00:00", + "resourceLocation": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:54:52.5267367\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -204,15 +204,15 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "308", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "936ms" + "X-Processing-Time": "1220ms" }, "ResponseBody": { "id": "sanitized", @@ -220,11 +220,11 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "outbound", + "calling": "inbound", "sms": "inbound\u002Boutbound" }, "assignmentType": "application", - "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", "cost": { "amount": 2.0, "currencyCode": "USD", diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities_from_managed_identity.json index 6ea0035e8ce8..d06dce1102a6 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities_from_managed_identity.json @@ -6,11 +6,11 @@ "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.13.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", @@ -24,7 +24,6 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { @@ -35,25 +34,25 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "308", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "981ms" + "X-Processing-Time": "1231ms" }, "ResponseBody": { "id": "sanitized", @@ -61,11 +60,11 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "outbound", + "calling": "inbound", "sms": "inbound\u002Boutbound" }, "assignmentType": "application", - "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", "cost": { "amount": 2.0, "currencyCode": "USD", @@ -74,156 +73,156 @@ } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2023-05-01-preview", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "Content-Length": "41", + "Content-Length": "42", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { - "calling": "inbound", + "calling": "outbound", "sms": "outbound" }, "StatusCode": 202, "ResponseHeaders": { "Access-Control-Expose-Headers": "Operation-Location,Location,operation-id,capabilities-id", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", - "capabilities-id": "9ef352ca-30ed-4d72-aca3-4359770c7cde", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "capabilities-id": "dad7adaa-6ca1-4ab2-b66f-fe67869f678d", + "Content-Length": "63", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", - "operation-id": "capabilities_9ef352ca-30ed-4d72-aca3-4359770c7cde", - "Operation-Location": "/phoneNumbers/operations/capabilities_9ef352ca-30ed-4d72-aca3-4359770c7cde?api-version=2022-12-01", + "operation-id": "capabilities_dad7adaa-6ca1-4ab2-b66f-fe67869f678d", + "Operation-Location": "/phoneNumbers/operations/capabilities_dad7adaa-6ca1-4ab2-b66f-fe67869f678d?api-version=2023-05-01-preview", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1270ms" + "X-Processing-Time": "2394ms" }, "ResponseBody": { - "capabilitiesUpdateId": "9ef352ca-30ed-4d72-aca3-4359770c7cde" + "capabilitiesUpdateId": "dad7adaa-6ca1-4ab2-b66f-fe67869f678d" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_9ef352ca-30ed-4d72-aca3-4359770c7cde?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_dad7adaa-6ca1-4ab2-b66f-fe67869f678d?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "203ms" + "X-Processing-Time": "165ms" }, "ResponseBody": { "operationType": "updatePhoneNumberCapabilities", "status": "running", - "resourceLocation": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:26:38.3439169\u002B00:00", + "resourceLocation": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:55:02.3954685\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_9ef352ca-30ed-4d72-aca3-4359770c7cde?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_dad7adaa-6ca1-4ab2-b66f-fe67869f678d?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "206ms" + "X-Processing-Time": "183ms" }, "ResponseBody": { "operationType": "updatePhoneNumberCapabilities", "status": "running", - "resourceLocation": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:26:38.3439169\u002B00:00", + "resourceLocation": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:55:02.3954685\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_9ef352ca-30ed-4d72-aca3-4359770c7cde?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_dad7adaa-6ca1-4ab2-b66f-fe67869f678d?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Access-Control-Expose-Headers": "Location", - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", - "Location": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "Location": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "199ms" + "X-Processing-Time": "168ms" }, "ResponseBody": { "operationType": "updatePhoneNumberCapabilities", "status": "succeeded", - "resourceLocation": "/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", - "createdDateTime": "2022-12-20T23:26:38.3439169\u002B00:00", + "resourceLocation": "/phoneNumbers/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-08-04T03:55:02.3954685\u002B00:00", "id": "sanitized", "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" } }, { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/\u002Bsanitized?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2023-05-01-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b3 Python/3.10.9 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "301", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "MS-CV": "sanitized", "Strict-Transport-Security": "max-age=2592000", - "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1032ms" + "X-Processing-Time": "1235ms" }, "ResponseBody": { "id": "sanitized", @@ -231,11 +230,11 @@ "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": { - "calling": "inbound", + "calling": "outbound", "sms": "outbound" }, "assignmentType": "application", - "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", "cost": { "amount": 2.0, "currencyCode": "USD", diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities_with_invalid_number.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities_with_invalid_number.json index 387b8300ba47..5d284e738b6d 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities_with_invalid_number.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities_with_invalid_number.json @@ -1,14 +1,14 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/invalid_phone_number/capabilities?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/invalid_phone_number/capabilities?api-version=2023-05-01-preview", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "49", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.10.10 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -17,9 +17,9 @@ "calling": "inbound", "sms": "inbound\u002Boutbound" }, - "StatusCode": 403, + "StatusCode": 400, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json", "Date": "sanitized", "MS-CV": "sanitized", @@ -27,12 +27,16 @@ "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "320ms" + "X-Processing-Time": "164ms" }, "ResponseBody": { "error": { - "code": "InsufficientPermissions", - "message": "Phone number not owned by this resource." + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "Invalid telephone number \u0027invalid_phone_number\u0027" + } } } } diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities_with_unauthorized_number.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities_with_unauthorized_number.json index a35b36d136be..b4fbfe9f9669 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities_with_unauthorized_number.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.pyTestPhoneNumbersClientAsynctest_update_phone_number_capabilities_with_unauthorized_number.json @@ -1,14 +1,14 @@ { "Entries": [ { - "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2022-12-01", + "RequestUri": "https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2023-05-01-preview", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "49", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.10.10 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -19,7 +19,7 @@ }, "StatusCode": 403, "ResponseHeaders": { - "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", "Content-Type": "application/json", "Date": "sanitized", "MS-CV": "sanitized", @@ -27,12 +27,13 @@ "Transfer-Encoding": "chunked", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "46ms" + "X-Processing-Time": "171ms" }, "ResponseBody": { "error": { "code": "InsufficientPermissions", - "message": "Phone number not owned by this resource." + "message": "Phone number not owned by this resource.", + "target": "phonenumber" } } } diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_add_trunk.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_add_trunk.json index a53c95dde3da..bba0932d1536 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_add_trunk.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_add_trunk.json @@ -9,7 +9,7 @@ "Connection": "keep-alive", "Content-Length": "62", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -23,7 +23,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "165", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -31,7 +32,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1163ms" + "X-Processing-Time": "431ms" }, "ResponseBody": { "trunks": { @@ -55,7 +56,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -63,7 +64,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "165", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -71,7 +73,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "173ms" + "X-Processing-Time": "117ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_add_trunk_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_add_trunk_from_managed_identity.json index 3874683f2fa1..dadfd20a2797 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_add_trunk_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_add_trunk_from_managed_identity.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize\u0026api-version=1.0", + "RequestUri": "https://login.microsoftonline.com/sanitized/v2.0/.well-known/openid-configuration", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -15,7 +15,7 @@ "Access-Control-Allow-Methods": "GET, OPTIONS", "Access-Control-Allow-Origin": "*", "Cache-Control": "max-age=86400, private", - "Content-Length": "109", + "Content-Length": "1564", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "P3P": "sanitized", @@ -26,44 +26,13 @@ "X-XSS-Protection": "0" }, "ResponseBody": { - "tenant_discovery_endpoint": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration" - } - }, - { - "RequestUri": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1548", - "Content-Type": "application/json; charset=utf-8", - "Date": "sanitized", - "P3P": "sanitized", - "Set-Cookie": "sanitized", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "token_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": [ "client_secret_post", "private_key_jwt", "client_secret_basic" ], - "jwks_uri": "https://login.windows-ppe.net/sanitized/discovery/v2.0/keys", + "jwks_uri": "https://login.microsoftonline.com/sanitized/discovery/v2.0/keys", "response_modes_supported": [ "query", "fragment", @@ -87,14 +56,14 @@ "email", "offline_access" ], - "issuer": "https://login.windows-ppe.net/sanitized/v2.0", + "issuer": "https://login.microsoftonline.com/sanitized/v2.0", "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft-ppe.com/oidc/userinfo", - "authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/devicecode", + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/logout", + "end_session_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/logout", "claims_supported": [ "sub", "iss", @@ -116,12 +85,12 @@ "c_hash", "email" ], - "kerberos_endpoint": "https://login.windows-ppe.net/sanitized/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "windows-ppe.net", - "cloud_graph_host_name": "graph.ppe.windows.net", - "msgraph_host": "graph.microsoft-ppe.com", - "rbac_url": "https://pas.windows-ppe.net" + "kerberos_endpoint": "https://login.microsoftonline.com/sanitized/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" } }, { @@ -131,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -198,7 +166,7 @@ } }, { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -207,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.21.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -222,7 +189,7 @@ "ResponseHeaders": { "Cache-Control": "no-store, no-cache", "client-request-id": "sanitized", - "Content-Length": "90", + "Content-Length": "111", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -233,13 +200,13 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, "access_token": "Sanitized" } }, @@ -252,7 +219,7 @@ "Connection": "keep-alive", "Content-Length": "62", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "trunks": { @@ -263,7 +230,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "165", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -271,7 +239,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1146ms" + "X-Processing-Time": "330ms" }, "ResponseBody": { "trunks": { @@ -295,12 +263,13 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "165", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -308,7 +277,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "174ms" + "X-Processing-Time": "73ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_delete_trunk.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_delete_trunk.json index 52841b3f6ed4..01f24092b688 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_delete_trunk.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_delete_trunk.json @@ -9,7 +9,7 @@ "Connection": "keep-alive", "Content-Length": "40", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -21,7 +21,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -29,7 +30,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "434ms" + "X-Processing-Time": "230ms" }, "ResponseBody": { "trunks": { @@ -47,7 +48,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -55,7 +56,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -63,7 +65,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "167ms" + "X-Processing-Time": "80ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_delete_trunk_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_delete_trunk_from_managed_identity.json index 68bde578b8ca..16cce05f9348 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_delete_trunk_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_delete_trunk_from_managed_identity.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize\u0026api-version=1.0", + "RequestUri": "https://login.microsoftonline.com/sanitized/v2.0/.well-known/openid-configuration", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -15,7 +15,7 @@ "Access-Control-Allow-Methods": "GET, OPTIONS", "Access-Control-Allow-Origin": "*", "Cache-Control": "max-age=86400, private", - "Content-Length": "109", + "Content-Length": "1564", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "P3P": "sanitized", @@ -26,44 +26,13 @@ "X-XSS-Protection": "0" }, "ResponseBody": { - "tenant_discovery_endpoint": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration" - } - }, - { - "RequestUri": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1548", - "Content-Type": "application/json; charset=utf-8", - "Date": "sanitized", - "P3P": "sanitized", - "Set-Cookie": "sanitized", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "token_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": [ "client_secret_post", "private_key_jwt", "client_secret_basic" ], - "jwks_uri": "https://login.windows-ppe.net/sanitized/discovery/v2.0/keys", + "jwks_uri": "https://login.microsoftonline.com/sanitized/discovery/v2.0/keys", "response_modes_supported": [ "query", "fragment", @@ -87,14 +56,14 @@ "email", "offline_access" ], - "issuer": "https://login.windows-ppe.net/sanitized/v2.0", + "issuer": "https://login.microsoftonline.com/sanitized/v2.0", "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft-ppe.com/oidc/userinfo", - "authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/devicecode", + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/logout", + "end_session_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/logout", "claims_supported": [ "sub", "iss", @@ -116,12 +85,12 @@ "c_hash", "email" ], - "kerberos_endpoint": "https://login.windows-ppe.net/sanitized/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "windows-ppe.net", - "cloud_graph_host_name": "graph.ppe.windows.net", - "msgraph_host": "graph.microsoft-ppe.com", - "rbac_url": "https://pas.windows-ppe.net" + "kerberos_endpoint": "https://login.microsoftonline.com/sanitized/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" } }, { @@ -131,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -198,7 +166,7 @@ } }, { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -207,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.21.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -222,7 +189,7 @@ "ResponseHeaders": { "Cache-Control": "no-store, no-cache", "client-request-id": "sanitized", - "Content-Length": "90", + "Content-Length": "111", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -233,13 +200,13 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, "access_token": "Sanitized" } }, @@ -252,7 +219,7 @@ "Connection": "keep-alive", "Content-Length": "40", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "trunks": { @@ -261,7 +228,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -269,7 +237,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "398ms" + "X-Processing-Time": "252ms" }, "ResponseBody": { "trunks": { @@ -287,12 +255,13 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -300,7 +269,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "176ms" + "X-Processing-Time": "95ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_routes.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_routes.json index 8a14d55a96b3..f2ec8b05874a 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_routes.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_routes.json @@ -9,7 +9,7 @@ "Connection": "keep-alive", "Content-Length": "137", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -26,7 +26,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "234", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -34,7 +35,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "306ms" + "X-Processing-Time": "149ms" }, "ResponseBody": { "trunks": { @@ -62,7 +63,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -70,7 +71,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "234", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -78,7 +80,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "165ms" + "X-Processing-Time": "114ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_routes_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_routes_from_managed_identity.json index c6db844f6a0d..5b38705a7ca4 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_routes_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_routes_from_managed_identity.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize\u0026api-version=1.0", + "RequestUri": "https://login.microsoftonline.com/sanitized/v2.0/.well-known/openid-configuration", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -15,7 +15,7 @@ "Access-Control-Allow-Methods": "GET, OPTIONS", "Access-Control-Allow-Origin": "*", "Cache-Control": "max-age=86400, private", - "Content-Length": "109", + "Content-Length": "1564", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "P3P": "sanitized", @@ -26,44 +26,13 @@ "X-XSS-Protection": "0" }, "ResponseBody": { - "tenant_discovery_endpoint": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration" - } - }, - { - "RequestUri": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1548", - "Content-Type": "application/json; charset=utf-8", - "Date": "sanitized", - "P3P": "sanitized", - "Set-Cookie": "sanitized", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "token_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": [ "client_secret_post", "private_key_jwt", "client_secret_basic" ], - "jwks_uri": "https://login.windows-ppe.net/sanitized/discovery/v2.0/keys", + "jwks_uri": "https://login.microsoftonline.com/sanitized/discovery/v2.0/keys", "response_modes_supported": [ "query", "fragment", @@ -87,14 +56,14 @@ "email", "offline_access" ], - "issuer": "https://login.windows-ppe.net/sanitized/v2.0", + "issuer": "https://login.microsoftonline.com/sanitized/v2.0", "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft-ppe.com/oidc/userinfo", - "authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/devicecode", + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/logout", + "end_session_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/logout", "claims_supported": [ "sub", "iss", @@ -116,12 +85,12 @@ "c_hash", "email" ], - "kerberos_endpoint": "https://login.windows-ppe.net/sanitized/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "windows-ppe.net", - "cloud_graph_host_name": "graph.ppe.windows.net", - "msgraph_host": "graph.microsoft-ppe.com", - "rbac_url": "https://pas.windows-ppe.net" + "kerberos_endpoint": "https://login.microsoftonline.com/sanitized/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" } }, { @@ -131,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -198,7 +166,7 @@ } }, { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -207,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.21.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -222,7 +189,7 @@ "ResponseHeaders": { "Cache-Control": "no-store, no-cache", "client-request-id": "sanitized", - "Content-Length": "90", + "Content-Length": "111", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -233,13 +200,13 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, "access_token": "Sanitized" } }, @@ -252,7 +219,7 @@ "Connection": "keep-alive", "Content-Length": "137", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "routes": [ @@ -266,7 +233,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "234", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -274,7 +242,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "580ms" + "X-Processing-Time": "340ms" }, "ResponseBody": { "trunks": { @@ -302,12 +270,13 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "234", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -315,7 +284,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "172ms" + "X-Processing-Time": "71ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunk.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunk.json index f1bbd4957b56..f7a7c2e78146 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunk.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunk.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,7 +15,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -23,7 +24,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "165ms" + "X-Processing-Time": "71ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunk_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunk_from_managed_identity.json index abeaf7e8bdc5..bc95f3bbb1e0 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunk_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunk_from_managed_identity.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize\u0026api-version=1.0", + "RequestUri": "https://login.microsoftonline.com/sanitized/v2.0/.well-known/openid-configuration", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -15,7 +15,7 @@ "Access-Control-Allow-Methods": "GET, OPTIONS", "Access-Control-Allow-Origin": "*", "Cache-Control": "max-age=86400, private", - "Content-Length": "109", + "Content-Length": "1564", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "P3P": "sanitized", @@ -26,44 +26,13 @@ "X-XSS-Protection": "0" }, "ResponseBody": { - "tenant_discovery_endpoint": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration" - } - }, - { - "RequestUri": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1548", - "Content-Type": "application/json; charset=utf-8", - "Date": "sanitized", - "P3P": "sanitized", - "Set-Cookie": "sanitized", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "token_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": [ "client_secret_post", "private_key_jwt", "client_secret_basic" ], - "jwks_uri": "https://login.windows-ppe.net/sanitized/discovery/v2.0/keys", + "jwks_uri": "https://login.microsoftonline.com/sanitized/discovery/v2.0/keys", "response_modes_supported": [ "query", "fragment", @@ -87,14 +56,14 @@ "email", "offline_access" ], - "issuer": "https://login.windows-ppe.net/sanitized/v2.0", + "issuer": "https://login.microsoftonline.com/sanitized/v2.0", "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft-ppe.com/oidc/userinfo", - "authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/devicecode", + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/logout", + "end_session_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/logout", "claims_supported": [ "sub", "iss", @@ -116,12 +85,12 @@ "c_hash", "email" ], - "kerberos_endpoint": "https://login.windows-ppe.net/sanitized/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "windows-ppe.net", - "cloud_graph_host_name": "graph.ppe.windows.net", - "msgraph_host": "graph.microsoft-ppe.com", - "rbac_url": "https://pas.windows-ppe.net" + "kerberos_endpoint": "https://login.microsoftonline.com/sanitized/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" } }, { @@ -131,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -198,7 +166,7 @@ } }, { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -207,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.21.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -222,7 +189,7 @@ "ResponseHeaders": { "Cache-Control": "no-store, no-cache", "client-request-id": "sanitized", - "Content-Length": "90", + "Content-Length": "111", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -233,13 +200,13 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, "access_token": "Sanitized" } }, @@ -250,12 +217,13 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -263,7 +231,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "172ms" + "X-Processing-Time": "86ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunk_not_existing_throws.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunk_not_existing_throws.json index 7528838267e9..81d5517ec14f 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunk_not_existing_throws.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunk_not_existing_throws.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,7 +15,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -23,7 +24,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "674ms" + "X-Processing-Time": "79ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunks.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunks.json index e10b51c62d8c..d742710e5b77 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunks.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunks.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,7 +15,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -23,7 +24,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "183ms" + "X-Processing-Time": "77ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunks_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunks_from_managed_identity.json index ca87e951ae3f..1f0a5501d12e 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunks_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_get_trunks_from_managed_identity.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize\u0026api-version=1.0", + "RequestUri": "https://login.microsoftonline.com/sanitized/v2.0/.well-known/openid-configuration", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -15,7 +15,7 @@ "Access-Control-Allow-Methods": "GET, OPTIONS", "Access-Control-Allow-Origin": "*", "Cache-Control": "max-age=86400, private", - "Content-Length": "109", + "Content-Length": "1564", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "P3P": "sanitized", @@ -26,44 +26,13 @@ "X-XSS-Protection": "0" }, "ResponseBody": { - "tenant_discovery_endpoint": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration" - } - }, - { - "RequestUri": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1548", - "Content-Type": "application/json; charset=utf-8", - "Date": "sanitized", - "P3P": "sanitized", - "Set-Cookie": "sanitized", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "token_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": [ "client_secret_post", "private_key_jwt", "client_secret_basic" ], - "jwks_uri": "https://login.windows-ppe.net/sanitized/discovery/v2.0/keys", + "jwks_uri": "https://login.microsoftonline.com/sanitized/discovery/v2.0/keys", "response_modes_supported": [ "query", "fragment", @@ -87,14 +56,14 @@ "email", "offline_access" ], - "issuer": "https://login.windows-ppe.net/sanitized/v2.0", + "issuer": "https://login.microsoftonline.com/sanitized/v2.0", "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft-ppe.com/oidc/userinfo", - "authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/devicecode", + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/logout", + "end_session_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/logout", "claims_supported": [ "sub", "iss", @@ -116,12 +85,12 @@ "c_hash", "email" ], - "kerberos_endpoint": "https://login.windows-ppe.net/sanitized/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "windows-ppe.net", - "cloud_graph_host_name": "graph.ppe.windows.net", - "msgraph_host": "graph.microsoft-ppe.com", - "rbac_url": "https://pas.windows-ppe.net" + "kerberos_endpoint": "https://login.microsoftonline.com/sanitized/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" } }, { @@ -131,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -198,7 +166,7 @@ } }, { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -207,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.21.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -222,7 +189,7 @@ "ResponseHeaders": { "Cache-Control": "no-store, no-cache", "client-request-id": "sanitized", - "Content-Length": "90", + "Content-Length": "111", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -233,13 +200,13 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, "access_token": "Sanitized" } }, @@ -250,12 +217,13 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -263,7 +231,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "528ms" + "X-Processing-Time": "71ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_routes.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_routes.json index 7afdc55f6cda..edb5c8f0504c 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_routes.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_routes.json @@ -9,7 +9,7 @@ "Connection": "keep-alive", "Content-Length": "137", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -26,7 +26,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "234", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -34,7 +35,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "328ms" + "X-Processing-Time": "153ms" }, "ResponseBody": { "trunks": { @@ -64,7 +65,7 @@ "Connection": "keep-alive", "Content-Length": "143", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -81,7 +82,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "240", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -89,7 +91,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "314ms" + "X-Processing-Time": "204ms" }, "ResponseBody": { "trunks": { @@ -117,7 +119,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -125,7 +127,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "240", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -133,7 +136,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "172ms" + "X-Processing-Time": "66ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_routes_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_routes_from_managed_identity.json index 952953ccea52..d759f2ace02e 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_routes_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_routes_from_managed_identity.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize\u0026api-version=1.0", + "RequestUri": "https://login.microsoftonline.com/sanitized/v2.0/.well-known/openid-configuration", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -15,7 +15,7 @@ "Access-Control-Allow-Methods": "GET, OPTIONS", "Access-Control-Allow-Origin": "*", "Cache-Control": "max-age=86400, private", - "Content-Length": "109", + "Content-Length": "1564", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "P3P": "sanitized", @@ -26,44 +26,13 @@ "X-XSS-Protection": "0" }, "ResponseBody": { - "tenant_discovery_endpoint": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration" - } - }, - { - "RequestUri": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1548", - "Content-Type": "application/json; charset=utf-8", - "Date": "sanitized", - "P3P": "sanitized", - "Set-Cookie": "sanitized", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "token_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": [ "client_secret_post", "private_key_jwt", "client_secret_basic" ], - "jwks_uri": "https://login.windows-ppe.net/sanitized/discovery/v2.0/keys", + "jwks_uri": "https://login.microsoftonline.com/sanitized/discovery/v2.0/keys", "response_modes_supported": [ "query", "fragment", @@ -87,14 +56,14 @@ "email", "offline_access" ], - "issuer": "https://login.windows-ppe.net/sanitized/v2.0", + "issuer": "https://login.microsoftonline.com/sanitized/v2.0", "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft-ppe.com/oidc/userinfo", - "authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/devicecode", + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/logout", + "end_session_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/logout", "claims_supported": [ "sub", "iss", @@ -116,12 +85,12 @@ "c_hash", "email" ], - "kerberos_endpoint": "https://login.windows-ppe.net/sanitized/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "windows-ppe.net", - "cloud_graph_host_name": "graph.ppe.windows.net", - "msgraph_host": "graph.microsoft-ppe.com", - "rbac_url": "https://pas.windows-ppe.net" + "kerberos_endpoint": "https://login.microsoftonline.com/sanitized/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" } }, { @@ -131,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -198,7 +166,7 @@ } }, { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -207,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.21.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -222,7 +189,7 @@ "ResponseHeaders": { "Cache-Control": "no-store, no-cache", "client-request-id": "sanitized", - "Content-Length": "90", + "Content-Length": "111", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -233,13 +200,13 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, "access_token": "Sanitized" } }, @@ -252,7 +219,7 @@ "Connection": "keep-alive", "Content-Length": "137", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "routes": [ @@ -266,7 +233,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "234", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -274,7 +242,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "313ms" + "X-Processing-Time": "210ms" }, "ResponseBody": { "trunks": { @@ -304,7 +272,7 @@ "Connection": "keep-alive", "Content-Length": "143", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "routes": [ @@ -318,7 +286,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "240", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -326,7 +295,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "314ms" + "X-Processing-Time": "196ms" }, "ResponseBody": { "trunks": { @@ -354,12 +323,13 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "240", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -367,7 +337,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "165ms" + "X-Processing-Time": "78ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunk.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunk.json index a64dd0342eac..ab5da43a32f7 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunk.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunk.json @@ -9,7 +9,7 @@ "Connection": "keep-alive", "Content-Length": "62", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -23,7 +23,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -31,7 +32,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "441ms" + "X-Processing-Time": "280ms" }, "ResponseBody": { "trunks": { @@ -52,7 +53,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -60,7 +61,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -68,7 +70,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "169ms" + "X-Processing-Time": "79ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunk_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunk_from_managed_identity.json index f79c60f12ff1..120afb8c4b3b 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunk_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunk_from_managed_identity.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize\u0026api-version=1.0", + "RequestUri": "https://login.microsoftonline.com/sanitized/v2.0/.well-known/openid-configuration", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -15,7 +15,7 @@ "Access-Control-Allow-Methods": "GET, OPTIONS", "Access-Control-Allow-Origin": "*", "Cache-Control": "max-age=86400, private", - "Content-Length": "109", + "Content-Length": "1564", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "P3P": "sanitized", @@ -26,44 +26,13 @@ "X-XSS-Protection": "0" }, "ResponseBody": { - "tenant_discovery_endpoint": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration" - } - }, - { - "RequestUri": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1548", - "Content-Type": "application/json; charset=utf-8", - "Date": "sanitized", - "P3P": "sanitized", - "Set-Cookie": "sanitized", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "token_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": [ "client_secret_post", "private_key_jwt", "client_secret_basic" ], - "jwks_uri": "https://login.windows-ppe.net/sanitized/discovery/v2.0/keys", + "jwks_uri": "https://login.microsoftonline.com/sanitized/discovery/v2.0/keys", "response_modes_supported": [ "query", "fragment", @@ -87,14 +56,14 @@ "email", "offline_access" ], - "issuer": "https://login.windows-ppe.net/sanitized/v2.0", + "issuer": "https://login.microsoftonline.com/sanitized/v2.0", "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft-ppe.com/oidc/userinfo", - "authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/devicecode", + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/logout", + "end_session_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/logout", "claims_supported": [ "sub", "iss", @@ -116,12 +85,12 @@ "c_hash", "email" ], - "kerberos_endpoint": "https://login.windows-ppe.net/sanitized/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "windows-ppe.net", - "cloud_graph_host_name": "graph.ppe.windows.net", - "msgraph_host": "graph.microsoft-ppe.com", - "rbac_url": "https://pas.windows-ppe.net" + "kerberos_endpoint": "https://login.microsoftonline.com/sanitized/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" } }, { @@ -131,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -198,7 +166,7 @@ } }, { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -207,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.21.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -222,7 +189,7 @@ "ResponseHeaders": { "Cache-Control": "no-store, no-cache", "client-request-id": "sanitized", - "Content-Length": "90", + "Content-Length": "111", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -233,13 +200,13 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, "access_token": "Sanitized" } }, @@ -252,7 +219,7 @@ "Connection": "keep-alive", "Content-Length": "62", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "trunks": { @@ -263,7 +230,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -271,7 +239,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "470ms" + "X-Processing-Time": "267ms" }, "ResponseBody": { "trunks": { @@ -292,12 +260,13 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -305,7 +274,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "162ms" + "X-Processing-Time": "89ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunks.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunks.json index 0af1f01c846e..8217e006055e 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunks.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunks.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,7 +15,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -23,7 +24,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "165ms" + "X-Processing-Time": "76ms" }, "ResponseBody": { "trunks": { @@ -46,7 +47,7 @@ "Connection": "keep-alive", "Content-Length": "118", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -62,7 +63,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -70,7 +72,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1066ms" + "X-Processing-Time": "947ms" }, "ResponseBody": { "trunks": { @@ -88,7 +90,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -96,7 +98,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -104,7 +107,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "166ms" + "X-Processing-Time": "77ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunks_empty_list.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunks_empty_list.json index 78fcd5b0a520..7f5a75425ca6 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunks_empty_list.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunks_empty_list.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,7 +15,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -23,7 +24,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "164ms" + "X-Processing-Time": "95ms" }, "ResponseBody": { "trunks": { @@ -46,7 +47,7 @@ "Connection": "keep-alive", "Content-Length": "68", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -59,7 +60,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "25", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -67,7 +69,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "390ms" + "X-Processing-Time": "243ms" }, "ResponseBody": { "trunks": {}, @@ -81,7 +83,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -89,7 +91,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "25", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -97,7 +100,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "169ms" + "X-Processing-Time": "65ms" }, "ResponseBody": { "trunks": {}, diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunks_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunks_from_managed_identity.json index 22a065d15bd4..4891d0aabbcc 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunks_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e.pyTestSipRoutingClientE2Etest_set_trunks_from_managed_identity.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?authorization_endpoint=https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize\u0026api-version=1.0", + "RequestUri": "https://login.microsoftonline.com/sanitized/v2.0/.well-known/openid-configuration", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -15,7 +15,7 @@ "Access-Control-Allow-Methods": "GET, OPTIONS", "Access-Control-Allow-Origin": "*", "Cache-Control": "max-age=86400, private", - "Content-Length": "109", + "Content-Length": "1564", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "P3P": "sanitized", @@ -26,44 +26,13 @@ "X-XSS-Protection": "0" }, "ResponseBody": { - "tenant_discovery_endpoint": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration" - } - }, - { - "RequestUri": "https://login.windows-ppe.net/sanitized/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1548", - "Content-Type": "application/json; charset=utf-8", - "Date": "sanitized", - "P3P": "sanitized", - "Set-Cookie": "sanitized", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "token_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "token_endpoint_auth_methods_supported": [ "client_secret_post", "private_key_jwt", "client_secret_basic" ], - "jwks_uri": "https://login.windows-ppe.net/sanitized/discovery/v2.0/keys", + "jwks_uri": "https://login.microsoftonline.com/sanitized/discovery/v2.0/keys", "response_modes_supported": [ "query", "fragment", @@ -87,14 +56,14 @@ "email", "offline_access" ], - "issuer": "https://login.windows-ppe.net/sanitized/v2.0", + "issuer": "https://login.microsoftonline.com/sanitized/v2.0", "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft-ppe.com/oidc/userinfo", - "authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/devicecode", + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/devicecode", "http_logout_supported": true, "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/logout", + "end_session_endpoint": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/logout", "claims_supported": [ "sub", "iss", @@ -116,12 +85,12 @@ "c_hash", "email" ], - "kerberos_endpoint": "https://login.windows-ppe.net/sanitized/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "windows-ppe.net", - "cloud_graph_host_name": "graph.ppe.windows.net", - "msgraph_host": "graph.microsoft-ppe.com", - "rbac_url": "https://pas.windows-ppe.net" + "kerberos_endpoint": "https://login.microsoftonline.com/sanitized/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" } }, { @@ -131,8 +100,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -198,7 +166,7 @@ } }, { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -207,14 +175,13 @@ "Connection": "keep-alive", "Content-Length": "240", "Content-Type": "application/x-www-form-urlencoded", - "Cookie": "sanitized", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-client-cpu": "x64", "x-client-current-telemetry": "4|730,0|", "x-client-last-telemetry": "4|0|||", "x-client-os": "win32", "x-client-sku": "MSAL.Python", - "x-client-ver": "1.21.0", + "x-client-ver": "1.22.0", "x-ms-lib-capability": "retry-after, h429" }, "RequestBody": "client_id=sanitized\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=sanitized\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", @@ -222,7 +189,7 @@ "ResponseHeaders": { "Cache-Control": "no-store, no-cache", "client-request-id": "sanitized", - "Content-Length": "90", + "Content-Length": "111", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -233,13 +200,13 @@ "X-Content-Type-Options": "nosniff", "x-ms-clitelem": "1,0,0,,", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3598, - "ext_expires_in": 3598, + "expires_in": 86399, + "ext_expires_in": 86399, + "refresh_in": 43199, "access_token": "Sanitized" } }, @@ -250,12 +217,13 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -263,7 +231,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "166ms" + "X-Processing-Time": "75ms" }, "ResponseBody": { "trunks": { @@ -286,7 +254,7 @@ "Connection": "keep-alive", "Content-Length": "118", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "trunks": { @@ -299,7 +267,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -307,7 +276,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1144ms" + "X-Processing-Time": "418ms" }, "ResponseBody": { "trunks": { @@ -325,12 +294,13 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -338,7 +308,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "169ms" + "X-Processing-Time": "72ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_add_trunk.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_add_trunk.json index 01a3af2baa02..0e35fef96efc 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_add_trunk.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_add_trunk.json @@ -8,7 +8,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "62", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -22,7 +22,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "165", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -30,7 +31,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1079ms" + "X-Processing-Time": "325ms" }, "ResponseBody": { "trunks": { @@ -54,7 +55,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -62,7 +63,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "165", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -70,7 +72,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "169ms" + "X-Processing-Time": "70ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_add_trunk_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_add_trunk_from_managed_identity.json index 92fec60bd7b6..8e06465581bc 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_add_trunk_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_add_trunk_from_managed_identity.json @@ -1,20 +1,20 @@ { "Entries": [ { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "Content-Length": "90", + "Content-Length": "92", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -24,13 +24,12 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, "access_token": "Sanitized" } }, @@ -42,7 +41,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "62", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "trunks": { @@ -53,7 +52,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "165", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -61,7 +61,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "950ms" + "X-Processing-Time": "309ms" }, "ResponseBody": { "trunks": { @@ -84,12 +84,13 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "165", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -97,7 +98,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "168ms" + "X-Processing-Time": "63ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_delete_trunk.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_delete_trunk.json index 93835df14075..405ffaf05952 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_delete_trunk.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_delete_trunk.json @@ -8,7 +8,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "40", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -20,7 +20,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -28,7 +29,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "390ms" + "X-Processing-Time": "246ms" }, "ResponseBody": { "trunks": { @@ -46,7 +47,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -54,7 +55,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -62,7 +64,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "169ms" + "X-Processing-Time": "73ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_delete_trunk_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_delete_trunk_from_managed_identity.json index 8ea969d6d38a..da2f54d15c2b 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_delete_trunk_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_delete_trunk_from_managed_identity.json @@ -1,20 +1,20 @@ { "Entries": [ { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "Content-Length": "90", + "Content-Length": "92", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -24,13 +24,12 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, "access_token": "Sanitized" } }, @@ -42,7 +41,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "40", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "trunks": { @@ -51,7 +50,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -59,7 +59,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1143ms" + "X-Processing-Time": "234ms" }, "ResponseBody": { "trunks": { @@ -76,12 +76,13 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -89,7 +90,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "169ms" + "X-Processing-Time": "116ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_routes.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_routes.json index c76551c309c5..6c2bf3ada552 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_routes.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_routes.json @@ -8,7 +8,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "137", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -25,7 +25,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "234", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -33,7 +34,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "313ms" + "X-Processing-Time": "142ms" }, "ResponseBody": { "trunks": { @@ -61,7 +62,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -69,7 +70,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "234", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -77,7 +79,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "176ms" + "X-Processing-Time": "62ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_routes_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_routes_from_managed_identity.json index 4b74d8407e28..7c32051eecc9 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_routes_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_routes_from_managed_identity.json @@ -1,20 +1,20 @@ { "Entries": [ { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "Content-Length": "90", + "Content-Length": "92", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -24,13 +24,12 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, "access_token": "Sanitized" } }, @@ -42,7 +41,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "137", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "routes": [ @@ -56,7 +55,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "234", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -64,7 +64,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "388ms" + "X-Processing-Time": "165ms" }, "ResponseBody": { "trunks": { @@ -91,12 +91,13 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "234", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -104,7 +105,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "167ms" + "X-Processing-Time": "78ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunk.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunk.json index f0fd6849ff65..bd6d6b2bfb53 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunk.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunk.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,7 +15,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -23,7 +24,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "168ms" + "X-Processing-Time": "77ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunk_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunk_from_managed_identity.json index b8f42b27d83d..42142d374c4c 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunk_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunk_from_managed_identity.json @@ -1,20 +1,20 @@ { "Entries": [ { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "Content-Length": "90", + "Content-Length": "92", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -24,13 +24,12 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, "access_token": "Sanitized" } }, @@ -40,12 +39,13 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -53,7 +53,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "165ms" + "X-Processing-Time": "59ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunk_not_existing_throws.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunk_not_existing_throws.json index 06f0d0d3ce59..e97e5bfc4015 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunk_not_existing_throws.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunk_not_existing_throws.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,7 +15,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -23,7 +24,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "736ms" + "X-Processing-Time": "69ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunks.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunks.json index 14e331ea6b68..f81743971556 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunks.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunks.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,7 +15,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -23,7 +24,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "165ms" + "X-Processing-Time": "66ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunks_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunks_from_managed_identity.json index 56da260e0781..02da04c218f5 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunks_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_get_trunks_from_managed_identity.json @@ -1,20 +1,20 @@ { "Entries": [ { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "Content-Length": "90", + "Content-Length": "92", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -24,13 +24,12 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, "access_token": "Sanitized" } }, @@ -40,12 +39,13 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -53,7 +53,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "166ms" + "X-Processing-Time": "74ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_routes.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_routes.json index 8f1575c93c18..9ee0dbda863a 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_routes.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_routes.json @@ -8,7 +8,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "137", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -25,7 +25,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "234", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -33,7 +34,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "324ms" + "X-Processing-Time": "142ms" }, "ResponseBody": { "trunks": { @@ -62,7 +63,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "143", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -79,7 +80,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "240", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -87,7 +89,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "318ms" + "X-Processing-Time": "175ms" }, "ResponseBody": { "trunks": { @@ -115,7 +117,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -123,7 +125,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "240", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -131,7 +134,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "173ms" + "X-Processing-Time": "94ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_routes_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_routes_from_managed_identity.json index 67f0767ec8f7..e8e9285d48d5 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_routes_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_routes_from_managed_identity.json @@ -1,20 +1,20 @@ { "Entries": [ { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "Content-Length": "90", + "Content-Length": "92", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -24,13 +24,12 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, "access_token": "Sanitized" } }, @@ -42,7 +41,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "137", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "routes": [ @@ -56,7 +55,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "234", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -64,7 +64,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "744ms" + "X-Processing-Time": "191ms" }, "ResponseBody": { "trunks": { @@ -93,7 +93,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "143", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "routes": [ @@ -107,7 +107,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "240", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -115,7 +116,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "306ms" + "X-Processing-Time": "146ms" }, "ResponseBody": { "trunks": { @@ -142,12 +143,13 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "240", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -155,7 +157,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "484ms" + "X-Processing-Time": "67ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunk.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunk.json index 98979d170dde..c53f528ede06 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunk.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunk.json @@ -8,7 +8,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "62", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -22,7 +22,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -30,7 +31,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "449ms" + "X-Processing-Time": "207ms" }, "ResponseBody": { "trunks": { @@ -51,7 +52,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -59,7 +60,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -67,7 +69,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "882ms" + "X-Processing-Time": "60ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunk_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunk_from_managed_identity.json index d91517d4add1..ba6b686b9afa 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunk_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunk_from_managed_identity.json @@ -1,20 +1,20 @@ { "Entries": [ { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "Content-Length": "90", + "Content-Length": "92", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -24,13 +24,12 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, "access_token": "Sanitized" } }, @@ -42,7 +41,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "62", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "trunks": { @@ -53,7 +52,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -61,7 +61,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "431ms" + "X-Processing-Time": "236ms" }, "ResponseBody": { "trunks": { @@ -81,12 +81,13 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -94,7 +95,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "216ms" + "X-Processing-Time": "85ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunks.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunks.json index 04f1e9f233a2..2cc171b3942b 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunks.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunks.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,7 +15,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -23,7 +24,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "165ms" + "X-Processing-Time": "79ms" }, "ResponseBody": { "trunks": { @@ -45,7 +46,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "118", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -61,7 +62,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -69,7 +71,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1308ms" + "X-Processing-Time": "852ms" }, "ResponseBody": { "trunks": { @@ -87,7 +89,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -95,7 +97,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -103,7 +106,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "349ms" + "X-Processing-Time": "71ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunks_empty_list.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunks_empty_list.json index e0111e4fca81..22ba9bd7481f 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunks_empty_list.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunks_empty_list.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -15,7 +15,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -23,7 +24,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "273ms" + "X-Processing-Time": "76ms" }, "ResponseBody": { "trunks": { @@ -45,7 +46,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "68", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -58,7 +59,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "25", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -66,7 +68,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "405ms" + "X-Processing-Time": "257ms" }, "ResponseBody": { "trunks": {}, @@ -80,7 +82,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Content-Length": "0", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)", + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)", "x-ms-content-sha256": "sanitized", "x-ms-date": "sanitized", "x-ms-return-client-request-id": "true" @@ -88,7 +90,8 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "25", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -96,7 +99,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "165ms" + "X-Processing-Time": "70ms" }, "ResponseBody": { "trunks": {}, diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunks_from_managed_identity.json b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunks_from_managed_identity.json index 654c5332697f..796e479b4106 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunks_from_managed_identity.json +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_sip_routing_client_e2e_async.pyTestSipRoutingClientE2EAsynctest_set_trunks_from_managed_identity.json @@ -1,20 +1,20 @@ { "Entries": [ { - "RequestUri": "https://login.windows-ppe.net/sanitized/oauth2/v2.0/token", + "RequestUri": "https://login.microsoftonline.com/sanitized/oauth2/v2.0/token", "RequestMethod": "POST", "RequestHeaders": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", - "Content-Length": "131", + "Content-Length": "226", "Content-Type": "application/x-www-form-urlencoded", - "User-Agent": "azsdk-python-identity/1.12.0 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-identity/1.14.0b2 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, - "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default", + "RequestBody": "client_id=sanitized\u0026client_secret=sanitized\u0026grant_type=client_credentials\u0026scope=https%3A%2F%2Fcommunication.azure.com%2F%2F.default\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D", "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-store, no-cache", - "Content-Length": "90", + "Content-Length": "92", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", "Expires": "-1", @@ -24,13 +24,12 @@ "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "x-ms-ests-server": "sanitized", - "x-ms-httpver": "1.1", "X-XSS-Protection": "0" }, "ResponseBody": { "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, + "expires_in": 86399, + "ext_expires_in": 86399, "access_token": "Sanitized" } }, @@ -40,12 +39,13 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "118", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -53,7 +53,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "163ms" + "X-Processing-Time": "74ms" }, "ResponseBody": { "trunks": { @@ -75,7 +75,7 @@ "Accept-Encoding": "gzip, deflate", "Content-Length": "118", "Content-Type": "application/merge-patch\u002Bjson", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": { "trunks": { @@ -88,7 +88,8 @@ }, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -96,7 +97,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "1257ms" + "X-Processing-Time": "424ms" }, "ResponseBody": { "trunks": { @@ -113,12 +114,13 @@ "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", - "User-Agent": "azsdk-python-communication-phonenumbers/1.1.0b4 Python/3.11.0 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azsdk-python-communication-phonenumbers/1.1.1 Python/3.9.13 (Windows-10-10.0.22621-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "api-supported-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview, 2023-03-01", + "api-deprecated-versions": "2021-05-01-preview, 2022-09-01-preview, 2023-01-01-preview", + "api-supported-versions": "2023-03-01, 2023-04-01-preview", "Content-Length": "71", "Content-Type": "application/json; charset=utf-8", "Date": "sanitized", @@ -126,7 +128,7 @@ "Strict-Transport-Security": "max-age=2592000", "X-Azure-Ref": "sanitized", "X-Cache": "CONFIG_NOCACHE", - "X-Processing-Time": "172ms" + "X-Processing-Time": "75ms" }, "ResponseBody": { "trunks": { diff --git a/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client.py b/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client.py index 6e0f605ca012..af7b5acd67d8 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client.py +++ b/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client.py @@ -375,3 +375,39 @@ def test_list_offerings_from_managed_identity(self): def test_list_offerings(self): offerings = self.phone_number_client.list_available_offerings("US") assert offerings.next() + + @recorded_by_proxy + def test_search_operator_information_with_too_many_phone_numbers(self): + if self.is_playback(): + phone_numbers = [ "sanitized", "sanitized" ] + else: + phone_numbers = [ self.phone_number, self.phone_number ] + + with pytest.raises(Exception) as ex: + self.phone_number_client.search_operator_information(phone_numbers) + + assert is_client_error_status_code( + ex.value.status_code) is True, 'Status code {ex.value.status_code} does not indicate a client error' # type: ignore + assert ex.value.message is not None # type: ignore + + @recorded_by_proxy + def test_search_operator_information_with_list(self): + if self.is_playback(): + phone_number = "sanitized" + else: + phone_number = self.phone_number + + results = self.phone_number_client.search_operator_information([ phone_number ]) + assert len(results.values) == 1 + assert results.values[0].phone_number == self.phone_number + + @recorded_by_proxy + def test_search_operator_information_with_single_string(self): + if self.is_playback(): + phone_number = "sanitized" + else: + phone_number = self.phone_number + + results = self.phone_number_client.search_operator_information(phone_number) + assert len(results.values) == 1 + assert results.values[0].phone_number == self.phone_number diff --git a/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client_async.py b/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client_async.py index 9a119142606f..0351194fbc75 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client_async.py +++ b/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client_async.py @@ -453,3 +453,42 @@ async def test_list_offerings(self): async for item in offerings: items.append(item) assert len(items) > 0 + + @recorded_by_proxy_async + async def test_search_operator_information_with_too_many_phone_numbers(self): + if self.is_playback(): + phone_numbers = [ "sanitized", "sanitized" ] + else: + phone_numbers = [ self.phone_number, self.phone_number ] + + with pytest.raises(Exception) as ex: + async with self.phone_number_client: + await self.phone_number_client.search_operator_information(phone_numbers) + + assert is_client_error_status_code( + ex.value.status_code) is True, 'Status code {ex.value.status_code} does not indicate a client error' # type: ignore + assert ex.value.message is not None # type: ignore + + @recorded_by_proxy_async + async def test_search_operator_information_with_list(self): + if self.is_playback(): + phone_number = "sanitized" + else: + phone_number = self.phone_number + + async with self.phone_number_client: + results = await self.phone_number_client.search_operator_information([ phone_number ]) + assert len(results.values) == 1 + assert results.values[0].phone_number == self.phone_number + + @recorded_by_proxy_async + async def test_search_operator_information_with_single_string(self): + if self.is_playback(): + phone_number = "sanitized" + else: + phone_number = self.phone_number + + async with self.phone_number_client: + results = await self.phone_number_client.search_operator_information(phone_number) + assert len(results.values) == 1 + assert results.values[0].phone_number == self.phone_number diff --git a/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_operations.py b/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_operations.py index 5699cbc2700f..caba588818d3 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_operations.py +++ b/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_operations.py @@ -7,10 +7,11 @@ import pytest from azure.core.rest import HttpRequest from azure.communication.phonenumbers._generated.operations._operations import ( -build_phone_numbers_get_search_result_request, +build_phone_numbers_get_search_result_request, build_phone_numbers_purchase_phone_numbers_request, build_phone_numbers_get_operation_request, -build_phone_numbers_cancel_operation_request +build_phone_numbers_cancel_operation_request, +build_phone_numbers_operator_information_search_request, ) test_id = "test_id" @@ -21,7 +22,7 @@ def test_build_phone_numbers_get_search_result_request(): assert isinstance(request, HttpRequest) assert request.method == "GET" assert test_id in request.url - assert "api-version=2022-12-01" in request.url + assert "api-version=2023-05-01-preview" in request.url assert request.headers["Accept"] == "application/json" def test_build_phone_numbers_purchase_phone_numbers_request(): @@ -46,4 +47,12 @@ def test_build_phone_numbers_cancel_operation_request(): assert isinstance(request, HttpRequest) assert request.method == "DELETE" assert test_id in request.url + assert request.headers["Accept"] == "application/json" + +def test_build_phone_numbers_operator_information_search_request(): + request = build_phone_numbers_operator_information_search_request() + + assert isinstance(request, HttpRequest) + assert request.method == "POST" + assert "operatorInformation/:search" in request.url assert request.headers["Accept"] == "application/json" \ No newline at end of file