diff --git a/sdk/communication/azure-communication-identity/CHANGELOG.md b/sdk/communication/azure-communication-identity/CHANGELOG.md index 761eadd6ed46..a7fc3e308f73 100644 --- a/sdk/communication/azure-communication-identity/CHANGELOG.md +++ b/sdk/communication/azure-communication-identity/CHANGELOG.md @@ -1,14 +1,12 @@ # Release History -## 1.2.1 (Unreleased) +## 1.3.0 (Unreleased) ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Added support to customize the Communication Identity access token's validity period: + - `create_user_and_token` and `get_token` methods in both sync and async clients can now accept keyword argument `token_expires_in: ~datetime.timedelta` that provides the ability to create a Communication Identity access token with custom expiration. +- Added a new API version `ApiVersion.V2022_10_01` that is now the default API version. ## 1.2.0 (2022-08-24) diff --git a/sdk/communication/azure-communication-identity/README.md b/sdk/communication/azure-communication-identity/README.md index e24255603b95..72ebd017f333 100644 --- a/sdk/communication/azure-communication-identity/README.md +++ b/sdk/communication/azure-communication-identity/README.md @@ -76,6 +76,17 @@ Pass in the user object as a parameter, and a list of `CommunicationTokenScope`. tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT]) print("Token issued with value: " + tokenresponse.token) ``` + +### Issuing or Refreshing an access token with custom expiration for a user + +You can specify expiration time for the token. The token can be configured to expire in as little as one hour or as long as 24 hours. The default expiration time is 24 hours. + +```python +token_expires_in = timedelta(hours=1) +tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) +print("Token issued with value: " + tokenresponse.token) +``` + ### Creating a user and a token in a single request For convenience, use `create_user_and_token` to create a new user and issue a token with one function call. This translates into a single web request as opposed to creating a user first and then issuing a token. @@ -85,6 +96,16 @@ print("User id:" + user.properties['id']) print("Token issued with value: " + tokenresponse.token) ``` +### Creating a user and a token with custom expiration in a single request + +You can specify expiration time for the token. The token can be configured to expire in as little as one hour or as long as 24 hours. The default expiration time is 24 hours. +```python +token_expires_in = timedelta(hours=1) +user, tokenresponse = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) +print("User id:" + user.properties['id']) +print("Token issued with value: " + tokenresponse.token) +``` + ### Revoking a user's access tokens Use `revoke_tokens` to revoke all access tokens for a user. Pass in the user object as a parameter diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_api_versions.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_api_versions.py index 5322934198a1..8958bc000e6e 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_api_versions.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_api_versions.py @@ -10,6 +10,7 @@ class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta): V2021_03_07 = "2021-03-07" V2022_06_01 = "2022-06-01" + V2022_10_01 = "2022-10-01" -DEFAULT_VERSION = ApiVersion.V2022_06_01 +DEFAULT_VERSION = ApiVersion.V2022_10_01 diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py index ce2fd3244576..4c11b498db34 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_communication_identity_client.py @@ -4,7 +4,7 @@ # Licensed under the MIT License. # ------------------------------------ -from typing import TYPE_CHECKING, Any, List, Union, Tuple +from typing import TYPE_CHECKING, Any, Tuple from azure.core.tracing.decorator import distributed_trace from azure.core.credentials import AccessToken @@ -15,6 +15,7 @@ from ._shared.models import CommunicationUserIdentifier from ._version import SDK_MONIKER from ._api_versions import DEFAULT_VERSION +from ._utils import convert_timedelta_to_mins if TYPE_CHECKING: from azure.core.credentials import TokenCredential @@ -35,6 +36,7 @@ class CommunicationIdentityClient(object): # pylint: disable=client-accepts-api- :language: python :dedent: 8 """ + def __init__( self, endpoint, # type: str @@ -91,16 +93,14 @@ def create_user(self, **kwargs): :return: CommunicationUserIdentifier :rtype: ~azure.communication.identity.CommunicationUserIdentifier """ - api_version = kwargs.pop("api_version", self._api_version) return self._identity_service_client.communication_identity.create( - api_version=api_version, - cls=lambda pr, u, e: CommunicationUserIdentifier(u.identity.id, raw_id=u.identity.id), + cls=lambda pr, u, e: CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), **kwargs) @distributed_trace def create_user_and_token( self, - scopes, # type: List[Union[str, CommunicationTokenScope]] + scopes, # List[Union[str, CommunicationTokenScope]] **kwargs # type: Any ): # type: (...) -> Tuple[CommunicationUserIdentifier, AccessToken] @@ -108,16 +108,22 @@ def create_user_and_token( :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] + :keyword token_expires_in: Custom validity period of the Communication Identity access token + within [1, 24] hours range. If not provided, the default value of 24 hours will be used. + :paramtype token_expires_in: ~datetime.timedelta :return: A tuple of a CommunicationUserIdentifier and a AccessToken. :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ - api_version = kwargs.pop("api_version", self._api_version) + token_expires_in = kwargs.pop('token_expires_in', None) + request_body = { + 'createTokenWithScopes': scopes, + 'expiresInMinutes': convert_timedelta_to_mins(token_expires_in) + } return self._identity_service_client.communication_identity.create( - cls=lambda pr, u, e: (CommunicationUserIdentifier(u.identity.id, raw_id=u.identity.id), - AccessToken(u.access_token.token, u.access_token.expires_on)), - create_token_with_scopes=scopes, - api_version=api_version, + cls=lambda pr, u, e: (CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), + AccessToken(u['accessToken']['token'], u['accessToken']['expiresOn'])), + body=request_body, **kwargs) @distributed_trace @@ -134,10 +140,8 @@ def delete_user( :return: None :rtype: None """ - api_version = kwargs.pop("api_version", self._api_version) self._identity_service_client.communication_identity.delete( user.properties['id'], - api_version=api_version, **kwargs) @distributed_trace @@ -154,15 +158,22 @@ def get_token( :type user: ~azure.communication.identity.CommunicationUserIdentifier :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] + :keyword token_expires_in: Custom validity period of the Communication Identity access token + within [1, 24] hours range. If not provided, the default value of 24 hours will be used. + :paramtype token_expires_in: ~datetime.timedelta :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ - api_version = kwargs.pop("api_version", self._api_version) + token_expires_in = kwargs.pop('token_expires_in', None) + request_body = { + 'scopes': scopes, + 'expiresInMinutes': convert_timedelta_to_mins(token_expires_in) + } + return self._identity_service_client.communication_identity.issue_access_token( user.properties['id'], - scopes, - api_version=api_version, - cls=lambda pr, u, e: AccessToken(u.token, u.expires_on), + body=request_body, + cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) @distributed_trace @@ -179,10 +190,8 @@ def revoke_tokens( :return: None :rtype: None """ - api_version = kwargs.pop("api_version", self._api_version) return self._identity_service_client.communication_identity.revoke_access_tokens( user.properties['id'] if user else None, - api_version=api_version, **kwargs) @distributed_trace @@ -207,12 +216,15 @@ def get_token_for_teams_user( :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ - api_version = kwargs.pop("api_version", self._api_version) + + request_body = { + "token": aad_token, + "appId": client_id, + "userId": user_object_id + } + return self._identity_service_client.communication_identity.exchange_teams_user_access_token( - token=aad_token, - app_id=client_id, - user_id=user_object_id, - api_version=api_version, - cls=lambda pr, u, e: AccessToken(u.token, u.expires_on), + body=request_body, + cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) \ No newline at end of file diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/__init__.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/__init__.py index 84a8463cefb6..615062210c70 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/__init__.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/__init__.py @@ -6,10 +6,16 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._communication_identity_client import CommunicationIdentityClient -__all__ = ['CommunicationIdentityClient'] +from ._client import CommunicationIdentityClient -# `._patch.py` is used for handwritten extensions to the generated code -# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md -from ._patch import patch_sdk -patch_sdk() +try: + from ._patch import __all__ as _patch_all + from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +except ImportError: + _patch_all = [] +from ._patch import patch_sdk as _patch_sdk + +__all__ = ["CommunicationIdentityClient"] +__all__.extend([p for p in _patch_all if p not in __all__]) + +_patch_sdk() diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_client.py new file mode 100644 index 000000000000..451e0a5c8c9d --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_client.py @@ -0,0 +1,89 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- + +from copy import deepcopy +from typing import Any, TYPE_CHECKING + +from azure.core import PipelineClient +from azure.core.rest import HttpRequest, HttpResponse + +from ._configuration import CommunicationIdentityClientConfiguration +from ._serialization import Deserializer, Serializer +from .operations import CommunicationIdentityOperations + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Dict + + +class CommunicationIdentityClient: # pylint: disable=client-accepts-api-version-keyword + """Azure Communication Identity Service. + + :ivar communication_identity: CommunicationIdentityOperations operations + :vartype communication_identity: + azure.communication.identity.operations.CommunicationIdentityOperations + :param endpoint: The communication resource, for example + https://my-resource.communication.azure.com. Required. + :type endpoint: str + :keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str + """ + + def __init__( # pylint: disable=missing-client-constructor-parameter-credential + self, endpoint: str, **kwargs: Any + ) -> None: + _endpoint = "{endpoint}" + self._config = CommunicationIdentityClientConfiguration(endpoint=endpoint, **kwargs) + self._client = PipelineClient(base_url=_endpoint, config=self._config, **kwargs) + + self._serialize = Serializer() + self._deserialize = Deserializer() + self._serialize.client_side_validation = False + self.communication_identity = CommunicationIdentityOperations( + self._client, self._config, self._serialize, self._deserialize + ) + + def send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse: + """Runs the network request through the client's chained policies. + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> response = client.send_request(request) + + + For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request + + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.rest.HttpResponse + """ + + request_copy = deepcopy(request) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) + return self._client.send_request(request_copy, **kwargs) + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> CommunicationIdentityClient + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_configuration.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_configuration.py index 5c443e3d572e..b79a3fb52a9a 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_configuration.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_configuration.py @@ -6,17 +6,14 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import TYPE_CHECKING +from typing import Any from azure.core.configuration import Configuration from azure.core.pipeline import policies -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any - VERSION = "unknown" + class CommunicationIdentityClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes """Configuration for CommunicationIdentityClient. @@ -24,21 +21,16 @@ class CommunicationIdentityClientConfiguration(Configuration): # pylint: disabl attributes. :param endpoint: The communication resource, for example - https://my-resource.communication.azure.com. + https://my-resource.communication.azure.com. Required. :type endpoint: str - :keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ - def __init__( - self, - endpoint, # type: str - **kwargs # type: Any - ): - # type: (...) -> None + def __init__(self, endpoint: str, **kwargs: Any) -> None: super(CommunicationIdentityClientConfiguration, self).__init__(**kwargs) - api_version = kwargs.pop('api_version', "2022-06-01") # type: str + api_version = kwargs.pop("api_version", "2022-10-01") # type: str if endpoint is None: raise ValueError("Parameter 'endpoint' must not be None.") diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_serialization.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_serialization.py new file mode 100644 index 000000000000..648f84cc4e65 --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_serialization.py @@ -0,0 +1,1970 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- + +# pylint: skip-file + +from base64 import b64decode, b64encode +import calendar +import datetime +import decimal +import email +from enum import Enum +import json +import logging +import re +import sys +import codecs + +try: + from urllib import quote # type: ignore +except ImportError: + from urllib.parse import quote # type: ignore +import xml.etree.ElementTree as ET + +import isodate + +from typing import Dict, Any, cast, TYPE_CHECKING + +from azure.core.exceptions import DeserializationError, SerializationError, raise_with_traceback + +_BOM = codecs.BOM_UTF8.decode(encoding="utf-8") + +if TYPE_CHECKING: + from typing import Optional, Union, AnyStr, IO, Mapping + + +class RawDeserializer: + + # Accept "text" because we're open minded people... + JSON_REGEXP = re.compile(r"^(application|text)/([a-z+.]+\+)?json$") + + # Name used in context + CONTEXT_NAME = "deserialized_data" + + @classmethod + def deserialize_from_text(cls, data, content_type=None): + # type: (Optional[Union[AnyStr, IO]], Optional[str]) -> Any + """Decode data according to content-type. + + Accept a stream of data as well, but will be load at once in memory for now. + + If no content-type, will return the string version (not bytes, not stream) + + :param data: Input, could be bytes or stream (will be decoded with UTF8) or text + :type data: str or bytes or IO + :param str content_type: The content type. + """ + if hasattr(data, "read"): + # Assume a stream + data = cast(IO, data).read() + + if isinstance(data, bytes): + data_as_str = data.decode(encoding="utf-8-sig") + else: + # Explain to mypy the correct type. + data_as_str = cast(str, data) + + # Remove Byte Order Mark if present in string + data_as_str = data_as_str.lstrip(_BOM) + + if content_type is None: + return data + + if cls.JSON_REGEXP.match(content_type): + try: + return json.loads(data_as_str) + except ValueError as err: + raise DeserializationError("JSON is invalid: {}".format(err), err) + elif "xml" in (content_type or []): + try: + + try: + if isinstance(data, unicode): # type: ignore + # If I'm Python 2.7 and unicode XML will scream if I try a "fromstring" on unicode string + data_as_str = data_as_str.encode(encoding="utf-8") # type: ignore + except NameError: + pass + + return ET.fromstring(data_as_str) # nosec + except ET.ParseError: + # It might be because the server has an issue, and returned JSON with + # content-type XML.... + # So let's try a JSON load, and if it's still broken + # let's flow the initial exception + def _json_attemp(data): + try: + return True, json.loads(data) + except ValueError: + return False, None # Don't care about this one + + success, json_result = _json_attemp(data) + if success: + return json_result + # If i'm here, it's not JSON, it's not XML, let's scream + # and raise the last context in this block (the XML exception) + # The function hack is because Py2.7 messes up with exception + # context otherwise. + _LOGGER.critical("Wasn't XML not JSON, failing") + raise_with_traceback(DeserializationError, "XML is invalid") + raise DeserializationError("Cannot deserialize content-type: {}".format(content_type)) + + @classmethod + def deserialize_from_http_generics(cls, body_bytes, headers): + # type: (Optional[Union[AnyStr, IO]], Mapping) -> Any + """Deserialize from HTTP response. + + Use bytes and headers to NOT use any requests/aiohttp or whatever + specific implementation. + Headers will tested for "content-type" + """ + # Try to use content-type from headers if available + content_type = None + if "content-type" in headers: + content_type = headers["content-type"].split(";")[0].strip().lower() + # Ouch, this server did not declare what it sent... + # Let's guess it's JSON... + # Also, since Autorest was considering that an empty body was a valid JSON, + # need that test as well.... + else: + content_type = "application/json" + + if body_bytes: + return cls.deserialize_from_text(body_bytes, content_type) + return None + + +try: + basestring # type: ignore + unicode_str = unicode # type: ignore +except NameError: + basestring = str # type: ignore + unicode_str = str # type: ignore + +_LOGGER = logging.getLogger(__name__) + +try: + _long_type = long # type: ignore +except NameError: + _long_type = int + + +class UTC(datetime.tzinfo): + """Time Zone info for handling UTC""" + + def utcoffset(self, dt): + """UTF offset for UTC is 0.""" + return datetime.timedelta(0) + + def tzname(self, dt): + """Timestamp representation.""" + return "Z" + + def dst(self, dt): + """No daylight saving for UTC.""" + return datetime.timedelta(hours=1) + + +try: + from datetime import timezone as _FixedOffset +except ImportError: # Python 2.7 + + class _FixedOffset(datetime.tzinfo): # type: ignore + """Fixed offset in minutes east from UTC. + Copy/pasted from Python doc + :param datetime.timedelta offset: offset in timedelta format + """ + + def __init__(self, offset): + self.__offset = offset + + def utcoffset(self, dt): + return self.__offset + + def tzname(self, dt): + return str(self.__offset.total_seconds() / 3600) + + def __repr__(self): + return "".format(self.tzname(None)) + + def dst(self, dt): + return datetime.timedelta(0) + + def __getinitargs__(self): + return (self.__offset,) + + +try: + from datetime import timezone + + TZ_UTC = timezone.utc # type: ignore +except ImportError: + TZ_UTC = UTC() # type: ignore + +_FLATTEN = re.compile(r"(? y, + "minimum": lambda x, y: x < y, + "maximum": lambda x, y: x > y, + "minimum_ex": lambda x, y: x <= y, + "maximum_ex": lambda x, y: x >= y, + "min_items": lambda x, y: len(x) < y, + "max_items": lambda x, y: len(x) > y, + "pattern": lambda x, y: not re.match(y, x, re.UNICODE), + "unique": lambda x, y: len(x) != len(set(x)), + "multiple": lambda x, y: x % y != 0, + } + + def __init__(self, classes=None): + self.serialize_type = { + "iso-8601": Serializer.serialize_iso, + "rfc-1123": Serializer.serialize_rfc, + "unix-time": Serializer.serialize_unix, + "duration": Serializer.serialize_duration, + "date": Serializer.serialize_date, + "time": Serializer.serialize_time, + "decimal": Serializer.serialize_decimal, + "long": Serializer.serialize_long, + "bytearray": Serializer.serialize_bytearray, + "base64": Serializer.serialize_base64, + "object": self.serialize_object, + "[]": self.serialize_iter, + "{}": self.serialize_dict, + } + self.dependencies = dict(classes) if classes else {} + self.key_transformer = full_restapi_key_transformer + self.client_side_validation = True + + def _serialize(self, target_obj, data_type=None, **kwargs): + """Serialize data into a string according to type. + + :param target_obj: The data to be serialized. + :param str data_type: The type to be serialized from. + :rtype: str, dict + :raises: SerializationError if serialization fails. + """ + key_transformer = kwargs.get("key_transformer", self.key_transformer) + keep_readonly = kwargs.get("keep_readonly", False) + if target_obj is None: + return None + + attr_name = None + class_name = target_obj.__class__.__name__ + + if data_type: + return self.serialize_data(target_obj, data_type, **kwargs) + + if not hasattr(target_obj, "_attribute_map"): + data_type = type(target_obj).__name__ + if data_type in self.basic_types.values(): + return self.serialize_data(target_obj, data_type, **kwargs) + + # Force "is_xml" kwargs if we detect a XML model + try: + is_xml_model_serialization = kwargs["is_xml"] + except KeyError: + is_xml_model_serialization = kwargs.setdefault("is_xml", target_obj.is_xml_model()) + + serialized = {} + if is_xml_model_serialization: + serialized = target_obj._create_xml_node() + try: + attributes = target_obj._attribute_map + for attr, attr_desc in attributes.items(): + attr_name = attr + if not keep_readonly and target_obj._validation.get(attr_name, {}).get("readonly", False): + continue + + if attr_name == "additional_properties" and attr_desc["key"] == "": + if target_obj.additional_properties is not None: + serialized.update(target_obj.additional_properties) + continue + try: + + orig_attr = getattr(target_obj, attr) + if is_xml_model_serialization: + pass # Don't provide "transformer" for XML for now. Keep "orig_attr" + else: # JSON + keys, orig_attr = key_transformer(attr, attr_desc.copy(), orig_attr) + keys = keys if isinstance(keys, list) else [keys] + + kwargs["serialization_ctxt"] = attr_desc + new_attr = self.serialize_data(orig_attr, attr_desc["type"], **kwargs) + + if is_xml_model_serialization: + xml_desc = attr_desc.get("xml", {}) + xml_name = xml_desc.get("name", attr_desc["key"]) + xml_prefix = xml_desc.get("prefix", None) + xml_ns = xml_desc.get("ns", None) + if xml_desc.get("attr", False): + if xml_ns: + ET.register_namespace(xml_prefix, xml_ns) + xml_name = "{}{}".format(xml_ns, xml_name) + serialized.set(xml_name, new_attr) + continue + if xml_desc.get("text", False): + serialized.text = new_attr + continue + if isinstance(new_attr, list): + serialized.extend(new_attr) + elif isinstance(new_attr, ET.Element): + # If the down XML has no XML/Name, we MUST replace the tag with the local tag. But keeping the namespaces. + if "name" not in getattr(orig_attr, "_xml_map", {}): + splitted_tag = new_attr.tag.split("}") + if len(splitted_tag) == 2: # Namespace + new_attr.tag = "}".join([splitted_tag[0], xml_name]) + else: + new_attr.tag = xml_name + serialized.append(new_attr) + else: # That's a basic type + # Integrate namespace if necessary + local_node = _create_xml_node(xml_name, xml_prefix, xml_ns) + local_node.text = unicode_str(new_attr) + serialized.append(local_node) + else: # JSON + for k in reversed(keys): + unflattened = {k: new_attr} + new_attr = unflattened + + _new_attr = new_attr + _serialized = serialized + for k in keys: + if k not in _serialized: + _serialized.update(_new_attr) + _new_attr = _new_attr[k] + _serialized = _serialized[k] + except ValueError: + continue + + except (AttributeError, KeyError, TypeError) as err: + msg = "Attribute {} in object {} cannot be serialized.\n{}".format(attr_name, class_name, str(target_obj)) + raise_with_traceback(SerializationError, msg, err) + else: + return serialized + + def body(self, data, data_type, **kwargs): + """Serialize data intended for a request body. + + :param data: The data to be serialized. + :param str data_type: The type to be serialized from. + :rtype: dict + :raises: SerializationError if serialization fails. + :raises: ValueError if data is None + """ + + # Just in case this is a dict + internal_data_type = data_type.strip("[]{}") + internal_data_type = self.dependencies.get(internal_data_type, None) + try: + is_xml_model_serialization = kwargs["is_xml"] + except KeyError: + if internal_data_type and issubclass(internal_data_type, Model): + is_xml_model_serialization = kwargs.setdefault("is_xml", internal_data_type.is_xml_model()) + else: + is_xml_model_serialization = False + if internal_data_type and not isinstance(internal_data_type, Enum): + try: + deserializer = Deserializer(self.dependencies) + # Since it's on serialization, it's almost sure that format is not JSON REST + # We're not able to deal with additional properties for now. + deserializer.additional_properties_detection = False + if is_xml_model_serialization: + deserializer.key_extractors = [ + attribute_key_case_insensitive_extractor, + ] + else: + deserializer.key_extractors = [ + rest_key_case_insensitive_extractor, + attribute_key_case_insensitive_extractor, + last_rest_key_case_insensitive_extractor, + ] + data = deserializer._deserialize(data_type, data) + except DeserializationError as err: + raise_with_traceback(SerializationError, "Unable to build a model: " + str(err), err) + + return self._serialize(data, data_type, **kwargs) + + def url(self, name, data, data_type, **kwargs): + """Serialize data intended for a URL path. + + :param data: The data to be serialized. + :param str data_type: The type to be serialized from. + :rtype: str + :raises: TypeError if serialization fails. + :raises: ValueError if data is None + """ + try: + output = self.serialize_data(data, data_type, **kwargs) + if data_type == "bool": + output = json.dumps(output) + + if kwargs.get("skip_quote") is True: + output = str(output) + else: + output = quote(str(output), safe="") + except SerializationError: + raise TypeError("{} must be type {}.".format(name, data_type)) + else: + return output + + def query(self, name, data, data_type, **kwargs): + """Serialize data intended for a URL query. + + :param data: The data to be serialized. + :param str data_type: The type to be serialized from. + :rtype: str + :raises: TypeError if serialization fails. + :raises: ValueError if data is None + """ + try: + # 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)) + + # Not a list, regular serialization + output = self.serialize_data(data, data_type, **kwargs) + if data_type == "bool": + output = json.dumps(output) + if kwargs.get("skip_quote") is True: + output = str(output) + else: + output = quote(str(output), safe="") + except SerializationError: + raise TypeError("{} must be type {}.".format(name, data_type)) + else: + return str(output) + + def header(self, name, data, data_type, **kwargs): + """Serialize data intended for a request header. + + :param data: The data to be serialized. + :param str data_type: The type to be serialized from. + :rtype: str + :raises: TypeError if serialization fails. + :raises: ValueError if data is None + """ + try: + if data_type in ["[str]"]: + data = ["" if d is None else d for d in data] + + output = self.serialize_data(data, data_type, **kwargs) + if data_type == "bool": + output = json.dumps(output) + except SerializationError: + raise TypeError("{} must be type {}.".format(name, data_type)) + else: + return str(output) + + def serialize_data(self, data, data_type, **kwargs): + """Serialize generic data according to supplied data type. + + :param data: The data to be serialized. + :param str data_type: The type to be serialized from. + :param bool required: Whether it's essential that the data not be + empty or None + :raises: AttributeError if required data is None. + :raises: ValueError if data is None + :raises: SerializationError if serialization fails. + """ + if data is None: + raise ValueError("No value for given attribute") + + try: + if data_type in self.basic_types.values(): + return self.serialize_basic(data, data_type, **kwargs) + + elif data_type in self.serialize_type: + return self.serialize_type[data_type](data, **kwargs) + + # If dependencies is empty, try with current data class + # It has to be a subclass of Enum anyway + enum_type = self.dependencies.get(data_type, data.__class__) + if issubclass(enum_type, Enum): + return Serializer.serialize_enum(data, enum_obj=enum_type) + + iter_type = data_type[0] + data_type[-1] + if iter_type in self.serialize_type: + return self.serialize_type[iter_type](data, data_type[1:-1], **kwargs) + + except (ValueError, TypeError) as err: + msg = "Unable to serialize value: {!r} as type: {!r}." + raise_with_traceback(SerializationError, msg.format(data, data_type), err) + else: + return self._serialize(data, **kwargs) + + @classmethod + def _get_custom_serializers(cls, data_type, **kwargs): + custom_serializer = kwargs.get("basic_types_serializers", {}).get(data_type) + if custom_serializer: + return custom_serializer + if kwargs.get("is_xml", False): + return cls._xml_basic_types_serializers.get(data_type) + + @classmethod + def serialize_basic(cls, data, data_type, **kwargs): + """Serialize basic builting data type. + Serializes objects to str, int, float or bool. + + Possible kwargs: + - basic_types_serializers dict[str, callable] : If set, use the callable as serializer + - is_xml bool : If set, use xml_basic_types_serializers + + :param data: Object to be serialized. + :param str data_type: Type of object in the iterable. + """ + custom_serializer = cls._get_custom_serializers(data_type, **kwargs) + if custom_serializer: + return custom_serializer(data) + if data_type == "str": + return cls.serialize_unicode(data) + return eval(data_type)(data) # nosec + + @classmethod + def serialize_unicode(cls, data): + """Special handling for serializing unicode strings in Py2. + Encode to UTF-8 if unicode, otherwise handle as a str. + + :param data: Object to be serialized. + :rtype: str + """ + try: # If I received an enum, return its value + return data.value + except AttributeError: + pass + + try: + if isinstance(data, unicode): + # Don't change it, JSON and XML ElementTree are totally able + # to serialize correctly u'' strings + return data + except NameError: + return str(data) + else: + return str(data) + + def serialize_iter(self, data, iter_type, div=None, **kwargs): + """Serialize iterable. + + Supported kwargs: + - serialization_ctxt dict : The current entry of _attribute_map, or same format. + serialization_ctxt['type'] should be same as data_type. + - is_xml bool : If set, serialize as XML + + :param list attr: Object to be serialized. + :param str iter_type: Type of object in the iterable. + :param bool required: Whether the objects in the iterable must + 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'. + :rtype: list, str + """ + if isinstance(data, str): + raise SerializationError("Refuse str type as a valid iter type.") + + serialization_ctxt = kwargs.get("serialization_ctxt", {}) + is_xml = kwargs.get("is_xml", False) + + serialized = [] + for d in data: + try: + serialized.append(self.serialize_data(d, iter_type, **kwargs)) + except ValueError: + serialized.append(None) + + if div: + serialized = ["" if s is None else str(s) for s in serialized] + serialized = div.join(serialized) + + if "xml" in serialization_ctxt or is_xml: + # XML serialization is more complicated + xml_desc = serialization_ctxt.get("xml", {}) + xml_name = xml_desc.get("name") + if not xml_name: + xml_name = serialization_ctxt["key"] + + # Create a wrap node if necessary (use the fact that Element and list have "append") + is_wrapped = xml_desc.get("wrapped", False) + node_name = xml_desc.get("itemsName", xml_name) + if is_wrapped: + final_result = _create_xml_node(xml_name, xml_desc.get("prefix", None), xml_desc.get("ns", None)) + else: + final_result = [] + # All list elements to "local_node" + for el in serialized: + if isinstance(el, ET.Element): + el_node = el + else: + el_node = _create_xml_node(node_name, xml_desc.get("prefix", None), xml_desc.get("ns", None)) + if el is not None: # Otherwise it writes "None" :-p + el_node.text = str(el) + final_result.append(el_node) + return final_result + return serialized + + def serialize_dict(self, attr, dict_type, **kwargs): + """Serialize a dictionary of objects. + + :param dict attr: Object to be serialized. + :param str dict_type: Type of object in the dictionary. + :param bool required: Whether the objects in the dictionary must + not be None or empty. + :rtype: dict + """ + serialization_ctxt = kwargs.get("serialization_ctxt", {}) + serialized = {} + for key, value in attr.items(): + try: + serialized[self.serialize_unicode(key)] = self.serialize_data(value, dict_type, **kwargs) + except ValueError: + serialized[self.serialize_unicode(key)] = None + + if "xml" in serialization_ctxt: + # XML serialization is more complicated + xml_desc = serialization_ctxt["xml"] + xml_name = xml_desc["name"] + + final_result = _create_xml_node(xml_name, xml_desc.get("prefix", None), xml_desc.get("ns", None)) + for key, value in serialized.items(): + ET.SubElement(final_result, key).text = value + return final_result + + return serialized + + def serialize_object(self, attr, **kwargs): + """Serialize a generic object. + This will be handled as a dictionary. If object passed in is not + a basic type (str, int, float, dict, list) it will simply be + cast to str. + + :param dict attr: Object to be serialized. + :rtype: dict or str + """ + if attr is None: + return None + if isinstance(attr, ET.Element): + return attr + obj_type = type(attr) + if obj_type in self.basic_types: + return self.serialize_basic(attr, self.basic_types[obj_type], **kwargs) + if obj_type is _long_type: + return self.serialize_long(attr) + if obj_type is unicode_str: + return self.serialize_unicode(attr) + if obj_type is datetime.datetime: + return self.serialize_iso(attr) + if obj_type is datetime.date: + return self.serialize_date(attr) + if obj_type is datetime.time: + return self.serialize_time(attr) + if obj_type is datetime.timedelta: + return self.serialize_duration(attr) + if obj_type is decimal.Decimal: + return self.serialize_decimal(attr) + + # If it's a model or I know this dependency, serialize as a Model + elif obj_type in self.dependencies.values() or isinstance(attr, Model): + return self._serialize(attr) + + if obj_type == dict: + serialized = {} + for key, value in attr.items(): + try: + serialized[self.serialize_unicode(key)] = self.serialize_object(value, **kwargs) + except ValueError: + serialized[self.serialize_unicode(key)] = None + return serialized + + if obj_type == list: + serialized = [] + for obj in attr: + try: + serialized.append(self.serialize_object(obj, **kwargs)) + except ValueError: + pass + return serialized + return str(attr) + + @staticmethod + def serialize_enum(attr, enum_obj=None): + try: + result = attr.value + except AttributeError: + result = attr + try: + enum_obj(result) + return result + except ValueError: + for enum_value in enum_obj: + if enum_value.value.lower() == str(attr).lower(): + return enum_value.value + error = "{!r} is not valid value for enum {!r}" + raise SerializationError(error.format(attr, enum_obj)) + + @staticmethod + def serialize_bytearray(attr, **kwargs): + """Serialize bytearray into base-64 string. + + :param attr: Object to be serialized. + :rtype: str + """ + return b64encode(attr).decode() + + @staticmethod + def serialize_base64(attr, **kwargs): + """Serialize str into base-64 string. + + :param attr: Object to be serialized. + :rtype: str + """ + encoded = b64encode(attr).decode("ascii") + return encoded.strip("=").replace("+", "-").replace("/", "_") + + @staticmethod + def serialize_decimal(attr, **kwargs): + """Serialize Decimal object to float. + + :param attr: Object to be serialized. + :rtype: float + """ + return float(attr) + + @staticmethod + def serialize_long(attr, **kwargs): + """Serialize long (Py2) or int (Py3). + + :param attr: Object to be serialized. + :rtype: int/long + """ + return _long_type(attr) + + @staticmethod + def serialize_date(attr, **kwargs): + """Serialize Date object into ISO-8601 formatted string. + + :param Date attr: Object to be serialized. + :rtype: str + """ + if isinstance(attr, str): + attr = isodate.parse_date(attr) + t = "{:04}-{:02}-{:02}".format(attr.year, attr.month, attr.day) + return t + + @staticmethod + def serialize_time(attr, **kwargs): + """Serialize Time object into ISO-8601 formatted string. + + :param datetime.time attr: Object to be serialized. + :rtype: str + """ + if isinstance(attr, str): + attr = isodate.parse_time(attr) + t = "{:02}:{:02}:{:02}".format(attr.hour, attr.minute, attr.second) + if attr.microsecond: + t += ".{:02}".format(attr.microsecond) + return t + + @staticmethod + def serialize_duration(attr, **kwargs): + """Serialize TimeDelta object into ISO-8601 formatted string. + + :param TimeDelta attr: Object to be serialized. + :rtype: str + """ + if isinstance(attr, str): + attr = isodate.parse_duration(attr) + return isodate.duration_isoformat(attr) + + @staticmethod + def serialize_rfc(attr, **kwargs): + """Serialize Datetime object into RFC-1123 formatted string. + + :param Datetime attr: Object to be serialized. + :rtype: str + :raises: TypeError if format invalid. + """ + try: + if not attr.tzinfo: + _LOGGER.warning("Datetime with no tzinfo will be considered UTC.") + utc = attr.utctimetuple() + except AttributeError: + raise TypeError("RFC1123 object must be valid Datetime object.") + + return "{}, {:02} {} {:04} {:02}:{:02}:{:02} GMT".format( + Serializer.days[utc.tm_wday], + utc.tm_mday, + Serializer.months[utc.tm_mon], + utc.tm_year, + utc.tm_hour, + utc.tm_min, + utc.tm_sec, + ) + + @staticmethod + def serialize_iso(attr, **kwargs): + """Serialize Datetime object into ISO-8601 formatted string. + + :param Datetime attr: Object to be serialized. + :rtype: str + :raises: SerializationError if format invalid. + """ + if isinstance(attr, str): + attr = isodate.parse_datetime(attr) + try: + if not attr.tzinfo: + _LOGGER.warning("Datetime with no tzinfo will be considered UTC.") + utc = attr.utctimetuple() + if utc.tm_year > 9999 or utc.tm_year < 1: + raise OverflowError("Hit max or min date") + + microseconds = str(attr.microsecond).rjust(6, "0").rstrip("0").ljust(3, "0") + if microseconds: + microseconds = "." + microseconds + date = "{:04}-{:02}-{:02}T{:02}:{:02}:{:02}".format( + utc.tm_year, utc.tm_mon, utc.tm_mday, utc.tm_hour, utc.tm_min, utc.tm_sec + ) + return date + microseconds + "Z" + except (ValueError, OverflowError) as err: + msg = "Unable to serialize datetime object." + raise_with_traceback(SerializationError, msg, err) + except AttributeError as err: + msg = "ISO-8601 object must be valid Datetime object." + raise_with_traceback(TypeError, msg, err) + + @staticmethod + def serialize_unix(attr, **kwargs): + """Serialize Datetime object into IntTime format. + This is represented as seconds. + + :param Datetime attr: Object to be serialized. + :rtype: int + :raises: SerializationError if format invalid + """ + if isinstance(attr, int): + return attr + try: + if not attr.tzinfo: + _LOGGER.warning("Datetime with no tzinfo will be considered UTC.") + return int(calendar.timegm(attr.utctimetuple())) + except AttributeError: + raise TypeError("Unix time object must be valid Datetime object.") + + +def rest_key_extractor(attr, attr_desc, data): + key = attr_desc["key"] + working_data = data + + while "." in key: + dict_keys = _FLATTEN.split(key) + if len(dict_keys) == 1: + key = _decode_attribute_map_key(dict_keys[0]) + break + working_key = _decode_attribute_map_key(dict_keys[0]) + working_data = working_data.get(working_key, data) + if working_data is None: + # If at any point while following flatten JSON path see None, it means + # that all properties under are None as well + # https://github.com/Azure/msrest-for-python/issues/197 + return None + key = ".".join(dict_keys[1:]) + + return working_data.get(key) + + +def rest_key_case_insensitive_extractor(attr, attr_desc, data): + key = attr_desc["key"] + working_data = data + + while "." in key: + dict_keys = _FLATTEN.split(key) + if len(dict_keys) == 1: + key = _decode_attribute_map_key(dict_keys[0]) + break + working_key = _decode_attribute_map_key(dict_keys[0]) + working_data = attribute_key_case_insensitive_extractor(working_key, None, working_data) + if working_data is None: + # If at any point while following flatten JSON path see None, it means + # that all properties under are None as well + # https://github.com/Azure/msrest-for-python/issues/197 + return None + key = ".".join(dict_keys[1:]) + + if working_data: + return attribute_key_case_insensitive_extractor(key, None, working_data) + + +def last_rest_key_extractor(attr, attr_desc, data): + """Extract the attribute in "data" based on the last part of the JSON path key.""" + key = attr_desc["key"] + dict_keys = _FLATTEN.split(key) + return attribute_key_extractor(dict_keys[-1], None, data) + + +def last_rest_key_case_insensitive_extractor(attr, attr_desc, data): + """Extract the attribute in "data" based on the last part of the JSON path key. + + This is the case insensitive version of "last_rest_key_extractor" + """ + key = attr_desc["key"] + dict_keys = _FLATTEN.split(key) + return attribute_key_case_insensitive_extractor(dict_keys[-1], None, data) + + +def attribute_key_extractor(attr, _, data): + return data.get(attr) + + +def attribute_key_case_insensitive_extractor(attr, _, data): + found_key = None + lower_attr = attr.lower() + for key in data: + if lower_attr == key.lower(): + found_key = key + break + + return data.get(found_key) + + +def _extract_name_from_internal_type(internal_type): + """Given an internal type XML description, extract correct XML name with namespace. + + :param dict internal_type: An model type + :rtype: tuple + :returns: A tuple XML name + namespace dict + """ + internal_type_xml_map = getattr(internal_type, "_xml_map", {}) + 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) + return xml_name + + +def xml_key_extractor(attr, attr_desc, data): + if isinstance(data, dict): + return None + + # Test if this model is XML ready first + if not isinstance(data, ET.Element): + return None + + xml_desc = attr_desc.get("xml", {}) + xml_name = xml_desc.get("name", attr_desc["key"]) + + # Look for a children + is_iter_type = attr_desc["type"].startswith("[") + is_wrapped = xml_desc.get("wrapped", False) + internal_type = attr_desc.get("internalType", None) + internal_type_xml_map = getattr(internal_type, "_xml_map", {}) + + # 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) + + # If it's an attribute, that's simple + if xml_desc.get("attr", False): + return data.get(xml_name) + + # If it's x-ms-text, that's simple too + if xml_desc.get("text", False): + return data.text + + # Scenario where I take the local name: + # - Wrapped node + # - Internal type is an enum (considered basic types) + # - Internal type has no XML/Name node + if is_wrapped or (internal_type and (issubclass(internal_type, Enum) or "name" not in internal_type_xml_map)): + children = data.findall(xml_name) + # If internal type has a local name and it's not a list, I use that name + elif not is_iter_type and internal_type and "name" in internal_type_xml_map: + xml_name = _extract_name_from_internal_type(internal_type) + children = data.findall(xml_name) + # That's an array + else: + if internal_type: # Complex type, ignore itemsName and use the complex type name + items_name = _extract_name_from_internal_type(internal_type) + else: + items_name = xml_desc.get("itemsName", xml_name) + children = data.findall(items_name) + + if len(children) == 0: + if is_iter_type: + if is_wrapped: + return None # is_wrapped no node, we want None + else: + return [] # not wrapped, assume empty list + return None # Assume it's not there, maybe an optional node. + + # If is_iter_type and not wrapped, return all found children + if is_iter_type: + if not is_wrapped: + return children + else: # Iter and wrapped, should have found one node only (the wrap one) + if len(children) != 1: + raise DeserializationError( + "Tried to deserialize an array not wrapped, and found several nodes '{}'. Maybe you should declare this array as wrapped?".format( + xml_name + ) + ) + return list(children[0]) # Might be empty list and that's ok. + + # Here it's not a itertype, we should have found one element only or empty + if len(children) > 1: + raise DeserializationError("Find several XML '{}' where it was not expected".format(xml_name)) + return children[0] + + +class Deserializer(object): + """Response object model deserializer. + + :param dict classes: Class type dictionary for deserializing complex types. + :ivar list key_extractors: Ordered list of extractors to be used by this deserializer. + """ + + basic_types = {str: "str", int: "int", bool: "bool", float: "float"} + + 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): + self.deserialize_type = { + "iso-8601": Deserializer.deserialize_iso, + "rfc-1123": Deserializer.deserialize_rfc, + "unix-time": Deserializer.deserialize_unix, + "duration": Deserializer.deserialize_duration, + "date": Deserializer.deserialize_date, + "time": Deserializer.deserialize_time, + "decimal": Deserializer.deserialize_decimal, + "long": Deserializer.deserialize_long, + "bytearray": Deserializer.deserialize_bytearray, + "base64": Deserializer.deserialize_base64, + "object": self.deserialize_object, + "[]": self.deserialize_iter, + "{}": self.deserialize_dict, + } + self.deserialize_expected_types = { + "duration": (isodate.Duration, datetime.timedelta), + "iso-8601": (datetime.datetime), + } + self.dependencies = 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 + # complicated, with no real scenario for now. + # So adding a flag to disable additional properties detection. This flag should be + # used if your expect the deserialization to NOT come from a JSON REST syntax. + # Otherwise, result are unexpected + self.additional_properties_detection = True + + def __call__(self, target_obj, response_data, content_type=None): + """Call the deserializer to process a REST response. + + :param str target_obj: Target data type to deserialize to. + :param requests.Response response_data: REST response object. + :param str content_type: Swagger "produces" if available. + :raises: DeserializationError if deserialization fails. + :return: Deserialized object. + """ + data = self._unpack_content(response_data, content_type) + return self._deserialize(target_obj, data) + + def _deserialize(self, target_obj, data): + """Call the deserializer on a model. + + Data needs to be already deserialized as JSON or XML ElementTree + + :param str target_obj: Target data type to deserialize to. + :param object data: Object to deserialize. + :raises: DeserializationError if deserialization fails. + :return: Deserialized object. + """ + # This is already a model, go recursive just in case + if hasattr(data, "_attribute_map"): + constants = [name for name, config in getattr(data, "_validation", {}).items() if config.get("constant")] + try: + for attr, mapconfig in data._attribute_map.items(): + if attr in constants: + continue + value = getattr(data, attr) + if value is None: + continue + local_type = mapconfig["type"] + internal_data_type = local_type.strip("[]{}") + if internal_data_type not in self.dependencies or isinstance(internal_data_type, Enum): + continue + setattr(data, attr, self._deserialize(local_type, value)) + return data + except AttributeError: + return + + response, class_name = self._classify_target(target_obj, data) + + if isinstance(response, basestring): + return self.deserialize_data(data, response) + elif isinstance(response, type) and issubclass(response, Enum): + return self.deserialize_enum(data, response) + + if data is None: + return data + try: + attributes = response._attribute_map + d_attrs = {} + for attr, attr_desc in attributes.items(): + # Check empty string. If it's not empty, someone has a real "additionalProperties"... + if attr == "additional_properties" and attr_desc["key"] == "": + continue + raw_value = None + # Enhance attr_desc with some dynamic data + attr_desc = attr_desc.copy() # Do a copy, do not change the real one + internal_data_type = attr_desc["type"].strip("[]{}") + if internal_data_type in self.dependencies: + attr_desc["internalType"] = self.dependencies[internal_data_type] + + for key_extractor in self.key_extractors: + found_value = key_extractor(attr, attr_desc, data) + if found_value is not None: + if raw_value is not None and raw_value != found_value: + msg = ( + "Ignoring extracted value '%s' from %s for key '%s'" + " (duplicate extraction, follow extractors order)" + ) + _LOGGER.warning(msg, found_value, key_extractor, attr) + continue + raw_value = found_value + + value = self.deserialize_data(raw_value, attr_desc["type"]) + d_attrs[attr] = value + except (AttributeError, TypeError, KeyError) as err: + msg = "Unable to deserialize to object: " + class_name + raise_with_traceback(DeserializationError, msg, err) + else: + additional_properties = self._build_additional_properties(attributes, data) + return self._instantiate_model(response, d_attrs, additional_properties) + + def _build_additional_properties(self, attribute_map, data): + if not self.additional_properties_detection: + return None + if "additional_properties" in attribute_map and attribute_map.get("additional_properties", {}).get("key") != "": + # Check empty string. If it's not empty, someone has a real "additionalProperties" + return None + if isinstance(data, ET.Element): + data = {el.tag: el.text for el in data} + + known_keys = { + _decode_attribute_map_key(_FLATTEN.split(desc["key"])[0]) + for desc in attribute_map.values() + if desc["key"] != "" + } + present_keys = set(data.keys()) + missing_keys = present_keys - known_keys + return {key: data[key] for key in missing_keys} + + def _classify_target(self, target, data): + """Check to see whether the deserialization target object can + be classified into a subclass. + 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. + """ + if target is None: + return None, None + + if isinstance(target, basestring): + try: + target = self.dependencies[target] + except KeyError: + return target, target + + try: + target = target._classify(data, self.dependencies) + except AttributeError: + pass # Target is not a Model, no classify + return target, target.__class__.__name__ + + def failsafe_deserialize(self, target_obj, data, content_type=None): + """Ignores any errors encountered in deserialization, + and falls back to not deserializing the object. Recommended + for use in error deserialization, as we want to return the + HttpResponseError to users, and not have them deal with + 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 content_type: Swagger "produces" if available. + """ + try: + return self(target_obj, data, content_type=content_type) + except: + _LOGGER.warning( + "Ran into a deserialization error. Ignoring since this is failsafe deserialization", exc_info=True + ) + return None + + @staticmethod + def _unpack_content(raw_data, content_type=None): + """Extract the correct structure for deserialization. + + If raw_data is a PipelineResponse, try to extract the result of RawDeserializer. + if we can't, raise. Your Pipeline should have a RawDeserializer. + + If not a pipeline response and raw_data is bytes or string, use content-type + to decode it. If no content-type, try JSON. + + If raw_data is something else, bypass all logic and return it directly. + + :param raw_data: Data to be processed. + :param content_type: How to parse if raw_data is a string/bytes. + :raises JSONDecodeError: If JSON is requested and parsing is impossible. + :raises UnicodeDecodeError: If bytes is not UTF8 + """ + # Assume this is enough to detect a Pipeline Response without importing it + context = getattr(raw_data, "context", {}) + if context: + if RawDeserializer.CONTEXT_NAME in context: + return context[RawDeserializer.CONTEXT_NAME] + raise ValueError("This pipeline didn't have the RawDeserializer policy; can't deserialize") + + # Assume this is enough to recognize universal_http.ClientResponse without importing it + if hasattr(raw_data, "body"): + return RawDeserializer.deserialize_from_http_generics(raw_data.text(), raw_data.headers) + + # Assume this enough to recognize requests.Response without importing it. + if hasattr(raw_data, "_content_consumed"): + return RawDeserializer.deserialize_from_http_generics(raw_data.text, raw_data.headers) + + if isinstance(raw_data, (basestring, bytes)) or hasattr(raw_data, "read"): + return RawDeserializer.deserialize_from_text(raw_data, content_type) + return raw_data + + def _instantiate_model(self, response, attrs, additional_properties=None): + """Instantiate a response model passing in deserialized args. + + :param response: The response model class. + :param d_attrs: The deserialized response attributes. + """ + if callable(response): + subtype = getattr(response, "_subtype_map", {}) + try: + readonly = [k for k, v in response._validation.items() if v.get("readonly")] + const = [k for k, v in response._validation.items() if v.get("constant")] + kwargs = {k: v for k, v in attrs.items() if k not in subtype and k not in readonly + const} + response_obj = response(**kwargs) + for attr in readonly: + setattr(response_obj, attr, attrs.get(attr)) + if additional_properties: + response_obj.additional_properties = additional_properties + return response_obj + except TypeError as err: + msg = "Unable to deserialize {} into model {}. ".format(kwargs, response) + raise DeserializationError(msg + str(err)) + else: + try: + for attr, value in attrs.items(): + setattr(response, attr, value) + return response + except Exception as exp: + msg = "Unable to populate response model. " + msg += "Type: {}, Error: {}".format(type(response), exp) + raise DeserializationError(msg) + + def deserialize_data(self, data, data_type): + """Process data for deserialization according to data type. + + :param str data: The response string to be deserialized. + :param str data_type: The type to deserialize to. + :raises: DeserializationError if deserialization fails. + :return: Deserialized object. + """ + if data is None: + return data + + try: + if not data_type: + return data + if data_type in self.basic_types.values(): + return self.deserialize_basic(data, data_type) + if data_type in self.deserialize_type: + if isinstance(data, self.deserialize_expected_types.get(data_type, tuple())): + return data + + is_a_text_parsing_type = lambda x: x not in ["object", "[]", r"{}"] + if isinstance(data, ET.Element) and is_a_text_parsing_type(data_type) and not data.text: + return None + data_val = self.deserialize_type[data_type](data) + return data_val + + iter_type = data_type[0] + data_type[-1] + if iter_type in self.deserialize_type: + return self.deserialize_type[iter_type](data, data_type[1:-1]) + + obj_type = self.dependencies[data_type] + if issubclass(obj_type, Enum): + if isinstance(data, ET.Element): + data = data.text + return self.deserialize_enum(data, obj_type) + + except (ValueError, TypeError, AttributeError) as err: + msg = "Unable to deserialize response data." + msg += " Data: {}, {}".format(data, data_type) + raise_with_traceback(DeserializationError, msg, err) + else: + return self._deserialize(obj_type, data) + + def deserialize_iter(self, attr, iter_type): + """Deserialize an iterable. + + :param list attr: Iterable to be deserialized. + :param str iter_type: The type of object in the iterable. + :rtype: list + """ + if attr is None: + return None + if isinstance(attr, ET.Element): # If I receive an element here, get the children + attr = list(attr) + if not isinstance(attr, (list, set)): + raise DeserializationError("Cannot deserialize as [{}] an object of type {}".format(iter_type, type(attr))) + return [self.deserialize_data(a, iter_type) for a in attr] + + def deserialize_dict(self, attr, dict_type): + """Deserialize a dictionary. + + :param dict/list attr: Dictionary to be deserialized. Also accepts + a list of key, value pairs. + :param str dict_type: The object type of the items in the dictionary. + :rtype: dict + """ + if isinstance(attr, list): + return {x["key"]: self.deserialize_data(x["value"], dict_type) for x in attr} + + if isinstance(attr, ET.Element): + # Transform value into {"Key": "value"} + attr = {el.tag: el.text for el in attr} + return {k: self.deserialize_data(v, dict_type) for k, v in attr.items()} + + def deserialize_object(self, attr, **kwargs): + """Deserialize a generic object. + This will be handled as a dictionary. + + :param dict attr: Dictionary to be deserialized. + :rtype: dict + :raises: TypeError if non-builtin datatype encountered. + """ + if attr is None: + return None + if isinstance(attr, ET.Element): + # Do no recurse on XML, just return the tree as-is + return attr + if isinstance(attr, basestring): + return self.deserialize_basic(attr, "str") + obj_type = type(attr) + if obj_type in self.basic_types: + return self.deserialize_basic(attr, self.basic_types[obj_type]) + if obj_type is _long_type: + return self.deserialize_long(attr) + + if obj_type == dict: + deserialized = {} + for key, value in attr.items(): + try: + deserialized[key] = self.deserialize_object(value, **kwargs) + except ValueError: + deserialized[key] = None + return deserialized + + if obj_type == list: + deserialized = [] + for obj in attr: + try: + deserialized.append(self.deserialize_object(obj, **kwargs)) + except ValueError: + pass + return deserialized + + else: + error = "Cannot deserialize generic object with type: " + raise TypeError(error + str(obj_type)) + + def deserialize_basic(self, attr, data_type): + """Deserialize basic builtin data type from string. + Will attempt to convert to str, int, float and bool. + This function will also accept '1', '0', 'true' and 'false' as + valid bool values. + + :param str attr: response string to be deserialized. + :param str data_type: deserialization data type. + :rtype: str, int, float or bool + :raises: TypeError if string format is not valid. + """ + # If we're here, data is supposed to be a basic type. + # If it's still an XML node, take the text + if isinstance(attr, ET.Element): + attr = attr.text + if not attr: + if data_type == "str": + # None or '', node is empty string. + return "" + else: + # None or '', node with a strong type is None. + # Don't try to model "empty bool" or "empty int" + return None + + if data_type == "bool": + if attr in [True, False, 1, 0]: + return bool(attr) + elif isinstance(attr, basestring): + if attr.lower() in ["true", "1"]: + return True + elif attr.lower() in ["false", "0"]: + return False + raise TypeError("Invalid boolean value: {}".format(attr)) + + if data_type == "str": + return self.deserialize_unicode(attr) + return eval(data_type)(attr) # nosec + + @staticmethod + def deserialize_unicode(data): + """Preserve unicode objects in Python 2, otherwise return data + as a string. + + :param str data: response string to be deserialized. + :rtype: str or unicode + """ + # We might be here because we have an enum modeled as string, + # and we try to deserialize a partial dict with enum inside + if isinstance(data, Enum): + return data + + # Consider this is real string + try: + if isinstance(data, unicode): + return data + except NameError: + return str(data) + else: + return str(data) + + @staticmethod + def deserialize_enum(data, enum_obj): + """Deserialize string into enum object. + + If the string is not a valid enum value it will be returned as-is + and a warning will be logged. + + :param str data: Response string to be deserialized. If this value is + None or invalid it will be returned as-is. + :param Enum enum_obj: Enum object to deserialize to. + :rtype: Enum + """ + if isinstance(data, enum_obj) or data is None: + return data + if isinstance(data, Enum): + data = data.value + if isinstance(data, int): + # Workaround. We might consider remove it in the future. + # https://github.com/Azure/azure-rest-api-specs/issues/141 + try: + return list(enum_obj.__members__.values())[data] + except IndexError: + error = "{!r} is not a valid index for enum {!r}" + raise DeserializationError(error.format(data, enum_obj)) + try: + return enum_obj(str(data)) + except ValueError: + for enum_value in enum_obj: + if enum_value.value.lower() == str(data).lower(): + return enum_value + # We don't fail anymore for unknown value, we deserialize as a string + _LOGGER.warning("Deserializer is not able to find %s as valid enum in %s", data, enum_obj) + return Deserializer.deserialize_unicode(data) + + @staticmethod + def deserialize_bytearray(attr): + """Deserialize string into bytearray. + + :param str attr: response string to be deserialized. + :rtype: bytearray + :raises: TypeError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + return bytearray(b64decode(attr)) + + @staticmethod + def deserialize_base64(attr): + """Deserialize base64 encoded string into string. + + :param str attr: response string to be deserialized. + :rtype: bytearray + :raises: TypeError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + padding = "=" * (3 - (len(attr) + 3) % 4) + attr = attr + padding + encoded = attr.replace("-", "+").replace("_", "/") + return b64decode(encoded) + + @staticmethod + def deserialize_decimal(attr): + """Deserialize string into Decimal object. + + :param str attr: response string to be deserialized. + :rtype: Decimal + :raises: DeserializationError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + try: + return decimal.Decimal(attr) + except decimal.DecimalException as err: + msg = "Invalid decimal {}".format(attr) + raise_with_traceback(DeserializationError, msg, err) + + @staticmethod + def deserialize_long(attr): + """Deserialize string into long (Py2) or int (Py3). + + :param str attr: response string to be deserialized. + :rtype: long or int + :raises: ValueError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + return _long_type(attr) + + @staticmethod + def deserialize_duration(attr): + """Deserialize ISO-8601 formatted string into TimeDelta object. + + :param str attr: response string to be deserialized. + :rtype: TimeDelta + :raises: DeserializationError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + try: + duration = isodate.parse_duration(attr) + except (ValueError, OverflowError, AttributeError) as err: + msg = "Cannot deserialize duration object." + raise_with_traceback(DeserializationError, msg, err) + else: + return duration + + @staticmethod + def deserialize_date(attr): + """Deserialize ISO-8601 formatted string into Date object. + + :param str attr: response string to be deserialized. + :rtype: Date + :raises: DeserializationError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + if re.search(r"[^\W\d_]", attr, re.I + re.U): + raise DeserializationError("Date must have only digits and -. Received: %s" % attr) + # This must NOT use defaultmonth/defaultday. Using None ensure this raises an exception. + return isodate.parse_date(attr, defaultmonth=None, defaultday=None) + + @staticmethod + def deserialize_time(attr): + """Deserialize ISO-8601 formatted string into time object. + + :param str attr: response string to be deserialized. + :rtype: datetime.time + :raises: DeserializationError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + if re.search(r"[^\W\d_]", attr, re.I + re.U): + raise DeserializationError("Date must have only digits and -. Received: %s" % attr) + return isodate.parse_time(attr) + + @staticmethod + def deserialize_rfc(attr): + """Deserialize RFC-1123 formatted string into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: Datetime + :raises: DeserializationError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + try: + parsed_date = email.utils.parsedate_tz(attr) + date_obj = datetime.datetime( + *parsed_date[:6], tzinfo=_FixedOffset(datetime.timedelta(minutes=(parsed_date[9] or 0) / 60)) + ) + if not date_obj.tzinfo: + date_obj = date_obj.astimezone(tz=TZ_UTC) + except ValueError as err: + msg = "Cannot deserialize to rfc datetime object." + raise_with_traceback(DeserializationError, msg, err) + else: + return date_obj + + @staticmethod + def deserialize_iso(attr): + """Deserialize ISO-8601 formatted string into Datetime object. + + :param str attr: response string to be deserialized. + :rtype: Datetime + :raises: DeserializationError if string format invalid. + """ + if isinstance(attr, ET.Element): + attr = attr.text + try: + attr = attr.upper() + match = Deserializer.valid_date.match(attr) + if not match: + raise ValueError("Invalid datetime string: " + attr) + + check_decimal = attr.split(".") + if len(check_decimal) > 1: + decimal_str = "" + for digit in check_decimal[1]: + if digit.isdigit(): + decimal_str += digit + else: + break + if len(decimal_str) > 6: + attr = attr.replace(decimal_str, decimal_str[0:6]) + + date_obj = isodate.parse_datetime(attr) + test_utc = date_obj.utctimetuple() + if test_utc.tm_year > 9999 or test_utc.tm_year < 1: + raise OverflowError("Hit max or min date") + except (ValueError, OverflowError, AttributeError) as err: + msg = "Cannot deserialize datetime object." + raise_with_traceback(DeserializationError, msg, err) + else: + return date_obj + + @staticmethod + def deserialize_unix(attr): + """Serialize Datetime object into IntTime format. + This is represented as seconds. + + :param int attr: Object to be serialized. + :rtype: Datetime + :raises: DeserializationError if format invalid + """ + if isinstance(attr, ET.Element): + attr = int(attr.text) + try: + date_obj = datetime.datetime.fromtimestamp(attr, TZ_UTC) + except ValueError as err: + msg = "Cannot deserialize to unix datetime object." + raise_with_traceback(DeserializationError, msg, err) + else: + return date_obj diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_vendor.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_vendor.py index 138f663c53a4..54f238858ed8 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_vendor.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/_vendor.py @@ -5,14 +5,6 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from azure.core.pipeline.transport import HttpRequest - -def _convert_request(request, files=None): - data = request.content if not files else None - request = HttpRequest(method=request.method, url=request.url, headers=request.headers, data=data) - if files: - request.set_formdata_body(files) - return request def _format_url_section(template, **kwargs): components = template.split("/") @@ -21,7 +13,5 @@ def _format_url_section(template, **kwargs): 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 - ] + 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-identity/azure/communication/identity/_generated/aio/__init__.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/__init__.py index 84a8463cefb6..615062210c70 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/__init__.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/__init__.py @@ -6,10 +6,16 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._communication_identity_client import CommunicationIdentityClient -__all__ = ['CommunicationIdentityClient'] +from ._client import CommunicationIdentityClient -# `._patch.py` is used for handwritten extensions to the generated code -# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md -from ._patch import patch_sdk -patch_sdk() +try: + from ._patch import __all__ as _patch_all + from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +except ImportError: + _patch_all = [] +from ._patch import patch_sdk as _patch_sdk + +__all__ = ["CommunicationIdentityClient"] +__all__.extend([p for p in _patch_all if p not in __all__]) + +_patch_sdk() diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_client.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_client.py new file mode 100644 index 000000000000..12ece32b1ef1 --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_client.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- + +from copy import deepcopy +from typing import Any, Awaitable, TYPE_CHECKING + +from azure.core import AsyncPipelineClient +from azure.core.rest import AsyncHttpResponse, HttpRequest + +from .._serialization import Deserializer, Serializer +from ._configuration import CommunicationIdentityClientConfiguration +from .operations import CommunicationIdentityOperations + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Dict + + +class CommunicationIdentityClient: # pylint: disable=client-accepts-api-version-keyword + """Azure Communication Identity Service. + + :ivar communication_identity: CommunicationIdentityOperations operations + :vartype communication_identity: + azure.communication.identity.aio.operations.CommunicationIdentityOperations + :param endpoint: The communication resource, for example + https://my-resource.communication.azure.com. Required. + :type endpoint: str + :keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this + default value may result in unsupported behavior. + :paramtype api_version: str + """ + + def __init__( # pylint: disable=missing-client-constructor-parameter-credential + self, endpoint: str, **kwargs: Any + ) -> None: + _endpoint = "{endpoint}" + self._config = CommunicationIdentityClientConfiguration(endpoint=endpoint, **kwargs) + self._client = AsyncPipelineClient(base_url=_endpoint, config=self._config, **kwargs) + + self._serialize = Serializer() + self._deserialize = Deserializer() + self._serialize.client_side_validation = False + self.communication_identity = CommunicationIdentityOperations( + self._client, self._config, self._serialize, self._deserialize + ) + + def send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]: + """Runs the network request through the client's chained policies. + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "https://www.example.org/") + + >>> response = await client.send_request(request) + + + For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request + + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.rest.AsyncHttpResponse + """ + + request_copy = deepcopy(request) + path_format_arguments = { + "endpoint": self._serialize.url("self._config.endpoint", self._config.endpoint, "str", skip_quote=True), + } + + request_copy.url = self._client.format_url(request_copy.url, **path_format_arguments) + return self._client.send_request(request_copy, **kwargs) + + async def close(self) -> None: + await self._client.close() + + async def __aenter__(self) -> "CommunicationIdentityClient": + await self._client.__aenter__() + return self + + async def __aexit__(self, *exc_details) -> None: + await self._client.__aexit__(*exc_details) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_configuration.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_configuration.py index 690a6e05a8f3..d7cbff396f1f 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_configuration.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/_configuration.py @@ -20,9 +20,9 @@ class CommunicationIdentityClientConfiguration(Configuration): # pylint: disabl attributes. :param endpoint: The communication resource, for example - https://my-resource.communication.azure.com. + https://my-resource.communication.azure.com. Required. :type endpoint: str - :keyword api_version: Api Version. Default value is "2022-06-01". Note that overriding this + :keyword api_version: Api Version. Default value is "2022-10-01". Note that overriding this default value may result in unsupported behavior. :paramtype api_version: str """ @@ -31,9 +31,9 @@ def __init__( self, endpoint: str, **kwargs: Any - ) -> None: + ) -> None: super(CommunicationIdentityClientConfiguration, self).__init__(**kwargs) - api_version = kwargs.pop('api_version', "2022-06-01") # type: str + api_version = kwargs.pop("api_version", "2022-10-01") # type: str if endpoint is None: raise ValueError("Parameter 'endpoint' must not be None.") @@ -46,7 +46,7 @@ def __init__( def _configure( self, **kwargs: Any - ) -> None: + ) -> None: self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/__init__.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/__init__.py index 09dd0f2d0661..7120e3fb0cca 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/__init__.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/__init__.py @@ -6,8 +6,14 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._communication_identity_operations import CommunicationIdentityOperations +from ._operations import CommunicationIdentityOperations + +from ._patch import __all__ as _patch_all +from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +from ._patch import patch_sdk as _patch_sdk __all__ = [ - 'CommunicationIdentityOperations', + "CommunicationIdentityOperations", ] +__all__.extend([p for p in _patch_all if p not in __all__]) +_patch_sdk() diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_operations.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_operations.py new file mode 100644 index 000000000000..9276f3afc266 --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_operations.py @@ -0,0 +1,630 @@ +# pylint: disable=too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +import sys +from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload + +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + ResourceNotModifiedError, + map_error, +) +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator_async import distributed_trace_async +from azure.core.utils import case_insensitive_dict + +from ...operations._operations import ( + build_communication_identity_create_request, + build_communication_identity_delete_request, + build_communication_identity_exchange_teams_user_access_token_request, + build_communication_identity_issue_access_token_request, + build_communication_identity_revoke_access_tokens_request, +) + +if sys.version_info >= (3, 9): + from collections.abc import MutableMapping +else: + from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports +JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + + +class CommunicationIdentityOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.communication.identity.aio.CommunicationIdentityClient`'s + :attr:`communication_identity` attribute. + """ + + def __init__(self, *args, **kwargs) -> None: + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + async def create( + self, body: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any + ) -> JSON: + """Create a new identity, and optionally, an access token. + + Create a new identity, and optionally, an access token. + + :param body: If specified, creates also a Communication Identity access token associated with + the identity and containing the requested scopes. Default value is None. + :type body: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "createTokenWithScopes": [ + "str" # Optional. Also create access token for the created identity. + ], + "expiresInMinutes": 1440 # Optional. Default value is 1440. Optional custom + validity period of the token within [60,1440] minutes range. If not provided, the + default value of 1440 minutes (24 hours) will be used. + } + + # response body for status code(s): 201 + response == { + "identity": { + "id": "str" # Identifier of the identity. Required. + }, + "accessToken": { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + } + """ + + @overload + async def create(self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any) -> JSON: + """Create a new identity, and optionally, an access token. + + Create a new identity, and optionally, an access token. + + :param body: If specified, creates also a Communication Identity access token associated with + the identity and containing the requested scopes. Default value is None. + :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: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 201 + response == { + "identity": { + "id": "str" # Identifier of the identity. Required. + }, + "accessToken": { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + } + """ + + @distributed_trace_async + async def create(self, body: Optional[Union[JSON, IO]] = None, **kwargs: Any) -> JSON: + """Create a new identity, and optionally, an access token. + + Create a new identity, and optionally, an access token. + + :param body: If specified, creates also a Communication Identity access token associated with + the identity and containing the requested scopes. Is either a model type or a IO type. Default + value is None. + :type body: JSON or IO + :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. + Default value is None. + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 201 + response == { + "identity": { + "id": "str" # Identifier of the identity. Required. + }, + "accessToken": { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + } + """ + 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 = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + cls = kwargs.pop("cls", None) # type: ClsType[JSON] + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IO, bytes)): + _content = body + else: + if body is not None: + _json = body + else: + _json = None + + request = build_communication_identity_create_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) # type: ignore + + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), {}) + + return cast(JSON, deserialized) + + @distributed_trace_async + async def delete(self, id: str, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements + """Delete the identity, revoke all tokens for the identity and delete all associated data. + + Delete the identity, revoke all tokens for the identity and delete all associated data. + + :param id: Identifier of the identity to be deleted. Required. + :type id: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop("cls", None) # type: ClsType[None] + + request = build_communication_identity_delete_request( + id=id, + api_version=self._config.api_version, + 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) # type: ignore + + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if cls: + return cls(pipeline_response, None, {}) + + @distributed_trace_async + async def revoke_access_tokens( # pylint: disable=inconsistent-return-statements + self, id: str, **kwargs: Any + ) -> None: + """Revoke all access tokens for the specific identity. + + Revoke all access tokens for the specific identity. + + :param id: Identifier of the identity. Required. + :type id: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop("cls", None) # type: ClsType[None] + + request = build_communication_identity_revoke_access_tokens_request( + id=id, + api_version=self._config.api_version, + 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) # type: ignore + + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if cls: + return cls(pipeline_response, None, {}) + + @overload + async def exchange_teams_user_access_token( + self, body: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> JSON: + """Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + :param body: Request payload for the token exchange. Required. + :type body: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "appId": "str", # Client ID of an Azure AD application to be verified + against the appid claim in the Azure AD access token. Required. + "token": "str", # Azure AD access token of a Teams User to acquire a new + Communication Identity access token. Required. + "userId": "str" # Object ID of an Azure AD user (Teams User) to be verified + against the oid claim in the Azure AD access token. Required. + } + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @overload + async def exchange_teams_user_access_token( + self, body: IO, *, content_type: str = "application/json", **kwargs: Any + ) -> JSON: + """Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + :param body: Request payload for the token exchange. 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: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @distributed_trace_async + async def exchange_teams_user_access_token(self, body: Union[JSON, IO], **kwargs: Any) -> JSON: + """Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + :param body: Request payload for the token exchange. Is either a model type or a IO type. + Required. + :type body: JSON or IO + :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. + Default value is None. + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + 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 = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + cls = kwargs.pop("cls", None) # type: ClsType[JSON] + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IO, bytes)): + _content = body + else: + _json = body + + request = build_communication_identity_exchange_teams_user_access_token_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) # type: ignore + + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), {}) + + return cast(JSON, deserialized) + + @overload + async def issue_access_token( + self, id: str, body: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> JSON: + """Issue a new token for an identity. + + Issue a new token for an identity. + + :param id: Identifier of the identity to issue token for. Required. + :type id: str + :param body: Requested scopes for the new token. Required. + :type body: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "scopes": [ + "str" # List of scopes attached to the token. Required. + ], + "expiresInMinutes": 1440 # Optional. Default value is 1440. Optional custom + validity period of the token within [60,1440] minutes range. If not provided, the + default value of 1440 minutes (24 hours) will be used. + } + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @overload + async def issue_access_token( + self, id: str, body: IO, *, content_type: str = "application/json", **kwargs: Any + ) -> JSON: + """Issue a new token for an identity. + + Issue a new token for an identity. + + :param id: Identifier of the identity to issue token for. Required. + :type id: str + :param body: Requested scopes for the new token. 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: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @distributed_trace_async + async def issue_access_token(self, id: str, body: Union[JSON, IO], **kwargs: Any) -> JSON: + """Issue a new token for an identity. + + Issue a new token for an identity. + + :param id: Identifier of the identity to issue token for. Required. + :type id: str + :param body: Requested scopes for the new token. Is either a model type or a IO type. Required. + :type body: JSON or IO + :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. + Default value is None. + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + 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 = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + cls = kwargs.pop("cls", None) # type: ClsType[JSON] + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IO, bytes)): + _content = body + else: + _json = body + + request = build_communication_identity_issue_access_token_request( + id=id, + 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) # type: ignore + + pipeline_response = await self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), {}) + + return cast(JSON, deserialized) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_patch.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_patch.py new file mode 100644 index 000000000000..f7dd32510333 --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/aio/operations/_patch.py @@ -0,0 +1,20 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + + +def patch_sdk(): + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/__init__.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/__init__.py index 09dd0f2d0661..7120e3fb0cca 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/__init__.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/__init__.py @@ -6,8 +6,14 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._communication_identity_operations import CommunicationIdentityOperations +from ._operations import CommunicationIdentityOperations + +from ._patch import __all__ as _patch_all +from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import +from ._patch import patch_sdk as _patch_sdk __all__ = [ - 'CommunicationIdentityOperations', + "CommunicationIdentityOperations", ] +__all__.extend([p for p in _patch_all if p not in __all__]) +_patch_sdk() diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_operations.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_operations.py new file mode 100644 index 000000000000..58fb28bb9be5 --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_operations.py @@ -0,0 +1,739 @@ +# pylint: disable=too-many-lines +# coding=utf-8 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +import sys +from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload + +from azure.core.exceptions import ( + ClientAuthenticationError, + HttpResponseError, + ResourceExistsError, + ResourceNotFoundError, + ResourceNotModifiedError, + map_error, +) +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpResponse +from azure.core.rest import HttpRequest +from azure.core.tracing.decorator import distributed_trace +from azure.core.utils import case_insensitive_dict + +from .._serialization import Serializer +from .._vendor import _format_url_section + +if sys.version_info >= (3, 9): + from collections.abc import MutableMapping +else: + from typing import MutableMapping # type: ignore # pylint: disable=ungrouped-imports +JSON = MutableMapping[str, Any] # pylint: disable=unsubscriptable-object +T = TypeVar("T") +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +_SERIALIZER = Serializer() +_SERIALIZER.client_side_validation = False + + +def build_communication_identity_create_request(**kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + api_version = kwargs.pop("api_version", _params.pop("api-version", "2022-10-01")) # type: str + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/identities" + + # 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) + + +def build_communication_identity_delete_request(id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop("api_version", _params.pop("api-version", "2022-10-01")) # type: str + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/identities/{id}" + path_format_arguments = { + "id": _SERIALIZER.url("id", id, "str"), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="DELETE", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_communication_identity_revoke_access_tokens_request(id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + api_version = kwargs.pop("api_version", _params.pop("api-version", "2022-10-01")) # type: str + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/identities/{id}/:revokeAccessTokens" + path_format_arguments = { + "id": _SERIALIZER.url("id", id, "str"), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # Construct parameters + _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") + + # Construct headers + _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") + + return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs) + + +def build_communication_identity_exchange_teams_user_access_token_request(**kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + api_version = kwargs.pop("api_version", _params.pop("api-version", "2022-10-01")) # type: str + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/teamsUser/:exchangeAccessToken" + + # 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) + + +def build_communication_identity_issue_access_token_request(id: str, **kwargs: Any) -> HttpRequest: + _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) + _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) + + content_type = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + api_version = kwargs.pop("api_version", _params.pop("api-version", "2022-10-01")) # type: str + accept = _headers.pop("Accept", "application/json") + + # Construct URL + _url = "/identities/{id}/:issueAccessToken" + path_format_arguments = { + "id": _SERIALIZER.url("id", id, "str"), + } + + _url = _format_url_section(_url, **path_format_arguments) + + # 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 CommunicationIdentityOperations: + """ + .. warning:: + **DO NOT** instantiate this class directly. + + Instead, you should access the following operations through + :class:`~azure.communication.identity.CommunicationIdentityClient`'s + :attr:`communication_identity` attribute. + """ + + def __init__(self, *args, **kwargs): + input_args = list(args) + self._client = input_args.pop(0) if input_args else kwargs.pop("client") + self._config = input_args.pop(0) if input_args else kwargs.pop("config") + self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") + self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") + + @overload + def create(self, body: Optional[JSON] = None, *, content_type: str = "application/json", **kwargs: Any) -> JSON: + """Create a new identity, and optionally, an access token. + + Create a new identity, and optionally, an access token. + + :param body: If specified, creates also a Communication Identity access token associated with + the identity and containing the requested scopes. Default value is None. + :type body: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "createTokenWithScopes": [ + "str" # Optional. Also create access token for the created identity. + ], + "expiresInMinutes": 1440 # Optional. Default value is 1440. Optional custom + validity period of the token within [60,1440] minutes range. If not provided, the + default value of 1440 minutes (24 hours) will be used. + } + + # response body for status code(s): 201 + response == { + "identity": { + "id": "str" # Identifier of the identity. Required. + }, + "accessToken": { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + } + """ + + @overload + def create(self, body: Optional[IO] = None, *, content_type: str = "application/json", **kwargs: Any) -> JSON: + """Create a new identity, and optionally, an access token. + + Create a new identity, and optionally, an access token. + + :param body: If specified, creates also a Communication Identity access token associated with + the identity and containing the requested scopes. Default value is None. + :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: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 201 + response == { + "identity": { + "id": "str" # Identifier of the identity. Required. + }, + "accessToken": { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + } + """ + + @distributed_trace + def create(self, body: Optional[Union[JSON, IO]] = None, **kwargs: Any) -> JSON: + """Create a new identity, and optionally, an access token. + + Create a new identity, and optionally, an access token. + + :param body: If specified, creates also a Communication Identity access token associated with + the identity and containing the requested scopes. Is either a model type or a IO type. Default + value is None. + :type body: JSON or IO + :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. + Default value is None. + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 201 + response == { + "identity": { + "id": "str" # Identifier of the identity. Required. + }, + "accessToken": { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + } + """ + 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 = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + cls = kwargs.pop("cls", None) # type: ClsType[JSON] + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IO, bytes)): + _content = body + else: + if body is not None: + _json = body + else: + _json = None + + request = build_communication_identity_create_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) # type: ignore + + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), {}) + + return cast(JSON, deserialized) + + @distributed_trace + def delete(self, id: str, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements + """Delete the identity, revoke all tokens for the identity and delete all associated data. + + Delete the identity, revoke all tokens for the identity and delete all associated data. + + :param id: Identifier of the identity to be deleted. Required. + :type id: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop("cls", None) # type: ClsType[None] + + request = build_communication_identity_delete_request( + id=id, + api_version=self._config.api_version, + 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) # type: ignore + + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if cls: + return cls(pipeline_response, None, {}) + + @distributed_trace + def revoke_access_tokens(self, id: str, **kwargs: Any) -> None: # pylint: disable=inconsistent-return-statements + """Revoke all access tokens for the specific identity. + + Revoke all access tokens for the specific identity. + + :param id: Identifier of the identity. Required. + :type id: str + :return: None + :rtype: None + :raises ~azure.core.exceptions.HttpResponseError: + """ + error_map = { + 401: ClientAuthenticationError, + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 304: ResourceNotModifiedError, + } + error_map.update(kwargs.pop("error_map", {}) or {}) + + _headers = kwargs.pop("headers", {}) or {} + _params = kwargs.pop("params", {}) or {} + + cls = kwargs.pop("cls", None) # type: ClsType[None] + + request = build_communication_identity_revoke_access_tokens_request( + id=id, + api_version=self._config.api_version, + 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) # type: ignore + + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if cls: + return cls(pipeline_response, None, {}) + + @overload + def exchange_teams_user_access_token( + self, body: JSON, *, content_type: str = "application/json", **kwargs: Any + ) -> JSON: + """Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + :param body: Request payload for the token exchange. Required. + :type body: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "appId": "str", # Client ID of an Azure AD application to be verified + against the appid claim in the Azure AD access token. Required. + "token": "str", # Azure AD access token of a Teams User to acquire a new + Communication Identity access token. Required. + "userId": "str" # Object ID of an Azure AD user (Teams User) to be verified + against the oid claim in the Azure AD access token. Required. + } + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @overload + def exchange_teams_user_access_token( + self, body: IO, *, content_type: str = "application/json", **kwargs: Any + ) -> JSON: + """Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + :param body: Request payload for the token exchange. 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: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @distributed_trace + def exchange_teams_user_access_token(self, body: Union[JSON, IO], **kwargs: Any) -> JSON: + """Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + Exchange an Azure Active Directory (Azure AD) access token of a Teams user for a new + Communication Identity access token with a matching expiration time. + + :param body: Request payload for the token exchange. Is either a model type or a IO type. + Required. + :type body: JSON or IO + :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. + Default value is None. + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + 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 = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + cls = kwargs.pop("cls", None) # type: ClsType[JSON] + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IO, bytes)): + _content = body + else: + _json = body + + request = build_communication_identity_exchange_teams_user_access_token_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) # type: ignore + + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), {}) + + return cast(JSON, deserialized) + + @overload + def issue_access_token(self, id: str, body: JSON, *, content_type: str = "application/json", **kwargs: Any) -> JSON: + """Issue a new token for an identity. + + Issue a new token for an identity. + + :param id: Identifier of the identity to issue token for. Required. + :type id: str + :param body: Requested scopes for the new token. Required. + :type body: JSON + :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. + Default value is "application/json". + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # JSON input template you can fill out and use as your body input. + body = { + "scopes": [ + "str" # List of scopes attached to the token. Required. + ], + "expiresInMinutes": 1440 # Optional. Default value is 1440. Optional custom + validity period of the token within [60,1440] minutes range. If not provided, the + default value of 1440 minutes (24 hours) will be used. + } + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @overload + def issue_access_token(self, id: str, body: IO, *, content_type: str = "application/json", **kwargs: Any) -> JSON: + """Issue a new token for an identity. + + Issue a new token for an identity. + + :param id: Identifier of the identity to issue token for. Required. + :type id: str + :param body: Requested scopes for the new token. 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: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + + @distributed_trace + def issue_access_token(self, id: str, body: Union[JSON, IO], **kwargs: Any) -> JSON: + """Issue a new token for an identity. + + Issue a new token for an identity. + + :param id: Identifier of the identity to issue token for. Required. + :type id: str + :param body: Requested scopes for the new token. Is either a model type or a IO type. Required. + :type body: JSON or IO + :keyword content_type: Body Parameter content-type. Known values are: 'application/json'. + Default value is None. + :paramtype content_type: str + :return: JSON object + :rtype: JSON + :raises ~azure.core.exceptions.HttpResponseError: + + Example: + .. code-block:: python + + # response body for status code(s): 200 + response == { + "expiresOn": "2020-02-20 00:00:00", # The expiry time of the token. + Required. + "token": "str" # The access token issued for the identity. Required. + } + """ + 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 = kwargs.pop("content_type", _headers.pop("Content-Type", None)) # type: Optional[str] + cls = kwargs.pop("cls", None) # type: ClsType[JSON] + + content_type = content_type or "application/json" + _json = None + _content = None + if isinstance(body, (IO, bytes)): + _content = body + else: + _json = body + + request = build_communication_identity_issue_access_token_request( + id=id, + 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) # type: ignore + + pipeline_response = self._client._pipeline.run( # type: ignore # pylint: disable=protected-access + request, stream=False, **kwargs + ) + + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if response.content: + deserialized = response.json() + else: + deserialized = None + + if cls: + return cls(pipeline_response, cast(JSON, deserialized), {}) + + return cast(JSON, deserialized) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_patch.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_patch.py new file mode 100644 index 000000000000..f7dd32510333 --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_generated/operations/_patch.py @@ -0,0 +1,20 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +"""Customize generated code here. + +Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize +""" +from typing import List + +__all__: List[str] = [] # Add all objects you want publicly available to users at this package level + + +def patch_sdk(): + """Do not remove from this file. + + `patch_sdk` is a last resort escape hatch that allows you to do customizations + you can't accomplish using the techniques described in + https://aka.ms/azsdk/python/dpcodegen/python/customize + """ diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_utils.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_utils.py new file mode 100644 index 000000000000..fa92430ed059 --- /dev/null +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_utils.py @@ -0,0 +1,19 @@ +# ------------------------------------------------------------------------ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# ------------------------------------------------------------------------- + +from datetime import timedelta + +def convert_timedelta_to_mins( + duration, # type: timedelta +): + # type: (...) -> int + """ + Returns the total number of minutes contained in the duration. + : param duration: Time duration + : type duration: ~datetime.timedelta + : rtype: int + """ + return None if duration is None else int(duration.total_seconds() / 60) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_version.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_version.py index 24eb48941558..094b7a8e8856 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_version.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_version.py @@ -4,6 +4,6 @@ # license information. # -------------------------------------------------------------------------- -VERSION = "1.2.1" +VERSION = "1.3.0" SDK_MONIKER = "communication-identity/{}".format(VERSION) # type: str diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py index 5bb83d184ec3..f388ff7c8743 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/aio/_communication_identity_client_async.py @@ -14,6 +14,7 @@ from .._shared.models import CommunicationUserIdentifier from .._version import SDK_MONIKER from .._api_versions import DEFAULT_VERSION +from .._utils import convert_timedelta_to_mins if TYPE_CHECKING: from azure.core.credentials_async import AsyncTokenCredential @@ -34,6 +35,7 @@ class CommunicationIdentityClient: # pylint: disable=client-accepts-api-version- :language: python :dedent: 8 """ + def __init__( self, endpoint: str, @@ -88,10 +90,8 @@ async def create_user(self, **kwargs) -> 'CommunicationUserIdentifier': :return: CommunicationUserIdentifier :rtype: ~azure.communication.identity.CommunicationUserIdentifier """ - api_version = kwargs.pop("api_version", self._api_version) return await self._identity_service_client.communication_identity.create( - api_version=api_version, - cls=lambda pr, u, e: CommunicationUserIdentifier(u.identity.id, raw_id=u.identity.id), + cls=lambda pr, u, e: CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), **kwargs) @distributed_trace_async @@ -104,16 +104,23 @@ async def create_user_and_token( :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] + :keyword token_expires_in: Custom validity period of the Communication Identity access token + within [1, 24] hours range. If not provided, the default value of 24 hours will be used. + :paramtype token_expires_in: ~datetime.timedelta :return: A tuple of a CommunicationUserIdentifier and a AccessToken. :rtype: tuple of (~azure.communication.identity.CommunicationUserIdentifier, ~azure.core.credentials.AccessToken) """ - api_version = kwargs.pop("api_version", self._api_version) + token_expires_in = kwargs.pop('token_expires_in', None) + request_body = { + 'createTokenWithScopes': scopes, + 'expiresInMinutes': convert_timedelta_to_mins(token_expires_in) + } + return await self._identity_service_client.communication_identity.create( - create_token_with_scopes=scopes, - api_version=api_version, - cls=lambda pr, u, e: (CommunicationUserIdentifier(u.identity.id, raw_id=u.identity.id), - AccessToken(u.access_token.token, u.access_token.expires_on)), + body=request_body, + cls=lambda pr, u, e: (CommunicationUserIdentifier(u['identity']['id'], raw_id=u['identity']['id']), + AccessToken(u['accessToken']['token'], u['accessToken']['expiresOn'])), **kwargs) @distributed_trace_async @@ -130,10 +137,8 @@ async def delete_user( :return: None :rtype: None """ - api_version = kwargs.pop("api_version", self._api_version) await self._identity_service_client.communication_identity.delete( user.properties['id'], - api_version=api_version, **kwargs) @distributed_trace_async @@ -150,15 +155,22 @@ async def get_token( :param scopes: List of scopes to be added to the token. :type scopes: list[str or ~azure.communication.identity.CommunicationTokenScope] + :keyword token_expires_in: Custom validity period of the Communication Identity access token + within [1, 24] hours range. If not provided, the default value of 24 hours will be used. + :paramtype token_expires_in: ~datetime.timedelta :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ - api_version = kwargs.pop("api_version", self._api_version) + token_expires_in = kwargs.pop('token_expires_in', None) + request_body = { + 'scopes': scopes, + 'expiresInMinutes': convert_timedelta_to_mins(token_expires_in) + } + return await self._identity_service_client.communication_identity.issue_access_token( user.properties['id'], - scopes, - api_version=api_version, - cls=lambda pr, u, e: AccessToken(u.token, u.expires_on), + body=request_body, + cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) @distributed_trace_async @@ -174,10 +186,8 @@ async def revoke_tokens( :return: None :rtype: None """ - api_version = kwargs.pop("api_version", self._api_version) return await self._identity_service_client.communication_identity.revoke_access_tokens( user.properties['id'] if user else None, - api_version=api_version, **kwargs) @distributed_trace_async @@ -202,13 +212,14 @@ async def get_token_for_teams_user( :return: AccessToken :rtype: ~azure.core.credentials.AccessToken """ - api_version = kwargs.pop("api_version", self._api_version) + request_body = { + "token": aad_token, + "appId": client_id, + "userId": user_object_id + } return await self._identity_service_client.communication_identity.exchange_teams_user_access_token( - token=aad_token, - app_id=client_id, - user_id=user_object_id, - api_version=api_version, - cls=lambda pr, u, e: AccessToken(u.token, u.expires_on), + body=request_body, + cls=lambda pr, u, e: AccessToken(u['token'], u['expiresOn']), **kwargs) async def __aenter__(self) -> "CommunicationIdentityClient": diff --git a/sdk/communication/azure-communication-identity/samples/identity_samples.py b/sdk/communication/azure-communication-identity/samples/identity_samples.py index 8e791163be61..83ba5ecb6f12 100644 --- a/sdk/communication/azure-communication-identity/samples/identity_samples.py +++ b/sdk/communication/azure-communication-identity/samples/identity_samples.py @@ -24,6 +24,7 @@ 8) COMMUNICATION_MSAL_USERNAME - the username for authenticating via MSAL library 9) COMMUNICATION_MSAL_PASSWORD - the password for authenticating via MSAL library """ +from datetime import timedelta import os from azure.communication.identity._shared.utils import parse_connection_str from msal import PublicClientApplication @@ -56,6 +57,24 @@ def get_token(self): print("Getting token for: " + user.properties.get('id')) tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT]) print("Token issued with value: " + tokenresponse.token) + + def get_token_with_custom_expiration(self): + from azure.communication.identity import ( + CommunicationIdentityClient, + CommunicationTokenScope + ) + + if self.client_id is not None and self.client_secret is not None and self.tenant_id is not None: + from azure.identity import DefaultAzureCredential + endpoint, _ = parse_connection_str(self.connection_string) + identity_client = CommunicationIdentityClient(endpoint, DefaultAzureCredential()) + else: + identity_client = CommunicationIdentityClient.from_connection_string(self.connection_string) + user = identity_client.create_user() + print("Getting token for: " + user.properties.get('id')) + token_expires_in = timedelta(hours=1) + tokenresponse = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + print("Issued token with custom expiration" + tokenresponse.token) def revoke_tokens(self): from azure.communication.identity import ( @@ -103,6 +122,23 @@ def create_user_and_token(self): user, tokenresponse = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT]) print("User created with id:" + user.properties.get('id')) print("Token issued with value: " + tokenresponse.token) + + def create_user_and_token_with_custom_expiration(self): + from azure.communication.identity import ( + CommunicationIdentityClient, + CommunicationTokenScope + ) + if self.client_id is not None and self.client_secret is not None and self.tenant_id is not None: + from azure.identity import DefaultAzureCredential + endpoint, _ = parse_connection_str(self.connection_string) + identity_client = CommunicationIdentityClient(endpoint, DefaultAzureCredential()) + else: + identity_client = CommunicationIdentityClient.from_connection_string(self.connection_string) + print("Creating new user with token") + token_expires_in = timedelta(hours=1) + user, tokenresponse = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + print("User created with id:" + user.properties.get('id')) + print("Issued token with custom expiration: " + tokenresponse.token) def delete_user(self): from azure.communication.identity import CommunicationIdentityClient diff --git a/sdk/communication/azure-communication-identity/samples/identity_samples_async.py b/sdk/communication/azure-communication-identity/samples/identity_samples_async.py index 36e21e1f5689..6b457cbfe09e 100644 --- a/sdk/communication/azure-communication-identity/samples/identity_samples_async.py +++ b/sdk/communication/azure-communication-identity/samples/identity_samples_async.py @@ -25,6 +25,7 @@ 9) COMMUNICATION_MSAL_USERNAME - the username for authenticating via the MSAL library 10) COMMUNICATION_MSAL_PASSWORD - the password for authenticating via the MSAL library """ +from datetime import timedelta from azure.communication.identity._shared.utils import parse_connection_str from msal import PublicClientApplication import asyncio @@ -60,6 +61,23 @@ async def get_token(self): print("Issuing token for: " + user.properties.get('id')) tokenresponse = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT]) print("Token issued with value: " + tokenresponse.token) + + async def get_token_with_custom_expiration(self): + from azure.communication.identity.aio import CommunicationIdentityClient + from azure.communication.identity import CommunicationTokenScope + if self.client_id is not None and self.client_secret is not None and self.tenant_id is not None: + from azure.identity.aio import DefaultAzureCredential + endpoint, _ = parse_connection_str(self.connection_string) + identity_client = CommunicationIdentityClient(endpoint, DefaultAzureCredential()) + else: + identity_client = CommunicationIdentityClient.from_connection_string(self.connection_string) + + async with identity_client: + user = await identity_client.create_user() + print("Issuing token for: " + user.properties.get('id')) + token_expires_in = timedelta(hours=1) + tokenresponse = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + print("Issued token with custom expiration: " + tokenresponse.token) async def revoke_tokens(self): from azure.communication.identity.aio import CommunicationIdentityClient @@ -107,6 +125,23 @@ async def create_user_and_token(self): user, tokenresponse = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT]) print("User created with id:" + user.properties.get('id')) print("Token issued with value: " + tokenresponse.token) + + async def create_user_and_token_with_custom_expiration(self): + from azure.communication.identity.aio import CommunicationIdentityClient + from azure.communication.identity import CommunicationTokenScope + if self.client_id is not None and self.client_secret is not None and self.tenant_id is not None: + from azure.identity.aio import DefaultAzureCredential + endpoint, _ = parse_connection_str(self.connection_string) + identity_client = CommunicationIdentityClient(endpoint, DefaultAzureCredential()) + else: + identity_client = CommunicationIdentityClient.from_connection_string(self.connection_string) + + async with identity_client: + print("Creating new user with token") + token_expires_in = timedelta(hours=1) + user, tokenresponse = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + print("User created with id:" + user.properties.get('id')) + print("Issued token with custom expiration: " + tokenresponse.token) async def delete_user(self): from azure.communication.identity.aio import CommunicationIdentityClient diff --git a/sdk/communication/azure-communication-identity/swagger/SWAGGER.md b/sdk/communication/azure-communication-identity/swagger/SWAGGER.md index 3a2ccfeb0731..54b5c58cd2a6 100644 --- a/sdk/communication/azure-communication-identity/swagger/SWAGGER.md +++ b/sdk/communication/azure-communication-identity/swagger/SWAGGER.md @@ -15,9 +15,9 @@ autorest ./SWAGGER.md ### Settings ``` yaml -tag: package-2022-06 +tag: package-2022-10 require: - - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5b0818f55339dbff370a967e3f068e180c6ad5a1/specification/communication/data-plane/Identity/readme.md + - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a8c4340400f1ab1ae6a43b10e8d635ecb9c49a2a/specification/communication/data-plane/Identity/readme.md output-folder: ../azure/communication/identity/_generated/ namespace: azure.communication.identity license-header: MICROSOFT_MIT_NO_VERSION diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml index 9366c01f971f..c9c03cec802e 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,32 +9,32 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:14:49 GMT + - Fri, 07 Oct 2022 14:37:47 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:49 GMT + - Fri, 07 Oct 2022 14:37:47 GMT ms-cv: - - +r9f3QqO60+Ku/EbwZK38A.0 + - KMNf9zN7ZE2GjH5gVeXk2A.2.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 68ms + - 95ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml index c7bba7025daf..51b171856d01 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"createTokenWithScopes": ["chat"]}' + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json @@ -9,33 +9,33 @@ interactions: Connection: - keep-alive Content-Length: - - '35' + - '61' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:14:50 GMT + - Fri, 07 Oct 2022 14:37:48 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-04T09:14:50.630433+00:00"}}' + "expiresOn": "2022-10-08T14:37:48.9409653+00:00"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - - '919' + - '920' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:50 GMT + - Fri, 07 Oct 2022 14:37:48 GMT ms-cv: - - tBfz2wmnTky+M94+t0LCCQ.0 + - 0E+6qas4cUyJWZeaohz6Wg.2.0 request-context: - appId= strict-transport-security: @@ -43,7 +43,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 42ms + - 97ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_maximum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_maximum_validity.yaml new file mode 100644 index 000000000000..2a73483de43d --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_maximum_validity.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 1440}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Fri, 16 Sep 2022 17:41:09 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-09-17T17:41:09.951635+00:00"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '919' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 16 Sep 2022 17:41:09 GMT + ms-cv: + - 1bkpll6QykG78DeRcTLqQA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 44ms + status: + code: 201 + message: Created +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_minimum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_minimum_validity.yaml new file mode 100644 index 000000000000..4358f186926d --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_minimum_validity.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 60}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '59' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Fri, 16 Sep 2022 17:41:10 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-09-16T18:41:10.7804963+00:00"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '920' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 16 Sep 2022 17:41:10 GMT + ms-cv: + - hqkCXnnLFk2GY6ckYal+7w.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 39ms + status: + code: 201 + message: Created +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml new file mode 100644 index 000000000000..ce353a7f59c5 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 1441}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Fri, 16 Sep 2022 17:41:10 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 1441 is invalid.", "target": "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Fri, 16 Sep 2022 17:41:11 GMT + ms-cv: + - Xj7XsV+a0UGrByZyylxSGg.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 33ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml new file mode 100644 index 000000000000..07c3e64dfcb6 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 59}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '59' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Fri, 16 Sep 2022 17:41:11 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 59 is invalid.", "target": "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Fri, 16 Sep 2022 17:41:11 GMT + ms-cv: + - C8iq/0ovlk2/EZo4bgLsuA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 29ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_invalid_custom_expirations_0_min_invalid_mins.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_invalid_custom_expirations_0_min_invalid_mins.yaml new file mode 100644 index 000000000000..61759e7d3f84 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_invalid_custom_expirations_0_min_invalid_mins.yaml @@ -0,0 +1,51 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 59}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '59' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:37:48 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 59 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Fri, 07 Oct 2022 14:37:49 GMT + ms-cv: + - dsJ6PKH8P0WuZo4/ZGA1bw.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 132ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_invalid_custom_expirations_1_max_invalid_mins.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_invalid_custom_expirations_1_max_invalid_mins.yaml new file mode 100644 index 000000000000..7cbf3e432842 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_invalid_custom_expirations_1_max_invalid_mins.yaml @@ -0,0 +1,51 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 1441}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:37:49 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 1441 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Fri, 07 Oct 2022 14:37:49 GMT + ms-cv: + - RDRwoELtokK+QF6CFYuJ6Q.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 23ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml index 03bf2f11ddd7..cb3cceb62190 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: '{"createTokenWithScopes": null, "expiresInMinutes": null}' headers: Accept: - application/json @@ -9,32 +9,32 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '57' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:14:50 GMT + - Fri, 07 Oct 2022 14:37:49 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:51 GMT + - Fri, 07 Oct 2022 14:37:50 GMT ms-cv: - - 0ah7qLw2bUSgBR7puPqEfw.0 + - YhmTB0W+qkmzvUnZrix4Zw.2.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 37ms + - 92ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_valid_custom_expirations_0_min_valid_hours.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_valid_custom_expirations_0_min_valid_hours.yaml new file mode 100644 index 000000000000..48822a4d0a28 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_valid_custom_expirations_0_min_valid_hours.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 60}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '59' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:37:50 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-10-07T15:37:50.827085+00:00"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '919' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:37:50 GMT + ms-cv: + - t/5ITMLUOU6wwfhdDJ8ZJA.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 108ms + status: + code: 201 + message: Created +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_valid_custom_expirations_1_max_valid_hours.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_valid_custom_expirations_1_max_valid_hours.yaml new file mode 100644 index 000000000000..489cd47a615c --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_valid_custom_expirations_1_max_valid_hours.yaml @@ -0,0 +1,50 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 1440}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:37:50 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-10-08T14:37:51.2891035+00:00"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '920' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:37:51 GMT + ms-cv: + - LnfiyO3CgEOKfO7BFSZrIw.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 100ms + status: + code: 201 + message: Created +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml index 1a986fa8f381..a5505265c72b 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,28 +9,28 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:52 GMT + - Fri, 07 Oct 2022 14:37:52 GMT ms-cv: - - BMxGIFuPyk69RodcGvUanw.0 + - xxG6spXdjESb7AabdYfKbA.2.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 209ms + - 244ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml index c89a081f63be..547c36c2657d 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,32 +9,32 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:14:52 GMT + - Fri, 07 Oct 2022 14:37:53 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:53 GMT + - Fri, 07 Oct 2022 14:37:53 GMT ms-cv: - - kRXKfQHpVk6oGQmGkNRLrQ.0 + - w4+E3FoIhE6EypQm/sU7Xw.2.0 request-context: - appId= strict-transport-security: @@ -42,7 +42,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 29ms + - 110ms status: code: 201 message: Created @@ -58,24 +58,24 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:14:53 GMT + - Fri, 07 Oct 2022 14:37:53 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - - Wed, 03 Aug 2022 09:14:53 GMT + - Fri, 07 Oct 2022 14:37:53 GMT ms-cv: - - 1B3zLSNNTEKe5O0UdQe3BA.0 + - l/r97jJtjEu5wiCcK4fQ8A.2.0 request-context: - appId= strict-transport-security: @@ -83,7 +83,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 188ms + - 214ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml index ac5a270a9bd3..0bbe1f9457eb 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,28 +9,28 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:54 GMT + - Fri, 07 Oct 2022 14:37:55 GMT ms-cv: - - DUsCjgIRHk6OyYqsOmtVRg.0 + - WFKB9hhRqEWmdhh5FGesPw.2.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 30ms + - 231ms status: code: 201 message: Created @@ -54,20 +54,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - - Wed, 03 Aug 2022 09:14:54 GMT + - Fri, 07 Oct 2022 14:37:56 GMT ms-cv: - - Ff/JSRw5q0iX3uPhqGh31Q.0 + - jRaEQ/zB5EGk+Wz7qkoxfA.2.0 request-context: - appId= strict-transport-security: @@ -75,7 +75,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 171ms + - 299ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml index 34d977e3e713..0db6dcac8d28 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,32 +9,32 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:14:54 GMT + - Fri, 07 Oct 2022 14:37:56 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:55 GMT + - Fri, 07 Oct 2022 14:37:56 GMT ms-cv: - - 19KHqdoQnUaM6le0wqpj3w.0 + - nhg7ptKwXE6cy5IGkTVA8g.2.0 request-context: - appId= strict-transport-security: @@ -42,12 +42,12 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 28ms + - 95ms status: code: 201 message: Created - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json @@ -56,32 +56,32 @@ interactions: Connection: - keep-alive Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:14:55 GMT + - Fri, 07 Oct 2022 14:37:57 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:14:55.5623417+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:37:57.7752455+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '804' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:55 GMT + - Fri, 07 Oct 2022 14:37:57 GMT ms-cv: - - fUfVJX3W0kCXZvJbmNOMiQ.0 + - BuHu/o6m7EaBsgUNrNyLtw.2.0 request-context: - appId= strict-transport-security: @@ -89,7 +89,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 35ms + - 168ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml index 5b9d14d77a8f..fa8e48103963 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_from_managed_identity.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrlL4wzBFl1mIU86DCuw6sHWl74q6BmuK0b7PRATQXKCMzLwbU4U9C9ahKy6cNj3-yFZs3oKpDeGP4nW0IT5YzZJfg59Jkd9RaPRxJIsZE6cTlBHhJDDNicKgADXNIoXG_ndyG0tCp9FLCQYEJSLIOIQsqqAEUkTN6g7zAHe3rBr4gAA; - fpc=AnvPZLVeEJFLj2Xc5Vk-flE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrt517x72psclkbHVuUmHXLpVNmP78j3MGUOc4d6cPcrJEaowBFD2xXylW5T2ck1bz3GFBjkkJlE-S3NfWMECyv40LqYJM2i-1D4_IeVSeFJ_lObwtAIP_t3fW1gs3MPrTU5Un00g5QpLGQ-xJx0GRZv-CBwVroiLAGDwbBjOyqXFrfUp5Vs62nuWV6I4bJSGGpR_Sdl4GGGn4qwZ4BRFjZmaKbbFDI1uC4WuqoiS4hRUgAA; + fpc=ArhtEweoVghMp9wXYBxFkDQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:55 GMT + - Fri, 07 Oct 2022 14:37:57 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AnvPZLVeEJFLj2Xc5Vk-flE; expires=Fri, 02-Sep-2022 09:14:55 GMT; path=/; + - fpc=ArhtEweoVghMp9wXYBxFkDQ; expires=Sun, 06-Nov-2022 14:37:58 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13777.6 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,27 +62,27 @@ interactions: Connection: - keep-alive Content-Length: - - '2199' + - '2156' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-03T10:36:05.2921076+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-07T15:59:26.141054+00:00"}' headers: api-supported-versions: - - 2021-10-31-preview, 2022-06-01 + - 2021-10-31-preview, 2022-06-01, 2022-10-01 content-length: - - '824' + - '823' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:56 GMT + - Fri, 07 Oct 2022 14:37:59 GMT ms-cv: - - VBpYR0e31EGsVRkldEbw5w.0 + - Pce0VLVuqEe7qFoUecxRvg.0 request-context: - appId= strict-transport-security: @@ -90,7 +90,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 479ms + - 1218ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml index 4d86e82d4c73..532cf54d6bd9 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_expired_token.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrrFfvqRSn8Ztqr3H7wl9Ae7dOhS4Ibc0uF1-jyfvDWbwo9D2i8nAoX_mv0H-NEf024wpDGkN8UVciwf7hTuw2Iry4bwChTmUhuFHPKipLjVO19ROS3JKxEI1wr7KKcdPZGwF1r5JOgR1mAOLmXAg-Khx00bYieE2bU5QpOLLvHPsgAA; - fpc=AlxzUyxRPCJLjfmx_ymdFZo; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBcxWzeGcBf7hDe1I2PqhjoFNfu27vV8DBz_uJCQZz3dZyV4lFzT9lDq_TP8N4hPoRJ-Q945AquKkWNTqVMqMg1bImnONco6ANzpUHMUzOi1wtKoiCKP5XSTQiLqo_RlzAwZ96odM7-zXsm9MmBbOGv1owhGx_CQDSENWe3qGL3rbtDvs391Vl6d77kGmTA4_E0ji435Rd9T8EwLKMRhAI2Ev8o1UaIeTC1-J64xPAjIgAA; + fpc=Aq8hHJmFcVFJudWnaJbcDZU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:56 GMT + - Fri, 07 Oct 2022 14:38:00 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AlxzUyxRPCJLjfmx_ymdFZo; expires=Fri, 02-Sep-2022 09:14:57 GMT; path=/; + - fpc=Aq8hHJmFcVFJudWnaJbcDZU; expires=Sun, 06-Nov-2022 14:38:00 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR2 ProdSlices + - 2.1.13777.6 - WEULR1 ProdSlices x-xss-protection: - '0' status: @@ -66,13 +66,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:14:57 GMT + - Fri, 07 Oct 2022 14:38:00 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access @@ -81,9 +81,9 @@ interactions: content-type: - application/json date: - - Wed, 03 Aug 2022 09:14:57 GMT + - Fri, 07 Oct 2022 14:38:00 GMT ms-cv: - - 2I2vcs8F40eU0Tfefy+Qxw.0 + - CgNqGtqt5k6Nb/43K5QsMg.0 request-context: - appId= strict-transport-security: @@ -93,7 +93,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 56ms + - 115ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml index 79780b096372..36faab19ca19 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_0_empty_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrgyrsEbWALhzmY9u_ORzAuQGXhGE17CqQS0kimZNZYhj9oVkUDHUANgElpoeE9lhKGo_2lmzE6H6zC5nq9K-0mZUNlV4ezbTJsq4TrwOzuOgqxJhdinDg16Bs5d27Q9gjuG-qVERBjRdzBGZPxyb0Wh0-iHmMhNzWnQRVVqKO18AgAA; - fpc=AtgsxCtHBrFNjDb7XOy1SBg; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrwAdPkau605XGQuyPDJQiCpXdcz1MXkXUjZZfEBeebliqkKIgn5SYrX9UhBVqyAF6JIGl6-A9_IYGOiVFIFaYIgdtIbchaiu5xl4ZU79eP6bQ6Wt9viRizvK7qOJ6K7AJe2DL61VeOhVjgDIeA2nWnFLA5Q2O_A0-aD0ERezSVpDDZ58rFN2xHf8PRzzL2P8-fy1S_o2acA1snOWAG-TilHDFQAdKS-KAAY3bx7gML_kgAA; + fpc=AvYGoz_0exBLkpHPbIg2Uyg; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:58 GMT + - Fri, 07 Oct 2022 14:38:00 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AtgsxCtHBrFNjDb7XOy1SBg; expires=Fri, 02-Sep-2022 09:14:58 GMT; path=/; + - fpc=AvYGoz_0exBLkpHPbIg2Uyg; expires=Sun, 06-Nov-2022 14:38:01 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13777.6 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,17 +62,17 @@ interactions: Connection: - keep-alive Content-Length: - - '2163' + - '2120' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:14:59 GMT + - Fri, 07 Oct 2022 14:38:01 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "AppId: The AppId @@ -81,9 +81,9 @@ interactions: content-type: - application/json date: - - Wed, 03 Aug 2022 09:14:59 GMT + - Fri, 07 Oct 2022 14:38:01 GMT ms-cv: - - zsTPfWF1nkSKJDA7MGleGQ.0 + - kjAHbaVjX0mGwo3cyADN4Q.0 request-context: - appId= strict-transport-security: @@ -93,7 +93,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 49ms + - 115ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml index 68cbdfeb4667..0236fae49ed3 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_client_id_1_invalid_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrNnn55iYfXCIN1F0FH8gqIEgb-aT1znsPiSXFVdH1n286mx8qSoy8YvkpuYDAVX6c1OrEFEgGI-kPYqhaUdWuGfEQlhXRm4F-Bn6dhwiyut-DQxVTrqO6SI_21Mb6zhNQnP7p79iRYGDHoJBV-RLBDUdchtnDQ63WTN7SAXr1NTIgAA; - fpc=AlCIKPOnS6tPvHDcmrgE_oQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrotWx3bVDG8Iwwgby-FHrVbykEZSOblXZFdrLaChtQU_2T1zTDZqJLvAh4yTwPIplc9GU6Lt-0R_u3OUTURzTtSIt--hk3Gai9SCy-ke4TWDtYm-YMkNocgQFE14HxhyloCdj7r8wEX6pa9-Lgv0GGWyUvIwSKeQCzhDx-KSAEF5Uqgwe6N4ESaBxwJ3NuhXfmG4GRmnxm2vOGmvgz5fRKV1dg0-RcwVbk5kxVCe2lMUgAA; + fpc=AoBknw96eLdMmYrEPqbmp0k; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:14:59 GMT + - Fri, 07 Oct 2022 14:38:01 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AlCIKPOnS6tPvHDcmrgE_oQ; expires=Fri, 02-Sep-2022 09:15:00 GMT; path=/; + - fpc=AoBknw96eLdMmYrEPqbmp0k; expires=Sun, 06-Nov-2022 14:38:02 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR2 ProdSlices + - 2.1.13777.6 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,30 +62,30 @@ interactions: Connection: - keep-alive Content-Length: - - '2170' + - '2127' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:00 GMT + - Fri, 07 Oct 2022 14:38:02 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided AppId has invalid format.", "target": "appId"}}' headers: api-supported-versions: - - 2021-10-31-preview, 2022-06-01 + - 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:00 GMT + - Fri, 07 Oct 2022 14:38:02 GMT ms-cv: - - T+WPQVJeRU6rv+SIGv0/Eg.0 + - c6ibiR3k3E2hBq5FlAF0yw.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 36ms + - 113ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml index 8aacb5784d33..8f3bb47cdaa3 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_0_empty_token.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:00 GMT + - Fri, 07 Oct 2022 14:38:02 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access @@ -28,9 +28,9 @@ interactions: content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:01 GMT + - Fri, 07 Oct 2022 14:38:02 GMT ms-cv: - - 7KrUNc1QhEaSLSPw85d33g.0 + - nMFKCF6Kl06soIxaTlohiQ.0 request-context: - appId= strict-transport-security: @@ -40,7 +40,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 25ms + - 111ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml index 85a1f9f5b452..181872418b71 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_token_1_invalid_token.yaml @@ -13,13 +13,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:01 GMT + - Fri, 07 Oct 2022 14:38:02 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access @@ -28,9 +28,9 @@ interactions: content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:01 GMT + - Fri, 07 Oct 2022 14:38:02 GMT ms-cv: - - du4aSDNQk0O97B/77s1Arw.0 + - be8Xl2duikO2RFmRXIw8pg.0 request-context: - appId= strict-transport-security: @@ -40,7 +40,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 39ms + - 107ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml index 02f066d57a98..c8815b841470 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_0_empty_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrm6ZzoMXixgQ-xMBXNRaksnzwfym0xpKk45biBnpmraTPhslDgEiXi0Zaq7M6vNCp-rVoh_FwzL6qfsT-QvCEbZwHXCOKvP3UpBZHld2YAd2FBpXKXRx_NfA8t4x5lNtIK9u5vVwKxXsnmUqaPCm6TD9HhQqal3EyURcu43rcJDQgAA; - fpc=AkLsAEYtkR9Pg_jSAGIg1lQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrws6oZYY2NIC9PFwMecLGRAajA8h5WUNaVoIO-jw3gTquEh_CqgC7J_04YPplUWO185zIBdLYVtfkBLpN88-91cbykW_U4ql5mIcff2o3ko8ThBAhOTUlzwOYKGFbvrjcDv7jMBRXFBFydJzxX5d1lUshn6JBlGDq5WsuVXbwIaq8WhzeGSNz66ZBABdHPFsSPGuJfgFj68XRYALx3G7ib8urKsF3EoMZ25BHUgZnprwgAA; + fpc=AgQMDiP1EddNsVmcDY1PBnU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:01 GMT + - Fri, 07 Oct 2022 14:38:03 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AkLsAEYtkR9Pg_jSAGIg1lQ; expires=Fri, 02-Sep-2022 09:15:02 GMT; path=/; + - fpc=AgQMDiP1EddNsVmcDY1PBnU; expires=Sun, 06-Nov-2022 14:38:03 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13777.6 - WEULR1 ProdSlices x-xss-protection: - '0' status: @@ -62,17 +62,17 @@ interactions: Connection: - keep-alive Content-Length: - - '2163' + - '2120' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:02 GMT + - Fri, 07 Oct 2022 14:38:03 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "UserId: The UserId @@ -81,9 +81,9 @@ interactions: content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:03 GMT + - Fri, 07 Oct 2022 14:38:03 GMT ms-cv: - - 50M21RomZEy2aanUIvxjhw.0 + - rWq96OTU/EOnx/pcFDkZfg.0 request-context: - appId= strict-transport-security: @@ -93,7 +93,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 32ms + - 112ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml index 669eca29db59..737bec1bae19 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_invalid_user_object_id_1_invalid_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrT87IPBE6eqhnRqLF7pSXEMkJ8X8YhG93A3N2aVPCZBcycBgzR0oiCsFU5yIo757B70rY8MKnZKqcWHqQ415hCD9iGZNanCO0L-SEGewHBF-aSLtf0er5Ex-FMNYU3WD9f5nUCcg0K7SgYBj2BJ_Urbp42Hhn_VzlemodhKcLZYUgAA; - fpc=AjNhWcHw8uBHouYgToIAdMs; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrc9HD1f8Wpnz4__tTHi0xO_7QsRLWv9qfAQDVXOTvNtCCqkOHI2k46kx5cfCU-3dwqVgggss-id1qEnnz7bPnS-HA-8mWvLJtOgYHjnte_Il_5Qo5GsTzQrTUJtVk7X5KDq9nUYuBsvAgznzC5oJLveIh0KwaAQYR9XtSdeNFY-Sx38vlcZPnTj5nKGvNMehIKIqPh0d_OuA2wtMGvSdXi9rSrnsuCl8YgUA6DLA9-OggAA; + fpc=AnNJXQw9rQ1Kl0V9PuDc2N8; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:03 GMT + - Fri, 07 Oct 2022 14:38:03 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AjNhWcHw8uBHouYgToIAdMs; expires=Fri, 02-Sep-2022 09:15:03 GMT; path=/; + - fpc=AnNJXQw9rQ1Kl0V9PuDc2N8; expires=Sun, 06-Nov-2022 14:38:04 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR2 ProdSlices + - 2.1.13777.6 - WEULR1 ProdSlices x-xss-protection: - '0' status: @@ -62,30 +62,30 @@ interactions: Connection: - keep-alive Content-Length: - - '2170' + - '2127' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:03 GMT + - Fri, 07 Oct 2022 14:38:04 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided UserId has invalid format.", "target": "userId"}}' headers: api-supported-versions: - - 2021-10-31-preview, 2022-06-01 + - 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:04 GMT + - Fri, 07 Oct 2022 14:38:04 GMT ms-cv: - - DQV3ehjiQEqd7mKL/N/YMw.0 + - jC83bTi4SUCCIFOpvMcm3A.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 34ms + - 113ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml index aa3e2fbdd907..f4313c9815f9 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_valid_params.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYw3Jl2kDb2PBjluKFBmTw_1D-rSE8rzley-6YAFl4tAkBvrliIqiLEkzTfdEajuCjlmmipePbi2DJCRk6jNDFo-Fv4Lrigt3FkXUjnuVJiFEKsQZJWhsVqyw32x0VC_ss85PoGALkPkfjeDXJYKRUAPYHjFTsF062InIVvAuG74gAA; - fpc=AmL9cvMNLMZMuwP7N10Ye5w; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevriIzcl5xCg5VNEsUUkILtGmok97Esn12aBdJWqrPKi7ehsK3Az7eqKPOvXQ1EsBJxIxGTuYUckD752qXrmyRNfh3tm-PElF_vePYXQYda9cxr8zNrCdmcmziqaU3tKJCuAlbBuiuz3oSkh6f1HJQYhCmy3E7fIiF2lfJfDPOVqv1hi7IdOGgqu3iq1GoNDnHn0IZwcCZm3-VxtI0IC_LLm1ysgoWskg8Z5Diq1bBKwBwgAA; + fpc=AjGd9X0vUrNIqag3b1x2tAI; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:04 GMT + - Fri, 07 Oct 2022 14:38:04 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AmL9cvMNLMZMuwP7N10Ye5w; expires=Fri, 02-Sep-2022 09:15:05 GMT; path=/; + - fpc=AjGd9X0vUrNIqag3b1x2tAI; expires=Sun, 06-Nov-2022 14:38:05 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR1 ProdSlices + - 2.1.13777.6 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,31 +62,31 @@ interactions: Connection: - keep-alive Content-Length: - - '2199' + - '2156' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:05 GMT + - Fri, 07 Oct 2022 14:38:05 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-03T10:44:10.8639733+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-07T15:51:51.9311306+00:00"}' headers: api-supported-versions: - - 2021-10-31-preview, 2022-06-01 + - 2021-10-31-preview, 2022-06-01, 2022-10-01 content-length: - '824' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:24 GMT + - Fri, 07 Oct 2022 14:38:05 GMT ms-cv: - - xcn3nUyJZ0WiRsOtqHvCDg.0 + - Be4c1xXH002KTjFsRNbUJQ.0 request-context: - appId= strict-transport-security: @@ -94,7 +94,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 19701ms + - 318ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml index b398d34e319c..567e993426ed 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrfy1R_EdtIH7tUQmIKDCXzVEf6-gRl_BHUnAnXHWifFxIbTAr1a0MlmcQZEPbex1m1yFWYhdG0qb6vcxpL42MlSEk7lSG0wHp69Ue8q3GI82isqwHRe0JPUO166OsQqyXzLT9xflSnyp6opgANftH0oLhQvKkvhtcR62F2sP7DB0gAA; - fpc=AlQE6VbK5EdJjUOrnF3mqxU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrpdPFSh6mFZuYJTNgxHaNF7rAJmhQqPG9R09PZ-4-xFRKNIUGZrj2GNM2JXK9rI7QhNkiKq6_sebFMAhRgCl9lWLQPVs-L-9EgMe0NiLHM_lQSVT0U45wz8592qLWJFlK1lwcilEBz7AtF4d-8Oz4ZMKGq477WCUEcZK39L_M75l60X4eN0QZqbE8xO6WpqLyN9M0aBrvHmGZuDRLSC7MHdaUUn7Cwqw4xWZQEMAROpAgAA; + fpc=AjdyfPIOJKxBqdCYeyPndsQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:26 GMT + - Fri, 07 Oct 2022 14:38:05 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AlQE6VbK5EdJjUOrnF3mqxU; expires=Fri, 02-Sep-2022 09:15:26 GMT; path=/; + - fpc=AjdyfPIOJKxBqdCYeyPndsQ; expires=Sun, 06-Nov-2022 14:38:06 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR1 ProdSlices + - 2.1.13777.6 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,30 +62,30 @@ interactions: Connection: - keep-alive Content-Length: - - '2199' + - '2156' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:26 GMT + - Fri, 07 Oct 2022 14:38:06 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "AAD application is not the expected one.", "target": "appId"}}' headers: api-supported-versions: - - 2021-10-31-preview, 2022-06-01 + - 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:27 GMT + - Fri, 07 Oct 2022 14:38:05 GMT ms-cv: - - mYnXYtD5r0G2A0SY15d5oQ.0 + - WIWvnUGMsUKg4j1Vituukw.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 39ms + - 115ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml index 5ecec1751ddb..dcc1a4d4be22 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_for_teams_user_with_wrong_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrDHlERnfiUREfUW10Fr8nYZO_ZI2zzMGGj8N-3-fzkU0WsIE-q-GX53lMgBDgiJbp9VcKyeGtCUZ270IOjq_paV_xNJg2CaPH-p-84slJ5VlUcYdg4pdIxwjFhLEDRmWPd00khdzM7bgGlPaDh-TFz-0hUrBgiu-_DTqdrK-F_lggAA; - fpc=AooeKFT7DhJBqnces-VVj0U; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrvA2IsXhYG8W9sGHoAY-cnshSS9w00AUeKrSI86ve04ODS05pb6ORL8wdQRTFnImerTKu2k0_xtMfffoUb8fcVo4KYfHvAY-fhWOdnZjrhY1ok0zOr2-yYe1pCWjIQydnIunDRu0yGzCjp7XujW7kzJLjCYLQpx1J9efvwPNkHSaLBzHw9VPTShSPaNZ45tR7417XqdjCCiEmSKejwUE401Ui5-x1Iw-DsQGJ_vdBjJUgAA; + fpc=AvwTPmRJTkFBmEOFYlo1224; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:27 GMT + - Fri, 07 Oct 2022 14:38:06 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AooeKFT7DhJBqnces-VVj0U; expires=Fri, 02-Sep-2022 09:15:27 GMT; path=/; + - fpc=AvwTPmRJTkFBmEOFYlo1224; expires=Sun, 06-Nov-2022 14:38:07 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13777.6 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,30 +62,30 @@ interactions: Connection: - keep-alive Content-Length: - - '2199' + - '2156' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:27 GMT + - Fri, 07 Oct 2022 14:38:07 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided AAD token issued for unexpected user.", "target": "userId"}}' headers: api-supported-versions: - - 2021-10-31-preview, 2022-06-01 + - 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:27 GMT + - Fri, 07 Oct 2022 14:38:06 GMT ms-cv: - - flf5XchF0EiAj7+rCktIkA.0 + - /tk+CvNwJE+RUdpzxSfFPQ.0 request-context: - appId= strict-transport-security: @@ -95,7 +95,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 51ms + - 114ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml index 3a3ce589850e..4db26932c96d 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,28 +9,28 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:29 GMT + - Fri, 07 Oct 2022 14:38:08 GMT ms-cv: - - KThQYBgxhESETNDl3bjBMQ.0 + - piJp1TkGF0O/TpUwkAhHyg.2.0 request-context: - appId= strict-transport-security: @@ -38,12 +38,12 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 29ms + - 238ms status: code: 201 message: Created - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json @@ -52,28 +52,28 @@ interactions: Connection: - keep-alive Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:15:30.0386735+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:08.7828927+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '804' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:29 GMT + - Fri, 07 Oct 2022 14:38:08 GMT ms-cv: - - n2wKOuKKuU2IwHgyhub1sg.0 + - 9bTNWcQtDEKBc66e2NQI/w.2.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 38ms + - 159ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_maximum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_maximum_validity.yaml new file mode 100644 index 000000000000..091d6840a292 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_maximum_validity.yaml @@ -0,0 +1,96 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Fri, 16 Sep 2022 17:41:32 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 16 Sep 2022 17:41:32 GMT + ms-cv: + - 5NcwOOFZikyYXPKSnd5ldw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 35ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 1440}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '46' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Fri, 16 Sep 2022 17:41:33 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-09-17T17:41:33.8255075+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '804' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 16 Sep 2022 17:41:33 GMT + ms-cv: + - FuZDkMiTakKCC0UEAm1gWQ.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 40ms + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_minimum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_minimum_validity.yaml new file mode 100644 index 000000000000..f61f60940ec7 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_minimum_validity.yaml @@ -0,0 +1,96 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Fri, 16 Sep 2022 17:41:33 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 16 Sep 2022 17:41:33 GMT + ms-cv: + - Oi9ZAS4780ykIpAQdSsSsg.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 39ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 60}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '44' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Fri, 16 Sep 2022 17:41:34 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-09-16T18:41:34.4410404+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '804' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 16 Sep 2022 17:41:33 GMT + ms-cv: + - m7F0iccnRkyw2hHC0IixnQ.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 50ms + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_over_maximum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_over_maximum_allowed.yaml new file mode 100644 index 000000000000..7c3d551470fe --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_over_maximum_allowed.yaml @@ -0,0 +1,97 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Fri, 16 Sep 2022 17:41:34 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 16 Sep 2022 17:41:34 GMT + ms-cv: + - CDj+TR3U8kSwPk1KWcuCIw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 34ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 1441}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '46' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Fri, 16 Sep 2022 17:41:34 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 1441 is invalid.", "target": "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Fri, 16 Sep 2022 17:41:34 GMT + ms-cv: + - lJyfWOO2Y0mjMKNXTsfB3A.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 31ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_under_minimum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_under_minimum_allowed.yaml new file mode 100644 index 000000000000..2839bde09c05 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_custom_validity_under_minimum_allowed.yaml @@ -0,0 +1,97 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Fri, 16 Sep 2022 17:41:35 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 16 Sep 2022 17:41:34 GMT + ms-cv: + - /5r/3FFTu0G1ec9XUUSfzA.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 38ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 59}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '44' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.7.9 (Windows-10-10.0.22621-SP0) + x-ms-date: + - Fri, 16 Sep 2022 17:41:35 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 59 is invalid.", "target": "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Fri, 16 Sep 2022 17:41:34 GMT + ms-cv: + - Ty9wb1Kst0iODeP0Ku8HDw.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 43ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_invalid_custom_expirations_0_min_invalid_mins.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_invalid_custom_expirations_0_min_invalid_mins.yaml new file mode 100644 index 000000000000..e1bee8c17970 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_invalid_custom_expirations_0_min_invalid_mins.yaml @@ -0,0 +1,98 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:08 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:38:09 GMT + ms-cv: + - rPoVA4Txjkir1wDjjxSs7Q.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 96ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 59}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '44' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:09 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 59 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Fri, 07 Oct 2022 14:38:09 GMT + ms-cv: + - E/ZIFrr0lUme6FbUQPdBNA.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 23ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_invalid_custom_expirations_1_max_invalid_mins.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_invalid_custom_expirations_1_max_invalid_mins.yaml new file mode 100644 index 000000000000..7cec8847cc83 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_invalid_custom_expirations_1_max_invalid_mins.yaml @@ -0,0 +1,98 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:09 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:38:09 GMT + ms-cv: + - VORBuELLfkyotSRlqplFNg.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 92ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 1441}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '46' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:09 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 1441 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-type: + - application/json + date: + - Fri, 07 Oct 2022 14:38:09 GMT + ms-cv: + - J44WJFYII0it5e+fPMIj9w.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 22ms + status: + code: 400 + message: Bad Request +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml index 09b46d43e207..dd1a2df5defd 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,32 +9,32 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:29 GMT + - Fri, 07 Oct 2022 14:38:10 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:29 GMT + - Fri, 07 Oct 2022 14:38:10 GMT ms-cv: - - f04iN4jIIU2kY5pVDEvfuA.0 + - CdPY6DDj2k2jrBtnHaJ8mQ.2.0 request-context: - appId= strict-transport-security: @@ -42,12 +42,12 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 26ms + - 104ms status: code: 201 message: Created - request: - body: '{}' + body: '{"scopes": null, "expiresInMinutes": null}' headers: Accept: - application/json @@ -56,17 +56,17 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '42' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:30 GMT + - Fri, 07 Oct 2022 14:38:11 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Scopes: The Scopes @@ -75,9 +75,9 @@ interactions: content-type: - application/json date: - - Wed, 03 Aug 2022 09:15:30 GMT + - Fri, 07 Oct 2022 14:38:11 GMT ms-cv: - - JOSJnqiSc0ywaKPYHuO35w.0 + - 5lQIyDmjFEGeuVsTLQnz8A.2.0 request-context: - appId= strict-transport-security: @@ -87,7 +87,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 62ms + - 24ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_valid_custom_expirations_0_min_valid_hours.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_valid_custom_expirations_0_min_valid_hours.yaml new file mode 100644 index 000000000000..c4b144cb3157 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_valid_custom_expirations_0_min_valid_hours.yaml @@ -0,0 +1,96 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:11 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:38:11 GMT + ms-cv: + - GDxMUa1byUWNXsQeThTRaA.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 91ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 60}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '44' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:11 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-10-07T15:38:12.4249933+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '804' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:38:11 GMT + ms-cv: + - Fc0dnDMjmE66HHNMSdGrbg.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 158ms + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_valid_custom_expirations_1_max_valid_hours.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_valid_custom_expirations_1_max_valid_hours.yaml new file mode 100644 index 000000000000..8a85d7bae8eb --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_valid_custom_expirations_1_max_valid_hours.yaml @@ -0,0 +1,96 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:12 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '101' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:38:12 GMT + ms-cv: + - OMirD+w2MUCbFn7vTIg91Q.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 102ms + status: + code: 201 + message: Created +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 1440}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '46' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:12 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:13.2889051+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, + 2021-11-01, 2022-06-01, 2022-10-01 + content-length: + - '804' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 07 Oct 2022 14:38:12 GMT + ms-cv: + - YdUZaOYfYE6fn+nYZzDtkg.2.0 + request-context: + - appId= + strict-transport-security: + - max-age=2592000 + x-cache: + - CONFIG_NOCACHE + x-processing-time: + - 159ms + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml index bed45ffa1d39..feb8fe7882c7 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,32 +9,32 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:30 GMT + - Fri, 07 Oct 2022 14:38:13 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:30 GMT + - Fri, 07 Oct 2022 14:38:12 GMT ms-cv: - - Lr6vAbpD20a4Ph8ww7SFWA.0 + - /rWW/OU91EahJKGDforzcw.2.0 request-context: - appId= strict-transport-security: @@ -42,12 +42,12 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 37ms + - 95ms status: code: 201 message: Created - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json @@ -56,32 +56,32 @@ interactions: Connection: - keep-alive Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:31 GMT + - Fri, 07 Oct 2022 14:38:13 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:15:31.3345831+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:14.1958136+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '804' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:30 GMT + - Fri, 07 Oct 2022 14:38:13 GMT ms-cv: - - md+8+sRIhEe9sjYpGqeEyg.0 + - OK5ZLq+woUa4kYNsxbMZ8Q.2.0 request-context: - appId= strict-transport-security: @@ -89,7 +89,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 38ms + - 169ms status: code: 200 message: OK @@ -105,24 +105,24 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:31 GMT + - Fri, 07 Oct 2022 14:38:14 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - - Wed, 03 Aug 2022 09:15:31 GMT + - Fri, 07 Oct 2022 14:38:13 GMT ms-cv: - - Fx7hSPEV2kCUKxehpl1eYg.0 + - a2T0HfkHC0aG/t0J045zzA.2.0 request-context: - appId= strict-transport-security: @@ -130,7 +130,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 137ms + - 232ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml index 70b1a6596987..3a62f915c6f0 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json @@ -9,28 +9,28 @@ interactions: Connection: - keep-alive Content-Length: - - '2' + - '0' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:32 GMT + - Fri, 07 Oct 2022 14:38:14 GMT ms-cv: - - dsuiLuhAb0W+kPoYwE/jyg.0 + - IQY51qrZ/UunFY9nqnX3iQ.2.0 request-context: - appId= strict-transport-security: @@ -38,12 +38,12 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 29ms + - 194ms status: code: 201 message: Created - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json @@ -52,28 +52,28 @@ interactions: Connection: - keep-alive Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:15:32.8886868+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:16.0422119+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '804' content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:32 GMT + - Fri, 07 Oct 2022 14:38:15 GMT ms-cv: - - XCfSm3PRSkaTLSxam8ebOA.0 + - P9kycMSCxUCV/Mnu1y52TQ.2.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 45ms + - 161ms status: code: 200 message: OK @@ -97,20 +97,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - - Wed, 03 Aug 2022 09:15:32 GMT + - Fri, 07 Oct 2022 14:38:15 GMT ms-cv: - - 1KJ49rJlc06bKOevEnTNgA.0 + - VfHlET10eEKWmk+22rrSdA.2.0 request-context: - appId= strict-transport-security: @@ -118,7 +118,7 @@ interactions: x-cache: - CONFIG_NOCACHE x-processing-time: - - 248ms + - 401ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml index 0f6cb7b32064..1151cd0debbe 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml @@ -1,37 +1,35 @@ interactions: - request: - body: '{}' + body: '' headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:33 GMT + - Fri, 07 Oct 2022 14:38:16 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:33 GMT - ms-cv: wDW7q0tPKUGlLD5i803vSg.0 + date: Fri, 07 Oct 2022 14:38:16 GMT + ms-cv: Cibwx+RfBEWCwHlfErTGFw.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 36ms + x-processing-time: 95ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml index 550e6233bd16..b38de207b56e 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml @@ -1,38 +1,38 @@ interactions: - request: - body: '{"createTokenWithScopes": ["chat"]}' + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json Content-Length: - - '35' + - '61' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:34 GMT + - Fri, 07 Oct 2022 14:38:17 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2022-08-04T09:15:34.8172235+00:00"}}' + "expiresOn": "2022-10-08T14:38:17.5366905+00:00"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '920' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:34 GMT - ms-cv: 6wbADubd/UevVoGdSOjtuQ.0 + date: Fri, 07 Oct 2022 14:38:17 GMT + ms-cv: 9QV+jZlqkk2VQnLHEOSFmA.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 35ms + x-processing-time: 102ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml new file mode 100644 index 000000000000..c5d881498313 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_maximum_validity.yaml @@ -0,0 +1,38 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 1440}' + headers: + Accept: + - application/json + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:17 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-10-08T14:38:17.991727+00:00"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '919' + content-type: application/json; charset=utf-8 + date: Fri, 07 Oct 2022 14:38:17 GMT + ms-cv: Xmy/Uphem0SusP42fkPITw.2.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 98ms + status: + code: 201 + message: Created + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml new file mode 100644 index 000000000000..241520b1bcc8 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_minimum_validity.yaml @@ -0,0 +1,38 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 60}' + headers: + Accept: + - application/json + Content-Length: + - '59' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:17 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", + "expiresOn": "2022-10-07T15:38:18.4430479+00:00"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '920' + content-type: application/json; charset=utf-8 + date: Fri, 07 Oct 2022 14:38:18 GMT + ms-cv: baMiXgou80OLrRPGybBXBQ.2.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 102ms + status: + code: 201 + message: Created + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml new file mode 100644 index 000000000000..fc90e70b6a46 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_over_maximum_allowed.yaml @@ -0,0 +1,39 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 1441}' + headers: + Accept: + - application/json + Content-Length: + - '61' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:18 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 1441 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-type: application/json + date: Fri, 07 Oct 2022 14:38:17 GMT + ms-cv: 5lLzcmUoi0ySBHxL31gXnw.2.0 + request-context: appId= + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-cache: CONFIG_NOCACHE + x-processing-time: 22ms + status: + code: 400 + message: Bad Request + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml new file mode 100644 index 000000000000..7e9e560d2762 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_custom_validity_under_minimum_allowed.yaml @@ -0,0 +1,39 @@ +interactions: +- request: + body: '{"createTokenWithScopes": ["chat"], "expiresInMinutes": 59}' + headers: + Accept: + - application/json + Content-Length: + - '59' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:18 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 59 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-type: application/json + date: Fri, 07 Oct 2022 14:38:18 GMT + ms-cv: HvRyCNUHx0uYispT605Y7A.2.0 + request-context: appId= + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-cache: CONFIG_NOCACHE + x-processing-time: 24ms + status: + code: 400 + message: Bad Request + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml index e7694090a22f..538813b6a579 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml @@ -1,37 +1,37 @@ interactions: - request: - body: '{}' + body: '{"createTokenWithScopes": null, "expiresInMinutes": null}' headers: Accept: - application/json Content-Length: - - '2' + - '57' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:34 GMT + - Fri, 07 Oct 2022 14:38:19 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:34 GMT - ms-cv: Vn+NQJ3i4E+fwL7J5Us9JA.0 + date: Fri, 07 Oct 2022 14:38:19 GMT + ms-cv: uELb/p9vYUuy4pmORSjqEw.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 35ms + x-processing-time: 95ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml index 36504345e8f5..2b124241682d 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml @@ -1,33 +1,31 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:35 GMT - ms-cv: n9M2Zx9i80qixK0RGwMsmg.0 + date: Fri, 07 Oct 2022 14:38:19 GMT + ms-cv: SWs5Xt+cBU2GETHmzeOC5A.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 24ms + x-processing-time: 91ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml index 772364526841..ae07e8cba79b 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml @@ -1,66 +1,64 @@ interactions: - request: - body: '{}' + body: '' headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:35 GMT + - Fri, 07 Oct 2022 14:38:20 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:35 GMT - ms-cv: ZkXjZvHBrUqaZwSIrs3eWA.0 + date: Fri, 07 Oct 2022 14:38:20 GMT + ms-cv: LOotS3E5ykyaoa3g6JUadw.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 36ms + x-processing-time: 96ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '' headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:36 GMT + - Fri, 07 Oct 2022 14:38:20 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 - date: Wed, 03 Aug 2022 09:15:36 GMT - ms-cv: KFh9ctTUpk2L8RP/RBF/7w.0 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + date: Fri, 07 Oct 2022 14:38:20 GMT + ms-cv: b0rRvOMBe0uqz43GrzyLbw.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 536ms + x-processing-time: 274ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml index 08ce8d4873e0..69c1bfb1e6ef 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml @@ -1,58 +1,56 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:37 GMT - ms-cv: +W4u95/uZEmoL0zaoh9kwg.0 + date: Fri, 07 Oct 2022 14:38:21 GMT + ms-cv: oLAVEUpJo0iuknri38lhtw.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 29ms + x-processing-time: 91ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 - date: Wed, 03 Aug 2022 09:15:37 GMT - ms-cv: I/nGcFW+1EWzjCTNhVSR+A.0 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + date: Fri, 07 Oct 2022 14:38:22 GMT + ms-cv: 89SWfbcTmUC5it5719cX3w.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 207ms + x-processing-time: 209ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml index fb0ed94a41b2..104e6b5a3b8c 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml @@ -1,72 +1,70 @@ interactions: - request: - body: '{}' + body: '' headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:38 GMT + - Fri, 07 Oct 2022 14:38:22 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:39 GMT - ms-cv: m1th7TnXNkmERV0ZkYsbnw.0 + date: Fri, 07 Oct 2022 14:38:23 GMT + ms-cv: mkVSJkgtd0+lcbdO+EJSdA.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 102ms + x-processing-time: 95ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:39 GMT + - Fri, 07 Oct 2022 14:38:23 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:15:39.6977724+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:23.9182152+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:39 GMT - ms-cv: 4leV+QBfREuCXXYNn4W1mg.0 + date: Fri, 07 Oct 2022 14:38:23 GMT + ms-cv: BfVGuer+Fk2sdQBtVXuOqw.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 43ms + x-processing-time: 171ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml index a2fdb0d46447..a7ae724d9fa9 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_from_managed_identity.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr8IfEKA--ndpyNWQs292opm4upHGMD6_P0MsYAt_yc22vLM_dwM6xsaCWDg7ff0OvV_ipBphCnhsSe39-0Cw81Q_Gt8i9zZC8RwGSk4X2XUa5nzyKnQLhsh5Hlp1Inx04lhOPYlwO5LSZt25Zu2mmya5E-i6KDs2Ncze7xpmRLkkgAA; - fpc=Ak8FLve5pGlIhluKqg2E9RE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevruOBzaHc7OVfywNaLv9-9p81-HSVW9rjOBB_zdtlqcmW4eItXKC4qL7Fqigqd2FwfXbfagiYSDzAwupcZ_-pS1i7xOwABy_c1gRNgTivw7toqqOENFql8hDbauU2CUVbiMKHs2d8TM3o55Ybwuj8FcDtkxWsoHYM3KjE0PsZwRQXDbJmH5oAITqagXfsE5ljEAJpCdO8QF-2QFjSrJsuxQRWHhO1ce_ZIIlUpC4jymLEgAA; + fpc=AvX0FLMg3m9IgXwFOBGj03c; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:39 GMT + - Fri, 07 Oct 2022 14:38:23 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Ak8FLve5pGlIhluKqg2E9RE; expires=Fri, 02-Sep-2022 09:15:40 GMT; path=/; + - fpc=AvX0FLMg3m9IgXwFOBGj03c; expires=Sun, 06-Nov-2022 14:38:24 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR1 ProdSlices + - 2.1.13777.6 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -58,28 +58,28 @@ interactions: Accept: - application/json Content-Length: - - '2199' + - '2135' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-03T10:23:02.932059+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-07T15:55:43.2480915+00:00"}' headers: - api-supported-versions: 2021-10-31-preview, 2022-06-01 - content-length: '823' + api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 + content-length: '824' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:41 GMT - ms-cv: gfuHF3DW5UWS8S3W7S7JDA.0 + date: Fri, 07 Oct 2022 14:38:24 GMT + ms-cv: Yv9fXL/7+0SilWZ0Ymde8A.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 630ms + x-processing-time: 217ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml index 2ee95753d146..2eefaacc9905 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevroJw0xYRpoQatN6Ouj0jl-zUJKrTZCV98Dm06kZyeAUUfmIBoCT2qcEmB1M97FCfrngXWnVmaqp8Aes2fyvu385D8HEkjqqnw0qcexjahXbK0RGjcx33TCsBIrnzWnCDXnwIaxoAty5OA5OeiBjuJyZ3moxMoFj-F3XtHjz0DhN8gAA; - fpc=AtItf3WArFZDr4Zoeh_HiqY; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrxrul6NBzEIXpjgh2vJNaQQ-l4t7b1HGgJH9xk4fb_qzYCQScff3-8tqiBneCmkndIJfSOWYaBKmg4s5O7PkEnEfq0_1bmLWe7Nzf6ZU5ejgGD70KsUHwifMmMcP8kewQtYqNU3Pq7wmY9MCelzP17WtA8J7CRchO55y9lt7xqJMOP7veno5m9Dr1n1p6euxu9gfpFYBtw61B9eEF12kDE_Z4cmX_Huy3ylxHJYqGlAMgAA; + fpc=An6qAqABMbBIink_ZdqaxNE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:42 GMT + - Fri, 07 Oct 2022 14:38:24 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AtItf3WArFZDr4Zoeh_HiqY; expires=Fri, 02-Sep-2022 09:15:42 GMT; path=/; + - fpc=An6qAqABMbBIink_ZdqaxNE; expires=Sun, 06-Nov-2022 14:38:25 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR2 ProdSlices + - 2.1.13777.6 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -58,32 +58,32 @@ interactions: Accept: - application/json Content-Length: - - '2163' + - '2120' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:42 GMT + - Fri, 07 Oct 2022 14:38:25 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "AppId: The AppId field is required.", "target": "AppId"}}' headers: content-type: application/json - date: Wed, 03 Aug 2022 09:15:42 GMT - ms-cv: RmiyiYxrUU6XMKHlGGBYyg.0 + date: Fri, 07 Oct 2022 14:38:25 GMT + ms-cv: NaHP7E1qUUO0/2FThOBbjQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 47ms + x-processing-time: 114ms status: code: 400 message: Bad Request - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml index 509582750a10..1a68b7c6414a 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_token.yaml @@ -9,28 +9,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:42 GMT + - Fri, 07 Oct 2022 14:38:25 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access token is not valid."}}' headers: content-type: application/json - date: Wed, 03 Aug 2022 09:15:43 GMT - ms-cv: UCUwiLAcqE6lE4/oKUuqxw.0 + date: Fri, 07 Oct 2022 14:38:26 GMT + ms-cv: goSGceo81ke1/OLd3LimVw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 34ms + x-processing-time: 110ms status: code: 401 message: Unauthorized - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml index c7975b9bb349..f98cf8f3284b 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_empty_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrSVGwb360CqCjQQTDrEr6Tf1QFeTVUItc82gO9mMhb58xDI9L6_uJBT9Eb6KBjYvlyoh3crZ0KLw1F00QlXpC9Dvo3M1x5ih7KbDJuF340ecR7CyRX7rvuumVOUvgxkgJfo65We8RVJsvXYX1MXcBHa3vtVlIMLwtoKCrazZT4zwgAA; - fpc=AkBk-JiWluNHhvKzCfi6n_k; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrR7f_Fxoy0U7kBbhijuhERu8hy_q9RUX4oO3HIdbtdqZhffdl7iLAHIBDUXUYIx9V1Z54rnMPgbiriVXpza8cxnoiTGyfCsYMclDy4QFRrRvcKwaHwPFjmpBirzaayXaII565SvbartksLaEYfzaac4t2oBOkxZAYsbOxkCQEgvW04pKf7cFkAxh-NHUKZNb20jr1CLsWfTw6TsuyDZkrMLxowPLwr3zsP2_6b6xkMyEgAA; + fpc=Av7hZj7YgWpAsHS3skxaK_0; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:43 GMT + - Fri, 07 Oct 2022 14:38:25 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AkBk-JiWluNHhvKzCfi6n_k; expires=Fri, 02-Sep-2022 09:15:43 GMT; path=/; + - fpc=Av7hZj7YgWpAsHS3skxaK_0; expires=Sun, 06-Nov-2022 14:38:26 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13777.6 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -58,32 +58,32 @@ interactions: Accept: - application/json Content-Length: - - '2163' + - '2120' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:43 GMT + - Fri, 07 Oct 2022 14:38:26 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "UserId: The UserId field is required.", "target": "UserId"}}' headers: content-type: application/json - date: Wed, 03 Aug 2022 09:15:44 GMT - ms-cv: Mr56qsTA20mmfLeW/b14SQ.0 + date: Fri, 07 Oct 2022 14:38:26 GMT + ms-cv: iStpc47RUEik/nWqlvCRSw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 40ms + x-processing-time: 111ms status: code: 400 message: Bad Request - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml index 83263858ab51..af5f09db7582 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_expired_token.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOQtOzCcJIcUUAubL7bRLUn-MlTxWYM-SE_VgSKQwpvxwXlh-5NjvmJj8icmmUQcMbd8YKwIV_h8iTQbZyAQOlAj20Aa7WtH7vaEy22SDpT9bd4ke3BhMIWuaD_I0mUU0448fpXyb4rEfDLCZ7hEder6eeOcWjbZYUXdoy_LAoEMgAA; - fpc=Al0KkPiKVNJLpvzX13rvl5o; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr62JT4lbCIOz5YmOBrVIDihRextVvqfSbS_TXd392oRs5Z1sFn-yVJq9Zb6vmORqQs4N5ug-ZRRJN-T0ZQdUQV5S06mqX_r-yFIFYQUy6TM4F4xdqAiWChAGne7W492iw4KnwUopZbXaTOntfRuHA9e2evwLxWQSwGZm0A9R_xaDV5RlXRnJW4Vu2oMOfRjlv24XMoFN4KirrMc3zin0kAsVnRWNlmbKiZq9oOgG7dbogAA; + fpc=AixkSGSWkP9Co736X9zsAIM; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:44 GMT + - Fri, 07 Oct 2022 14:38:26 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Al0KkPiKVNJLpvzX13rvl5o; expires=Fri, 02-Sep-2022 09:15:44 GMT; path=/; + - fpc=AixkSGSWkP9Co736X9zsAIM; expires=Sun, 06-Nov-2022 14:38:27 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR2 ProdSlices + - 2.1.13777.6 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -62,28 +62,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:44 GMT + - Fri, 07 Oct 2022 14:38:27 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access token is not valid."}}' headers: content-type: application/json - date: Wed, 03 Aug 2022 09:15:45 GMT - ms-cv: fCIAPyyxS06gwZ+zKtpdyQ.0 + date: Fri, 07 Oct 2022 14:38:27 GMT + ms-cv: RbE80I7ZLEmmmgZAVpA5ug.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 54ms + x-processing-time: 114ms status: code: 401 message: Unauthorized - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml index a9e9c7b663ce..40b87b52e236 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrDp7nilf_V4Do5-8QIdFXdzZaFsT5lKplStiQZ0GmfGcRzt3i15xsVZJoj9HhvJU2zGAtk6IPU_KHsRD6u8f8qVDf9oz11VRuvinRQqcB8zizJ9a3tls1GGDhMTb__lbmuhRQAVRAM2KEQvtKXIPOxeQnwjHVPQbNaCztakyvj2MgAA; - fpc=Ale24oKy06VBuSpnQQLvdKU; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJ-4xzezBQytAEEKzg69K6D-ekyo5XLuqvgZ_GPebWN5EachaBtgcTsJ1vzLq733H45HmBL427yVfQ7KuJ0QNrYqM2N5xFwrJPUfrD459SWT1oNho7c19SxiDCyyjUVU9xyfvFBd8M97rhP3G2zrmcOnWI02W3_j2YjF2UdIyK3YT4pxgjjkLFbjrNgwmOzsA-ZNS9j5y6K-U1ahoux9LrmPL5SAdNIuf-xssuzLKp_kgAA; + fpc=Av-q-GKco-BKtCJFdw0e74M; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:45 GMT + - Fri, 07 Oct 2022 14:38:27 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Ale24oKy06VBuSpnQQLvdKU; expires=Fri, 02-Sep-2022 09:15:46 GMT; path=/; + - fpc=Av-q-GKco-BKtCJFdw0e74M; expires=Sun, 06-Nov-2022 14:38:28 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13777.6 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -58,33 +58,33 @@ interactions: Accept: - application/json Content-Length: - - '2170' + - '2127' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:46 GMT + - Fri, 07 Oct 2022 14:38:28 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided AppId has invalid format.", "target": "appId"}}' headers: - api-supported-versions: 2021-10-31-preview, 2022-06-01 + api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Wed, 03 Aug 2022 09:15:46 GMT - ms-cv: Cvg7/oJuLUmdHDN5UYUNgg.0 + date: Fri, 07 Oct 2022 14:38:27 GMT + ms-cv: 53JYOouGy0qc5WBbIKTuZA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 49ms + x-processing-time: 114ms status: code: 400 message: Bad Request - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml index 4e188b5342d9..0f4160bf150a 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_token.yaml @@ -9,28 +9,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:46 GMT + - Fri, 07 Oct 2022 14:38:28 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "InvalidAccessToken", "message": "Provided access token is not valid."}}' headers: content-type: application/json - date: Wed, 03 Aug 2022 09:15:47 GMT - ms-cv: DQiqRE4+00WMhTLNN7Xbsw.0 + date: Fri, 07 Oct 2022 14:38:28 GMT + ms-cv: z9763aP0N0qEdK8EGfXVGQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 27ms + x-processing-time: 108ms status: code: 401 message: Unauthorized - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml index 5e09e4aa517c..650e4fda2efa 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_invalid_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr24e2-tKrr8IcZLq_hv14l7XcA8YePEgxh3QKJImymfNvVthCjZHHydhrjima9HwiuSbYAt9mFYAgtkf95fS_cILScPQwMJshRh-RvsWVo7IkF5YUopLu8sYREQjRFoXKBT9rWsETqweFb5QmH0XeQDvf_OfdEsVg1l5QxTow-iUgAA; - fpc=Ag2TPXK4A79CjQjWLvsvJUQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrAda_R1SZ0yB1iOsr_Ch-A3oM-h5_FN31cuIUeMLwlnKKPujtqCUFXnAA5sv-W3DOy6yqqcFtJnsglhsSMbrZb5Kls1Sg40EZri3ihts_2KuL3SgjE8tf0lEHRYatcZkPzp0t8cE_-PD_bIt0hrkjXEieWclkERueMCcD41BCMgEgj1Ej0nTvJ-dO7G2JtMtX4mSEhs_mqPPTEWAC3PZ8F2encTQ5VQkFys6GxRLzGqQgAA; + fpc=AsFW8ogI3spClREWiv5H9bE; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:47 GMT + - Fri, 07 Oct 2022 14:38:29 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=Ag2TPXK4A79CjQjWLvsvJUQ; expires=Fri, 02-Sep-2022 09:15:47 GMT; path=/; + - fpc=AsFW8ogI3spClREWiv5H9bE; expires=Sun, 06-Nov-2022 14:38:29 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13777.6 - NEULR2 ProdSlices x-xss-protection: - '0' status: @@ -58,33 +58,33 @@ interactions: Accept: - application/json Content-Length: - - '2170' + - '2127' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:47 GMT + - Fri, 07 Oct 2022 14:38:29 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided UserId has invalid format.", "target": "userId"}}' headers: - api-supported-versions: 2021-10-31-preview, 2022-06-01 + api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Wed, 03 Aug 2022 09:15:47 GMT - ms-cv: h4P3uQKOrU6l0YkliXY0BA.0 + date: Fri, 07 Oct 2022 14:38:29 GMT + ms-cv: fr/s6VOqxkWGL9eeGeO9Cg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 44ms + x-processing-time: 115ms status: code: 400 message: Bad Request - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml index e5f40c13d44f..8144ece62f65 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_valid_params.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr28ekq9F6egf8mcID_0C2QHvKHyRhgkpGZaenJ5iNB_FIAEAssvttMorghxN4T8qZGvV-AwTCtZ4rnHYCvkEYpiEZio1udWq78WGQFgx2m7VDR8BS5GkhUE0ZTLc9WVXonrIZeRrlrQHhbAK8vlTkisF47V8P7EBF9kea8xNk948gAA; - fpc=AqNZ9pvSJVNPgLnl0el8K7A; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrUotedDms764vdgVvYs6H0CRBCwWGnEMQZNN4vEjnVuh3PHE4mtJ82M2JlZZrsBnAPCsR2CE1pRWBeT3dYdkBPsSc9R6W3-1iD93BmukaRPVjVuEz8MlJAdJExh6qbKAJ79fOWGS9ZVmo2R8Z169M87dzfLdDW_DR6LJhY0UpBnsIBnNx0uhwIsp-wZ_pKOoGg-yj3kbZKJi5yAzv1feHBOI7-ZjZsvPaZd3TWY7U5eogAA; + fpc=AsEuOwYS0gVHuJPF_FlFOQ4; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:48 GMT + - Fri, 07 Oct 2022 14:38:29 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AqNZ9pvSJVNPgLnl0el8K7A; expires=Fri, 02-Sep-2022 09:15:48 GMT; path=/; + - fpc=AsEuOwYS0gVHuJPF_FlFOQ4; expires=Sun, 06-Nov-2022 14:38:29 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR1 ProdSlices + - 2.1.13777.6 - WEULR1 ProdSlices x-xss-protection: - '0' status: @@ -58,32 +58,32 @@ interactions: Accept: - application/json Content-Length: - - '2199' + - '2156' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:48 GMT + - Fri, 07 Oct 2022 14:38:29 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-03T10:17:26.1807155+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-07T15:52:46.5956456+00:00"}' headers: - api-supported-versions: 2021-10-31-preview, 2022-06-01 + api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-length: '824' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:48 GMT - ms-cv: /MWurZcOIE2RN5Dx66PpEA.0 + date: Fri, 07 Oct 2022 14:38:30 GMT + ms-cv: cx0VJlGHAE2e4PEkH+R4mA.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 326ms + x-processing-time: 308ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml index 6441643ff84c..88a39358c268 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_client_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0qiMEgnV1XQoPLHpQ-GxAsOz1HoyUsap11FEXQ7KZuWaCrTYMMOGlNxCAf1L5CSUcGA-WmQEt0mYIyqF7Sw4Yaoc6_GfYsy0whnSew--CAB7iEE_IjN-AMEgs5S8Kpm_8ghQoJS8jio8YXp2zej7JmIMYHq-J22X3UMw0wlO5mEgAA; - fpc=AlGde4uDPjhHtYuyVr6-h0w; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-XUWlAk4s4Wxd9YBpEFBBHmv_q2amtBJctlpjNNIik2hXUrB0xh7Z9uaceQwUl9kdCVLMf3O4cB3XOTlx4c_e4zRkLVhynuYf-7DTS9BeCL91Amd4YJX5P-UoUAv7BbSB5l6S_f8UrxqNKpp79R1vbSfnsNENZOxLA-9xgOq7tm4Sks8VpzDhnGIqnP0tls4IDjYcJl1YKrmecHnZEa8dra2VCBKa_9yHgAlO5S_k50gAA; + fpc=Al25BgtnJKNHuajJjES_tTo; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:49 GMT + - Fri, 07 Oct 2022 14:38:30 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AlGde4uDPjhHtYuyVr6-h0w; expires=Fri, 02-Sep-2022 09:15:49 GMT; path=/; + - fpc=Al25BgtnJKNHuajJjES_tTo; expires=Sun, 06-Nov-2022 14:38:30 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - NEULR2 ProdSlices + - 2.1.13777.6 - WEULR2 ProdSlices x-xss-protection: - '0' status: @@ -58,33 +58,33 @@ interactions: Accept: - application/json Content-Length: - - '2199' + - '2156' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:49 GMT + - Fri, 07 Oct 2022 14:38:30 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "AAD application is not the expected one.", "target": "appId"}}' headers: - api-supported-versions: 2021-10-31-preview, 2022-06-01 + api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Wed, 03 Aug 2022 09:15:49 GMT - ms-cv: 7hUyRJLl20+gIMkNgFZkfg.0 + date: Fri, 07 Oct 2022 14:38:31 GMT + ms-cv: cKNq0aAIg0G6o8oAt+mwyg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 37ms + x-processing-time: 113ms status: code: 400 message: Bad Request - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml index 7fec65cd3bf7..779eec9949e7 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_for_teams_user_with_wrong_user_object_id.yaml @@ -9,8 +9,8 @@ interactions: Connection: - keep-alive Cookie: - - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrwSqwXfDPdrhYygWt_2y-YvgEE2d7a68z6a3wuGqOSoLzbGa35FL8BvYwnq9OiMqTJoQxuj0I-jN_6AcE9hH3i8mMZxe2G--2Dcja0X16oTCtNC0cK9J_aoHJXfqL8O1YfGT2_mNb6EoInPVmiXBVkS_GcE8ceQ_qsKt6FhYNvXkgAA; - fpc=AuXa_cOszJNCoXvb_he45fQ; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd + - esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYdr3fgSzW7FQwZTPtosNr4gSfgxkYAhgflB90Co5qFuNvQwVgigExuf2ZIaMOsLXmNBFe9wI853uPnsZXZugNCSTwj3KB3er15IEHkVDpKsnquIaHZdVE2RAlQ8-nSrayxiFTUeZLR_3uUdjNiptxv6R-BKt6Dgny8Wvc9CmpNFIE8FfPeYuLS5pfF7lFBZAnMoj4qhc9NLuDkmlWV5ty6XJ_8KuyYKpnhwr24u60e0gAA; + fpc=At7ltwimI8dDrLa8xXHkd28; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd User-Agent: - python-requests/2.28.1 method: GET @@ -29,7 +29,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 03 Aug 2022 09:15:50 GMT + - Fri, 07 Oct 2022 14:38:31 GMT expires: - '-1' p3p: @@ -37,7 +37,7 @@ interactions: pragma: - no-cache set-cookie: - - fpc=AuXa_cOszJNCoXvb_he45fQ; expires=Fri, 02-Sep-2022 09:15:50 GMT; path=/; + - fpc=At7ltwimI8dDrLa8xXHkd28; expires=Sun, 06-Nov-2022 14:38:31 GMT; path=/; secure; HttpOnly; SameSite=None - x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly - stsservicecookie=estsfd; path=/; secure; samesite=none; httponly @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ests-server: - - 2.1.13355.6 - WEULR1 ProdSlices + - 2.1.13777.6 - NEULR1 ProdSlices x-xss-protection: - '0' status: @@ -58,33 +58,33 @@ interactions: Accept: - application/json Content-Length: - - '2199' + - '2156' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:50 GMT + - Fri, 07 Oct 2022 14:38:31 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Provided AAD token issued for unexpected user.", "target": "userId"}}' headers: - api-supported-versions: 2021-10-31-preview, 2022-06-01 + api-supported-versions: 2021-10-31-preview, 2022-06-01, 2022-10-01 content-type: application/json - date: Wed, 03 Aug 2022 09:15:50 GMT - ms-cv: QHokVKK7BEylHQU3EAbk0A.0 + date: Fri, 07 Oct 2022 14:38:32 GMT + ms-cv: FvCq3bT9jEKm8HtWhEAnzQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 35ms + x-processing-time: 114ms status: code: 400 message: Bad Request - url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/teamsUser/:exchangeAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml index 10f520ce8a12..bc0c1c74cdf4 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml @@ -1,64 +1,62 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:51 GMT - ms-cv: Go3g6Mn3M0KAdN73l3Mg4w.0 + date: Fri, 07 Oct 2022 14:38:33 GMT + ms-cv: zoDoMWS070yHt3WpRcMZkA.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 27ms + x-processing-time: 201ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:15:52.5650255+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:34.4186707+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:51 GMT - ms-cv: oHk9nnqkN0msTQJ33f3PAQ.0 + date: Fri, 07 Oct 2022 14:38:34 GMT + ms-cv: Mfu5PqN7BkWSghUTbC0+NQ.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 43ms + x-processing-time: 270ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml new file mode 100644 index 000000000000..e56f42fccdc4 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_maximum_validity.yaml @@ -0,0 +1,70 @@ +interactions: +- request: + body: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:34 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '101' + content-type: application/json; charset=utf-8 + date: Fri, 07 Oct 2022 14:38:34 GMT + ms-cv: i7kwCZA14E6mC7zEK/4Kwg.2.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 98ms + status: + code: 201 + message: Created + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 1440}' + headers: + Accept: + - application/json + Content-Length: + - '46' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:34 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:35.2764409+00:00"}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '804' + content-type: application/json; charset=utf-8 + date: Fri, 07 Oct 2022 14:38:34 GMT + ms-cv: oDWuwUd+w0iU75G4I/1nOw.2.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 174ms + status: + code: 200 + message: OK + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml new file mode 100644 index 000000000000..65a9ffef37b5 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_minimum_validity.yaml @@ -0,0 +1,70 @@ +interactions: +- request: + body: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:35 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '101' + content-type: application/json; charset=utf-8 + date: Fri, 07 Oct 2022 14:38:35 GMT + ms-cv: NUJZgGhnwkieJHv7YoXGoA.2.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 93ms + status: + code: 201 + message: Created + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 60}' + headers: + Accept: + - application/json + Content-Length: + - '44' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:35 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"token": "sanitized", "expiresOn": "2022-10-07T15:38:36.1016383+00:00"}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '804' + content-type: application/json; charset=utf-8 + date: Fri, 07 Oct 2022 14:38:35 GMT + ms-cv: TqbOkZ2HJEuF5PxUEGBAbQ.2.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 161ms + status: + code: 200 + message: OK + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml new file mode 100644 index 000000000000..0a093bc5e34a --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_over_maximum_allowed.yaml @@ -0,0 +1,72 @@ +interactions: +- request: + body: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:36 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '101' + content-type: application/json; charset=utf-8 + date: Fri, 07 Oct 2022 14:38:36 GMT + ms-cv: MxFA8AP1jEafLfBzpT/xPQ.2.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 93ms + status: + code: 201 + message: Created + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 1441}' + headers: + Accept: + - application/json + Content-Length: + - '46' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:36 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 1441 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-type: application/json + date: Fri, 07 Oct 2022 14:38:36 GMT + ms-cv: 5uOdr114hUGXRKs6AakWJg.2.0 + request-context: appId= + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-cache: CONFIG_NOCACHE + x-processing-time: 22ms + status: + code: 400 + message: Bad Request + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml new file mode 100644 index 000000000000..cafdac252445 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_custom_validity_under_minimum_allowed.yaml @@ -0,0 +1,72 @@ +interactions: +- request: + body: '' + headers: + Accept: + - application/json + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:36 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 + response: + body: + string: '{"identity": {"id": "sanitized"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '101' + content-type: application/json; charset=utf-8 + date: Fri, 07 Oct 2022 14:38:37 GMT + ms-cv: YgEsFCii3kqgf1tNF42A2g.2.0 + request-context: appId= + strict-transport-security: max-age=2592000 + x-cache: CONFIG_NOCACHE + x-processing-time: 94ms + status: + code: 201 + message: Created + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 +- request: + body: '{"scopes": ["chat"], "expiresInMinutes": 59}' + headers: + Accept: + - application/json + Content-Length: + - '44' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) + x-ms-date: + - Fri, 07 Oct 2022 14:38:37 GMT + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 + response: + body: + string: '{"error": {"code": "ValidationError", "message": "ExpiresInMinutes + value 59 is invalid. Value must be within the [60, 1440] interval.", "target": + "ExpiresInMinutes"}}' + headers: + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-type: application/json + date: Fri, 07 Oct 2022 14:38:37 GMT + ms-cv: SprHuzOfQE+dzh++016u4A.2.0 + request-context: appId= + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-cache: CONFIG_NOCACHE + x-processing-time: 22ms + status: + code: 400 + message: Bad Request + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 +version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml index 5eb6c59bc980..b612e7f83c84 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml @@ -1,71 +1,69 @@ interactions: - request: - body: '{}' + body: '' headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:52 GMT + - Fri, 07 Oct 2022 14:38:37 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:52 GMT - ms-cv: DosOraXNEEuCUXhRpIzYmA.0 + date: Fri, 07 Oct 2022 14:38:37 GMT + ms-cv: 677HLotkyUCtqQqBOLvFsA.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 30ms + x-processing-time: 92ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: - body: '{}' + body: '{"scopes": null, "expiresInMinutes": null}' headers: Accept: - application/json Content-Length: - - '2' + - '42' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:52 GMT + - Fri, 07 Oct 2022 14:38:37 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: string: '{"error": {"code": "ValidationError", "message": "Scopes: The Scopes field is required.", "target": "Scopes"}}' headers: content-type: application/json - date: Wed, 03 Aug 2022 09:15:52 GMT - ms-cv: +dOtgKrPLku4/qWErMTSnw.0 + date: Fri, 07 Oct 2022 14:38:38 GMT + ms-cv: LiA6QURiM0WTtAMQ2T45JA.2.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked x-cache: CONFIG_NOCACHE - x-processing-time: 25ms + x-processing-time: 23ms status: code: 400 message: Bad Request - url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml index ad31faa5449a..abe417a42d77 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml @@ -1,101 +1,99 @@ interactions: - request: - body: '{}' + body: '' headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:53 GMT + - Fri, 07 Oct 2022 14:38:38 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:53 GMT - ms-cv: TS/qQ5c07EaZa5f7AD/RTg.0 + date: Fri, 07 Oct 2022 14:38:38 GMT + ms-cv: bPgpzXvUKkCVgDiMaNZziQ.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 32ms + x-processing-time: 94ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:53 GMT + - Fri, 07 Oct 2022 14:38:38 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:15:53.68165+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:39.0989287+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 - content-length: '802' + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + content-length: '804' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:53 GMT - ms-cv: 9TLES2/0wk2fRH11mL7rqw.0 + date: Fri, 07 Oct 2022 14:38:39 GMT + ms-cv: hlOvvPPunkKB0Xf6IwClpA.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 52ms + x-processing-time: 164ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 - request: body: '' headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) x-ms-date: - - Wed, 03 Aug 2022 09:15:53 GMT + - Fri, 07 Oct 2022 14:38:38 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 - date: Wed, 03 Aug 2022 09:15:54 GMT - ms-cv: Lr9a8UfnnEyPGoUH5IMb6g.0 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + date: Fri, 07 Oct 2022 14:38:39 GMT + ms-cv: qYNgFTKa0UWP+Cs93kMgjQ.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 289ms + x-processing-time: 398ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml index 90bc39bf463e..66f162b9fb72 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml @@ -1,89 +1,87 @@ interactions: - request: - body: '{}' + body: null headers: Accept: - application/json - Content-Length: - - '2' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:54 GMT - ms-cv: 9GO6hmIs3EauLFf769p3bg.0 + date: Fri, 07 Oct 2022 14:38:39 GMT + ms-cv: hTSyL6qbcEKhT0TAy3tNVQ.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 33ms + x-processing-time: 91ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: - body: '{"scopes": ["chat"]}' + body: '{"scopes": ["chat"], "expiresInMinutes": null}' headers: Accept: - application/json Content-Length: - - '20' + - '46' Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 response: body: - string: '{"token": "sanitized", "expiresOn": "2022-08-04T09:15:55.1583244+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2022-10-08T14:38:40.8183497+00:00"}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '804' content-type: application/json; charset=utf-8 - date: Wed, 03 Aug 2022 09:15:55 GMT - ms-cv: 5LLuZ/T4sEqotWVVGqiBug.0 + date: Fri, 07 Oct 2022 14:38:40 GMT + ms-cv: 1dIwfoxteEmPVIBpRmAmnA.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 48ms + x-processing-time: 261ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2022-10-01 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.7.12 (Darwin-21.5.0-x86_64-i386-64bit) + - azsdk-python-communication-identity/1.3.0 Python/3.10.0 (macOS-12.6-x86_64-i386-64bit) method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 - date: Wed, 03 Aug 2022 09:15:55 GMT - ms-cv: 4pZbxyi+6EmmVJCbcWPV9g.0 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 + date: Fri, 07 Oct 2022 14:38:40 GMT + ms-cv: ohKeSLgSbkqGZC9K/gSgUg.2.0 request-context: appId= strict-transport-security: max-age=2592000 x-cache: CONFIG_NOCACHE - x-processing-time: 265ms + x-processing-time: 614ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2022-10-01 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py index 0e48308b1c0f..cddef7286c3a 100644 --- a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py +++ b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client.py @@ -5,15 +5,17 @@ # license information. # -------------------------------------------------------------------------- import pytest -import datetime +from datetime import timedelta from azure.communication.identity import CommunicationIdentityClient from azure.communication.identity import CommunicationTokenScope from azure.core.credentials import AccessToken +from devtools_testutils import is_live from _shared.helper import URIIdentityReplacer, URIMsalUsernameReplacer from _shared.testcase import BodyReplacerProcessor from testcase import CommunicationIdentityTestCase from _shared.communication_service_preparer import CommunicationPreparer from _shared.utils import get_http_logging_policy +from utils import is_token_expiration_within_allowed_deviation from azure.identity import DefaultAzureCredential from azure.communication.identity._shared.utils import parse_connection_str from parameterized import parameterized @@ -67,11 +69,51 @@ def test_create_user_and_token(self, communication_livetest_dynamic_connection_s assert user.properties.get('id') is not None assert token_response.token is not None + + @parameterized.expand( + [ + ("min_valid_hours", 1), + ("max_valid_hours", 24), + ] + ) + def test_create_user_and_token_with_valid_custom_expirations(self, _, valid_hours): + identity_client = CommunicationIdentityClient.from_connection_string( + self.connection_str, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_in = timedelta(hours=valid_hours) + user, token_response = identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + + assert user.properties.get('id') is not None + assert token_response.token is not None + + if is_live(): + assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) + + @parameterized.expand( + [ + ("min_invalid_mins", 59), + ("max_invalid_mins", 1441), + ] + ) + def test_create_user_and_token_with_invalid_custom_expirations(self, _, invalid_mins): + identity_client = CommunicationIdentityClient.from_connection_string( + self.connection_str, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_in = timedelta(minutes=invalid_mins) + + with pytest.raises(Exception) as ex: + identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + + assert str(ex.value.status_code) == "400" + assert ex.value.message is not None @CommunicationPreparer() def test_get_token_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: @@ -100,11 +142,52 @@ def test_get_token(self, communication_livetest_dynamic_connection_string): assert user.properties.get('id') is not None assert token_response.token is not None + + @parameterized.expand( + [ + ("min_valid_hours", 1), + ("max_valid_hours", 24), + ] + ) + def test_get_token_with_valid_custom_expirations(self, _, valid_hours): + identity_client = CommunicationIdentityClient.from_connection_string( + self.connection_str, + http_logging_policy=get_http_logging_policy() + ) + user = identity_client.create_user() + + token_expires_in = timedelta(hours=valid_hours) + token_response = identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + + assert user.properties.get('id') is not None + assert token_response.token is not None + if is_live(): + assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) + + @parameterized.expand( + [ + ("min_invalid_mins", 59), + ("max_invalid_mins", 1441), + ] + ) + def test_get_token_with_invalid_custom_expirations(self, _, invalid_mins): + identity_client = CommunicationIdentityClient.from_connection_string( + self.connection_str, + http_logging_policy=get_http_logging_policy() + ) + user = identity_client.create_user() + + token_expires_in = timedelta(minutes=invalid_mins) + + with pytest.raises(Exception) as ex: + identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + + assert str(ex.value.status_code) == "400" + assert ex.value.message is not None @CommunicationPreparer() def test_revoke_tokens_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: @@ -139,7 +222,6 @@ def test_revoke_tokens(self, communication_livetest_dynamic_connection_string): @CommunicationPreparer() def test_delete_user_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: @@ -224,7 +306,6 @@ def test_get_token_for_teams_user_from_managed_identity(self, communication_live if(self.skip_get_token_for_teams_user_test()): return endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: diff --git a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py index bb3451a968a4..12bd9a541bde 100644 --- a/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py +++ b/sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py @@ -5,18 +5,18 @@ # license information. # -------------------------------------------------------------------------- import pytest -import datetime +from datetime import timedelta from azure.core.credentials import AccessToken from azure.communication.identity.aio import CommunicationIdentityClient from azure.communication.identity import CommunicationTokenScope from azure.communication.identity._shared.utils import parse_connection_str -from azure_devtools.scenario_tests import RecordingProcessor -from devtools_testutils import ResourceGroupPreparer from _shared.helper import URIIdentityReplacer, URIMsalUsernameReplacer from asynctestcase import AsyncCommunicationIdentityTestCase +from devtools_testutils import is_live from _shared.testcase import BodyReplacerProcessor from _shared.communication_service_preparer import CommunicationPreparer from _shared.utils import get_http_logging_policy +from utils import is_token_expiration_within_allowed_deviation from azure.identity.aio import DefaultAzureCredential class FakeTokenCredential(object): @@ -36,7 +36,6 @@ def setUp(self): @CommunicationPreparer() async def test_create_user_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: @@ -74,10 +73,77 @@ async def test_create_user_and_token(self, communication_livetest_dynamic_connec assert user.properties.get('id') is not None assert token_response.token is not None + @CommunicationPreparer() + async def test_create_user_and_token_with_custom_minimum_validity(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_in = timedelta(minutes=60) + + async with identity_client: + user, token_response = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + + assert user.properties.get('id') is not None + assert token_response.token is not None + + if is_live(): + assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) + + @CommunicationPreparer() + async def test_create_user_and_token_with_custom_maximum_validity(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_in = timedelta(minutes=1440) + + async with identity_client: + user, token_response = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + + assert user.properties.get('id') is not None + assert token_response.token is not None + + if is_live(): + assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) + + @CommunicationPreparer() + async def test_create_user_and_token_with_custom_validity_under_minimum_allowed(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_in = timedelta(minutes=59) + + async with identity_client: + with pytest.raises(Exception) as ex: + await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + + assert str(ex.value.status_code) == "400" + assert ex.value.message is not None + + @CommunicationPreparer() + async def test_create_user_and_token_with_custom_validity_over_maximum_allowed(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_in = timedelta(minutes=1441) + + async with identity_client: + with pytest.raises(Exception) as ex: + await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + + assert str(ex.value.status_code) == "400" + assert ex.value.message is not None + @CommunicationPreparer() async def test_get_token_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: @@ -106,11 +172,82 @@ async def test_get_token(self, communication_livetest_dynamic_connection_string) assert user.properties.get('id') is not None assert token_response.token is not None + + @CommunicationPreparer() + async def test_get_token_with_custom_minimum_validity(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_in = timedelta(minutes=60) + + async with identity_client: + user = await identity_client.create_user() + token_response = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + + assert user.properties.get('id') is not None + assert token_response.token is not None + + if is_live(): + assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) + + @CommunicationPreparer() + async def test_get_token_with_custom_maximum_validity(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_in = timedelta(minutes=1440) + + async with identity_client: + user = await identity_client.create_user() + token_response = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + + assert user.properties.get('id') is not None + assert token_response.token is not None + + if is_live(): + assert is_token_expiration_within_allowed_deviation(token_expires_in, token_response.expires_on) + + @CommunicationPreparer() + async def test_get_token_with_custom_validity_under_minimum_allowed(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_in = timedelta(minutes=59) + + async with identity_client: + with pytest.raises(Exception) as ex: + user = await identity_client.create_user() + await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + + assert str(ex.value.status_code) == "400" + assert ex.value.message is not None + + @CommunicationPreparer() + async def test_get_token_with_custom_validity_over_maximum_allowed(self, communication_livetest_dynamic_connection_string): + identity_client = CommunicationIdentityClient.from_connection_string( + communication_livetest_dynamic_connection_string, + http_logging_policy=get_http_logging_policy() + ) + + token_expires_in = timedelta(minutes=1441) + + async with identity_client: + with pytest.raises(Exception) as ex: + user = await identity_client.create_user() + await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT], token_expires_in=token_expires_in) + + assert str(ex.value.status_code) == "400" + assert ex.value.message is not None @CommunicationPreparer() async def test_revoke_tokens_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: @@ -145,7 +282,6 @@ async def test_revoke_tokens(self, communication_livetest_dynamic_connection_str @CommunicationPreparer() async def test_delete_user_from_managed_identity(self, communication_livetest_dynamic_connection_string): endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: @@ -234,7 +370,6 @@ async def test_get_token_for_teams_user_from_managed_identity(self, communicatio if(self.skip_get_token_for_teams_user_test()): return endpoint, access_key = parse_connection_str(communication_livetest_dynamic_connection_string) - from devtools_testutils import is_live if not is_live(): credential = FakeTokenCredential() else: diff --git a/sdk/communication/azure-communication-identity/tests/utils.py b/sdk/communication/azure-communication-identity/tests/utils.py new file mode 100644 index 000000000000..59c29b15fd59 --- /dev/null +++ b/sdk/communication/azure-communication-identity/tests/utils.py @@ -0,0 +1,21 @@ +# ------------------------------------------------------------------------ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# ------------------------------------------------------------------------- +from datetime import datetime, timedelta, timezone +from dateutil import parser + +def is_token_expiration_within_allowed_deviation( + expected_token_expiration, + token_expires_in, + allowed_deviation = 0.05 +): + # type: (timedelta, datetime, float) -> bool + utc_now = datetime.now(timezone.utc) + token_expiration = parser.parse(token_expires_in) + token_expiration_in_seconds = (token_expiration - utc_now).total_seconds() + expected_seconds = expected_token_expiration.total_seconds(); + time_difference = abs(expected_seconds - token_expiration_in_seconds) + allowed_time_difference = expected_seconds * allowed_deviation + return time_difference < allowed_time_difference \ No newline at end of file diff --git a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration.yaml b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration.yaml index af62fcb94104..1f03ec1a8ae4 100644 --- a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration.yaml +++ b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) x-ms-date: - Wed, 23 Mar 2022 18:20:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: diff --git a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_any.yaml b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_any.yaml index 8bc5feebf9d4..e70d51c8df33 100644 --- a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_any.yaml +++ b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_any.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) x-ms-date: - Wed, 23 Mar 2022 18:20:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: diff --git a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_nearest.yaml b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_nearest.yaml index d30e1538407b..9d37935d0ca6 100644 --- a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_nearest.yaml +++ b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client.test_get_relay_configuration_with_route_type_nearest.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) x-ms-date: - Wed, 23 Mar 2022 18:20:54 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: diff --git a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration.yaml b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration.yaml index 46f0ef1f85de..898a044ba2a5 100644 --- a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration.yaml +++ b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration.yaml @@ -9,19 +9,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) x-ms-date: - Wed, 23 Mar 2022 18:20:55 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 date: Wed, 23 Mar 2022 18:20:54 GMT @@ -33,7 +33,7 @@ interactions: status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"id": "sanitized", "ttl": 172800}' headers: diff --git a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_any.yaml b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_any.yaml index 8c9cd8a3e175..2872705e4434 100644 --- a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_any.yaml +++ b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_any.yaml @@ -9,19 +9,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) x-ms-date: - Wed, 23 Mar 2022 18:20:55 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 date: Wed, 23 Mar 2022 18:20:55 GMT @@ -33,7 +33,7 @@ interactions: status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"id": "sanitized", "routeType": "any", "ttl": 172800}' headers: diff --git a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_nearest.yaml b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_nearest.yaml index ffcc5f67dc72..b4a437311087 100644 --- a/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_nearest.yaml +++ b/sdk/communication/azure-communication-networktraversal/tests/recordings/test_communication_relay_client_async.test_get_relay_configuration_with_route_type_nearest.yaml @@ -9,19 +9,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.2.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.7.4 (Windows-10-10.0.22523-SP0) x-ms-date: - Wed, 23 Mar 2022 18:20:55 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, - 2021-10-31-preview, 2021-11-01, 2022-06-01 + 2021-10-31-preview, 2021-11-01, 2022-06-01, 2022-10-01 content-length: '101' content-type: application/json; charset=utf-8 date: Wed, 23 Mar 2022 18:20:55 GMT @@ -33,7 +33,7 @@ interactions: status: code: 201 message: Created - url: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + url: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 - request: body: '{"id": "sanitized", "routeType": "nearest", "ttl": 172800}' headers: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participant_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participant_async.yaml index 85d76e0db8f5..d8ad061989f7 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participant_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participant_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:04 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:04 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:04 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -272,20 +272,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:06 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:06 GMT ms-cv: @@ -313,20 +313,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:06 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:06 GMT ms-cv: @@ -354,20 +354,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:07 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:07 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_incorrectMri_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_incorrectMri_async.yaml index 4b712b3ffa7c..7a7e1d446a89 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_incorrectMri_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_incorrectMri_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:07 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:07 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:07 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -221,20 +221,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:08 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:08 GMT ms-cv: @@ -262,20 +262,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:09 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:09 GMT ms-cv: @@ -303,20 +303,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:09 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:09 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_wrongRoleName_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_wrongRoleName_async.yaml index eb0b78a60d81..e3e2a80177f3 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_wrongRoleName_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_add_participants_wrongRoleName_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:09 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:10 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:10 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -224,20 +224,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:11 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:11 GMT ms-cv: @@ -265,20 +265,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:11 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:11 GMT ms-cv: @@ -306,20 +306,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:11 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:11 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_all_attributes_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_all_attributes_async.yaml index a3abb2c6d0e4..2652221dde97 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_all_attributes_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_all_attributes_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:11 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:12 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:12 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -215,20 +215,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:13 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:13 GMT ms-cv: @@ -256,20 +256,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:13 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:13 GMT ms-cv: @@ -297,20 +297,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:14 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:13 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_correct_timerange_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_correct_timerange_async.yaml index 65cf2ef2d5cc..1ad97333aeff 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_correct_timerange_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_correct_timerange_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:14 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:14 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:14 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -213,20 +213,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:16 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:15 GMT ms-cv: @@ -254,20 +254,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:16 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:15 GMT ms-cv: @@ -295,20 +295,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:16 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:16 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_incorrectMri_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_incorrectMri_async.yaml index 2c55a70003b4..05c6d231b757 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_incorrectMri_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_incorrectMri_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:16 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:17 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:17 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -189,20 +189,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:18 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:18 GMT ms-cv: @@ -230,20 +230,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:18 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:18 GMT ms-cv: @@ -271,20 +271,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:18 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:18 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_no_attributes_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_no_attributes_async.yaml index c3fd9c108934..2755a0cebd61 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_no_attributes_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_no_attributes_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:18 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:19 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:19 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -213,20 +213,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:20 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:20 GMT ms-cv: @@ -254,20 +254,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:20 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:25 GMT ms-cv: @@ -295,20 +295,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:25 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:25 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_participants_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_participants_async.yaml index b68ed98917a7..8992ce1ada16 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_participants_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_participants_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:26 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:26 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:26 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -215,20 +215,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:27 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:27 GMT ms-cv: @@ -256,20 +256,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:28 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:27 GMT ms-cv: @@ -297,20 +297,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:28 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:27 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validFrom_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validFrom_async.yaml index 5bb461d4471d..90b615bd3753 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validFrom_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validFrom_async.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:28 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:29 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:29 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -213,20 +213,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:30 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:30 GMT ms-cv: @@ -254,20 +254,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:30 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:30 GMT ms-cv: @@ -295,20 +295,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:45:30 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:45:30 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validUntil_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validUntil_async.yaml index c6bc4a483358..79d5f6757be3 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validUntil_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_only_validUntil_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -219,7 +219,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -260,7 +260,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -301,7 +301,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_open_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_open_room.yaml index b63e632dbe8b..e60325c68d30 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_open_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_open_room.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -220,7 +220,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -261,7 +261,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -302,7 +302,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validFrom_7Months_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validFrom_7Months_async.yaml index f7eb87f6e4d1..20299e8f3334 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validFrom_7Months_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validFrom_7Months_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -194,7 +194,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -235,7 +235,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -276,7 +276,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validUntil_7Months_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validUntil_7Months_async.yaml index 5fc6ac666307..ea45c7db9edc 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validUntil_7Months_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_create_room_validUntil_7Months_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -194,7 +194,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -235,7 +235,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -276,7 +276,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_delete_invalid_room_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_delete_invalid_room_async.yaml index c845301c8ee8..4994c4cec310 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_delete_invalid_room_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_delete_invalid_room_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -185,7 +185,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -226,7 +226,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -267,7 +267,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_invalid_room_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_invalid_room_async.yaml index 8be46ac01f4a..ed157b77cdc9 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_invalid_room_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_invalid_room_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -185,7 +185,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -226,7 +226,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -267,7 +267,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_room_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_room_async.yaml index ee045d0f4e6a..0281f7ae3185 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_room_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_get_room_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -248,7 +248,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -289,7 +289,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -330,7 +330,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_remove_participant_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_remove_participant_async.yaml index 2bdb92216712..4da5df26408a 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_remove_participant_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_remove_participant_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -280,7 +280,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -321,7 +321,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -362,7 +362,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_participant_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_participant_async.yaml index e4174a01067f..f6486924acd8 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_participant_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_participant_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -281,7 +281,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -322,7 +322,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -363,7 +363,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidFrom_7Months_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidFrom_7Months_async.yaml index daa634dfb7c7..70b450c3dbe9 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidFrom_7Months_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidFrom_7Months_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -226,7 +226,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -267,7 +267,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -308,7 +308,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidUntil_7Months_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidUntil_7Months_async.yaml index e0b6f1624393..efbc75bbba87 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidUntil_7Months_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_ValidUntil_7Months_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -226,7 +226,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -267,7 +267,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -308,7 +308,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_future.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_future.yaml index f1a4b9383601..cd986d1c1e2a 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_future.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_future.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -251,7 +251,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -292,7 +292,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -333,7 +333,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_past.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_past.yaml index 17f50f99ac83..958e364d7333 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_past.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_change_open_room_in_past.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -252,7 +252,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -293,7 +293,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -334,7 +334,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_correct_timerange_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_correct_timerange_async.yaml index 66c7a0d183bd..2c7486979251 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_correct_timerange_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_correct_timerange_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -250,7 +250,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -291,7 +291,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -332,7 +332,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_deleted_room_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_deleted_room_async.yaml index 19d42412a0fe..723ec768c2c3 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_deleted_room_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_deleted_room_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -250,7 +250,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -291,7 +291,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -332,7 +332,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_roomId_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_roomId_async.yaml index 17a7e7e0d569..3bf074c63abe 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_roomId_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_roomId_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -189,7 +189,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -230,7 +230,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -271,7 +271,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_timerange_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_timerange_async.yaml index 5b6011a56943..0eb9bfb2d1be 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_timerange_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_incorrect_timerange_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -226,7 +226,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -267,7 +267,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -308,7 +308,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidFrom_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidFrom_async.yaml index 5e1c3e4ad242..931919f22e61 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidFrom_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidFrom_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -226,7 +226,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -267,7 +267,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -308,7 +308,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidUntil_async.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidUntil_async.yaml index 9be6e76ca0ec..14ecea16c13b 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidUntil_async.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_async_e2e.test_update_room_only_ValidUntil_async.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -226,7 +226,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -267,7 +267,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -308,7 +308,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants.yaml index 20a06b265505..5ab4d24fe7e0 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -315,7 +315,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -356,7 +356,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -397,7 +397,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants_incorrectMri.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants_incorrectMri.yaml index 66fcf187f61e..1262174f31cd 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants_incorrectMri.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_add_participants_incorrectMri.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -246,7 +246,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -287,7 +287,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -328,7 +328,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_all_attributes.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_all_attributes.yaml index 09a6d76d5133..7b8cd7e0434e 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_all_attributes.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_all_attributes.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -240,7 +240,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -281,7 +281,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -322,7 +322,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_correct_timerange.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_correct_timerange.yaml index 4eb2a28db342..73e4e00dd1f4 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_correct_timerange.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_correct_timerange.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -238,7 +238,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -279,7 +279,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -320,7 +320,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_incorrectMri.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_incorrectMri.yaml index 58fb54952f4a..7747ad53907b 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_incorrectMri.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_incorrectMri.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -204,7 +204,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -245,7 +245,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -286,7 +286,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_no_attributes.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_no_attributes.yaml index 3ec353b68f2c..41c473a7fe95 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_no_attributes.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_no_attributes.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -238,7 +238,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -279,7 +279,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -320,7 +320,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_participants.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_participants.yaml index 16f7471e6f5a..89466b4c6113 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_participants.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_participants.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -240,7 +240,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -281,7 +281,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -322,7 +322,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validFrom.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validFrom.yaml index 7796f036e405..faaf85530760 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validFrom.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validFrom.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -238,7 +238,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -279,7 +279,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -320,7 +320,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validUntil.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validUntil.yaml index e66b2bf703ab..098c5ad3c60a 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validUntil.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_only_validUntil.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -238,7 +238,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -279,7 +279,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -320,7 +320,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_open_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_open_room.yaml index 82ca27a54f8b..8a42fbe5dba7 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_open_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_open_room.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -239,7 +239,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -280,7 +280,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -321,7 +321,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validFrom_7Months.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validFrom_7Months.yaml index efff6059d9f4..24bc6f8f24bb 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validFrom_7Months.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validFrom_7Months.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -202,7 +202,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -243,7 +243,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -284,7 +284,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validUntil_7Months.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validUntil_7Months.yaml index e74871e11d9f..0437bb66a99a 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validUntil_7Months.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_create_room_validUntil_7Months.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -202,7 +202,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -243,7 +243,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -284,7 +284,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_delete_invalid_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_delete_invalid_room.yaml index aadf0e210191..3d44e37eb160 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_delete_invalid_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_delete_invalid_room.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:41 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:41 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:41 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -190,20 +190,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:42 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:41 GMT ms-cv: @@ -231,20 +231,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:42 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:42 GMT ms-cv: @@ -272,20 +272,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:46:42 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:46:42 GMT ms-cv: diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_invalid_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_invalid_room.yaml index f2b40acf1948..5e3f3bc38adb 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_invalid_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_invalid_room.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -194,7 +194,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -235,7 +235,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -276,7 +276,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_room.yaml index 3c782791f940..6647fe56ca48 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_get_room.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -276,7 +276,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -317,7 +317,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -358,7 +358,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_remove_participants.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_remove_participants.yaml index 39433f6166d8..2efa373296f2 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_remove_participants.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_remove_participants.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -317,7 +317,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -358,7 +358,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -399,7 +399,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_participants.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_participants.yaml index 1c9446242c74..a5d036a15af3 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_participants.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_participants.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -318,7 +318,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -359,7 +359,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -400,7 +400,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidFrom_7Months.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidFrom_7Months.yaml index 64d799b06b3b..3e2d51a110ed 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidFrom_7Months.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidFrom_7Months.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidUntil_7Months.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidUntil_7Months.yaml index 965974d6c21a..8cea6ad13b90 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidUntil_7Months.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_ValidUntil_7Months.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_future.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_future.yaml index 8a10aba0f352..0c5912326ab2 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_future.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_future.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -279,7 +279,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -320,7 +320,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -361,7 +361,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_past.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_past.yaml index 4e9de8d19d8b..fbf93dfbacb6 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_past.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_change_open_room_in_past.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -280,7 +280,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -321,7 +321,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -362,7 +362,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_correct_timerange.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_correct_timerange.yaml index 73fc2da7730f..8a265207ae13 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_correct_timerange.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_correct_timerange.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_deleted_room.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_deleted_room.yaml index ed02673e00cb..44006b3dceb5 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_deleted_room.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_deleted_room.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_roomId.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_roomId.yaml index f6eca20107d0..0a87658c1780 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_roomId.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_roomId.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -198,7 +198,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -239,7 +239,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -280,7 +280,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_timerange.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_timerange.yaml index b1502e61258c..a47842844e0f 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_timerange.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_incorrect_timerange.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidFrom.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidFrom.yaml index 09827d06f8c0..217768064af7 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidFrom.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidFrom.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidUntil.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidUntil.yaml index e202d46bfaf4..e704d998fdba 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidUntil.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_only_ValidUntil.yaml @@ -19,7 +19,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -66,7 +66,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -113,7 +113,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' @@ -278,7 +278,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -319,7 +319,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' @@ -360,7 +360,7 @@ interactions: x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' diff --git a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_wrongRoleName.yaml b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_wrongRoleName.yaml index e08526cd6706..dc6a51f12e96 100644 --- a/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_wrongRoleName.yaml +++ b/sdk/communication/azure-communication-rooms/tests/recordings/test_rooms_client_e2e.test_update_room_wrongRoleName.yaml @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:15 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -60,20 +60,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:15 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -107,20 +107,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:15 GMT x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities?api-version=2022-10-01 response: body: string: '{"identity":{"id":"sanitized"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 content-length: - '101' content-type: @@ -241,20 +241,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:16 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:16 GMT ms-cv: @@ -282,20 +282,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:17 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:17 GMT ms-cv: @@ -323,20 +323,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.1.1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - azsdk-python-communication-identity/1.3.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) x-ms-date: - Mon, 08 Aug 2022 19:47:17 GMT x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-06-01 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2022-10-01 response: body: string: '' headers: api-supported-versions: - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-10-31-preview, - 2021-11-01, 2022-06-01 + 2021-11-01, 2022-06-01, 2022-10-01 date: - Mon, 08 Aug 2022 19:47:17 GMT ms-cv: