diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py index 25bd2187344f..45945a5f408b 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_client.py @@ -148,25 +148,25 @@ def create_chat_thread( raise ValueError("List of ChatThreadParticipant cannot be None.") participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access - create_thread_request = CreateChatThreadRequest(topic=topic, participants=participants) - - response, create_chat_thread_result = self._client.create_chat_thread( - create_thread_request, cls=return_response, **kwargs) - if response is not None: - response_header = response.http_response.headers - if ('Azure-Acs-InvalidParticipants' in response_header.keys() and - response_header['Azure-Acs-InvalidParticipants'] is not None): - invalid_participant_and_reason_list = response_header['Azure-Acs-InvalidParticipants'].split('|') - errors = [] - for invalid_participant_and_reason in invalid_participant_and_reason_list: - participant, reason = invalid_participant_and_reason.split(',', 1) - errors.append('participant ' + participant + ' failed to join thread ' - + create_chat_thread_result.id + ' return statue code ' + reason) - raise ValueError(errors) + create_thread_request = \ + CreateChatThreadRequest(topic=topic, participants=participants) + + create_chat_thread_result = self._client.chat.create_chat_thread( + create_thread_request, **kwargs) + if hasattr(create_chat_thread_result, 'errors') and \ + create_chat_thread_result.errors is not None: + participants = \ + create_chat_thread_result.errors.invalid_participants + errors = [] + for participant in participants: + errors.append('participant ' + participant.target + + ' failed to join thread due to: ' + participant.message) + raise RuntimeError(errors) + thread_id = create_chat_thread_result.chat_thread.id return ChatThreadClient( endpoint=self._endpoint, credential=self._credential, - thread_id=create_chat_thread_result.id, + thread_id=thread_id, **kwargs ) @@ -197,7 +197,7 @@ def get_chat_thread( if not thread_id: raise ValueError("thread_id cannot be None.") - chat_thread = self._client.get_chat_thread(thread_id, **kwargs) + chat_thread = self._client.chat.get_chat_thread(thread_id, **kwargs) return ChatThread._from_generated(chat_thread) # pylint:disable=protected-access @distributed_trace @@ -227,7 +227,7 @@ def list_chat_threads( results_per_page = kwargs.pop("results_per_page", None) start_time = kwargs.pop("start_time", None) - return self._client.list_chat_threads( + return self._client.chat.list_chat_threads( max_page_size=results_per_page, start_time=start_time, **kwargs) @@ -260,7 +260,7 @@ def delete_chat_thread( if not thread_id: raise ValueError("thread_id cannot be None.") - return self._client.delete_chat_thread(thread_id, **kwargs) + return self._client.chat.delete_chat_thread(thread_id, **kwargs) def close(self): # type: () -> None diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py index c2d304607642..56fc67abe09f 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py @@ -140,7 +140,7 @@ def update_topic( """ update_topic_request = UpdateChatThreadRequest(topic=topic) - return self._client.update_chat_thread( + return self._client.chat_thread.update_chat_thread( chat_thread_id=self._thread_id, update_chat_thread_request=update_topic_request, **kwargs) @@ -174,7 +174,7 @@ def send_read_receipt( raise ValueError("message_id cannot be None.") post_read_receipt_request = SendReadReceiptRequest(chat_message_id=message_id) - return self._client.send_chat_read_receipt( + return self._client.chat_thread.send_chat_read_receipt( self._thread_id, send_read_receipt_request=post_read_receipt_request, **kwargs) @@ -201,7 +201,7 @@ def list_read_receipts( :dedent: 8 :caption: Listing read receipts. """ - return self._client.list_chat_read_receipts( + return self._client.chat_thread.list_chat_read_receipts( self._thread_id, cls=lambda objs: [ChatMessageReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -228,7 +228,7 @@ def send_typing_notification( :dedent: 8 :caption: Sending typing notification. """ - return self._client.send_typing_notification(self._thread_id, **kwargs) + return self._client.chat_thread.send_typing_notification(self._thread_id, **kwargs) @distributed_trace def send_message( @@ -271,7 +271,7 @@ def send_message( sender_display_name=sender_display_name ) - send_chat_message_result = self._client.send_chat_message( + send_chat_message_result = self._client.chat_thread.send_chat_message( chat_thread_id=self._thread_id, send_chat_message_request=create_message_request, **kwargs) @@ -305,7 +305,7 @@ def get_message( if not message_id: raise ValueError("message_id cannot be None.") - chat_message = self._client.get_chat_message(self._thread_id, message_id, **kwargs) + chat_message = self._client.chat_thread.get_chat_message(self._thread_id, message_id, **kwargs) return ChatMessage._from_generated(chat_message) # pylint:disable=protected-access @distributed_trace @@ -335,12 +335,13 @@ def list_messages( results_per_page = kwargs.pop("results_per_page", None) start_time = kwargs.pop("start_time", None) - return self._client.list_chat_messages( + a = self._client.chat_thread.list_chat_messages( self._thread_id, - max_page_size=results_per_page, + maxpagesize=results_per_page, start_time=start_time, cls=lambda objs: [ChatMessage._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) + return a @distributed_trace def update_message( @@ -375,7 +376,7 @@ def update_message( update_message_request = UpdateChatMessageRequest(content=content, priority=None) - return self._client.update_chat_message( + return self._client.chat_thread.update_chat_message( chat_thread_id=self._thread_id, chat_message_id=message_id, update_chat_message_request=update_message_request, @@ -409,7 +410,7 @@ def delete_message( if not message_id: raise ValueError("message_id cannot be None.") - return self._client.delete_chat_message( + return self._client.chat_thread.delete_chat_message( chat_thread_id=self._thread_id, chat_message_id=message_id, **kwargs) @@ -437,7 +438,7 @@ def list_participants( :caption: Listing participants of chat thread. """ - return self._client.list_chat_participants( + return self._client.chat_thread.list_chat_participants( self._thread_id, cls=lambda objs: [ChatThreadParticipant._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -473,7 +474,7 @@ def add_participant( participants = [thread_participant._to_generated()] # pylint:disable=protected-access add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - return self._client.add_chat_participants( + return self._client.chat_thread.add_chat_participants( chat_thread_id=self._thread_id, add_chat_participants_request=add_thread_participants_request, **kwargs) @@ -509,7 +510,7 @@ def add_participants( participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - return self._client.add_chat_participants( + return self._client.chat_thread.add_chat_participants( chat_thread_id=self._thread_id, add_chat_participants_request=add_thread_participants_request, **kwargs) @@ -542,7 +543,7 @@ def remove_participant( if not user: raise ValueError("user cannot be None.") - return self._client.remove_chat_participant( + return self._client.chat_thread.remove_chat_participant( chat_thread_id=self._thread_id, chat_participant_id=user.identifier, **kwargs) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_azure_communication_chat_service.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_azure_communication_chat_service.py index 386507ece71d..e49f027055f2 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_azure_communication_chat_service.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_azure_communication_chat_service.py @@ -16,13 +16,18 @@ from typing import Any from ._configuration import AzureCommunicationChatServiceConfiguration -from .operations import AzureCommunicationChatServiceOperationsMixin +from .operations import ChatThreadOperations +from .operations import ChatOperations from . import models -class AzureCommunicationChatService(AzureCommunicationChatServiceOperationsMixin): +class AzureCommunicationChatService(object): """Azure Communication Chat Service. + :ivar chat_thread: ChatThreadOperations operations + :vartype chat_thread: azure.communication.chat.operations.ChatThreadOperations + :ivar chat: ChatOperations operations + :vartype chat: azure.communication.chat.operations.ChatOperations :param endpoint: The endpoint of the Azure Communication resource. :type endpoint: str """ @@ -42,6 +47,10 @@ def __init__( self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) + self.chat_thread = ChatThreadOperations( + self._client, self._config, self._serialize, self._deserialize) + self.chat = ChatOperations( + self._client, self._config, self._serialize, self._deserialize) def close(self): # type: () -> None diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_azure_communication_chat_service.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_azure_communication_chat_service.py index 0b37b0a92e70..0abf7bcfd572 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_azure_communication_chat_service.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_azure_communication_chat_service.py @@ -12,13 +12,18 @@ from msrest import Deserializer, Serializer from ._configuration import AzureCommunicationChatServiceConfiguration -from .operations import AzureCommunicationChatServiceOperationsMixin +from .operations import ChatThreadOperations +from .operations import ChatOperations from .. import models -class AzureCommunicationChatService(AzureCommunicationChatServiceOperationsMixin): +class AzureCommunicationChatService(object): """Azure Communication Chat Service. + :ivar chat_thread: ChatThreadOperations operations + :vartype chat_thread: azure.communication.chat.aio.operations.ChatThreadOperations + :ivar chat: ChatOperations operations + :vartype chat: azure.communication.chat.aio.operations.ChatOperations :param endpoint: The endpoint of the Azure Communication resource. :type endpoint: str """ @@ -37,6 +42,10 @@ def __init__( self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) + self.chat_thread = ChatThreadOperations( + self._client, self._config, self._serialize, self._deserialize) + self.chat = ChatOperations( + self._client, self._config, self._serialize, self._deserialize) async def close(self) -> None: await self._client.close() diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/__init__.py index fbcbeea166ae..ca0d822356d7 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/__init__.py @@ -6,8 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._azure_communication_chat_service_operations import AzureCommunicationChatServiceOperationsMixin +from ._chat_thread_operations import ChatThreadOperations +from ._chat_operations import ChatOperations __all__ = [ - 'AzureCommunicationChatServiceOperationsMixin', + 'ChatThreadOperations', + 'ChatOperations', ] diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_operations.py new file mode 100644 index 000000000000..7245e4ad5ebd --- /dev/null +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_operations.py @@ -0,0 +1,324 @@ +# 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 datetime +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ChatOperations: + """ChatOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.communication.chat.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def create_chat_thread( + self, + create_chat_thread_request: "_models.CreateChatThreadRequest", + repeatability_request_id: Optional[str] = None, + **kwargs + ) -> "_models.CreateChatThreadResult": + """Creates a chat thread. + + Creates a chat thread. + + :param create_chat_thread_request: Request payload for creating a chat thread. + :type create_chat_thread_request: ~azure.communication.chat.models.CreateChatThreadRequest + :param repeatability_request_id: If specified, the client directs that the request is + repeatable; that is, that the client can make the request multiple times with the same + Repeatability-Request-ID and get back an appropriate response without the server executing the + request multiple times. The value of the Repeatability-Request-ID is an opaque string + representing a client-generated, globally unique for all time, identifier for the request. It + is recommended to use version 4 (random) UUIDs. + :type repeatability_request_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CreateChatThreadResult, or the result of cls(response) + :rtype: ~azure.communication.chat.models.CreateChatThreadResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CreateChatThreadResult"] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_chat_thread.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + if repeatability_request_id is not None: + header_parameters['repeatability-Request-ID'] = self._serialize.header("repeatability_request_id", repeatability_request_id, 'str') + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(create_chat_thread_request, 'CreateChatThreadRequest') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(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) + + deserialized = self._deserialize('CreateChatThreadResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_chat_thread.metadata = {'url': '/chat/threads'} # type: ignore + + def list_chat_threads( + self, + max_page_size: Optional[int] = None, + start_time: Optional[datetime.datetime] = None, + **kwargs + ) -> AsyncIterable["_models.ChatThreadsInfoCollection"]: + """Gets the list of chat threads of a user. + + Gets the list of chat threads of a user. + + :param max_page_size: The maximum number of chat threads returned per page. + :type max_page_size: int + :param start_time: The earliest point in time to get chat threads up to. The timestamp should + be in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type start_time: ~datetime.datetime + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ChatThreadsInfoCollection or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ChatThreadsInfoCollection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadsInfoCollection"] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_chat_threads.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') + if start_time is not None: + query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ChatThreadsInfoCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(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) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_chat_threads.metadata = {'url': '/chat/threads'} # type: ignore + + async def get_chat_thread( + self, + chat_thread_id: str, + **kwargs + ) -> "_models.ChatThread": + """Gets a chat thread. + + Gets a chat thread. + + :param chat_thread_id: Id of the thread. + :type chat_thread_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ChatThread, or the result of cls(response) + :rtype: ~azure.communication.chat.models.ChatThread + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + accept = "application/json" + + # Construct URL + url = self.get_chat_thread.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(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) + + deserialized = self._deserialize('ChatThread', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore + + async def delete_chat_thread( + self, + chat_thread_id: str, + **kwargs + ) -> None: + """Deletes a thread. + + Deletes a thread. + + :param chat_thread_id: Id of the thread to be deleted. + :type chat_thread_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + accept = "application/json" + + # Construct URL + url = self.delete_chat_thread.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(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, {}) + + delete_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_azure_communication_chat_service_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py similarity index 75% rename from sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_azure_communication_chat_service_operations.py rename to sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py index 8153823a07ec..479fd2e3ba59 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_azure_communication_chat_service_operations.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py @@ -19,11 +19,33 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class AzureCommunicationChatServiceOperationsMixin: +class ChatThreadOperations: + """ChatThreadOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.communication.chat.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config def list_chat_read_receipts( self, chat_thread_id: str, + maxpagesize: Optional[int] = None, + skip: Optional[int] = None, **kwargs ) -> AsyncIterable["_models.ChatMessageReadReceiptsCollection"]: """Gets chat message read receipts for a thread. @@ -32,6 +54,10 @@ def list_chat_read_receipts( :param chat_thread_id: Thread id to get the chat message read receipts for. :type chat_thread_id: str + :param maxpagesize: The maximum number of chat message read receipts to be returned per page. + :type maxpagesize: int + :param skip: Skips chat message read receipts up to a specified position in response. + :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ChatMessageReadReceiptsCollection or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ChatMessageReadReceiptsCollection] @@ -65,6 +91,10 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] + if maxpagesize is not None: + query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) @@ -101,7 +131,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_chat_read_receipts.metadata = {'url': '/chat/threads/{chatThreadId}/readreceipts'} # type: ignore + list_chat_read_receipts.metadata = {'url': '/chat/threads/{chatThreadId}/readReceipts'} # type: ignore async def send_chat_read_receipt( self, @@ -167,7 +197,7 @@ async def send_chat_read_receipt( if cls: return cls(pipeline_response, None, {}) - send_chat_read_receipt.metadata = {'url': '/chat/threads/{chatThreadId}/readreceipts'} # type: ignore + send_chat_read_receipt.metadata = {'url': '/chat/threads/{chatThreadId}/readReceipts'} # type: ignore async def send_chat_message( self, @@ -241,7 +271,7 @@ async def send_chat_message( def list_chat_messages( self, chat_thread_id: str, - max_page_size: Optional[int] = None, + maxpagesize: Optional[int] = None, start_time: Optional[datetime.datetime] = None, **kwargs ) -> AsyncIterable["_models.ChatMessagesCollection"]: @@ -251,10 +281,10 @@ def list_chat_messages( :param chat_thread_id: The thread id of the message. :type chat_thread_id: str - :param max_page_size: The maximum number of messages to be returned per page. - :type max_page_size: int + :param maxpagesize: The maximum number of messages to be returned per page. + :type maxpagesize: int :param start_time: The earliest point in time to get messages up to. The timestamp should be in - ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type start_time: ~datetime.datetime :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ChatMessagesCollection or the result of cls(response) @@ -289,8 +319,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if max_page_size is not None: - query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') + if maxpagesize is not None: + query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') if start_time is not None: query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -589,6 +619,8 @@ async def send_typing_notification( def list_chat_participants( self, chat_thread_id: str, + maxpagesize: Optional[int] = None, + skip: Optional[int] = None, **kwargs ) -> AsyncIterable["_models.ChatParticipantsCollection"]: """Gets the participants of a thread. @@ -597,6 +629,10 @@ def list_chat_participants( :param chat_thread_id: Thread id to get participants for. :type chat_thread_id: str + :param maxpagesize: The maximum number of participants to be returned per page. + :type maxpagesize: int + :param skip: Skips participants up to a specified position in response. + :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ChatParticipantsCollection or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ChatParticipantsCollection] @@ -630,6 +666,10 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] + if maxpagesize is not None: + query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) @@ -673,7 +713,7 @@ async def add_chat_participants( chat_thread_id: str, add_chat_participants_request: "_models.AddChatParticipantsRequest", **kwargs - ) -> None: + ) -> "_models.AddChatParticipantsResult": """Adds thread participants to a thread. If participants already exist, no change occurs. Adds thread participants to a thread. If participants already exist, no change occurs. @@ -683,11 +723,11 @@ async def add_chat_participants( :param add_chat_participants_request: Thread participants to be added to the thread. :type add_chat_participants_request: ~azure.communication.chat.models.AddChatParticipantsRequest :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None + :return: AddChatParticipantsResult, or the result of cls(response) + :rtype: ~azure.communication.chat.models.AddChatParticipantsResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AddChatParticipantsResult"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -729,9 +769,12 @@ async def add_chat_participants( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) + deserialized = self._deserialize('AddChatParticipantsResult', pipeline_response) + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, deserialized, {}) + return deserialized add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore async def remove_chat_participant( @@ -796,159 +839,6 @@ async def remove_chat_participant( remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore - async def create_chat_thread( - self, - create_chat_thread_request: "_models.CreateChatThreadRequest", - **kwargs - ) -> "_models.ChatThread": - """Creates a chat thread. - - Creates a chat thread. - - :param create_chat_thread_request: Request payload for creating a chat thread. - :type create_chat_thread_request: ~azure.communication.chat.models.CreateChatThreadRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ChatThread, or the result of cls(response) - :rtype: ~azure.communication.chat.models.ChatThread - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_chat_thread.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(create_chat_thread_request, 'CreateChatThreadRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(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) - - deserialized = self._deserialize('ChatThread', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_chat_thread.metadata = {'url': '/chat/threads'} # type: ignore - - def list_chat_threads( - self, - max_page_size: Optional[int] = None, - start_time: Optional[datetime.datetime] = None, - **kwargs - ) -> AsyncIterable["_models.ChatThreadsInfoCollection"]: - """Gets the list of chat threads of a user. - - Gets the list of chat threads of a user. - - :param max_page_size: The maximum number of chat threads returned per page. - :type max_page_size: int - :param start_time: The earliest point in time to get chat threads up to. The timestamp should - be in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. - :type start_time: ~datetime.datetime - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ChatThreadsInfoCollection or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ChatThreadsInfoCollection] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadsInfoCollection"] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_chat_threads.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if max_page_size is not None: - query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') - if start_time is not None: - query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('ChatThreadsInfoCollection', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(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) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_chat_threads.metadata = {'url': '/chat/threads'} # type: ignore - async def update_chat_thread( self, chat_thread_id: str, @@ -1014,122 +904,3 @@ async def update_chat_thread( return cls(pipeline_response, None, {}) update_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore - - async def get_chat_thread( - self, - chat_thread_id: str, - **kwargs - ) -> "_models.ChatThread": - """Gets a chat thread. - - Gets a chat thread. - - :param chat_thread_id: Thread id to get. - :type chat_thread_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ChatThread, or the result of cls(response) - :rtype: ~azure.communication.chat.models.ChatThread - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - accept = "application/json" - - # Construct URL - url = self.get_chat_thread.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(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) - - deserialized = self._deserialize('ChatThread', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore - - async def delete_chat_thread( - self, - chat_thread_id: str, - **kwargs - ) -> None: - """Deletes a thread. - - Deletes a thread. - - :param chat_thread_id: Thread id to delete. - :type chat_thread_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - accept = "application/json" - - # Construct URL - url = self.delete_chat_thread.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(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, {}) - - delete_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/__init__.py index 6e86967f52b8..d8cdbe52dd58 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/__init__.py @@ -7,7 +7,9 @@ # -------------------------------------------------------------------------- try: + from ._models_py3 import AddChatParticipantsErrors from ._models_py3 import AddChatParticipantsRequest + from ._models_py3 import AddChatParticipantsResult from ._models_py3 import ChatMessage from ._models_py3 import ChatMessageReadReceipt from ._models_py3 import ChatMessageReadReceiptsCollection @@ -17,7 +19,9 @@ from ._models_py3 import ChatThread from ._models_py3 import ChatThreadInfo from ._models_py3 import ChatThreadsInfoCollection + from ._models_py3 import CreateChatThreadErrors from ._models_py3 import CreateChatThreadRequest + from ._models_py3 import CreateChatThreadResult from ._models_py3 import Error from ._models_py3 import SendChatMessageRequest from ._models_py3 import SendChatMessageResult @@ -25,7 +29,9 @@ from ._models_py3 import UpdateChatMessageRequest from ._models_py3 import UpdateChatThreadRequest except (SyntaxError, ImportError): + from ._models import AddChatParticipantsErrors # type: ignore from ._models import AddChatParticipantsRequest # type: ignore + from ._models import AddChatParticipantsResult # type: ignore from ._models import ChatMessage # type: ignore from ._models import ChatMessageReadReceipt # type: ignore from ._models import ChatMessageReadReceiptsCollection # type: ignore @@ -35,7 +41,9 @@ from ._models import ChatThread # type: ignore from ._models import ChatThreadInfo # type: ignore from ._models import ChatThreadsInfoCollection # type: ignore + from ._models import CreateChatThreadErrors # type: ignore from ._models import CreateChatThreadRequest # type: ignore + from ._models import CreateChatThreadResult # type: ignore from ._models import Error # type: ignore from ._models import SendChatMessageRequest # type: ignore from ._models import SendChatMessageResult # type: ignore @@ -48,7 +56,9 @@ ) __all__ = [ + 'AddChatParticipantsErrors', 'AddChatParticipantsRequest', + 'AddChatParticipantsResult', 'ChatMessage', 'ChatMessageReadReceipt', 'ChatMessageReadReceiptsCollection', @@ -58,7 +68,9 @@ 'ChatThread', 'ChatThreadInfo', 'ChatThreadsInfoCollection', + 'CreateChatThreadErrors', 'CreateChatThreadRequest', + 'CreateChatThreadResult', 'Error', 'SendChatMessageRequest', 'SendChatMessageResult', diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py index 9598cb18db1f..484f928d4a45 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py @@ -10,6 +10,31 @@ import msrest.serialization +class AddChatParticipantsErrors(msrest.serialization.Model): + """Errors encountered during the addition of the chat participant to the chat thread. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar invalid_participants: The participants that failed to be added to the chat thread. + :vartype invalid_participants: list[~azure.communication.chat.models.Error] + """ + + _validation = { + 'invalid_participants': {'readonly': True}, + } + + _attribute_map = { + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[Error]'}, + } + + def __init__( + self, + **kwargs + ): + super(AddChatParticipantsErrors, self).__init__(**kwargs) + self.invalid_participants = None + + class AddChatParticipantsRequest(msrest.serialization.Model): """Participants to be added to the thread. @@ -35,8 +60,28 @@ def __init__( self.participants = kwargs['participants'] +class AddChatParticipantsResult(msrest.serialization.Model): + """Result of the add chat participants operation. + + :param errors: Errors encountered during the addition of the chat participant to the chat + thread. + :type errors: ~azure.communication.chat.models.AddChatParticipantsErrors + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': 'AddChatParticipantsErrors'}, + } + + def __init__( + self, + **kwargs + ): + super(AddChatParticipantsResult, self).__init__(**kwargs) + self.errors = kwargs.get('errors', None) + + class ChatMessage(msrest.serialization.Model): - """ChatMessage. + """Chat message. Variables are only populated by the server, and will be ignored when sending a request. @@ -63,15 +108,15 @@ class ChatMessage(msrest.serialization.Model): to populate sender name for push notifications. :type sender_display_name: str :ivar created_on: The timestamp when the chat message arrived at the server. The timestamp is - in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :vartype created_on: ~datetime.datetime :ivar sender_id: The id of the chat message sender. :vartype sender_id: str - :param deleted_on: The timestamp when the chat message was deleted. The timestamp is in ISO8601 - format: ``yyyy-MM-ddTHH:mm:ssZ``. + :param deleted_on: The timestamp (if applicable) when the message was deleted. The timestamp is + in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime - :param edited_on: The timestamp when the chat message was edited. The timestamp is in ISO8601 - format: ``yyyy-MM-ddTHH:mm:ssZ``. + :param edited_on: The last timestamp (if applicable) when the message was edited. The timestamp + is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type edited_on: ~datetime.datetime """ @@ -117,13 +162,13 @@ class ChatMessageReadReceipt(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar sender_id: Chat message read receipt sender id. + :ivar sender_id: Id of the participant who read the message. :vartype sender_id: str - :ivar chat_message_id: Id for the chat message that has been read. This id is generated by the + :ivar chat_message_id: Id of the chat message that has been read. This id is generated by the server. :vartype chat_message_id: str - :ivar read_on: Chat message read receipt timestamp. The timestamp is in ISO8601 format: ``yyyy- - MM-ddTHH:mm:ssZ``. + :ivar read_on: The time at which the message was read. The timestamp is in RFC3339 format: + ``yyyy-MM-ddTHH:mm:ssZ``. :vartype read_on: ~datetime.datetime """ @@ -150,7 +195,7 @@ def __init__( class ChatMessageReadReceiptsCollection(msrest.serialization.Model): - """ChatMessageReadReceiptsCollection. + """A paged collection of chat message read receipts. Variables are only populated by the server, and will be ignored when sending a request. @@ -221,7 +266,7 @@ class ChatParticipant(msrest.serialization.Model): :param display_name: Display name for the chat participant. :type display_name: str :param share_history_time: Time from which the chat history is shared with the participant. The - timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type share_history_time: ~datetime.datetime """ @@ -276,7 +321,7 @@ def __init__( class ChatThread(msrest.serialization.Model): - """ChatThread. + """Chat thread. Variables are only populated by the server, and will be ignored when sending a request. @@ -284,16 +329,14 @@ class ChatThread(msrest.serialization.Model): :vartype id: str :param topic: Chat thread topic. :type topic: str - :ivar created_on: The timestamp when the chat thread was created. The timestamp is in ISO8601 + :ivar created_on: The timestamp when the chat thread was created. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :vartype created_on: ~datetime.datetime :ivar created_by: Id of the chat thread owner. :vartype created_by: str - :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in ISO8601 + :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime - :param participants: Chat participants. - :type participants: list[~azure.communication.chat.models.ChatParticipant] """ _validation = { @@ -308,7 +351,6 @@ class ChatThread(msrest.serialization.Model): 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'created_by': {'key': 'createdBy', 'type': 'str'}, 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, - 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, } def __init__( @@ -321,11 +363,10 @@ def __init__( self.created_on = None self.created_by = None self.deleted_on = kwargs.get('deleted_on', None) - self.participants = kwargs.get('participants', None) class ChatThreadInfo(msrest.serialization.Model): - """ChatThreadInfo. + """Summary information of a chat thread. Variables are only populated by the server, and will be ignored when sending a request. @@ -333,11 +374,11 @@ class ChatThreadInfo(msrest.serialization.Model): :vartype id: str :param topic: Chat thread topic. :type topic: str - :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in ISO8601 + :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime :ivar last_message_received_on: The timestamp when the last message arrived at the server. The - timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :vartype last_message_received_on: ~datetime.datetime """ @@ -395,6 +436,31 @@ def __init__( self.next_link = None +class CreateChatThreadErrors(msrest.serialization.Model): + """Errors encountered during the creation of the chat thread. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar invalid_participants: The participants that failed to be added to the chat thread. + :vartype invalid_participants: list[~azure.communication.chat.models.Error] + """ + + _validation = { + 'invalid_participants': {'readonly': True}, + } + + _attribute_map = { + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[Error]'}, + } + + def __init__( + self, + **kwargs + ): + super(CreateChatThreadErrors, self).__init__(**kwargs) + self.invalid_participants = None + + class CreateChatThreadRequest(msrest.serialization.Model): """Request payload for creating a chat thread. @@ -425,8 +491,31 @@ def __init__( self.participants = kwargs['participants'] +class CreateChatThreadResult(msrest.serialization.Model): + """Result of the create chat thread operation. + + :param chat_thread: Chat thread. + :type chat_thread: ~azure.communication.chat.models.ChatThread + :param errors: Errors encountered during the creation of the chat thread. + :type errors: ~azure.communication.chat.models.CreateChatThreadErrors + """ + + _attribute_map = { + 'chat_thread': {'key': 'chatThread', 'type': 'ChatThread'}, + 'errors': {'key': 'errors', 'type': 'CreateChatThreadErrors'}, + } + + def __init__( + self, + **kwargs + ): + super(CreateChatThreadResult, self).__init__(**kwargs) + self.chat_thread = kwargs.get('chat_thread', None) + self.errors = kwargs.get('errors', None) + + class Error(msrest.serialization.Model): - """Error. + """Error encountered while performing an operation. Variables are only populated by the server, and will be ignored when sending a request. @@ -551,7 +640,7 @@ def __init__( class UpdateChatMessageRequest(msrest.serialization.Model): - """UpdateChatMessageRequest. + """Request payload for updating a chat message. :param content: Chat message content. :type content: str @@ -574,7 +663,7 @@ def __init__( class UpdateChatThreadRequest(msrest.serialization.Model): - """UpdateChatThreadRequest. + """Request payload for updating a chat thread. :param topic: Chat thread topic. :type topic: str diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py index 2ace184240fa..4d743ed71c48 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py @@ -15,6 +15,31 @@ from ._azure_communication_chat_service_enums import * +class AddChatParticipantsErrors(msrest.serialization.Model): + """Errors encountered during the addition of the chat participant to the chat thread. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar invalid_participants: The participants that failed to be added to the chat thread. + :vartype invalid_participants: list[~azure.communication.chat.models.Error] + """ + + _validation = { + 'invalid_participants': {'readonly': True}, + } + + _attribute_map = { + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[Error]'}, + } + + def __init__( + self, + **kwargs + ): + super(AddChatParticipantsErrors, self).__init__(**kwargs) + self.invalid_participants = None + + class AddChatParticipantsRequest(msrest.serialization.Model): """Participants to be added to the thread. @@ -42,8 +67,30 @@ def __init__( self.participants = participants +class AddChatParticipantsResult(msrest.serialization.Model): + """Result of the add chat participants operation. + + :param errors: Errors encountered during the addition of the chat participant to the chat + thread. + :type errors: ~azure.communication.chat.models.AddChatParticipantsErrors + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': 'AddChatParticipantsErrors'}, + } + + def __init__( + self, + *, + errors: Optional["AddChatParticipantsErrors"] = None, + **kwargs + ): + super(AddChatParticipantsResult, self).__init__(**kwargs) + self.errors = errors + + class ChatMessage(msrest.serialization.Model): - """ChatMessage. + """Chat message. Variables are only populated by the server, and will be ignored when sending a request. @@ -70,15 +117,15 @@ class ChatMessage(msrest.serialization.Model): to populate sender name for push notifications. :type sender_display_name: str :ivar created_on: The timestamp when the chat message arrived at the server. The timestamp is - in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :vartype created_on: ~datetime.datetime :ivar sender_id: The id of the chat message sender. :vartype sender_id: str - :param deleted_on: The timestamp when the chat message was deleted. The timestamp is in ISO8601 - format: ``yyyy-MM-ddTHH:mm:ssZ``. + :param deleted_on: The timestamp (if applicable) when the message was deleted. The timestamp is + in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime - :param edited_on: The timestamp when the chat message was edited. The timestamp is in ISO8601 - format: ``yyyy-MM-ddTHH:mm:ssZ``. + :param edited_on: The last timestamp (if applicable) when the message was edited. The timestamp + is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type edited_on: ~datetime.datetime """ @@ -131,13 +178,13 @@ class ChatMessageReadReceipt(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar sender_id: Chat message read receipt sender id. + :ivar sender_id: Id of the participant who read the message. :vartype sender_id: str - :ivar chat_message_id: Id for the chat message that has been read. This id is generated by the + :ivar chat_message_id: Id of the chat message that has been read. This id is generated by the server. :vartype chat_message_id: str - :ivar read_on: Chat message read receipt timestamp. The timestamp is in ISO8601 format: ``yyyy- - MM-ddTHH:mm:ssZ``. + :ivar read_on: The time at which the message was read. The timestamp is in RFC3339 format: + ``yyyy-MM-ddTHH:mm:ssZ``. :vartype read_on: ~datetime.datetime """ @@ -164,7 +211,7 @@ def __init__( class ChatMessageReadReceiptsCollection(msrest.serialization.Model): - """ChatMessageReadReceiptsCollection. + """A paged collection of chat message read receipts. Variables are only populated by the server, and will be ignored when sending a request. @@ -235,7 +282,7 @@ class ChatParticipant(msrest.serialization.Model): :param display_name: Display name for the chat participant. :type display_name: str :param share_history_time: Time from which the chat history is shared with the participant. The - timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type share_history_time: ~datetime.datetime """ @@ -296,7 +343,7 @@ def __init__( class ChatThread(msrest.serialization.Model): - """ChatThread. + """Chat thread. Variables are only populated by the server, and will be ignored when sending a request. @@ -304,16 +351,14 @@ class ChatThread(msrest.serialization.Model): :vartype id: str :param topic: Chat thread topic. :type topic: str - :ivar created_on: The timestamp when the chat thread was created. The timestamp is in ISO8601 + :ivar created_on: The timestamp when the chat thread was created. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :vartype created_on: ~datetime.datetime :ivar created_by: Id of the chat thread owner. :vartype created_by: str - :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in ISO8601 + :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime - :param participants: Chat participants. - :type participants: list[~azure.communication.chat.models.ChatParticipant] """ _validation = { @@ -328,7 +373,6 @@ class ChatThread(msrest.serialization.Model): 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'created_by': {'key': 'createdBy', 'type': 'str'}, 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, - 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, } def __init__( @@ -336,7 +380,6 @@ def __init__( *, topic: Optional[str] = None, deleted_on: Optional[datetime.datetime] = None, - participants: Optional[List["ChatParticipant"]] = None, **kwargs ): super(ChatThread, self).__init__(**kwargs) @@ -345,11 +388,10 @@ def __init__( self.created_on = None self.created_by = None self.deleted_on = deleted_on - self.participants = participants class ChatThreadInfo(msrest.serialization.Model): - """ChatThreadInfo. + """Summary information of a chat thread. Variables are only populated by the server, and will be ignored when sending a request. @@ -357,11 +399,11 @@ class ChatThreadInfo(msrest.serialization.Model): :vartype id: str :param topic: Chat thread topic. :type topic: str - :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in ISO8601 + :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime :ivar last_message_received_on: The timestamp when the last message arrived at the server. The - timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :vartype last_message_received_on: ~datetime.datetime """ @@ -422,6 +464,31 @@ def __init__( self.next_link = None +class CreateChatThreadErrors(msrest.serialization.Model): + """Errors encountered during the creation of the chat thread. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar invalid_participants: The participants that failed to be added to the chat thread. + :vartype invalid_participants: list[~azure.communication.chat.models.Error] + """ + + _validation = { + 'invalid_participants': {'readonly': True}, + } + + _attribute_map = { + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[Error]'}, + } + + def __init__( + self, + **kwargs + ): + super(CreateChatThreadErrors, self).__init__(**kwargs) + self.invalid_participants = None + + class CreateChatThreadRequest(msrest.serialization.Model): """Request payload for creating a chat thread. @@ -455,8 +522,34 @@ def __init__( self.participants = participants +class CreateChatThreadResult(msrest.serialization.Model): + """Result of the create chat thread operation. + + :param chat_thread: Chat thread. + :type chat_thread: ~azure.communication.chat.models.ChatThread + :param errors: Errors encountered during the creation of the chat thread. + :type errors: ~azure.communication.chat.models.CreateChatThreadErrors + """ + + _attribute_map = { + 'chat_thread': {'key': 'chatThread', 'type': 'ChatThread'}, + 'errors': {'key': 'errors', 'type': 'CreateChatThreadErrors'}, + } + + def __init__( + self, + *, + chat_thread: Optional["ChatThread"] = None, + errors: Optional["CreateChatThreadErrors"] = None, + **kwargs + ): + super(CreateChatThreadResult, self).__init__(**kwargs) + self.chat_thread = chat_thread + self.errors = errors + + class Error(msrest.serialization.Model): - """Error. + """Error encountered while performing an operation. Variables are only populated by the server, and will be ignored when sending a request. @@ -587,7 +680,7 @@ def __init__( class UpdateChatMessageRequest(msrest.serialization.Model): - """UpdateChatMessageRequest. + """Request payload for updating a chat message. :param content: Chat message content. :type content: str @@ -613,7 +706,7 @@ def __init__( class UpdateChatThreadRequest(msrest.serialization.Model): - """UpdateChatThreadRequest. + """Request payload for updating a chat thread. :param topic: Chat thread topic. :type topic: str diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/__init__.py index fbcbeea166ae..ca0d822356d7 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/__init__.py @@ -6,8 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._azure_communication_chat_service_operations import AzureCommunicationChatServiceOperationsMixin +from ._chat_thread_operations import ChatThreadOperations +from ._chat_operations import ChatOperations __all__ = [ - 'AzureCommunicationChatServiceOperationsMixin', + 'ChatThreadOperations', + 'ChatOperations', ] diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_operations.py new file mode 100644 index 000000000000..b32a8156c43b --- /dev/null +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_operations.py @@ -0,0 +1,332 @@ +# 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 datetime +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ChatOperations(object): + """ChatOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.communication.chat.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def create_chat_thread( + self, + create_chat_thread_request, # type: "_models.CreateChatThreadRequest" + repeatability_request_id=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.CreateChatThreadResult" + """Creates a chat thread. + + Creates a chat thread. + + :param create_chat_thread_request: Request payload for creating a chat thread. + :type create_chat_thread_request: ~azure.communication.chat.models.CreateChatThreadRequest + :param repeatability_request_id: If specified, the client directs that the request is + repeatable; that is, that the client can make the request multiple times with the same + Repeatability-Request-ID and get back an appropriate response without the server executing the + request multiple times. The value of the Repeatability-Request-ID is an opaque string + representing a client-generated, globally unique for all time, identifier for the request. It + is recommended to use version 4 (random) UUIDs. + :type repeatability_request_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CreateChatThreadResult, or the result of cls(response) + :rtype: ~azure.communication.chat.models.CreateChatThreadResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CreateChatThreadResult"] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_chat_thread.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + if repeatability_request_id is not None: + header_parameters['repeatability-Request-ID'] = self._serialize.header("repeatability_request_id", repeatability_request_id, 'str') + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(create_chat_thread_request, 'CreateChatThreadRequest') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(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) + + deserialized = self._deserialize('CreateChatThreadResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_chat_thread.metadata = {'url': '/chat/threads'} # type: ignore + + def list_chat_threads( + self, + max_page_size=None, # type: Optional[int] + start_time=None, # type: Optional[datetime.datetime] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ChatThreadsInfoCollection"] + """Gets the list of chat threads of a user. + + Gets the list of chat threads of a user. + + :param max_page_size: The maximum number of chat threads returned per page. + :type max_page_size: int + :param start_time: The earliest point in time to get chat threads up to. The timestamp should + be in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type start_time: ~datetime.datetime + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ChatThreadsInfoCollection or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ChatThreadsInfoCollection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadsInfoCollection"] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_chat_threads.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') + if start_time is not None: + query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ChatThreadsInfoCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(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) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_chat_threads.metadata = {'url': '/chat/threads'} # type: ignore + + def get_chat_thread( + self, + chat_thread_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.ChatThread" + """Gets a chat thread. + + Gets a chat thread. + + :param chat_thread_id: Id of the thread. + :type chat_thread_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ChatThread, or the result of cls(response) + :rtype: ~azure.communication.chat.models.ChatThread + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + accept = "application/json" + + # Construct URL + url = self.get_chat_thread.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(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) + + deserialized = self._deserialize('ChatThread', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore + + def delete_chat_thread( + self, + chat_thread_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Deletes a thread. + + Deletes a thread. + + :param chat_thread_id: Id of the thread to be deleted. + :type chat_thread_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + accept = "application/json" + + # Construct URL + url = self.delete_chat_thread.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(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, {}) + + delete_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_azure_communication_chat_service_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py similarity index 75% rename from sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_azure_communication_chat_service_operations.py rename to sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py index 5bd7ed00d62f..ce8ccd28b95b 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_azure_communication_chat_service_operations.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py @@ -23,11 +23,33 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] -class AzureCommunicationChatServiceOperationsMixin(object): +class ChatThreadOperations(object): + """ChatThreadOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.communication.chat.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config def list_chat_read_receipts( self, chat_thread_id, # type: str + maxpagesize=None, # type: Optional[int] + skip=None, # type: Optional[int] **kwargs # type: Any ): # type: (...) -> Iterable["_models.ChatMessageReadReceiptsCollection"] @@ -37,6 +59,10 @@ def list_chat_read_receipts( :param chat_thread_id: Thread id to get the chat message read receipts for. :type chat_thread_id: str + :param maxpagesize: The maximum number of chat message read receipts to be returned per page. + :type maxpagesize: int + :param skip: Skips chat message read receipts up to a specified position in response. + :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ChatMessageReadReceiptsCollection or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ChatMessageReadReceiptsCollection] @@ -70,6 +96,10 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] + if maxpagesize is not None: + query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) @@ -106,7 +136,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_chat_read_receipts.metadata = {'url': '/chat/threads/{chatThreadId}/readreceipts'} # type: ignore + list_chat_read_receipts.metadata = {'url': '/chat/threads/{chatThreadId}/readReceipts'} # type: ignore def send_chat_read_receipt( self, @@ -173,7 +203,7 @@ def send_chat_read_receipt( if cls: return cls(pipeline_response, None, {}) - send_chat_read_receipt.metadata = {'url': '/chat/threads/{chatThreadId}/readreceipts'} # type: ignore + send_chat_read_receipt.metadata = {'url': '/chat/threads/{chatThreadId}/readReceipts'} # type: ignore def send_chat_message( self, @@ -248,7 +278,7 @@ def send_chat_message( def list_chat_messages( self, chat_thread_id, # type: str - max_page_size=None, # type: Optional[int] + maxpagesize=None, # type: Optional[int] start_time=None, # type: Optional[datetime.datetime] **kwargs # type: Any ): @@ -259,10 +289,10 @@ def list_chat_messages( :param chat_thread_id: The thread id of the message. :type chat_thread_id: str - :param max_page_size: The maximum number of messages to be returned per page. - :type max_page_size: int + :param maxpagesize: The maximum number of messages to be returned per page. + :type maxpagesize: int :param start_time: The earliest point in time to get messages up to. The timestamp should be in - ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type start_time: ~datetime.datetime :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ChatMessagesCollection or the result of cls(response) @@ -297,8 +327,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if max_page_size is not None: - query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') + if maxpagesize is not None: + query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') if start_time is not None: query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -601,6 +631,8 @@ def send_typing_notification( def list_chat_participants( self, chat_thread_id, # type: str + maxpagesize=None, # type: Optional[int] + skip=None, # type: Optional[int] **kwargs # type: Any ): # type: (...) -> Iterable["_models.ChatParticipantsCollection"] @@ -610,6 +642,10 @@ def list_chat_participants( :param chat_thread_id: Thread id to get participants for. :type chat_thread_id: str + :param maxpagesize: The maximum number of participants to be returned per page. + :type maxpagesize: int + :param skip: Skips participants up to a specified position in response. + :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ChatParticipantsCollection or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ChatParticipantsCollection] @@ -643,6 +679,10 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] + if maxpagesize is not None: + query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) @@ -687,7 +727,7 @@ def add_chat_participants( add_chat_participants_request, # type: "_models.AddChatParticipantsRequest" **kwargs # type: Any ): - # type: (...) -> None + # type: (...) -> "_models.AddChatParticipantsResult" """Adds thread participants to a thread. If participants already exist, no change occurs. Adds thread participants to a thread. If participants already exist, no change occurs. @@ -697,11 +737,11 @@ def add_chat_participants( :param add_chat_participants_request: Thread participants to be added to the thread. :type add_chat_participants_request: ~azure.communication.chat.models.AddChatParticipantsRequest :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None + :return: AddChatParticipantsResult, or the result of cls(response) + :rtype: ~azure.communication.chat.models.AddChatParticipantsResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AddChatParticipantsResult"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -743,9 +783,12 @@ def add_chat_participants( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) + deserialized = self._deserialize('AddChatParticipantsResult', pipeline_response) + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, deserialized, {}) + return deserialized add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore def remove_chat_participant( @@ -811,161 +854,6 @@ def remove_chat_participant( remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore - def create_chat_thread( - self, - create_chat_thread_request, # type: "_models.CreateChatThreadRequest" - **kwargs # type: Any - ): - # type: (...) -> "_models.ChatThread" - """Creates a chat thread. - - Creates a chat thread. - - :param create_chat_thread_request: Request payload for creating a chat thread. - :type create_chat_thread_request: ~azure.communication.chat.models.CreateChatThreadRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ChatThread, or the result of cls(response) - :rtype: ~azure.communication.chat.models.ChatThread - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_chat_thread.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(create_chat_thread_request, 'CreateChatThreadRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(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) - - deserialized = self._deserialize('ChatThread', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_chat_thread.metadata = {'url': '/chat/threads'} # type: ignore - - def list_chat_threads( - self, - max_page_size=None, # type: Optional[int] - start_time=None, # type: Optional[datetime.datetime] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.ChatThreadsInfoCollection"] - """Gets the list of chat threads of a user. - - Gets the list of chat threads of a user. - - :param max_page_size: The maximum number of chat threads returned per page. - :type max_page_size: int - :param start_time: The earliest point in time to get chat threads up to. The timestamp should - be in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. - :type start_time: ~datetime.datetime - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ChatThreadsInfoCollection or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ChatThreadsInfoCollection] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadsInfoCollection"] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_chat_threads.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if max_page_size is not None: - query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') - if start_time is not None: - query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('ChatThreadsInfoCollection', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(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) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_chat_threads.metadata = {'url': '/chat/threads'} # type: ignore - def update_chat_thread( self, chat_thread_id, # type: str @@ -1032,124 +920,3 @@ def update_chat_thread( return cls(pipeline_response, None, {}) update_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore - - def get_chat_thread( - self, - chat_thread_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.ChatThread" - """Gets a chat thread. - - Gets a chat thread. - - :param chat_thread_id: Thread id to get. - :type chat_thread_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ChatThread, or the result of cls(response) - :rtype: ~azure.communication.chat.models.ChatThread - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - accept = "application/json" - - # Construct URL - url = self.get_chat_thread.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(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) - - deserialized = self._deserialize('ChatThread', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore - - def delete_chat_thread( - self, - chat_thread_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - """Deletes a thread. - - Deletes a thread. - - :param chat_thread_id: Thread id to delete. - :type chat_thread_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - accept = "application/json" - - # Construct URL - url = self.delete_chat_thread.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(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, {}) - - delete_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py index ae2dbdc03a23..8bf456b70ef5 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py @@ -146,7 +146,6 @@ def _from_generated(cls, chat_thread): topic=chat_thread.topic, created_on=chat_thread.created_on, created_by=CommunicationUser(chat_thread.created_by), - participants=[ChatThreadParticipant._from_generated(x) for x in chat_thread.participants] ) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py index 473ce05c9767..99562f92a5a2 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py @@ -146,25 +146,25 @@ async def create_chat_thread( raise ValueError("List of ThreadParticipant cannot be None.") participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access - create_thread_request = CreateChatThreadRequest(topic=topic, participants=participants) - - response, create_chat_thread_result = await self._client.create_chat_thread( - create_thread_request, cls=return_response, **kwargs) - if response is not None: - response_header = response.http_response.headers - if ('Azure-Acs-InvalidParticipants' in response_header.keys() and - response_header['Azure-Acs-InvalidParticipants'] is not None): - invalid_participant_and_reason_list = response_header['Azure-Acs-InvalidParticipants'].split('|') - errors = [] - for invalid_participant_and_reason in invalid_participant_and_reason_list: - participant, reason = invalid_participant_and_reason.split(',', 1) - errors.append('participant ' + participant + ' failed to join thread ' - + create_chat_thread_result.id + ' return statue code ' + reason) - raise ValueError(errors) + create_thread_request = \ + CreateChatThreadRequest(topic=topic, participants=participants) + + create_chat_thread_result = await self._client.chat.create_chat_thread( + create_thread_request, **kwargs) + if hasattr(create_chat_thread_result, 'errors') \ + and create_chat_thread_result.errors is not None: + participants = \ + create_chat_thread_result.errors.invalid_participants + errors = [] + for participant in participants: + errors.append('participant ' + participant.target + + ' failed to join thread due to: ' + participant.message) + raise RuntimeError(errors) + thread_id = create_chat_thread_result.chat_thread.id return ChatThreadClient( endpoint=self._endpoint, credential=self._credential, - thread_id=create_chat_thread_result.id, + thread_id=thread_id, **kwargs ) @@ -194,7 +194,7 @@ async def get_chat_thread( if not thread_id: raise ValueError("thread_id cannot be None.") - chat_thread = await self._client.get_chat_thread(thread_id, **kwargs) + chat_thread = await self._client.chat.get_chat_thread(thread_id, **kwargs) return ChatThread._from_generated(chat_thread) # pylint:disable=protected-access @distributed_trace @@ -223,7 +223,7 @@ def list_chat_threads( results_per_page = kwargs.pop("results_per_page", None) start_time = kwargs.pop("start_time", None) - return self._client.list_chat_threads( + return self._client.chat.list_chat_threads( max_page_size=results_per_page, start_time=start_time, **kwargs) @@ -255,7 +255,7 @@ async def delete_chat_thread( if not thread_id: raise ValueError("thread_id cannot be None.") - return await self._client.delete_chat_thread(thread_id, **kwargs) + return await self._client.chat.delete_chat_thread(thread_id, **kwargs) async def close(self) -> None: await self._client.close() diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py index 139c61694537..22491eda3240 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py @@ -138,7 +138,7 @@ async def update_topic( """ update_topic_request = UpdateChatThreadRequest(topic=topic) - return await self._client.update_chat_thread( + return await self._client.chat_thread.update_chat_thread( chat_thread_id=self._thread_id, update_chat_thread_request=update_topic_request, **kwargs) @@ -171,7 +171,7 @@ async def send_read_receipt( raise ValueError("message_id cannot be None.") post_read_receipt_request = SendReadReceiptRequest(chat_message_id=message_id) - return await self._client.send_chat_read_receipt( + return await self._client.chat_thread.send_chat_read_receipt( self._thread_id, send_read_receipt_request=post_read_receipt_request, **kwargs) @@ -197,7 +197,7 @@ def list_read_receipts( :dedent: 12 :caption: Listing read receipts. """ - return self._client.list_chat_read_receipts( + return self._client.chat_thread.list_chat_read_receipts( self._thread_id, cls=lambda objs: [ChatMessageReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -223,7 +223,7 @@ async def send_typing_notification( :dedent: 12 :caption: Sending typing notification. """ - return await self._client.send_typing_notification(self._thread_id, **kwargs) + return await self._client.chat_thread.send_typing_notification(self._thread_id, **kwargs) @distributed_trace_async async def send_message( @@ -264,7 +264,7 @@ async def send_message( priority=priority, sender_display_name=sender_display_name ) - send_chat_message_result = await self._client.send_chat_message( + send_chat_message_result = await self._client.chat_thread.send_chat_message( chat_thread_id=self._thread_id, send_chat_message_request=create_message_request, **kwargs) @@ -298,7 +298,7 @@ async def get_message( if not message_id: raise ValueError("message_id cannot be None.") - chat_message = await self._client.get_chat_message(self._thread_id, message_id, **kwargs) + chat_message = await self._client.chat_thread.get_chat_message(self._thread_id, message_id, **kwargs) return ChatMessage._from_generated(chat_message) # pylint:disable=protected-access @distributed_trace @@ -327,9 +327,9 @@ def list_messages( results_per_page = kwargs.pop("results_per_page", None) start_time = kwargs.pop("start_time", None) - return self._client.list_chat_messages( + return self._client.chat_thread.list_chat_messages( self._thread_id, - max_page_size=results_per_page, + maxpagesize=results_per_page, start_time=start_time, cls=lambda objs: [ChatMessage._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -367,7 +367,7 @@ async def update_message( update_message_request = UpdateChatMessageRequest(content=content, priority=None) - return await self._client.update_chat_message( + return await self._client.chat_thread.update_chat_message( chat_thread_id=self._thread_id, chat_message_id=message_id, update_chat_message_request=update_message_request, @@ -400,7 +400,7 @@ async def delete_message( if not message_id: raise ValueError("message_id cannot be None.") - return await self._client.delete_chat_message( + return await self._client.chat_thread.delete_chat_message( chat_thread_id=self._thread_id, chat_message_id=message_id, **kwargs) @@ -426,7 +426,7 @@ def list_participants( :dedent: 12 :caption: Listing participants of chat thread. """ - return self._client.list_chat_participants( + return self._client.chat_thread.list_chat_participants( self._thread_id, cls=lambda objs: [ChatThreadParticipant._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -461,7 +461,7 @@ async def add_participant( participants = [thread_participant._to_generated()] # pylint:disable=protected-access add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - return await self._client.add_chat_participants( + return await self._client.chat_thread.add_chat_participants( chat_thread_id=self._thread_id, add_chat_participants_request=add_thread_participants_request, **kwargs) @@ -496,7 +496,7 @@ async def add_participants( participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - return await self._client.add_chat_participants( + return await self._client.chat_thread.add_chat_participants( chat_thread_id=self._thread_id, add_chat_participants_request=add_thread_participants_request, **kwargs) @@ -528,7 +528,7 @@ async def remove_participant( if not user: raise ValueError("user cannot be None.") - return await self._client.remove_chat_participant( + return await self._client.chat_thread.remove_chat_participant( chat_thread_id=self._thread_id, chat_participant_id=user.identifier, **kwargs) diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml index 7bef7ec7773e..c4fc01de4e8e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:19:09 GMT + - Fri, 04 Dec 2020 19:10:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:09 GMT + - Fri, 04 Dec 2020 19:10:08 GMT ms-cv: - - lhCdaxUwWUCal3LpTU2/gQ.0 + - ZLeyMdfjlUiaA7hFCaNAhQ.0 transfer-encoding: - chunked x-processing-time: - - 161ms + - 163ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:19:09 GMT + - Fri, 04 Dec 2020 19:10:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:19:09.280025+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:10:08.5963912+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:10 GMT + - Fri, 04 Dec 2020 19:10:09 GMT ms-cv: - - 9zBM01rBnkSnsXIF6pGg8w.0 + - ohVmGH8Y+kyPbqLNnXnMZA.0 transfer-encoding: - chunked x-processing-time: - - 318ms + - 319ms status: code: 200 message: OK @@ -89,27 +89,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:19:11Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:0ce5d13557174151846884a72a66f024@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:10:10Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0b-033a-ea7c-5a3a0d0003b7"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:11 GMT + - Fri, 04 Dec 2020 19:10:17 GMT ms-cv: - - wLPXVZlkIk+EvcDCV57y1w.0 + - Nlmt8PvUqk2FdWmxSsNyOQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1351ms + - 8296ms status: code: 201 message: Created @@ -125,9 +125,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:19:11 GMT + - Fri, 04 Dec 2020 19:10:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -139,11 +139,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:19:28 GMT + - Fri, 04 Dec 2020 19:10:33 GMT ms-cv: - - l/47be0coky6GSohoG6/uA.0 + - QfXR2/jGJ0ySXUq0ZuP0Ug.0 x-processing-time: - - 17271ms + - 16204ms status: code: 204 message: No Content @@ -159,7 +159,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -169,13 +169,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:19:29 GMT + - Fri, 04 Dec 2020 19:10:33 GMT ms-cv: - - HzqDDsO2CE+cpW9xSamN4w.0 + - Rl3SteqAb0uPhIqQDd7MZQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 323ms + - 330ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml index bac0ab889a78..6a7a77d3eb5c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:19:29 GMT + - Fri, 04 Dec 2020 19:10:34 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:29 GMT + - Fri, 04 Dec 2020 19:10:34 GMT ms-cv: - - SN6y0S8TH0KORnzRByGoUg.0 + - mF7CdbwyVE6FC8BBQo8NIQ.0 transfer-encoding: - chunked x-processing-time: - - 148ms + - 163ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:19:30 GMT + - Fri, 04 Dec 2020 19:10:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:19:29.5716996+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:10:34.7059512+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:29 GMT + - Fri, 04 Dec 2020 19:10:34 GMT ms-cv: - - uWqIQAyWREKBinbwxtNxyQ.0 + - 4rsH2sIQ1UWcvUl3NR2nvA.0 transfer-encoding: - chunked x-processing-time: - - 297ms + - 317ms status: code: 200 message: OK @@ -89,27 +89,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:19:31Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:c01d0c1aee764caba5df437ce44484be@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:10:36Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0b-6931-557d-5a3a0d00045d"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:31 GMT + - Fri, 04 Dec 2020 19:10:36 GMT ms-cv: - - oscR5GX7Vky40MLMHjeT5Q.0 + - DR9MRSFZZk2c2dzg2VnNCA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1341ms + - 908ms status: code: 201 message: Created @@ -125,7 +125,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -135,13 +135,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:19:32 GMT + - Fri, 04 Dec 2020 19:10:37 GMT ms-cv: - - HTHqkbsQBE24n1uuWzevlA.0 + - zCVlSJ/1MkKeoYuphyntXg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 327ms + - 324ms status: code: 204 message: No Content @@ -157,9 +157,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:19:32 GMT + - Fri, 04 Dec 2020 19:10:37 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -171,11 +171,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:19:49 GMT + - Fri, 04 Dec 2020 19:10:53 GMT ms-cv: - - q+P4L9UaAEuPRZqgxVFYNw.0 + - Jqb0IpezM0WltLJf/1aJ+A.0 x-processing-time: - - 16592ms + - 16388ms status: code: 204 message: No Content @@ -191,7 +191,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -201,13 +201,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:19:48 GMT + - Fri, 04 Dec 2020 19:10:53 GMT ms-cv: - - CwOn2xpCeEG4Vi66SNyTZA.0 + - RBxKrvVGbkiC0zkbgG+2uw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 251ms + - 269ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml index 0431e7809c53..c0040d70542d 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:19:49 GMT + - Fri, 04 Dec 2020 19:10:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:49 GMT + - Fri, 04 Dec 2020 19:10:54 GMT ms-cv: - - H+q0Jj4I9EaBypbStNPULg.0 + - BcEYMxZoM02u+cI9k4rsdw.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 211ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:19:49 GMT + - Fri, 04 Dec 2020 19:10:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:19:49.2596204+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:10:54.4658058+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:49 GMT + - Fri, 04 Dec 2020 19:10:55 GMT ms-cv: - - gHerHEpe9Um9mBStpqCpsw.0 + - 42U+LulfrUuD/FTi1AQZ9g.0 transfer-encoding: - chunked x-processing-time: - - 312ms + - 603ms status: code: 200 message: OK @@ -89,27 +89,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:19:50Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:25b5342f4ba3456d8cbd7a7f4a996ee4@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:10:55Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0b-b54e-b274-5a3a0d000303"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:50 GMT + - Fri, 04 Dec 2020 19:10:56 GMT ms-cv: - - UyVjv8vg2U27HwevNccVXA.0 + - BxE1rtrWgUSpgt16P580cQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 845ms + - 904ms status: code: 201 message: Created @@ -123,21 +123,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:19:50Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-12-04T19:10:55Z", + "createdBy": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:50 GMT + - Fri, 04 Dec 2020 19:10:56 GMT ms-cv: - - HIanX4hnMEqzk47JpFUnQg.0 + - wpn+hMZxF0+uIAAoD5A+wg.0 strict-transport-security: - max-age=2592000 transfer-encoding: @@ -159,9 +159,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:19:51 GMT + - Fri, 04 Dec 2020 19:10:57 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -173,11 +173,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:20:08 GMT + - Fri, 04 Dec 2020 19:11:12 GMT ms-cv: - - oPT6/1XsDUGqdhZpf8CPOw.0 + - 3efjdp87U02aDWvTSyzPzw.0 x-processing-time: - - 16545ms + - 16185ms status: code: 204 message: No Content @@ -193,7 +193,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -203,13 +203,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:20:07 GMT + - Fri, 04 Dec 2020 19:11:12 GMT ms-cv: - - mkFqRld8t02SdjqpytZVrA.0 + - ItVSpeOI9UuXAAHwHNmY2A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 304ms + - 330ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml index b5402ba74014..f4c9ac3a8493 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:20:09 GMT + - Fri, 04 Dec 2020 19:11:13 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:09 GMT + - Fri, 04 Dec 2020 19:11:13 GMT ms-cv: - - rA5btKsFg06XGStisyHugg.0 + - Ri68986tg0uW2yqd60Zatw.0 transfer-encoding: - chunked x-processing-time: - - 195ms + - 160ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:20:10 GMT + - Fri, 04 Dec 2020 19:11:14 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:20:09.3532462+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:11:13.459095+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:09 GMT + - Fri, 04 Dec 2020 19:11:14 GMT ms-cv: - - 4JRdsjYW+Um6vcKNiBKDJQ.0 + - YsqUGwBNzESmeJiRMVAZew.0 transfer-encoding: - chunked x-processing-time: - - 304ms + - 308ms status: code: 200 message: OK @@ -89,27 +89,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:20:10Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:baca4f223e664fe890c62445e9caeba1@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:11:15Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-0042-557d-5a3a0d00045e"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:11 GMT + - Fri, 04 Dec 2020 19:11:15 GMT ms-cv: - - OpFYOFiYMkWagptd3pV0tQ.0 + - HpM4vU0JqUCw9FwUOhRWRQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 836ms + - 1350ms status: code: 201 message: Created @@ -125,9 +125,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:20:11 GMT + - Fri, 04 Dec 2020 19:11:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -139,11 +139,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:20:27 GMT + - Fri, 04 Dec 2020 19:11:31 GMT ms-cv: - - mYTFkzkVmE6Q3Fhz5tgBuQ.0 + - +V+ZWmuPzkmb35aY9aU/pA.0 x-processing-time: - - 16069ms + - 16221ms status: code: 204 message: No Content @@ -159,7 +159,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -169,13 +169,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:20:27 GMT + - Fri, 04 Dec 2020 19:11:32 GMT ms-cv: - - dgIk5vEohk+XZCi2a+lKkA.0 + - xEUBZiB2rEq4Xir2J1CpGw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 295ms + - 335ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml index c3b0626fc745..766d2e5ece57 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:20:27 GMT + - Fri, 04 Dec 2020 19:11:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:27 GMT + - Fri, 04 Dec 2020 19:11:32 GMT ms-cv: - - ZtOl01ckpUGH/4TRzuEdLw.0 + - 8HhZXLWew0aAc6MXt0Hj6Q.0 transfer-encoding: - chunked x-processing-time: - - 151ms + - 159ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:20:28 GMT + - Fri, 04 Dec 2020 19:11:33 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:20:27.8080382+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:11:32.6326234+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:28 GMT + - Fri, 04 Dec 2020 19:11:33 GMT ms-cv: - - anDmDF3Q8kyP3C2nC7TxUQ.0 + - 3Gjeqgdf60i8etSM4zm/GQ.0 transfer-encoding: - chunked x-processing-time: - - 301ms + - 318ms status: code: 200 message: OK @@ -89,27 +89,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:20:29Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:a799d7fcae454760b6c0c28c9d085c71@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:11:34Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-4b7e-557d-5a3a0d00045f"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:29 GMT + - Fri, 04 Dec 2020 19:11:34 GMT ms-cv: - - mqvLyVJrq0i2gWVOshq+hw.0 + - iwK3xwsPHEuG7Wxr3mITdQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 836ms + - 908ms status: code: 201 message: Created @@ -123,7 +123,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 response: @@ -134,15 +134,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:31 GMT + - Fri, 04 Dec 2020 19:11:36 GMT ms-cv: - - csVt83Uuw0Su49XZjCJSkA.0 + - VmfcvV6KOEm9LEIqlTQBHQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 412ms + - 448ms status: code: 200 message: OK @@ -158,9 +158,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:20:32 GMT + - Fri, 04 Dec 2020 19:11:37 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -172,11 +172,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:20:48 GMT + - Fri, 04 Dec 2020 19:11:53 GMT ms-cv: - - +bY5lxNVIkC85eE9KeRMgg.0 + - 5hWo7vJS0EiqkbLLbVInHw.0 x-processing-time: - - 16912ms + - 16834ms status: code: 204 message: No Content @@ -192,7 +192,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -202,13 +202,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:20:49 GMT + - Fri, 04 Dec 2020 19:11:53 GMT ms-cv: - - 6lzh61ChDU2JPa7gROzRzw.0 + - 9THbCS2SPEys/98LWQe16w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 405ms + - 328ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml index 33d75f4cd399..8e55167b8747 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:20:50 GMT + - Fri, 04 Dec 2020 19:11:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:49 GMT + - Fri, 04 Dec 2020 19:11:54 GMT ms-cv: - - 7LNIlmsgVUKLclt9NmrIdg.0 + - CxHoI5d/nUSieUsdJoKX0w.0 transfer-encoding: - chunked x-processing-time: - - 191ms + - 163ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:20:50 GMT + - Fri, 04 Dec 2020 19:11:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:20:49.1938339+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:11:54.8081004+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:50 GMT + - Fri, 04 Dec 2020 19:11:54 GMT ms-cv: - - pdnzelD87EG6AddYOK4FuA.0 + - gXPPdkyS7UOhz1IUrXZOLQ.0 transfer-encoding: - chunked x-processing-time: - - 597ms + - 662ms status: code: 200 message: OK @@ -85,20 +85,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:20:51Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:92e0acd9303f420e91fb3aab147a4766@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:11:56Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-a0ba-8a72-5a3a0d00034c"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:20:51 GMT - ms-cv: qT9nZ+YTzEWXC+i4ToeZOQ.0 + date: Fri, 04 Dec 2020 19:11:56 GMT + ms-cv: fxMSCOM7FkCc2KGrjItV+A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1179ms + x-processing-time: 907ms status: code: 201 message: Created @@ -109,7 +109,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -117,10 +117,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:20:52 GMT - ms-cv: tF1t6AUKb0WV2J9oK1uNeg.0 + date: Fri, 04 Dec 2020 19:11:57 GMT + ms-cv: WJoyqTwFU0CKzf1GPju1/w.0 strict-transport-security: max-age=2592000 - x-processing-time: 298ms + x-processing-time: 328ms status: code: 204 message: No Content @@ -137,9 +137,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:20:52 GMT + - Fri, 04 Dec 2020 19:11:57 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -151,11 +151,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:21:10 GMT + - Fri, 04 Dec 2020 19:12:13 GMT ms-cv: - - DCjC30JvEEGcibXtzydfQQ.0 + - wSF4aNKkEk6aUJz6MwD5Tg.0 x-processing-time: - - 17288ms + - 16387ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml index b052f61217aa..110b7f750b88 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:21:10 GMT + - Fri, 04 Dec 2020 19:12:13 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:21:10 GMT + - Fri, 04 Dec 2020 19:12:14 GMT ms-cv: - - wq7cVApy4kqd6SYbx3fpcQ.0 + - BC9z1BJcZUW3yD7d5+FGAA.0 transfer-encoding: - chunked x-processing-time: - - 143ms + - 150ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:21:10 GMT + - Fri, 04 Dec 2020 19:12:14 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:21:10.0726718+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:12:13.5682068+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:21:10 GMT + - Fri, 04 Dec 2020 19:12:14 GMT ms-cv: - - o2X2iQrwf0WAzigZf5n2TA.0 + - f4CckEXxGEGG9RSQGRWRbQ.0 transfer-encoding: - chunked x-processing-time: - - 299ms + - 320ms status: code: 200 message: OK @@ -85,20 +85,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:21:11Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:3e4f7f02fc7c4d848ffc8174217b04b9@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:12:15Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-eb65-8a72-5a3a0d00034d"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:21:11 GMT - ms-cv: aUwac+kdn0Sx2po45PYNyQ.0 + date: Fri, 04 Dec 2020 19:12:15 GMT + ms-cv: 4Rd+PNE5H0qjPzYUiNTe3A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 845ms + x-processing-time: 893ms status: code: 201 message: Created @@ -109,7 +109,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -117,10 +117,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:21:11 GMT - ms-cv: 7MyJLIjrCU2H24DKADVQPg.0 + date: Fri, 04 Dec 2020 19:12:15 GMT + ms-cv: /oy07bczM0OUuelRThSWoA.0 strict-transport-security: max-age=2592000 - x-processing-time: 284ms + x-processing-time: 334ms status: code: 204 message: No Content @@ -131,7 +131,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -139,10 +139,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:21:11 GMT - ms-cv: mq02YsmKVkC0uCqh2FcEeg.0 + date: Fri, 04 Dec 2020 19:12:15 GMT + ms-cv: eY/meUaW3ku71kdlog87yA.0 strict-transport-security: max-age=2592000 - x-processing-time: 245ms + x-processing-time: 269ms status: code: 204 message: No Content @@ -159,9 +159,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:21:12 GMT + - Fri, 04 Dec 2020 19:12:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -173,11 +173,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:21:28 GMT + - Fri, 04 Dec 2020 19:12:32 GMT ms-cv: - - Y94mNlSzdUyoLHiR+Ba/2g.0 + - LbY5liNdGE+0uC/TLJWWtw.0 x-processing-time: - - 16505ms + - 16338ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml index 6a188ddad020..ef48cd8e2864 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:21:29 GMT + - Fri, 04 Dec 2020 19:12:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:21:29 GMT + - Fri, 04 Dec 2020 19:12:33 GMT ms-cv: - - zaLjG0NY1UaFlb37HqCSoA.0 + - 7HJUgoqEY0+tMZj1LHMLXA.0 transfer-encoding: - chunked x-processing-time: - - 144ms + - 149ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:21:29 GMT + - Fri, 04 Dec 2020 19:12:33 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:21:29.3965216+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:12:32.6909335+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:21:30 GMT + - Fri, 04 Dec 2020 19:12:33 GMT ms-cv: - - cbQRTe8Aek+UNzyPsIOY9Q.0 + - p+rktYsA+kuFz/9yWOVPEA.0 transfer-encoding: - chunked x-processing-time: - - 299ms + - 302ms status: code: 200 message: OK @@ -85,20 +85,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:21:30Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:4c1fe998f91149eb8633785e068a5631@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:12:34Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0d-361b-ea7c-5a3a0d0003ba"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:21:31 GMT - ms-cv: l2HmSTYrbE27CkF0SDA+Aw.0 + date: Fri, 04 Dec 2020 19:12:34 GMT + ms-cv: 4qusa0VscESH1xeBLiFVog.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 979ms + x-processing-time: 893ms status: code: 201 message: Created @@ -109,20 +109,20 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:21:30Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-12-04T19:12:34Z", + "createdBy": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:21:31 GMT - ms-cv: 48rJVl5XQEGV7MMbLQuY2Q.0 + date: Fri, 04 Dec 2020 19:12:34 GMT + ms-cv: z6wYzZ8u0ESCKP2S+F7/Ig.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 252ms + x-processing-time: 262ms status: code: 200 message: OK @@ -133,7 +133,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -141,10 +141,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:21:32 GMT - ms-cv: xBuagQl1ZUq9XQpOoTP2kQ.0 + date: Fri, 04 Dec 2020 19:12:35 GMT + ms-cv: +PzgPuRsh02CGevSpzIY6Q.0 strict-transport-security: max-age=2592000 - x-processing-time: 360ms + x-processing-time: 338ms status: code: 204 message: No Content @@ -161,9 +161,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:21:32 GMT + - Fri, 04 Dec 2020 19:12:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -175,11 +175,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:21:47 GMT + - Fri, 04 Dec 2020 19:12:51 GMT ms-cv: - - +tRng5OY0EShIZ+U7tvKtg.0 + - 6+d84SqH7k6lschaPQeALQ.0 x-processing-time: - - 16050ms + - 16524ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml index d69b3a04edb2..30d7554fc94e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:21:48 GMT + - Fri, 04 Dec 2020 19:12:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:21:48 GMT + - Fri, 04 Dec 2020 19:12:51 GMT ms-cv: - - uer+Ea5JKk618XcX2aUYjA.0 + - v0EW/9SY7kuve9HcIDEwaw.0 transfer-encoding: - chunked x-processing-time: - - 144ms + - 254ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:21:48 GMT + - Fri, 04 Dec 2020 19:12:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:21:48.2262131+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:12:52.0754754+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:21:48 GMT + - Fri, 04 Dec 2020 19:12:52 GMT ms-cv: - - sa3ESOR4OEmriuLdfNHomQ.0 + - zGJBbUNCrEuvK63pHVjseA.0 transfer-encoding: - chunked x-processing-time: - - 297ms + - 314ms status: code: 200 message: OK @@ -85,20 +85,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:21:49Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:da28cac25aab45e8bf89ef720b43a6bf@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:12:53Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0d-81cf-ea7c-5a3a0d0003bb"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:21:50 GMT - ms-cv: ya0Ghl3QsEiAC+8XL/RmXQ.0 + date: Fri, 04 Dec 2020 19:12:54 GMT + ms-cv: QKVSvwPzv0qXwIWDsNc6/A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 838ms + x-processing-time: 891ms status: code: 201 message: Created @@ -109,7 +109,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -117,10 +117,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:21:50 GMT - ms-cv: pdps7Mhv+kKCLyJnFbZcwQ.0 + date: Fri, 04 Dec 2020 19:12:54 GMT + ms-cv: DffsqGfBnUWYl370pIEKHw.0 strict-transport-security: max-age=2592000 - x-processing-time: 293ms + x-processing-time: 323ms status: code: 204 message: No Content @@ -137,9 +137,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:21:50 GMT + - Fri, 04 Dec 2020 19:12:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -151,11 +151,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:22:06 GMT + - Fri, 04 Dec 2020 19:13:10 GMT ms-cv: - - hh/fQapqO0+qU9rHgve42w.0 + - yjKTr3a6s0amd6k1VbgwHA.0 x-processing-time: - - 16894ms + - 16288ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml index c0de98e51194..16720bd0fb34 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:22:07 GMT + - Fri, 04 Dec 2020 19:13:10 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:22:07 GMT + - Fri, 04 Dec 2020 19:13:10 GMT ms-cv: - - abSdviEBLUyqxoosse0XjQ.0 + - 187AYzPatk2wYu28j4wx5g.0 transfer-encoding: - chunked x-processing-time: - - 143ms + - 203ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:22:08 GMT + - Fri, 04 Dec 2020 19:13:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:22:07.3610587+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:13:10.6881288+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:22:07 GMT + - Fri, 04 Dec 2020 19:13:10 GMT ms-cv: - - t9nhLIXhQUO5LmSKQIwh0Q.0 + - ZG/QmqBSWUyXYi7mlMcHbQ.0 transfer-encoding: - chunked x-processing-time: - - 298ms + - 299ms status: code: 200 message: OK @@ -81,24 +81,24 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '205' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:22:08Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:0b66405c8f2c4b39aa3a8d2196994bf1@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:13:12Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0d-ca8b-557d-5a3a0d000460"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:22:08 GMT - ms-cv: p0gwIWsmHkWyCUYRDGsFdA.0 + date: Fri, 04 Dec 2020 19:13:12 GMT + ms-cv: ozyc6vEKgkewN02Vl31xMg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 821ms + x-processing-time: 891ms status: code: 201 message: Created @@ -109,7 +109,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 response: @@ -117,11 +117,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:22:10 GMT - ms-cv: PDZijimua0aXNcZburvjWA.0 + date: Fri, 04 Dec 2020 19:13:14 GMT + ms-cv: VHGrLByFTUijbFrNwesOgA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 381ms + x-processing-time: 384ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -140,10 +140,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:22:11 GMT - ms-cv: r/IuVej42ESHIcmoag/dGg.0 + date: Fri, 04 Dec 2020 19:13:15 GMT + ms-cv: Fj+XXuooM0qS2LkmB50IDQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 283ms + x-processing-time: 328ms status: code: 204 message: No Content @@ -160,9 +160,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:22:12 GMT + - Fri, 04 Dec 2020 19:13:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -174,11 +174,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:22:28 GMT + - Fri, 04 Dec 2020 19:13:31 GMT ms-cv: - - Zo8NCaK/50OTdE0tDA7mDg.0 + - sym6uodMakSuKLaG4eBS4g.0 x-processing-time: - - 16231ms + - 17019ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml index fdae2aa3db70..133a9a783629 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:22:28 GMT + - Fri, 04 Dec 2020 19:13:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:22:28 GMT + - Fri, 04 Dec 2020 19:13:32 GMT ms-cv: - - dd+vYARl/0aU1L4LstbDYg.0 + - 66nTBSY+Okii5WsarUmmDg.0 transfer-encoding: - chunked x-processing-time: - - 160ms + - 147ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:22:29 GMT + - Fri, 04 Dec 2020 19:13:33 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:22:28.3411326+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:13:32.650274+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:22:28 GMT + - Fri, 04 Dec 2020 19:13:33 GMT ms-cv: - - mFh0TCxslE2XE+AM30ML5w.0 + - KzKzL1twJ0WwWKDyYl5J/g.0 transfer-encoding: - chunked x-processing-time: - - 300ms + - 301ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:22:29 GMT + - Fri, 04 Dec 2020 19:13:33 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,9 +102,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:22:29 GMT + - Fri, 04 Dec 2020 19:13:33 GMT ms-cv: - - 6P4tYc+Oskis9JocjuFqfQ.0 + - WZczyhAvAkajNH4/21t5tw.0 transfer-encoding: - chunked x-processing-time: @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:22:29Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a206-a7ef-b274-5a3a0d00011b", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:359bb36a2bca4db4bdd5d3a3c8b57583@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:13:34Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0e-2056-557d-5a3a0d000461"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:22:30 GMT + - Fri, 04 Dec 2020 19:13:34 GMT ms-cv: - - VyHZBwcHUkeq1ZBe0z0K4w.0 + - OydZhnmPGUGCoTahFLS3eA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 830ms + - 936ms status: code: 201 message: Created @@ -161,29 +160,30 @@ interactions: Connection: - keep-alive Content-Length: - - '183' + - '182' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: - body: - string: '' + body: '{}' headers: api-supported-versions: - 2020-11-01-preview3 - content-length: - - '0' + content-type: + - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:22:31 GMT + - Fri, 04 Dec 2020 19:13:35 GMT ms-cv: - - 6ovFy1YWXUyzgtTCQ0AuEg.0 + - RvgxhlL+j0CEbX1hnOFAcg.0 strict-transport-security: - max-age=2592000 + transfer-encoding: + - chunked x-processing-time: - - 913ms + - 885ms status: code: 201 message: Created @@ -199,9 +199,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:22:31 GMT + - Fri, 04 Dec 2020 19:13:36 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -213,11 +213,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:22:47 GMT + - Fri, 04 Dec 2020 19:13:52 GMT ms-cv: - - NghzSFVLlkWYMI9eO/A79g.0 + - 2G5FZKmerkOTQOcSVMpLgA.0 x-processing-time: - - 16596ms + - 16515ms status: code: 204 message: No Content @@ -233,9 +233,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:22:48 GMT + - Fri, 04 Dec 2020 19:13:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -247,11 +247,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:23:04 GMT + - Fri, 04 Dec 2020 19:14:08 GMT ms-cv: - - XRgg32P31UWn2RQYkEZ09g.0 + - RBA0k5mEu0+cUTaRTV2QTg.0 x-processing-time: - - 15718ms + - 16038ms status: code: 204 message: No Content @@ -267,7 +267,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -277,13 +277,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:23:04 GMT + - Fri, 04 Dec 2020 19:14:08 GMT ms-cv: - - jXcUJDKMH0yz1gpWOq5TVQ.0 + - fpb0UMnnYUeZuvjw43iCzA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 305ms + - 340ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml index 003c8e255415..e7e43143dab2 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:23:04 GMT + - Fri, 04 Dec 2020 19:14:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:04 GMT + - Fri, 04 Dec 2020 19:14:09 GMT ms-cv: - - HerM2mQmd02OBAdCT3OyXQ.0 + - GzCnrCvImEaHW5E+51dNyg.0 transfer-encoding: - chunked x-processing-time: - - 148ms + - 145ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:23:05 GMT + - Fri, 04 Dec 2020 19:14:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:23:04.4533324+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:14:08.0923235+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:04 GMT + - Fri, 04 Dec 2020 19:14:09 GMT ms-cv: - - pn2gx/zkCEKfuOZPXwRTwQ.0 + - CcJoTLfoOECVSoogJIrecA.0 transfer-encoding: - chunked x-processing-time: - - 301ms + - 296ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:23:05 GMT + - Fri, 04 Dec 2020 19:14:10 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:04 GMT + - Fri, 04 Dec 2020 19:14:10 GMT ms-cv: - - /2+tkc7pLEelGGLEH9kcJw.0 + - 8NnEy4VOhECDEeAVvJDSEw.0 transfer-encoding: - chunked x-processing-time: - - 149ms + - 144ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:23:06Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a207-34f9-b274-5a3a0d00011d", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:0986da17e18842748f206bad3224ec3b@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:14:10Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0e-aeaf-557d-5a3a0d000463"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:06 GMT + - Fri, 04 Dec 2020 19:14:11 GMT ms-cv: - - Vmgei+anTEqeebmxZHF4CQ.0 + - 1Kn8y//W20iUTNW/gAULxQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 818ms + - 933ms status: code: 201 message: Created @@ -165,25 +164,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: - body: - string: '' + body: '{}' headers: api-supported-versions: - 2020-11-01-preview3 - content-length: - - '0' + content-type: + - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:07 GMT + - Fri, 04 Dec 2020 19:14:12 GMT ms-cv: - - +sEVZwQx9kCCFwTfvjBrFg.0 + - kuLzHjpkVkOHwHcv4iYdkQ.0 strict-transport-security: - max-age=2592000 + transfer-encoding: + - chunked x-processing-time: - - 843ms + - 894ms status: code: 201 message: Created @@ -199,9 +199,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:23:07 GMT + - Fri, 04 Dec 2020 19:14:12 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -213,11 +213,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:23:23 GMT + - Fri, 04 Dec 2020 19:14:28 GMT ms-cv: - - NRdn3as36kaQxHnmvueoPg.0 + - TCh/T9s1PkGPW61WEJIADw.0 x-processing-time: - - 15967ms + - 15993ms status: code: 204 message: No Content @@ -233,9 +233,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:23:23 GMT + - Fri, 04 Dec 2020 19:14:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -247,11 +247,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:23:40 GMT + - Fri, 04 Dec 2020 19:14:44 GMT ms-cv: - - PE0+Qm7kaEWHpVkvK1uWcQ.0 + - 23ejVnv6O0yOu90P1eN+RQ.0 x-processing-time: - - 16637ms + - 16028ms status: code: 204 message: No Content @@ -267,7 +267,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -277,13 +277,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:23:40 GMT + - Fri, 04 Dec 2020 19:14:44 GMT ms-cv: - - XyxI2gXMv0mcHZAKSMH0yg.0 + - IInBSeWpqESdqTAPVYhKRQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 312ms + - 338ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml index 587dc4e95b6a..f37fb7df8870 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:23:41 GMT + - Fri, 04 Dec 2020 19:14:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:40 GMT + - Fri, 04 Dec 2020 19:14:44 GMT ms-cv: - - +FisQ6g8mkuEiGHBt184tA.0 + - I1XTgQn8fEaERd7bA2XcSA.0 transfer-encoding: - chunked x-processing-time: - - 144ms + - 147ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:23:41 GMT + - Fri, 04 Dec 2020 19:14:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:23:40.9543611+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:14:45.0818798+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:41 GMT + - Fri, 04 Dec 2020 19:14:45 GMT ms-cv: - - FowW+e67ZkWt5cNBT2x/hg.0 + - osUMHo8HNUmqum6uNNUpEA.0 transfer-encoding: - chunked x-processing-time: - - 298ms + - 300ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:23:41 GMT + - Fri, 04 Dec 2020 19:14:46 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:41 GMT + - Fri, 04 Dec 2020 19:14:45 GMT ms-cv: - - F5vvIThR+0aETPMo6gJvAw.0 + - 4HJK7dzhgkeOvWHAB7lOYg.0 transfer-encoding: - chunked x-processing-time: - - 139ms + - 156ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:23:42Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a207-c397-b274-5a3a0d00011f", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:ff503ee6c8594e28b67823c26844e110@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:14:46Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0f-3b50-ea7c-5a3a0d0003c0"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:42 GMT + - Fri, 04 Dec 2020 19:14:46 GMT ms-cv: - - nC7RUoxItUSPZAjGCSYyyA.0 + - 9zh/cwC2Q0qP7JoPsLcufQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 832ms + - 916ms status: code: 201 message: Created @@ -166,7 +165,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -177,15 +176,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:43 GMT + - Fri, 04 Dec 2020 19:14:47 GMT ms-cv: - - ILiVsd9LVkCkQeOJ/MSVBQ.0 + - CHnUwQeLMUeD1tcUVcOGYA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 632ms + - 972ms status: code: 201 message: Created @@ -201,7 +200,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: @@ -211,13 +210,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:23:44 GMT + - Fri, 04 Dec 2020 19:14:48 GMT ms-cv: - - RTgZ5X8qA0OUsZRVG9lBeQ.0 + - uQNd0JCCkUCZ/yUN2OezLA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 395ms + - 438ms status: code: 204 message: No Content @@ -233,9 +232,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:23:44 GMT + - Fri, 04 Dec 2020 19:14:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -247,11 +246,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:24:01 GMT + - Fri, 04 Dec 2020 19:15:05 GMT ms-cv: - - CRD1a1Uh4kSa7pqIKjPX5g.0 + - CwEP7775VEaSZ7bdoAmdAg.0 x-processing-time: - - 16806ms + - 16464ms status: code: 204 message: No Content @@ -267,9 +266,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:24:01 GMT + - Fri, 04 Dec 2020 19:15:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -281,11 +280,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:24:16 GMT + - Fri, 04 Dec 2020 19:15:21 GMT ms-cv: - - 3KneB3pMBUmzbeKy9rpxiA.0 + - X89yE3T/B0S+EybBRMKGBA.0 x-processing-time: - - 15876ms + - 15938ms status: code: 204 message: No Content @@ -301,7 +300,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -311,13 +310,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:24:17 GMT + - Fri, 04 Dec 2020 19:15:22 GMT ms-cv: - - XrmTL9T+zE6cRYMnS+mh2w.0 + - UHEqR0IiRUu3FOw/OBltlw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 292ms + - 319ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml index 8c8eb60c1efa..cc6458f02a09 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:24:17 GMT + - Fri, 04 Dec 2020 19:15:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:17 GMT + - Fri, 04 Dec 2020 19:15:22 GMT ms-cv: - - msRYo46MSkyKI84reLo0HA.0 + - TeHiskrrk0Sz+x3dUaejwg.0 transfer-encoding: - chunked x-processing-time: - - 194ms + - 163ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:24:18 GMT + - Fri, 04 Dec 2020 19:15:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:24:17.1459685+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:15:21.1504317+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:18 GMT + - Fri, 04 Dec 2020 19:15:22 GMT ms-cv: - - ME5w3LfU3k6qpGONFQFRGg.0 + - JlcRF/VHg02YiMeqTb7ZDQ.0 transfer-encoding: - chunked x-processing-time: - - 814ms + - 304ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:24:19 GMT + - Fri, 04 Dec 2020 19:15:23 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:18 GMT + - Fri, 04 Dec 2020 19:15:23 GMT ms-cv: - - IOXvc6LenEGqFVWCmDEvdw.0 + - 1VUNCQ0aZUOyHEUoG+nwDA.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 156ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:24:19Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a208-52d1-557d-5a3a0d0000df", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:6b91ae6ba6cb4ae68173dd61b86cb059@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:15:24Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0f-cc06-ea7c-5a3a0d0003c2"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:19 GMT + - Fri, 04 Dec 2020 19:15:24 GMT ms-cv: - - EKBi3K6XsE+2Lhsqi5cRhg.0 + - ujfAJwQus0KsuP9nVpb9Kg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 825ms + - 1371ms status: code: 201 message: Created @@ -166,7 +165,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -177,15 +176,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:20 GMT + - Fri, 04 Dec 2020 19:15:25 GMT ms-cv: - - Orn/iKS620SaBNazUpUxiQ.0 + - bqF+aMTF50KO7mot7QSieQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 684ms + - 633ms status: code: 201 message: Created @@ -199,12 +198,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1606353860857", - "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-11-26T01:24:20Z", + body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1607109325492", + "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-12-04T19:15:25Z", "senderId": "sanitized"}' headers: api-supported-versions: @@ -212,15 +211,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:20 GMT + - Fri, 04 Dec 2020 19:15:25 GMT ms-cv: - - TgVAXmNOVUqQDFtLimeI3g.0 + - /58MZ5FKWE2jU6pN1v8+0w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 262ms + - 268ms status: code: 200 message: OK @@ -236,9 +235,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:24:21 GMT + - Fri, 04 Dec 2020 19:15:26 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -250,11 +249,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:24:38 GMT + - Fri, 04 Dec 2020 19:15:42 GMT ms-cv: - - 7WkXURdvCUadQaKfM0XUCg.0 + - DNome154JkqG75Xc14hXpw.0 x-processing-time: - - 17535ms + - 16646ms status: code: 204 message: No Content @@ -270,9 +269,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:24:39 GMT + - Fri, 04 Dec 2020 19:15:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -284,11 +283,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:24:55 GMT + - Fri, 04 Dec 2020 19:15:59 GMT ms-cv: - - 6iwCu22I9kCdX7N0AL23AA.0 + - 2+iM10qwgEqYqzy89vZZiQ.0 x-processing-time: - - 16376ms + - 16653ms status: code: 204 message: No Content @@ -304,7 +303,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -314,13 +313,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:24:55 GMT + - Fri, 04 Dec 2020 19:15:59 GMT ms-cv: - - aNenUrVPlEqJY0ZCn/jJGw.0 + - hL3pKmy150S7qGSzF2YGZw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 323ms + - 328ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml index f9440f907da3..3e21f6fc822c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:24:56 GMT + - Fri, 04 Dec 2020 19:16:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:56 GMT + - Fri, 04 Dec 2020 19:16:00 GMT ms-cv: - - 804wtj3mZUO4fzi6Z15Q+g.0 + - B5DZN3xiXkqoOoSfkesxPQ.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 155ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:24:56 GMT + - Fri, 04 Dec 2020 19:16:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:24:55.8283538+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:15:59.9494375+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:56 GMT + - Fri, 04 Dec 2020 19:16:00 GMT ms-cv: - - YO9czrtDg0yc1yz5Q+dGtA.0 + - Wl+H+wwwtkCy4Mh29Lcn9Q.0 transfer-encoding: - chunked x-processing-time: - - 302ms + - 311ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:24:56 GMT + - Fri, 04 Dec 2020 19:16:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:57 GMT + - Fri, 04 Dec 2020 19:16:00 GMT ms-cv: - - SCM4p2/tX0ikotqp00XisQ.0 + - ixXvh6V1kU+5r8N9dnFLFA.0 transfer-encoding: - chunked x-processing-time: - - 148ms + - 157ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:24:57Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a208-e816-b274-5a3a0d000121", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:e841d6d0e14b4af09279e8e971c22d61@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:16:02Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf10-5fbb-ea7c-5a3a0d0003c4"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:57 GMT + - Fri, 04 Dec 2020 19:16:02 GMT ms-cv: - - zYy8Kz/sKEKeY2vLvJFEvw.0 + - WRXHBIB+dUedWWB7oGKMoA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 830ms + - 1375ms status: code: 201 message: Created @@ -166,7 +165,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -177,15 +176,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:58 GMT + - Fri, 04 Dec 2020 19:16:03 GMT ms-cv: - - 6hVNy/RtuUyr5NI1d6pKYQ.0 + - t0V2QXV8J0CcHnSlv6JYVg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 695ms + - 698ms status: code: 201 message: Created @@ -199,9 +198,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -210,15 +209,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:00 GMT + - Fri, 04 Dec 2020 19:16:05 GMT ms-cv: - - ghjd+uaBPE+xWRWajPhGfw.0 + - 2yzw1m4AZ0SEHdkx3tzgPQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 268ms + - 283ms status: code: 200 message: OK @@ -232,9 +231,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -243,15 +242,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:01 GMT + - Fri, 04 Dec 2020 19:16:06 GMT ms-cv: - - 2m12bXnZ/U++YwOOw50L4Q.0 + - Cnxq7R6BRUmRVki3OcGhmw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 365ms + - 358ms status: code: 200 message: OK @@ -265,9 +264,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -276,15 +275,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:01 GMT + - Fri, 04 Dec 2020 19:16:06 GMT ms-cv: - - +DvJechO5UqgndvobbF2Xw.0 + - M28vXivcv0u8fbbpV37AAQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 367ms + - 350ms status: code: 200 message: OK @@ -298,9 +297,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -309,15 +308,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:02 GMT + - Fri, 04 Dec 2020 19:16:07 GMT ms-cv: - - lIr4DY11dUmOWzkSHJ8mBA.0 + - +EfVJuIMCUqXrfZAYBwXxA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 366ms + - 361ms status: code: 200 message: OK @@ -333,9 +332,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:25:02 GMT + - Fri, 04 Dec 2020 19:16:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -347,11 +346,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:25:18 GMT + - Fri, 04 Dec 2020 19:16:24 GMT ms-cv: - - rIgTwNjkGkeXkbNXZKnPXQ.0 + - KcmKBuUdTUCtgooQYhrquQ.0 x-processing-time: - - 16745ms + - 17041ms status: code: 204 message: No Content @@ -367,9 +366,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:25:19 GMT + - Fri, 04 Dec 2020 19:16:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -381,11 +380,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:25:34 GMT + - Fri, 04 Dec 2020 19:16:40 GMT ms-cv: - - kgOJ7BrWGkW6e+weZb19Zw.0 + - JD9RCbq3b0iNcH9u/ay65Q.0 x-processing-time: - - 16159ms + - 16121ms status: code: 204 message: No Content @@ -401,7 +400,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -411,13 +410,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:25:35 GMT + - Fri, 04 Dec 2020 19:16:40 GMT ms-cv: - - AqDCHeUbjkycBwqCunGccA.0 + - g0JnDl0+r02hUgbV8ws98g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 284ms + - 337ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml index 85a09145bc68..2551bed9e37b 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:25:35 GMT + - Fri, 04 Dec 2020 19:16:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:36 GMT + - Fri, 04 Dec 2020 19:16:41 GMT ms-cv: - - hX/F05n4+UKEOjz3NIZWRQ.0 + - nO8pu1egoEqqv8dH+gISKw.0 transfer-encoding: - chunked x-processing-time: - - 179ms + - 177ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:25:36 GMT + - Fri, 04 Dec 2020 19:16:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:25:35.7750135+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:16:41.6855087+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:36 GMT + - Fri, 04 Dec 2020 19:16:42 GMT ms-cv: - - WQ0fCTY9wEaEnGxgj2ontQ.0 + - 6zrrKPD94k2WqW3dc+YpKQ.0 transfer-encoding: - chunked x-processing-time: - - 299ms + - 692ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:25:36 GMT + - Fri, 04 Dec 2020 19:16:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:36 GMT + - Fri, 04 Dec 2020 19:16:42 GMT ms-cv: - - DcATocgmY02K03bo5XfKLQ.0 + - 5q5EhgpRNUaM6EcVLJdvng.0 transfer-encoding: - chunked x-processing-time: - - 144ms + - 171ms status: code: 200 message: OK @@ -122,32 +122,31 @@ interactions: Connection: - keep-alive Content-Length: - - '205' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:25:37Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a209-8417-b274-5a3a0d000123", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:d499e180c13f4066aacaf7d0fe3c24fb@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:16:43Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf11-0133-8a72-5a3a0d00034e"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:37 GMT + - Fri, 04 Dec 2020 19:16:43 GMT ms-cv: - - jrosRGQh3ECXqftkXzAp9Q.0 + - WAg3UltJL0Gc1twzjSkMzA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 815ms + - 881ms status: code: 201 message: Created @@ -161,7 +160,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: @@ -172,15 +171,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:40 GMT + - Fri, 04 Dec 2020 19:16:46 GMT ms-cv: - - laV96dm1/E6ElZcKmLUUaA.0 + - 02zCDsS1T0KWqcfYynbtIw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 744ms + - 254ms status: code: 200 message: OK @@ -196,9 +195,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:25:41 GMT + - Fri, 04 Dec 2020 19:16:46 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -210,11 +209,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:25:56 GMT + - Fri, 04 Dec 2020 19:17:02 GMT ms-cv: - - 8U13ljcOEUuE4HMKo2PdsA.0 + - UtzQEybrkEqMBVSxZFW/sQ.0 x-processing-time: - - 16007ms + - 16069ms status: code: 204 message: No Content @@ -230,9 +229,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:25:57 GMT + - Fri, 04 Dec 2020 19:17:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -244,11 +243,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:26:12 GMT + - Fri, 04 Dec 2020 19:17:18 GMT ms-cv: - - yLDPZxhkcEWJb7m8HoJCdg.0 + - rDK9fH5K30ywZKK8eWhfRw.0 x-processing-time: - - 16445ms + - 16353ms status: code: 204 message: No Content @@ -264,7 +263,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -274,13 +273,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:26:13 GMT + - Fri, 04 Dec 2020 19:17:18 GMT ms-cv: - - UZR2pU4w+UmssQdbohylhw.0 + - +jLVieBu6E6QNZ9Z+bVNGg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 289ms + - 330ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml index d8285c7a3c99..0d0b93840a13 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:26:14 GMT + - Fri, 04 Dec 2020 19:17:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:13 GMT + - Fri, 04 Dec 2020 19:17:19 GMT ms-cv: - - A/P9P9V6pEadsXcfwqqklg.0 + - Dltg9sSjFk66pNR2joGILg.0 transfer-encoding: - chunked x-processing-time: - - 146ms + - 166ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:26:14 GMT + - Fri, 04 Dec 2020 19:17:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:26:14.0829614+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:17:19.4713905+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:14 GMT + - Fri, 04 Dec 2020 19:17:19 GMT ms-cv: - - JM8r6v+YY0ejA6y0LsKhBw.0 + - ZiU/1rWYvEKfxTOK8LLu2g.0 transfer-encoding: - chunked x-processing-time: - - 303ms + - 315ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:26:15 GMT + - Fri, 04 Dec 2020 19:17:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:14 GMT + - Fri, 04 Dec 2020 19:17:19 GMT ms-cv: - - 94Efc2Yx6E2gDj+3CbbMAQ.0 + - mvzFcukGTUqeZ2asuDJJ/g.0 transfer-encoding: - chunked x-processing-time: - - 146ms + - 152ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:26:15Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20a-19b6-b274-5a3a0d000125", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:8605832276104f699e1751ba0a5ad0c7@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:17:21Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf11-964c-d67a-5a3a0d000305"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:16 GMT + - Fri, 04 Dec 2020 19:17:22 GMT ms-cv: - - OIYYMsHJjUaD5nZhLq7jDQ.0 + - t+ezdL/y5kmczFWlGTD00g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 821ms + - 1440ms status: code: 201 message: Created @@ -166,7 +165,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -177,15 +176,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:17 GMT + - Fri, 04 Dec 2020 19:17:23 GMT ms-cv: - - 5pQbwxxB10KHVAyeTNnSjw.0 + - NmpU5sDtYkiuvJBVQohbxA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 693ms + - 1186ms status: code: 201 message: Created @@ -203,9 +202,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' @@ -215,13 +214,13 @@ interactions: content-length: - '0' date: - - Thu, 26 Nov 2020 01:26:17 GMT + - Fri, 04 Dec 2020 19:17:24 GMT ms-cv: - - JJEHa6GlDECwkZQHkOcX3w.0 + - teoJraafMUWmKOtE4O8BzA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 668ms + - 933ms status: code: 201 message: Created @@ -235,9 +234,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -246,15 +245,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:20 GMT + - Fri, 04 Dec 2020 19:17:27 GMT ms-cv: - - HFpdZBGKkkS9+HQJ9I4/rQ.0 + - oeBb+22AP0W0FCJ1quRigw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 249ms + - 270ms status: code: 200 message: OK @@ -270,9 +269,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:26:20 GMT + - Fri, 04 Dec 2020 19:17:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -284,11 +283,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:26:36 GMT + - Fri, 04 Dec 2020 19:17:43 GMT ms-cv: - - wQvnxAp9GEScZluSWlPcKw.0 + - ki7CEeQ/mU2VOiFnC67i+Q.0 x-processing-time: - - 16099ms + - 16397ms status: code: 204 message: No Content @@ -304,9 +303,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:26:36 GMT + - Fri, 04 Dec 2020 19:17:43 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -318,11 +317,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:26:52 GMT + - Fri, 04 Dec 2020 19:17:59 GMT ms-cv: - - aIlRF5bFVU+K+7v3C9gN0g.0 + - mQUUZH1EGU29zkFvzoG/SQ.0 x-processing-time: - - 16458ms + - 16120ms status: code: 204 message: No Content @@ -338,7 +337,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -348,13 +347,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:26:53 GMT + - Fri, 04 Dec 2020 19:17:59 GMT ms-cv: - - xZvcQIwoLky0fFKFlkK/9A.0 + - 5NZgTuAEOUWUgjq9q+aXEA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 283ms + - 358ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml index 4e79d000bcdd..de911e80a176 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:26:53 GMT + - Fri, 04 Dec 2020 19:18:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:53 GMT + - Fri, 04 Dec 2020 19:18:00 GMT ms-cv: - - L3MwZ02q+0KXjA6cPkf3zg.0 + - 3NJR2sd9aUmJvkZybvSGxg.0 transfer-encoding: - chunked x-processing-time: - - 175ms + - 165ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:26:54 GMT + - Fri, 04 Dec 2020 19:18:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:26:53.8507271+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:18:00.1956214+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:54 GMT + - Fri, 04 Dec 2020 19:18:01 GMT ms-cv: - - pQgqab8VE0SZ4Oq9dgY3mg.0 + - fD8vRzaJhE6fwnXRvZHHdA.0 transfer-encoding: - chunked x-processing-time: - - 783ms + - 314ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:26:54 GMT + - Fri, 04 Dec 2020 19:18:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:54 GMT + - Fri, 04 Dec 2020 19:18:01 GMT ms-cv: - - iFqkvLMJxUOQ2LGuHmiWpA.0 + - JhA44KN83UuoS7EraJw/ng.0 transfer-encoding: - chunked x-processing-time: - - 153ms + - 163ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:26:55Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20a-b333-557d-5a3a0d0000e1", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:456de853bd9846abbda594b6ec8bf5bb@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:18:01Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf12-3568-8a72-5a3a0d000350"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:56 GMT + - Fri, 04 Dec 2020 19:18:01 GMT ms-cv: - - 9/n37bfN1k+b5pcZuR6b2Q.0 + - WG90OvISUEaDg4I4IYgwvA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1340ms + - 918ms status: code: 201 message: Created @@ -165,25 +164,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: - body: - string: '' + body: '{}' headers: api-supported-versions: - 2020-11-01-preview3 - content-length: - - '0' + content-type: + - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:57 GMT + - Fri, 04 Dec 2020 19:18:02 GMT ms-cv: - - uruLT70rVkaontGqh4BaNA.0 + - Qg983hI0SEGykqR8zvMGpw.0 strict-transport-security: - max-age=2592000 + transfer-encoding: + - chunked x-processing-time: - - 833ms + - 606ms status: code: 201 message: Created @@ -199,9 +199,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8%3Aacs%3A9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20a-b745-557d-5a3a0d0000e2?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8%3Aacs%3A9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf12-37d1-8a72-5a3a0d000351?api-version=2020-11-01-preview3 response: body: string: '' @@ -209,13 +209,13 @@ interactions: api-supported-versions: - 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:26:57 GMT + - Fri, 04 Dec 2020 19:18:03 GMT ms-cv: - - fTookN+trEy/B7qvkvcVqQ.0 + - 4QRltxC+2EKp4tnv6nMXHw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 427ms + - 620ms status: code: 204 message: No Content @@ -231,9 +231,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:26:58 GMT + - Fri, 04 Dec 2020 19:18:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -245,11 +245,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:27:13 GMT + - Fri, 04 Dec 2020 19:18:21 GMT ms-cv: - - x6apGyPKZ0a6QRVVbsMSaQ.0 + - YTL+kNrhNECQZWAVnUbSvg.0 x-processing-time: - - 16005ms + - 17669ms status: code: 204 message: No Content @@ -265,9 +265,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:27:14 GMT + - Fri, 04 Dec 2020 19:18:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -279,11 +279,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:27:30 GMT + - Fri, 04 Dec 2020 19:18:37 GMT ms-cv: - - GF97YOCr+UmWjcc9UlpHsg.0 + - 1E6UA74F/EGzteH/pg2pkA.0 x-processing-time: - - 16723ms + - 15656ms status: code: 204 message: No Content @@ -299,7 +299,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -309,13 +309,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:27:31 GMT + - Fri, 04 Dec 2020 19:18:38 GMT ms-cv: - - sMR50s3i+ECIkM0o2e2DzA.0 + - mVyjUksZckqEk4AHu/DAyA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 290ms + - 341ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml index 4b5a12db0945..345d5f8af275 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:27:31 GMT + - Fri, 04 Dec 2020 19:18:38 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:27:30 GMT + - Fri, 04 Dec 2020 19:18:37 GMT ms-cv: - - Rc3uv0zfaUWJiXIDROynSA.0 + - jymPZjk2R0yoSKr6pph0Jw.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 171ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:27:31 GMT + - Fri, 04 Dec 2020 19:18:38 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:27:31.4138168+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:18:37.6471134+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:27:31 GMT + - Fri, 04 Dec 2020 19:18:38 GMT ms-cv: - - wng3+OJem0CbKMTETRRu0A.0 + - DouD4iKmpEekqG5PXmercQ.0 transfer-encoding: - chunked x-processing-time: - - 299ms + - 829ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:27:32 GMT + - Fri, 04 Dec 2020 19:18:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:27:31 GMT + - Fri, 04 Dec 2020 19:18:38 GMT ms-cv: - - QZ1WDUG7r0mOH0YPnCeFgw.0 + - OtZ2Wovbd06XnG5lOy5oWw.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 148ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:27:33Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20b-46e6-557d-5a3a0d0000e3", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:bc468cd1db24417292bacc90ef943098@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:18:40Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf12-c997-557d-5a3a0d000465"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:27:32 GMT + - Fri, 04 Dec 2020 19:18:40 GMT ms-cv: - - iUhieEkBXUCaR8EQ3kIC0w.0 + - DbdRGxIK9kCWiI+sFgI3zg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 831ms + - 907ms status: code: 201 message: Created @@ -166,7 +165,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -177,15 +176,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:27:33 GMT + - Fri, 04 Dec 2020 19:18:41 GMT ms-cv: - - X6/bdVsrgkSbcCR6yMDmyQ.0 + - Aj/RzW1RQEC+CqJOqtWPNA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 651ms + - 965ms status: code: 201 message: Created @@ -201,9 +200,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:27:34 GMT + - Fri, 04 Dec 2020 19:18:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -215,11 +214,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:27:50 GMT + - Fri, 04 Dec 2020 19:18:59 GMT ms-cv: - - CEA1vnH3kkygOS1DiF3fDg.0 + - IG02kA6SKkCwvYUHDvR3WA.0 x-processing-time: - - 16279ms + - 16938ms status: code: 204 message: No Content @@ -235,9 +234,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:27:50 GMT + - Fri, 04 Dec 2020 19:18:59 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -249,11 +248,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:28:06 GMT + - Fri, 04 Dec 2020 19:19:14 GMT ms-cv: - - omYum9GtMUeTXF/MKSMo7w.0 + - Rate8STPsk+PIG99Q1RfYw.0 x-processing-time: - - 16274ms + - 15845ms status: code: 204 message: No Content @@ -269,7 +268,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -279,13 +278,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:28:06 GMT + - Fri, 04 Dec 2020 19:19:15 GMT ms-cv: - - JHijcUlRjUqewdrOZI3dvg.0 + - p11exrl62EqCRIxg31Wd3w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 289ms + - 334ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml index 97371cd4df48..909d2d62a2ed 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:28:07 GMT + - Fri, 04 Dec 2020 19:19:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:07 GMT + - Fri, 04 Dec 2020 19:19:15 GMT ms-cv: - - mjHNjmWZI0m8Zn033cNYjA.0 + - 9B13Qh1lnEqkB65BipStJg.0 transfer-encoding: - chunked x-processing-time: - - 203ms + - 151ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:28:07 GMT + - Fri, 04 Dec 2020 19:19:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:28:07.2996862+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:19:15.2380845+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:08 GMT + - Fri, 04 Dec 2020 19:19:16 GMT ms-cv: - - /vvMGot9YEC1Np0vMVWEog.0 + - TPu/2q0sMEaO07zgZ6O8rg.0 transfer-encoding: - chunked x-processing-time: - - 300ms + - 314ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:28:08 GMT + - Fri, 04 Dec 2020 19:19:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:08 GMT + - Fri, 04 Dec 2020 19:19:16 GMT ms-cv: - - yOgWL6LNX0OHrHfvzcK7Xw.0 + - +Edu0TFU+Ual3sffZzplJA.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 156ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:28:09Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20b-d3fc-b274-5a3a0d000127", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:5056a79325b042a89696c0b982630460@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:19:16Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf13-5a8f-557d-5a3a0d000467"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:09 GMT + - Fri, 04 Dec 2020 19:19:17 GMT ms-cv: - - OuXAccdOwUSuSG8/oat08w.0 + - vebmpTDNkkeTVU1+sAH6Dw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 850ms + - 902ms status: code: 201 message: Created @@ -166,7 +165,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -177,15 +176,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:10 GMT + - Fri, 04 Dec 2020 19:19:18 GMT ms-cv: - - IgSr4GCdoUO1r+XB6M4kcw.0 + - cJX+3btc/kKrmHAibbdfVA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 703ms + - 1097ms status: code: 201 message: Created @@ -203,9 +202,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' @@ -215,13 +214,13 @@ interactions: content-length: - '0' date: - - Thu, 26 Nov 2020 01:28:11 GMT + - Fri, 04 Dec 2020 19:19:19 GMT ms-cv: - - LthArghR3Eq/5+icvinOrg.0 + - Rkg9AqRNkkiH+Nyfes5bRw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 607ms + - 927ms status: code: 201 message: Created @@ -237,9 +236,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:28:11 GMT + - Fri, 04 Dec 2020 19:19:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -251,11 +250,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:28:27 GMT + - Fri, 04 Dec 2020 19:19:35 GMT ms-cv: - - SgCET7UrQ0SmsaWXZcD5Eg.0 + - 7k0PBGQzeEu/gkxKkHijcA.0 x-processing-time: - - 16493ms + - 15787ms status: code: 204 message: No Content @@ -271,9 +270,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:28:27 GMT + - Fri, 04 Dec 2020 19:19:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -285,11 +284,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:28:44 GMT + - Fri, 04 Dec 2020 19:19:51 GMT ms-cv: - - sjICsoC46kG23f8Uv5GKuw.0 + - wQukQED0R0SMWiOLR/Ie1Q.0 x-processing-time: - - 16165ms + - 16167ms status: code: 204 message: No Content @@ -305,7 +304,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -315,13 +314,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:28:43 GMT + - Fri, 04 Dec 2020 19:19:52 GMT ms-cv: - - Hj7nFy28eUO/48W0q3cS5A.0 + - 9gB5foCYLE+jgzmvodL4EQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 294ms + - 331ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml index c8468d5cca21..8da013878468 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:28:44 GMT + - Fri, 04 Dec 2020 19:19:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:43 GMT + - Fri, 04 Dec 2020 19:19:52 GMT ms-cv: - - hlqRfaPk0keeVSgIRnHbdQ.0 + - Ixvn7DAg0ki714t/bxmmIw.0 transfer-encoding: - chunked x-processing-time: - - 149ms + - 148ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:28:44 GMT + - Fri, 04 Dec 2020 19:19:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:28:44.3074943+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:19:52.3144675+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:44 GMT + - Fri, 04 Dec 2020 19:19:52 GMT ms-cv: - - 66khv998k06Heglol7uOJw.0 + - ETytSSl0XUWX3kC5aBl/Kg.0 transfer-encoding: - chunked x-processing-time: - - 305ms + - 303ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:28:45 GMT + - Fri, 04 Dec 2020 19:19:53 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:44 GMT + - Fri, 04 Dec 2020 19:19:53 GMT ms-cv: - - ax7WKHTpUkOWXXVtzKq6yw.0 + - D00mowhZ6Uu8m9iiUoU7Ig.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 147ms status: code: 200 message: OK @@ -122,32 +122,31 @@ interactions: Connection: - keep-alive Content-Length: - - '205' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:28:46Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20c-6482-557d-5a3a0d0000e5", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:ca80a79c25404732b3ca2a073c7087ac@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:19:53Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf13-eb6c-ea7c-5a3a0d0003c8"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:46 GMT + - Fri, 04 Dec 2020 19:19:53 GMT ms-cv: - - 0xalPEIS4keKeCFWJpN9iQ.0 + - u7z0tSrr7kutmQSCvLlpeg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 854ms + - 891ms status: code: 201 message: Created @@ -163,7 +162,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 response: @@ -175,13 +174,13 @@ interactions: content-length: - '0' date: - - Thu, 26 Nov 2020 01:28:47 GMT + - Fri, 04 Dec 2020 19:19:54 GMT ms-cv: - - bQdJB63V5kemmf3CVQNUeA.0 + - CRrCY2CJ9UC3esFTkJe7XA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 809ms + - 368ms status: code: 200 message: OK @@ -197,9 +196,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:28:47 GMT + - Fri, 04 Dec 2020 19:19:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -211,11 +210,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:29:03 GMT + - Fri, 04 Dec 2020 19:20:11 GMT ms-cv: - - M4UEQmh3vk2culX9BlK3Tw.0 + - ylscA12t7E2HXBY9KbHEuw.0 x-processing-time: - - 15919ms + - 16848ms status: code: 204 message: No Content @@ -231,9 +230,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:29:03 GMT + - Fri, 04 Dec 2020 19:20:12 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -245,11 +244,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:29:19 GMT + - Fri, 04 Dec 2020 19:20:27 GMT ms-cv: - - 0M7+dJE7n0Ghg4ZhjVGCbQ.0 + - eB23wF+kVkiscyLYF2YQLg.0 x-processing-time: - - 16290ms + - 16005ms status: code: 204 message: No Content @@ -265,7 +264,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -275,13 +274,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:29:20 GMT + - Fri, 04 Dec 2020 19:20:28 GMT ms-cv: - - IHF2oEx7AEa98F8J92fLew.0 + - qfc70u4p3ECVjw+iGml7LA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 292ms + - 325ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml index becc48e7400a..76a2a229fc73 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:29:20 GMT + - Fri, 04 Dec 2020 19:20:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:20 GMT + - Fri, 04 Dec 2020 19:20:28 GMT ms-cv: - - cJB+MDpBBEqZAq3HqXkWqw.0 + - St3ER/ccE0GYZWciUEPdEg.0 transfer-encoding: - chunked x-processing-time: - - 143ms + - 145ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:29:21 GMT + - Fri, 04 Dec 2020 19:20:29 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:29:20.9376251+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:20:28.3872364+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:21 GMT + - Fri, 04 Dec 2020 19:20:29 GMT ms-cv: - - +mUydaYWw0y1XyjahACEZw.0 + - NbyFufDzz0SxWrHiAOLGFQ.0 transfer-encoding: - chunked x-processing-time: - - 792ms + - 301ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:29:21 GMT + - Fri, 04 Dec 2020 19:20:29 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:21 GMT + - Fri, 04 Dec 2020 19:20:29 GMT ms-cv: - - Q+fRrF2xWkaRDCOZrCcTBg.0 + - 2Mw1g8HA2UKAtGCcJNi24g.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 149ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:29:22Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20c-f1be-d67a-5a3a0d0001bc", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:463e8703c52f4c039b7148b0bde0fb30@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:20:29Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf14-785a-ea7c-5a3a0d0003ca"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:22 GMT + - Fri, 04 Dec 2020 19:20:29 GMT ms-cv: - - SVmLwbq/t06tiNSYhFTquA.0 + - IWSivLR7gUGGdyWnJaYR6w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 861ms + - 909ms status: code: 201 message: Created @@ -166,7 +165,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -177,15 +176,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:23 GMT + - Fri, 04 Dec 2020 19:20:32 GMT ms-cv: - - PcQGvGfEt0e7eu8HLPFAfg.0 + - bREu3gFgE0eSSBdgIyQUjA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 696ms + - 1116ms status: code: 201 message: Created @@ -203,7 +202,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: @@ -213,13 +212,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:29:24 GMT + - Fri, 04 Dec 2020 19:20:32 GMT ms-cv: - - 3czilnpjLU+ZoZMuPsezYQ.0 + - Fn/to4n7ZEenSrRp+koBGA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 647ms + - 706ms status: code: 204 message: No Content @@ -235,9 +234,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:29:24 GMT + - Fri, 04 Dec 2020 19:20:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -249,11 +248,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:29:40 GMT + - Fri, 04 Dec 2020 19:20:48 GMT ms-cv: - - gDTG9Rs5fkqnFqivKAR8oA.0 + - cVa9baZuVUm0hSDQMjvxJQ.0 x-processing-time: - - 15864ms + - 16375ms status: code: 204 message: No Content @@ -269,9 +268,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:29:40 GMT + - Fri, 04 Dec 2020 19:20:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -283,11 +282,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:29:57 GMT + - Fri, 04 Dec 2020 19:21:04 GMT ms-cv: - - r2U9G8TXE0qpYn1Mg/lf5Q.0 + - EB2WsHfqIkGAnIR8iZALkA.0 x-processing-time: - - 16769ms + - 15844ms status: code: 204 message: No Content @@ -303,7 +302,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -313,13 +312,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:29:57 GMT + - Fri, 04 Dec 2020 19:21:05 GMT ms-cv: - - KMY6wxR01keuFPGjUL0M4A.0 + - JcCxOBzqvk+l4soVKD+SSQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 342ms + - 325ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml index efd13585da1c..27a15ce95f2d 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:29:58 GMT + - Fri, 04 Dec 2020 19:21:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:57 GMT + - Fri, 04 Dec 2020 19:21:05 GMT ms-cv: - - 6FvWkQjgmEaa8e3sfjfU0A.0 + - QuQ1x/oiR0mJtbiEdtIoVA.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 153ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:29:58 GMT + - Fri, 04 Dec 2020 19:21:06 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:29:58.0124434+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:21:05.4107581+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:58 GMT + - Fri, 04 Dec 2020 19:21:05 GMT ms-cv: - - O+wr+Q5eh06Gxc5SCmIotw.0 + - v6Zui51lh0CfBx2/w8enZQ.0 transfer-encoding: - chunked x-processing-time: - - 303ms + - 302ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:29:59 GMT + - Fri, 04 Dec 2020 19:21:06 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:58 GMT + - Fri, 04 Dec 2020 19:21:05 GMT ms-cv: - - PSLziG1+B0GFeJ+0dkzvKQ.0 + - ZP2h/eMfrU6mmgBIefnkcA.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 155ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:29:59Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20d-8471-d67a-5a3a0d0001c0", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:f18ea01c15a140e2bdcb907dd02d17bc@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:21:07Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf15-08ee-d67a-5a3a0d00030d"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:59 GMT + - Fri, 04 Dec 2020 19:21:07 GMT ms-cv: - - LGKB+K2LOU2iJwjukuvcXg.0 + - P+cuV0L6AU6zXEB22eej+w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1116ms + - 1196ms status: code: 201 message: Created @@ -165,7 +164,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -175,13 +174,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:30:01 GMT + - Fri, 04 Dec 2020 19:21:07 GMT ms-cv: - - 7BSP98ULYk2qUVjneKqs8A.0 + - pkZAPfwy+ESXElSzF+7nMA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 386ms + - 435ms status: code: 204 message: No Content @@ -197,9 +196,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:30:01 GMT + - Fri, 04 Dec 2020 19:21:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -211,11 +210,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:30:17 GMT + - Fri, 04 Dec 2020 19:21:24 GMT ms-cv: - - OcPauDoyr0CcNDEVhh4kUw.0 + - Ca7rxXzdCUGI73zXqpTAsQ.0 x-processing-time: - - 16699ms + - 16034ms status: code: 204 message: No Content @@ -231,9 +230,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:30:17 GMT + - Fri, 04 Dec 2020 19:21:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -245,11 +244,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:30:33 GMT + - Fri, 04 Dec 2020 19:21:40 GMT ms-cv: - - fYvM12YEbUW0FgYUBTdv1Q.0 + - X+RRVeJ1SEO5d05a96JhZA.0 x-processing-time: - - 16018ms + - 15949ms status: code: 204 message: No Content @@ -265,7 +264,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -275,13 +274,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:30:34 GMT + - Fri, 04 Dec 2020 19:21:40 GMT ms-cv: - - TyNx8N9ZwUyIwcq97aPzvA.0 + - 9gvg5Bb6KEaPFOoT2w8FxA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 294ms + - 549ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml index d76db2ff4760..81fac87bb393 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:30:34 GMT + - Fri, 04 Dec 2020 19:21:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:30:34 GMT + - Fri, 04 Dec 2020 19:21:41 GMT ms-cv: - - cvnmKZiNuk6BFwK9Nz8r8g.0 + - 2LorrreVVE2CPWLquj9yQA.0 transfer-encoding: - chunked x-processing-time: - - 190ms + - 227ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:30:35 GMT + - Fri, 04 Dec 2020 19:21:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:30:34.8754582+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:21:41.755253+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:30:34 GMT + - Fri, 04 Dec 2020 19:21:42 GMT ms-cv: - - daiJmDCJH0ebe0tSPhzXKA.0 + - CCBXNXMRF0KzkrCmTk/k0g.0 transfer-encoding: - chunked x-processing-time: - - 757ms + - 610ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:30:35 GMT + - Fri, 04 Dec 2020 19:21:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:30:36 GMT + - Fri, 04 Dec 2020 19:21:42 GMT ms-cv: - - 0b0GEzY/1ES9yhEGsKYVnQ.0 + - lw9pC3bmQEm6MxFLL1nw1Q.0 transfer-encoding: - chunked x-processing-time: - - 148ms + - 146ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:30:36Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20e-12ae-b274-5a3a0d000129", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:f58d0ab0c88941a092c22271aad09852@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:21:43Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf15-958c-b274-5a3a0d00030a"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:30:36 GMT - ms-cv: 8RAmsd5Z00eynKICNh6htQ.0 + date: Fri, 04 Dec 2020 19:21:43 GMT + ms-cv: izfainGH9UultFKJlJtcKQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 819ms + x-processing-time: 881ms status: code: 201 message: Created @@ -151,19 +150,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: - body: - string: '' + body: '{}' headers: api-supported-versions: 2020-11-01-preview3 - content-length: '0' - date: Thu, 26 Nov 2020 01:30:37 GMT - ms-cv: xR3KT//8d0WtEd8OEVKNtw.0 + content-type: application/json; charset=utf-8 + date: Fri, 04 Dec 2020 19:21:44 GMT + ms-cv: c7AfQKgibUSTJwojfLjZNg.0 strict-transport-security: max-age=2592000 - x-processing-time: 860ms + transfer-encoding: chunked + x-processing-time: 422ms status: code: 201 message: Created @@ -174,7 +173,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -182,10 +181,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:30:38 GMT - ms-cv: 4IfY5xcLfEimFoVjDa56GQ.0 + date: Fri, 04 Dec 2020 19:21:45 GMT + ms-cv: /hoy1W/onUiMQgMnhUYA6A.0 strict-transport-security: max-age=2592000 - x-processing-time: 304ms + x-processing-time: 846ms status: code: 204 message: No Content @@ -202,9 +201,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:30:38 GMT + - Fri, 04 Dec 2020 19:21:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -216,11 +215,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:30:54 GMT + - Fri, 04 Dec 2020 19:22:02 GMT ms-cv: - - an+Y7NjiwEGHg1hciwZutA.0 + - VI1U3CC7bkqInLyODx/afQ.0 x-processing-time: - - 16189ms + - 17077ms status: code: 204 message: No Content @@ -236,9 +235,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:30:54 GMT + - Fri, 04 Dec 2020 19:22:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -250,11 +249,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:31:10 GMT + - Fri, 04 Dec 2020 19:22:18 GMT ms-cv: - - QQOQ33KEJ0igmUuz/Ru1nA.0 + - x7BQE3LbpkiYqQWc5q1dMA.0 x-processing-time: - - 16730ms + - 15836ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml index e5ea7794f4e1..0f90a14f4057 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:31:11 GMT + - Fri, 04 Dec 2020 19:22:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:31:11 GMT + - Fri, 04 Dec 2020 19:22:18 GMT ms-cv: - - siyNuR1A8Uab0RkHyAlqcQ.0 + - i3AuTmSmn0q9WnGX9fA1QQ.0 transfer-encoding: - chunked x-processing-time: - - 198ms + - 199ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:31:12 GMT + - Fri, 04 Dec 2020 19:22:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:31:11.5151238+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:22:18.1425741+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:31:11 GMT + - Fri, 04 Dec 2020 19:22:19 GMT ms-cv: - - GjXwMs1P+U+a0SDP9bffsw.0 + - 9wdv++LAH0mgaXrr/tDozg.0 transfer-encoding: - chunked x-processing-time: - - 310ms + - 613ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:31:12 GMT + - Fri, 04 Dec 2020 19:22:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:31:11 GMT + - Fri, 04 Dec 2020 19:22:19 GMT ms-cv: - - p94jcl5bHECnSv4hq3L0RA.0 + - kTMO2CNqkUiKg9bc1qz4jQ.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 157ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:31:13Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20e-a386-d67a-5a3a0d0001c2", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:45d4d6be07cc439fb70bdaf9b905e520@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:22:20Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf16-27c8-557d-5a3a0d000469"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:31:13 GMT - ms-cv: diW0SYWc90WNmugc28HlFQ.0 + date: Fri, 04 Dec 2020 19:22:21 GMT + ms-cv: dQx9iniFREG9KCyLYteV9Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 828ms + x-processing-time: 886ms status: code: 201 message: Created @@ -151,19 +150,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: - body: - string: '' + body: '{}' headers: api-supported-versions: 2020-11-01-preview3 - content-length: '0' - date: Thu, 26 Nov 2020 01:31:14 GMT - ms-cv: Ce6UfXXIukG9puEZuIugrQ.0 + content-type: application/json; charset=utf-8 + date: Fri, 04 Dec 2020 19:22:21 GMT + ms-cv: NeVYJ4578E6+7UVCqHdtSg.0 strict-transport-security: max-age=2592000 - x-processing-time: 398ms + transfer-encoding: chunked + x-processing-time: 473ms status: code: 201 message: Created @@ -174,7 +173,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -182,10 +181,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:31:14 GMT - ms-cv: TDBjboMDyEyEdtD+D/peDw.0 + date: Fri, 04 Dec 2020 19:22:22 GMT + ms-cv: SHC7D0cDJk6ib6AndpvSEA.0 strict-transport-security: max-age=2592000 - x-processing-time: 340ms + x-processing-time: 339ms status: code: 204 message: No Content @@ -202,9 +201,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:31:14 GMT + - Fri, 04 Dec 2020 19:22:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -216,11 +215,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:31:30 GMT + - Fri, 04 Dec 2020 19:22:38 GMT ms-cv: - - 6lyL+ObKy021r/HPY7P2Jg.0 + - yvUsum1HDUu5YOBMVanEIw.0 x-processing-time: - - 16332ms + - 16329ms status: code: 204 message: No Content @@ -236,9 +235,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:31:31 GMT + - Fri, 04 Dec 2020 19:22:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -250,11 +249,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:31:47 GMT + - Fri, 04 Dec 2020 19:22:54 GMT ms-cv: - - ZxtyVQPb8UWOGIEDTW3VHg.0 + - HOhu3r71oEKl3jGZ8i9xTw.0 x-processing-time: - - 16620ms + - 16424ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml index 67ac37685204..474328f1a21e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:31:47 GMT + - Fri, 04 Dec 2020 19:22:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:31:48 GMT + - Fri, 04 Dec 2020 19:22:55 GMT ms-cv: - - E0kfk2LnzEmIwwqQFf1SAw.0 + - OjbRiE/LhEODqGDqFA+rCw.0 transfer-encoding: - chunked x-processing-time: - - 315ms + - 147ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:31:48 GMT + - Fri, 04 Dec 2020 19:22:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:31:47.8855465+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:22:55.4453735+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:31:48 GMT + - Fri, 04 Dec 2020 19:22:55 GMT ms-cv: - - fPlQdobqJE+2Ghq/o7C3jw.0 + - Op65QnqN4USY/umg4JWxJw.0 transfer-encoding: - chunked x-processing-time: - - 389ms + - 307ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:31:48 GMT + - Fri, 04 Dec 2020 19:22:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:31:48 GMT + - Fri, 04 Dec 2020 19:22:56 GMT ms-cv: - - Is5VPhK6MUGiOavucGXV1w.0 + - 4DVqr9m4OUmb2cyfXNmQkw.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 157ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:31:49Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20f-3156-ea7c-5a3a0d000126", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:75d97b8804224f23b1c22ad659ebb7ed@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:22:57Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf16-b6c2-8a72-5a3a0d000353"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:31:49 GMT - ms-cv: 4EQ2dApNHE+7E/Y0/KnG8w.0 + date: Fri, 04 Dec 2020 19:22:56 GMT + ms-cv: 2BCjv5Bkek6RycAYy1oApw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1313ms + x-processing-time: 894ms status: code: 201 message: Created @@ -152,7 +151,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -160,11 +159,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:31:51 GMT - ms-cv: Azyo2mbep0G21oRxK4H5Eg.0 + date: Fri, 04 Dec 2020 19:22:58 GMT + ms-cv: G3kCbuUfc0GHAeHbro/GTA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1021ms + x-processing-time: 1154ms status: code: 201 message: Created @@ -175,7 +174,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: @@ -183,10 +182,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:31:52 GMT - ms-cv: BKUM4J/qlkylC4La7rM3xQ.0 + date: Fri, 04 Dec 2020 19:22:59 GMT + ms-cv: PYDanOAcJki/iH1OU/BNTQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 398ms + x-processing-time: 433ms status: code: 204 message: No Content @@ -197,7 +196,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -205,10 +204,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:31:51 GMT - ms-cv: 8mhKaV9jr0ykGTyFuMcQPw.0 + date: Fri, 04 Dec 2020 19:22:59 GMT + ms-cv: r5AjMI0V10eTwkmPL5RVRQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 291ms + x-processing-time: 341ms status: code: 204 message: No Content @@ -225,9 +224,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:31:52 GMT + - Fri, 04 Dec 2020 19:23:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -239,11 +238,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:32:10 GMT + - Fri, 04 Dec 2020 19:23:16 GMT ms-cv: - - Fv9AOsu5i0mkgl/fDO83aA.0 + - 47M/SEVXPEaTGr2NQ5sLxg.0 x-processing-time: - - 18263ms + - 16177ms status: code: 204 message: No Content @@ -259,9 +258,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:32:11 GMT + - Fri, 04 Dec 2020 19:23:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -273,11 +272,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:32:27 GMT + - Fri, 04 Dec 2020 19:23:31 GMT ms-cv: - - fHBIc+asxEOQh4qvvrLraA.0 + - jzTTrYkt1UOaLYVR+RNW8A.0 x-processing-time: - - 16723ms + - 15941ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml index f77315b416c7..4040ae078763 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:32:27 GMT + - Fri, 04 Dec 2020 19:23:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:32:27 GMT + - Fri, 04 Dec 2020 19:23:32 GMT ms-cv: - - KkFL319PQUuyl3g0vdL2UA.0 + - StJ2O77s9ECuQCOCCIeYQw.0 transfer-encoding: - chunked x-processing-time: - - 137ms + - 204ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:32:28 GMT + - Fri, 04 Dec 2020 19:23:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:32:27.8098648+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:23:32.2067497+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:32:28 GMT + - Fri, 04 Dec 2020 19:23:33 GMT ms-cv: - - JGeP7DAilUSbxjr9giGQRg.0 + - w6RWnFRD6Emlw0rCwVCsLA.0 transfer-encoding: - chunked x-processing-time: - - 300ms + - 312ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:32:28 GMT + - Fri, 04 Dec 2020 19:23:33 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:32:28 GMT + - Fri, 04 Dec 2020 19:23:33 GMT ms-cv: - - 2n803HlffkKEUMXpkzoHTA.0 + - b9EAP1/PmUSnx4z+JfKJWg.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 152ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:32:29Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20f-cd91-8a72-5a3a0d0000de", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:ba21b6b0572c4ac3a929a2cc9f859eae@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:23:33Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf17-464f-8a72-5a3a0d000355"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:32:30 GMT - ms-cv: rHpGfRDitUSORdbQjV5NtQ.0 + date: Fri, 04 Dec 2020 19:23:33 GMT + ms-cv: sHAWzqSkIUCB7X46in4thA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 830ms + x-processing-time: 891ms status: code: 201 message: Created @@ -152,7 +151,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -160,11 +159,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:32:30 GMT - ms-cv: 5EL9YGpEKkCqTGgN46+mxA.0 + date: Fri, 04 Dec 2020 19:23:35 GMT + ms-cv: 4DHRla+JP063fmFfGhKzuQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 747ms + x-processing-time: 691ms status: code: 201 message: Created @@ -175,21 +174,21 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1606354350532", - "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-11-26T01:32:30Z", + body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1607109814877", + "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-12-04T19:23:34Z", "senderId": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:32:31 GMT - ms-cv: Cd8GfPYrEEOqHZIOSv5tKg.0 + date: Fri, 04 Dec 2020 19:23:35 GMT + ms-cv: 9FCYEV6oUkOqUA8jWrbz6g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 287ms + x-processing-time: 264ms status: code: 200 message: OK @@ -200,7 +199,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -208,10 +207,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:32:31 GMT - ms-cv: WwLvD7e6YUSygUuast1GHQ.0 + date: Fri, 04 Dec 2020 19:23:35 GMT + ms-cv: AI3FuuNdjkiZziCVbffCmg.0 strict-transport-security: max-age=2592000 - x-processing-time: 285ms + x-processing-time: 328ms status: code: 204 message: No Content @@ -228,9 +227,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:32:31 GMT + - Fri, 04 Dec 2020 19:23:36 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -242,11 +241,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:32:48 GMT + - Fri, 04 Dec 2020 19:23:52 GMT ms-cv: - - T2GYRZ5aDk+fs+K10t/JlA.0 + - 3MqGz2FCMUafp1C5q4NhOg.0 x-processing-time: - - 16657ms + - 16347ms status: code: 204 message: No Content @@ -262,9 +261,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:32:48 GMT + - Fri, 04 Dec 2020 19:23:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -276,11 +275,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:33:04 GMT + - Fri, 04 Dec 2020 19:24:08 GMT ms-cv: - - tTyzwTrLxkOKEVqtIdrLSg.0 + - MPRsw0n63UCNlGY5+fhrMw.0 x-processing-time: - - 16505ms + - 16432ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml index 1291eb9c0339..08b15623a406 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:33:05 GMT + - Fri, 04 Dec 2020 19:24:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:33:04 GMT + - Fri, 04 Dec 2020 19:24:08 GMT ms-cv: - - SzMURT8+80Cs/aGlxMbIxA.0 + - aHfL2y5OmUS88T26MLAWfw.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 150ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:33:05 GMT + - Fri, 04 Dec 2020 19:24:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:33:04.8467433+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:24:08.949685+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:33:04 GMT + - Fri, 04 Dec 2020 19:24:09 GMT ms-cv: - - nd4GBu+14UyPRR4cjpycrA.0 + - TmlRwrN9Y0mT6dfZflon+g.0 transfer-encoding: - chunked x-processing-time: - - 342ms + - 303ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:33:05 GMT + - Fri, 04 Dec 2020 19:24:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:33:05 GMT + - Fri, 04 Dec 2020 19:24:09 GMT ms-cv: - - L2l2f0QRbk+/WoGUDSce7g.0 + - obi74jvLPkisWVivhsFl4g.0 transfer-encoding: - chunked x-processing-time: - - 146ms + - 152ms status: code: 200 message: OK @@ -118,25 +118,24 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '205' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:33:06Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a210-5e28-d67a-5a3a0d0001c6", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:9af3d307649347cd98b07121b2cc78a3@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:24:10Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf17-d5f0-ea7c-5a3a0d0003cc"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:06 GMT - ms-cv: S24MhqU7U0asqkuzdWPndQ.0 + date: Fri, 04 Dec 2020 19:24:10 GMT + ms-cv: xctmjTmTnUmhw/zAM0tUlw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 838ms + x-processing-time: 887ms status: code: 201 message: Created @@ -152,7 +151,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -160,11 +159,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:07 GMT - ms-cv: bDGQj7B5A0uLjthqKV2/2Q.0 + date: Fri, 04 Dec 2020 19:24:11 GMT + ms-cv: +yxteLB7b0yLRxfyEd3yRQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 729ms + x-processing-time: 666ms status: code: 201 message: Created @@ -175,99 +174,99 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:09 GMT - ms-cv: rlEto5Ze7kGF4N9aex4EEw.0 + date: Fri, 04 Dec 2020 19:24:13 GMT + ms-cv: 2J8kUBHwXkeZPTCF2CfXeQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 268ms + x-processing-time: 262ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?$maxpagesize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:10 GMT - ms-cv: S5yCOK+gXUm3nyjyKn1s1g.0 + date: Fri, 04 Dec 2020 19:24:13 GMT + ms-cv: MnpbfSaSVkSW9batJVDbGg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 357ms + x-processing-time: 364ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:10 GMT - ms-cv: ICHqAILSYkCDIPoEMP6L5A.0 + date: Fri, 04 Dec 2020 19:24:14 GMT + ms-cv: gKTRy9qJmkeSZ+7agERCvQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 368ms + x-processing-time: 358ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:10 GMT - ms-cv: /zr2u9jn902Xwm4a62xszA.0 + date: Fri, 04 Dec 2020 19:24:14 GMT + ms-cv: HsoLTOjDTUmJW/OyccpTYA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 357ms + x-processing-time: 355ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -275,10 +274,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:33:11 GMT - ms-cv: SvgyDqrx/kaRAnKxBmIbqg.0 + date: Fri, 04 Dec 2020 19:24:15 GMT + ms-cv: 0ZJQy433EE64ze1d8X0Oow.0 strict-transport-security: max-age=2592000 - x-processing-time: 294ms + x-processing-time: 325ms status: code: 204 message: No Content @@ -295,9 +294,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:33:12 GMT + - Fri, 04 Dec 2020 19:24:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -309,11 +308,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:33:28 GMT + - Fri, 04 Dec 2020 19:24:31 GMT ms-cv: - - l+qbq/n5N0GBkkLEKNYi9Q.0 + - 8AjS8w4q/0OQdRpYnRoceQ.0 x-processing-time: - - 16209ms + - 16408ms status: code: 204 message: No Content @@ -329,9 +328,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:33:28 GMT + - Fri, 04 Dec 2020 19:24:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -343,11 +342,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:33:43 GMT + - Fri, 04 Dec 2020 19:24:48 GMT ms-cv: - - K+9l+OPQUkW1e+3cKQfiFw.0 + - gX6lMPjOL0S+sZ+RnaJg8w.0 x-processing-time: - - 16048ms + - 15845ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml index f162f3630d5f..c769a6dc288e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:33:44 GMT + - Fri, 04 Dec 2020 19:24:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:33:44 GMT + - Fri, 04 Dec 2020 19:24:48 GMT ms-cv: - - y0vL8iGu9kSISUXgKL1SJQ.0 + - PSId7cm0rE2ik6M198zOUQ.0 transfer-encoding: - chunked x-processing-time: - - 146ms + - 144ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:33:44 GMT + - Fri, 04 Dec 2020 19:24:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:33:44.2419698+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:24:48.7841888+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:33:45 GMT + - Fri, 04 Dec 2020 19:24:49 GMT ms-cv: - - vJ/qIPfn2Eqa4DKO12rVWQ.0 + - ljsg/8LD9E+O5nrcD/aguw.0 transfer-encoding: - chunked x-processing-time: - - 300ms + - 798ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:33:45 GMT + - Fri, 04 Dec 2020 19:24:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,9 +102,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:33:45 GMT + - Fri, 04 Dec 2020 19:24:49 GMT ms-cv: - - H7rgAX/6NkCh0C+eYIpUwA.0 + - Kd7UYBRhK0aMj3+9elVOIg.0 transfer-encoding: - chunked x-processing-time: @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:33:45Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a210-f826-557d-5a3a0d0000e7", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:bcca59cb518a4a78a7d9b06bdb8c3d60@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:24:50Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf18-6f96-b274-5a3a0d00030f"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:46 GMT - ms-cv: 8Zq+55ejRUi28uPej8ipFQ.0 + date: Fri, 04 Dec 2020 19:24:50 GMT + ms-cv: sFAGJpIJOUqJx49W9KuLag.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 838ms + x-processing-time: 883ms status: code: 201 message: Created @@ -147,7 +146,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: @@ -155,11 +154,11 @@ interactions: headers: api-supported-versions: 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:46 GMT - ms-cv: QsPk8Ayoik2kO6GzEByDsA.0 + date: Fri, 04 Dec 2020 19:24:50 GMT + ms-cv: TU8IpbjMrUOfTH+7DQXSCg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 728ms + x-processing-time: 270ms status: code: 200 message: OK @@ -170,7 +169,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -178,10 +177,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:33:47 GMT - ms-cv: WgRInbZhnUOfEkcuwLWyNA.0 + date: Fri, 04 Dec 2020 19:24:51 GMT + ms-cv: HGgkycA/q0exPtN7DLbpZw.0 strict-transport-security: max-age=2592000 - x-processing-time: 287ms + x-processing-time: 321ms status: code: 204 message: No Content @@ -198,9 +197,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:33:47 GMT + - Fri, 04 Dec 2020 19:24:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -212,11 +211,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:34:03 GMT + - Fri, 04 Dec 2020 19:25:07 GMT ms-cv: - - aLdr7oRxr0+SNMWVdcNlUA.0 + - 3+Q62LYrDEicM7fzscVa/w.0 x-processing-time: - - 16341ms + - 16255ms status: code: 204 message: No Content @@ -232,9 +231,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:34:04 GMT + - Fri, 04 Dec 2020 19:25:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -246,11 +245,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:34:19 GMT + - Fri, 04 Dec 2020 19:25:23 GMT ms-cv: - - DNV9Hc695k2+c1TiUkkboA.0 + - P+cmC1KbUUuWkV9pZU11mw.0 x-processing-time: - - 16170ms + - 15938ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml index 9d39f15c1181..05cf5793ba27 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:34:20 GMT + - Fri, 04 Dec 2020 19:25:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:34:19 GMT + - Fri, 04 Dec 2020 19:25:24 GMT ms-cv: - - qVG5DfgLr02fVLBrSp2pHA.0 + - LlD8ja16g0KbfO8ukVHr4A.0 transfer-encoding: - chunked x-processing-time: - - 143ms + - 149ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:34:20 GMT + - Fri, 04 Dec 2020 19:25:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:34:20.1917523+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:25:24.2319596+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:34:20 GMT + - Fri, 04 Dec 2020 19:25:24 GMT ms-cv: - - HO/kaOsySkaNaxovpPkIAQ.0 + - UD93ffCE7UWOco7Ubk+Q+w.0 transfer-encoding: - chunked x-processing-time: - - 298ms + - 311ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:34:21 GMT + - Fri, 04 Dec 2020 19:25:25 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:34:20 GMT + - Fri, 04 Dec 2020 19:25:25 GMT ms-cv: - - 0HiCWJ+NJ0G+2SahcNmLlA.0 + - SzQ1yuUZsUangzl8LV3TDw.0 transfer-encoding: - chunked x-processing-time: - - 150ms + - 154ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:34:21Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a211-8498-557d-5a3a0d0000e9", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:1cd4d2571f7e4a6c9ad4291334ed33e7@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:25:25Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf18-fbe9-ea7c-5a3a0d0003ce"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:34:21 GMT - ms-cv: rew/+Eh1NE+0AgM80oNhqg.0 + date: Fri, 04 Dec 2020 19:25:26 GMT + ms-cv: wuDbu2YwRECy5MreIUO6pQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 830ms + x-processing-time: 894ms status: code: 201 message: Created @@ -152,7 +151,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -160,11 +159,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:34:22 GMT - ms-cv: VSZeo9bdgkGAMCBRF6JuoA.0 + date: Fri, 04 Dec 2020 19:25:26 GMT + ms-cv: jERglIIS20SILNh0hz0mxA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 729ms + x-processing-time: 1056ms status: code: 201 message: Created @@ -179,53 +178,53 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Thu, 26 Nov 2020 01:34:23 GMT - ms-cv: ajcsQu2gVkmlpbvy5kJSxA.0 + date: Fri, 04 Dec 2020 19:25:28 GMT + ms-cv: rrMpMrnkMkqWz0494etB/g.0 strict-transport-security: max-age=2592000 - x-processing-time: 673ms + x-processing-time: 1064ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:34:25 GMT - ms-cv: vHRuIcrR00G3VL8egyCwDQ.0 + date: Fri, 04 Dec 2020 19:25:30 GMT + ms-cv: ZDbkB4nGlk2xb6aFCGdqaA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 254ms + x-processing-time: 259ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -233,10 +232,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:34:26 GMT - ms-cv: zc7Jrp5E50qsSlzLpPuNsg.0 + date: Fri, 04 Dec 2020 19:25:31 GMT + ms-cv: bwau2l2CAkarkyGspUOgZQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 293ms + x-processing-time: 333ms status: code: 204 message: No Content @@ -253,9 +252,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:34:26 GMT + - Fri, 04 Dec 2020 19:25:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -267,11 +266,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:34:42 GMT + - Fri, 04 Dec 2020 19:25:47 GMT ms-cv: - - XQ8vkqFun0WcYBPV9F++/g.0 + - +BcctCYB/kak5Jvnu0b2Dw.0 x-processing-time: - - 16141ms + - 16517ms status: code: 204 message: No Content @@ -287,9 +286,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:34:43 GMT + - Fri, 04 Dec 2020 19:25:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -301,11 +300,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:34:58 GMT + - Fri, 04 Dec 2020 19:26:04 GMT ms-cv: - - KV556O+jUkmHGylV2zWLgQ.0 + - a95dFsS+JUCzOS+LYdnFEw.0 x-processing-time: - - 16302ms + - 15983ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml index d21134bec2be..8cfa91362e0a 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:34:59 GMT + - Fri, 04 Dec 2020 19:26:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:34:59 GMT + - Fri, 04 Dec 2020 19:26:04 GMT ms-cv: - - oQrZbF4GQEypiqfU08s+9w.0 + - fE/lvcKa8029Of1xN7re0Q.0 transfer-encoding: - chunked x-processing-time: - - 142ms + - 159ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:34:59 GMT + - Fri, 04 Dec 2020 19:26:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:34:58.1634305+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:26:04.2129269+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:34:59 GMT + - Fri, 04 Dec 2020 19:26:04 GMT ms-cv: - - n5c2h2z7Vk+4gzHWj68zxA.0 + - ZB6N27gWpE6HT9a80yJGZA.0 transfer-encoding: - chunked x-processing-time: - - 310ms + - 307ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:35:00 GMT + - Fri, 04 Dec 2020 19:26:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:35:00 GMT + - Fri, 04 Dec 2020 19:26:04 GMT ms-cv: - - FQK3oL3EG0GsKEqJWVt5Rw.0 + - G20Y+0kt20SVPifcklb85g.0 transfer-encoding: - chunked x-processing-time: - - 146ms + - 149ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:35:00Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a212-1ccd-d67a-5a3a0d0001cb", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:7c78cb5b9ecd471b8adc8cb455aa6de3@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:26:05Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf19-9829-557d-5a3a0d00046d"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:35:01 GMT - ms-cv: RRYgCrWY1ESu0YFD1duVQQ.0 + date: Fri, 04 Dec 2020 19:26:05 GMT + ms-cv: gYBS7Q0yhka1j1temIJssw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 886ms + x-processing-time: 895ms status: code: 201 message: Created @@ -151,19 +150,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: - body: - string: '' + body: '{}' headers: api-supported-versions: 2020-11-01-preview3 - content-length: '0' - date: Thu, 26 Nov 2020 01:35:02 GMT - ms-cv: edYRbuxHsUuOg0JW27TZKQ.0 + content-type: application/json; charset=utf-8 + date: Fri, 04 Dec 2020 19:26:07 GMT + ms-cv: TT+sl9OYlkOlXIIOQki5kw.0 strict-transport-security: max-age=2592000 - x-processing-time: 403ms + transfer-encoding: chunked + x-processing-time: 938ms status: code: 201 message: Created @@ -174,29 +173,29 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a212-1f00-d67a-5a3a0d0001cc?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf19-9a6b-557d-5a3a0d00046e?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:35:02 GMT - ms-cv: 0fKc3/555kKjnjYNQmwzRQ.0 + date: Fri, 04 Dec 2020 19:26:07 GMT + ms-cv: uLsygXAqeE+Tn7JfRoTU0g.0 strict-transport-security: max-age=2592000 - x-processing-time: 450ms + x-processing-time: 526ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a212-1f00-d67a-5a3a0d0001cc?api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf19-9a6b-557d-5a3a0d00046e?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -204,10 +203,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:35:02 GMT - ms-cv: m6iUQzJRZEG611S2pDe/2Q.0 + date: Fri, 04 Dec 2020 19:26:07 GMT + ms-cv: NUAEQKuZfE+3RaGlNzrQVg.0 strict-transport-security: max-age=2592000 - x-processing-time: 294ms + x-processing-time: 326ms status: code: 204 message: No Content @@ -224,9 +223,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:35:02 GMT + - Fri, 04 Dec 2020 19:26:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -238,11 +237,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:35:18 GMT + - Fri, 04 Dec 2020 19:26:25 GMT ms-cv: - - ZbmySYRAHU6qAiF6JsWz8Q.0 + - RLGu939N30yTQq3b8brghQ.0 x-processing-time: - - 16366ms + - 16824ms status: code: 204 message: No Content @@ -258,9 +257,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:35:19 GMT + - Fri, 04 Dec 2020 19:26:25 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -272,11 +271,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:35:35 GMT + - Fri, 04 Dec 2020 19:26:40 GMT ms-cv: - - tVMr8+mtWU6LZG7uF/yihA.0 + - PeGnnZ0idUeivWvkYojpHw.0 x-processing-time: - - 15791ms + - 15683ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml index ebdeb24bcff2..c07cfe27547b 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:35:35 GMT + - Fri, 04 Dec 2020 19:26:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:35:35 GMT + - Fri, 04 Dec 2020 19:26:40 GMT ms-cv: - - J7gqJw6bRkCsHfgyy/oTjA.0 + - PYeCyIKn2E2hina5ocVIQQ.0 transfer-encoding: - chunked x-processing-time: - - 149ms + - 206ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:35:35 GMT + - Fri, 04 Dec 2020 19:26:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:35:35.1844546+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:26:41.0655577+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:35:36 GMT + - Fri, 04 Dec 2020 19:26:41 GMT ms-cv: - - BZDCih5O9k6HnxFKf68K3g.0 + - zHXXYAN5u0Ge5CIUxUWpAw.0 transfer-encoding: - chunked x-processing-time: - - 301ms + - 310ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:35:36 GMT + - Fri, 04 Dec 2020 19:26:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:35:36 GMT + - Fri, 04 Dec 2020 19:26:41 GMT ms-cv: - - YQNACfJlA0qC3+bhjRWniQ.0 + - 168b4s8ORE+eiblctoiaAA.0 transfer-encoding: - chunked x-processing-time: - - 144ms + - 153ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:35:36Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a212-a997-d67a-5a3a0d0001cd", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:5f195147edd54595b99d20fe513f316b@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:26:42Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1a-2818-b274-5a3a0d000313"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:35:36 GMT - ms-cv: Pc4d/2p2pE+ndamI7Q/yyw.0 + date: Fri, 04 Dec 2020 19:26:42 GMT + ms-cv: biVPWSsF70+maGUz00AMKA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 836ms + x-processing-time: 896ms status: code: 201 message: Created @@ -152,7 +151,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -160,11 +159,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:35:38 GMT - ms-cv: jesVyMlSfkShPs3vk9dWTw.0 + date: Fri, 04 Dec 2020 19:26:44 GMT + ms-cv: c3GuNnniAE2GQfMvcWSUng.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 713ms + x-processing-time: 1123ms status: code: 201 message: Created @@ -175,7 +174,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -183,10 +182,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:35:38 GMT - ms-cv: 2Zyr3xwjbEOSZuQN3pYT2w.0 + date: Fri, 04 Dec 2020 19:26:44 GMT + ms-cv: W3SzP9YC/kuSupXIDbyqfw.0 strict-transport-security: max-age=2592000 - x-processing-time: 291ms + x-processing-time: 334ms status: code: 204 message: No Content @@ -203,9 +202,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:35:38 GMT + - Fri, 04 Dec 2020 19:26:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -217,11 +216,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:35:54 GMT + - Fri, 04 Dec 2020 19:27:00 GMT ms-cv: - - Xdx00sbXlU+b3aOJ8LxyPQ.0 + - adbwYTn3qUmz22bJgefhYQ.0 x-processing-time: - - 16683ms + - 16226ms status: code: 204 message: No Content @@ -237,9 +236,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:35:55 GMT + - Fri, 04 Dec 2020 19:27:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -251,11 +250,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:36:10 GMT + - Fri, 04 Dec 2020 19:27:16 GMT ms-cv: - - HjmmS6PM8E2QVUJev7Im7Q.0 + - q5Eou+B2uEeNsPxtEEr9uQ.0 x-processing-time: - - 15625ms + - 15680ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml index 4fd8fb12eac8..9730e381caeb 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:36:11 GMT + - Fri, 04 Dec 2020 19:27:17 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:36:10 GMT + - Fri, 04 Dec 2020 19:27:17 GMT ms-cv: - - k2q749trqEqL2UDw50CM0A.0 + - 7cg1bKxqlEWlR3kuMTAexw.0 transfer-encoding: - chunked x-processing-time: - - 144ms + - 154ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:36:11 GMT + - Fri, 04 Dec 2020 19:27:17 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:36:10.8133027+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:27:17.0879498+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:36:11 GMT + - Fri, 04 Dec 2020 19:27:18 GMT ms-cv: - - pZs4QVOs1k6SJgcVZ6AXvw.0 + - 4C5k+3aumUuEz7Sc/uZnpA.0 transfer-encoding: - chunked x-processing-time: - - 303ms + - 300ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:36:11 GMT + - Fri, 04 Dec 2020 19:27:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:36:11 GMT + - Fri, 04 Dec 2020 19:27:18 GMT ms-cv: - - 9xvyVE1JsUeIC0/dijFQjA.0 + - kPOAqNrdxkeIFQ0fN9072g.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 149ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:36:12Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a213-34b8-d67a-5a3a0d0001cf", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:bdc8bc04b7cc4d4481e89eae56d4fc39@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:27:19Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1a-b4ce-d67a-5a3a0d000313"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:36:12 GMT - ms-cv: 8kp0E64MxkafYOfwcXKP3Q.0 + date: Fri, 04 Dec 2020 19:27:18 GMT + ms-cv: D+kbytRIG0yHnSyo8rC/EQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 823ms + x-processing-time: 1392ms status: code: 201 message: Created @@ -152,7 +151,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -160,11 +159,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:36:13 GMT - ms-cv: +MnzAI1IZkCAUA7Sw3/RcQ.0 + date: Fri, 04 Dec 2020 19:27:20 GMT + ms-cv: udKnnVGlVkuKbxtKnjk2Ag.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 696ms + x-processing-time: 659ms status: code: 201 message: Created @@ -179,30 +178,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Thu, 26 Nov 2020 01:36:14 GMT - ms-cv: np6O1exdTkmdY6jpelGRCQ.0 + date: Fri, 04 Dec 2020 19:27:21 GMT + ms-cv: /wO2/FiPzkKWRGdgqeq7GQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 1054ms + x-processing-time: 1128ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -210,10 +209,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:36:14 GMT - ms-cv: wVU4WewVYEeim0TbvPteKA.0 + date: Fri, 04 Dec 2020 19:27:22 GMT + ms-cv: odtpEV8inUCy7GUewQwfDQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 291ms + x-processing-time: 332ms status: code: 204 message: No Content @@ -230,9 +229,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:36:15 GMT + - Fri, 04 Dec 2020 19:27:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -244,11 +243,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:36:31 GMT + - Fri, 04 Dec 2020 19:27:38 GMT ms-cv: - - jGmnRPPi4U2r3B5fI2TvAg.0 + - EmF1Leuv7Ue86IvGvRg4ig.0 x-processing-time: - - 16665ms + - 16836ms status: code: 204 message: No Content @@ -264,9 +263,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:36:32 GMT + - Fri, 04 Dec 2020 19:27:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -278,11 +277,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:36:48 GMT + - Fri, 04 Dec 2020 19:27:54 GMT ms-cv: - - bR3F85hcqEGnM3hyhGekCw.0 + - 0ENlv64nvU+eUlg8QioGdw.0 x-processing-time: - - 15998ms + - 16043ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml index 7bc6460edd8a..e9026ca1bb59 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:36:48 GMT + - Fri, 04 Dec 2020 19:27:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:36:48 GMT + - Fri, 04 Dec 2020 19:27:55 GMT ms-cv: - - 5dfd6S68+0ON0FgQKe2BHA.0 + - DCodSNZYW0GwNKj0Bx/MvA.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 149ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:36:48 GMT + - Fri, 04 Dec 2020 19:27:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:36:47.9731258+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:27:55.1655435+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:36:48 GMT + - Fri, 04 Dec 2020 19:27:55 GMT ms-cv: - - ARI2J6FfUUeacfogHwIBuA.0 + - Gm8W8zLf9kawSPfDnBvnhQ.0 transfer-encoding: - chunked x-processing-time: - - 305ms + - 314ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:36:49 GMT + - Fri, 04 Dec 2020 19:27:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:36:48 GMT + - Fri, 04 Dec 2020 19:27:55 GMT ms-cv: - - gOo1oxdvV0iEEMdquiWLnQ.0 + - FceFKQMBHUiy00NAlzYdfw.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 149ms status: code: 200 message: OK @@ -118,25 +118,24 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '205' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:36:49Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a213-c5d3-d67a-5a3a0d0001d1", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:9005bf1c069b4c5695c899e741f73167@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:27:56Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1b-4986-557d-5a3a0d000471"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:36:49 GMT - ms-cv: hVsPHh2h7UCb4zyTr4V09A.0 + date: Fri, 04 Dec 2020 19:27:57 GMT + ms-cv: FqY4XgvXFUK8ae6TBWp15Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 819ms + x-processing-time: 899ms status: code: 201 message: Created @@ -147,7 +146,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 response: @@ -156,10 +155,10 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Thu, 26 Nov 2020 01:36:49 GMT - ms-cv: Ugs6QMBZB0Sa0KjcVdJ/OA.0 + date: Fri, 04 Dec 2020 19:27:57 GMT + ms-cv: vxuW3uLw/kSm1GeYaflboQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 350ms + x-processing-time: 372ms status: code: 200 message: OK @@ -170,7 +169,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -178,10 +177,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:36:50 GMT - ms-cv: jfiKGmFYIkKtmUX49ENjWQ.0 + date: Fri, 04 Dec 2020 19:27:58 GMT + ms-cv: +oNVhhl67EGt6JEAkkcqtQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 293ms + x-processing-time: 326ms status: code: 204 message: No Content @@ -198,9 +197,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:36:51 GMT + - Fri, 04 Dec 2020 19:27:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -212,11 +211,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:37:06 GMT + - Fri, 04 Dec 2020 19:28:14 GMT ms-cv: - - RZoO3HhFo0OwIv5gA1twZA.0 + - D25bmlUbfkiPPFM5QMCmcw.0 x-processing-time: - - 16249ms + - 16838ms status: code: 204 message: No Content @@ -232,9 +231,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:37:07 GMT + - Fri, 04 Dec 2020 19:28:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -246,11 +245,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:37:22 GMT + - Fri, 04 Dec 2020 19:28:31 GMT ms-cv: - - HwAld85ROEuFlUgOzhOl8w.0 + - KM2BeNR6FEyOWTPqQrMUUw.0 x-processing-time: - - 15724ms + - 16017ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml index f87e84004dd7..62221467e485 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:37:23 GMT + - Fri, 04 Dec 2020 19:28:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:37:23 GMT + - Fri, 04 Dec 2020 19:28:31 GMT ms-cv: - - pr4hJTNfY02Ob3HQWgo0+Q.0 + - T9TbWpW1rka8OMAVlaVNkw.0 transfer-encoding: - chunked x-processing-time: - - 193ms + - 154ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:37:23 GMT + - Fri, 04 Dec 2020 19:28:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:37:22.5212159+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:28:31.1868847+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:37:23 GMT + - Fri, 04 Dec 2020 19:28:31 GMT ms-cv: - - Fx82Mbw6nECeET5we1lTmQ.0 + - erjGQPYsxkid0mm/elrD9g.0 transfer-encoding: - chunked x-processing-time: - - 799ms + - 328ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:37:24 GMT + - Fri, 04 Dec 2020 19:28:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:37:24 GMT + - Fri, 04 Dec 2020 19:28:32 GMT ms-cv: - - iZCNwDoNr0aswypDFZtPbw.0 + - aN+2i40YcEuJtTrhNbn3jQ.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 154ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:37:25Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a214-4ec4-557d-5a3a0d0000eb", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:eb17e263799b41e0bdf7af2fec46e31a@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:28:32Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1b-d627-b274-5a3a0d000317"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:37:24 GMT - ms-cv: Jx6RuC+vCUGEGH3W1Rd2uw.0 + date: Fri, 04 Dec 2020 19:28:33 GMT + ms-cv: pzY+7Kl+Ok2m8ZCW8U06iQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 824ms + x-processing-time: 888ms status: code: 201 message: Created @@ -152,7 +151,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -160,11 +159,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:37:26 GMT - ms-cv: s5ds7ENduUW3IcrgyAHc2w.0 + date: Fri, 04 Dec 2020 19:28:33 GMT + ms-cv: IVx5Bu8VqEWgONkw/3y/dQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1189ms + x-processing-time: 918ms status: code: 201 message: Created @@ -179,7 +178,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: @@ -187,10 +186,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:37:27 GMT - ms-cv: ADPtiWXcvUGsA+NIakBLVg.0 + date: Fri, 04 Dec 2020 19:28:34 GMT + ms-cv: 9xhiF+eBykqMdP2L65Ggkg.0 strict-transport-security: max-age=2592000 - x-processing-time: 644ms + x-processing-time: 717ms status: code: 204 message: No Content @@ -201,7 +200,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -209,10 +208,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:37:27 GMT - ms-cv: 89G73Qkbzk2xsrd+NB2pew.0 + date: Fri, 04 Dec 2020 19:28:35 GMT + ms-cv: o/D6W6TaMkmf4U+5V1yeqA.0 strict-transport-security: max-age=2592000 - x-processing-time: 297ms + x-processing-time: 336ms status: code: 204 message: No Content @@ -229,9 +228,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:37:28 GMT + - Fri, 04 Dec 2020 19:28:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -243,11 +242,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:37:44 GMT + - Fri, 04 Dec 2020 19:28:51 GMT ms-cv: - - Do0PbPBpokuzAtYTRVnGEQ.0 + - YcciaYSaIUyK2N16L/defA.0 x-processing-time: - - 16576ms + - 16352ms status: code: 204 message: No Content @@ -263,9 +262,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:37:45 GMT + - Fri, 04 Dec 2020 19:28:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -277,11 +276,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:38:01 GMT + - Fri, 04 Dec 2020 19:29:08 GMT ms-cv: - - 6QuQdG+lOU2AvQ4gESHRCg.0 + - WBSYv1o+QEyYkAgMku+DbA.0 x-processing-time: - - 16160ms + - 16137ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml index 8cbebdb95275..daf500d9214c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:38:01 GMT + - Fri, 04 Dec 2020 19:29:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:38:01 GMT + - Fri, 04 Dec 2020 19:29:08 GMT ms-cv: - - xOTsMZpPDE6VSFdb4pUG9g.0 + - b2nic6Wtk0q5CwAVNlfdIw.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 150ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:38:01 GMT + - Fri, 04 Dec 2020 19:29:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:38:01.2688559+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:29:08.3205817+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:38:01 GMT + - Fri, 04 Dec 2020 19:29:08 GMT ms-cv: - - xAGb2zCDrk2Ic8aWRhHLPg.0 + - 1Hk70V+tskOg9LYEnWteoQ.0 transfer-encoding: - chunked x-processing-time: - - 307ms + - 310ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:38:02 GMT + - Fri, 04 Dec 2020 19:29:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:38:01 GMT + - Fri, 04 Dec 2020 19:29:08 GMT ms-cv: - - Y/yo9RuBmUOZRSjZTQC0oQ.0 + - xYPwAXX090yPgjbeW4ONWQ.0 transfer-encoding: - chunked x-processing-time: - - 146ms + - 148ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:38:02Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a214-e42a-557d-5a3a0d0000ed", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:3fe1fb4fc91e4cc1b4e21946f8f3bee2@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:29:09Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1c-6709-b274-5a3a0d00031b"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:38:03 GMT - ms-cv: ikYbvwWd0EeQKe0qSkCWTw.0 + date: Fri, 04 Dec 2020 19:29:10 GMT + ms-cv: u/519dWn5EyzwvBMmD5rig.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 835ms + x-processing-time: 885ms status: code: 201 message: Created @@ -151,7 +150,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -159,10 +158,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:38:04 GMT - ms-cv: B9zAEHFeoEWGADIp0yKqGQ.0 + date: Fri, 04 Dec 2020 19:29:10 GMT + ms-cv: PDrzeVC4h0amWoO4eQUEeA.0 strict-transport-security: max-age=2592000 - x-processing-time: 402ms + x-processing-time: 446ms status: code: 204 message: No Content @@ -173,7 +172,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -181,10 +180,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:38:04 GMT - ms-cv: cDCCSUJ76kKa8dg8Xs/naA.0 + date: Fri, 04 Dec 2020 19:29:11 GMT + ms-cv: VD0pHpC0JUiRT0MY7Dst2g.0 strict-transport-security: max-age=2592000 - x-processing-time: 297ms + x-processing-time: 340ms status: code: 204 message: No Content @@ -201,9 +200,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:38:04 GMT + - Fri, 04 Dec 2020 19:29:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -215,11 +214,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:38:21 GMT + - Fri, 04 Dec 2020 19:29:28 GMT ms-cv: - - SnhqKrzJHkicq9V0u8C5Dg.0 + - 00UWv5a9eEiDsveb2EZFmA.0 x-processing-time: - - 16662ms + - 16805ms status: code: 204 message: No Content @@ -235,9 +234,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:38:21 GMT + - Fri, 04 Dec 2020 19:29:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -249,11 +248,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:38:36 GMT + - Fri, 04 Dec 2020 19:29:44 GMT ms-cv: - - RFQIEh9xhkaGo9n3KT4dmg.0 + - WclIsNxHUUKLObrFPabXHA.0 x-processing-time: - - 15852ms + - 15941ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client.py b/sdk/communication/azure-communication-chat/tests/test_chat_client.py index 866f86646873..c825464b24ac 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client.py @@ -37,7 +37,14 @@ def test_create_chat_thread(self): raised = False def mock_send(*_, **__): - return mock_response(status_code=201, json_payload={"id": thread_id}) + return mock_response(status_code=201, json_payload={ + "chatThread": { + "id": thread_id, + "topic": "test topic", + "createdOn": "2020-12-03T21:09:17Z", + "createdBy": "8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + } + }) chat_client = ChatClient("https://endpoint", TestChatClient.credential, transport=Mock(send=mock_send)) diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py index 22f515ca53f6..45d18b04be22 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py @@ -32,7 +32,14 @@ async def test_create_chat_thread(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" async def mock_send(*_, **__): - return mock_response(status_code=201, json_payload={"id": thread_id}) + return mock_response(status_code=201, json_payload={ + "chatThread": { + "id": thread_id, + "topic": "test topic", + "createdOn": "2020-12-03T21:09:17Z", + "createdBy": "8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + } + }) chat_client = ChatClient("https://endpoint", credential, transport=Mock(send=mock_send))