diff --git a/sdk/communication/azure-communication-chat/README.md b/sdk/communication/azure-communication-chat/README.md index eaac17633bf5..1205c801ad0e 100644 --- a/sdk/communication/azure-communication-chat/README.md +++ b/sdk/communication/azure-communication-chat/README.md @@ -62,6 +62,15 @@ You can get it by creating a new chat thread using ChatClient: chat_thread_client = chat_client.create_chat_thread(topic, thread_participants) ``` +Additionally, the client can also direct so that the request is repeatable; that is, if the client makes the +request multiple times with the same Repeatability-Request-ID and it will 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. + +```python +chat_thread_client = chat_client.create_chat_thread(topic, thread_participants, repeatability_request_id) +``` + Alternatively, if you have created a chat thread before and you have its thread_id, you can create it by: ```python @@ -141,6 +150,7 @@ Use the `create_chat_thread` method to create a chat thread client object. - Use `topic` to give a thread topic; - Use `thread_participants` to list the `ChatThreadParticipant` to be added to the thread; +- Use `repeatability_request_id` to specify the unique identifier for the request - `user`, required, it is the `CommunicationUser` you created by CommunicationIdentityClient.create_user() from User Access Tokens - `display_name`, optional, is the display name for the thread participant. @@ -149,6 +159,8 @@ Use the `create_chat_thread` method to create a chat thread client object. `ChatThreadClient` is the result returned from creating a thread, you can use it to perform other chat operations to this chat thread ```Python +# Without repeatability_request_id + from azure.communication.chat import ChatThreadParticipant topic = "test topic" thread_participants = [ChatThreadParticipant( @@ -161,6 +173,31 @@ chat_thread_client = chat_client.create_chat_thread(topic, thread_participants) thread_id = chat_thread_client.thread_id ``` +```Python +# With repeatability_request_id + +from azure.communication.chat import ChatThreadParticipant +import uuid + +# modify function to implement customer logic +def get_unique_identifier_for_request(**kwargs): + res = None + # implement custom logic here + res = uuid.uuid4() + return res + +topic = "test topic" +thread_participants = [ChatThreadParticipant( + user='', + display_name='name', + share_history_time=datetime.utcnow() +)] + +chat_thread_client = chat_client.create_chat_thread(topic, thread_participants, repeatability_request_id) +thread_id = chat_thread_client.thread_id +``` + + ### Get a thread The `get_chat_thread` method retrieves a thread from the service. @@ -215,7 +252,7 @@ chat_client.delete_chat_thread(thread_id) Use `send_message` method to sends a message to a thread identified by threadId. - Use `content` to provide the chat message content, it is required -- Use `priority` to specify the message priority level, such as 'Normal' or 'High', if not speficied, 'Normal' will be set +- Use `chat_message_type` to provide the chat message type. Possible values include: `ChatMessageType.TEXT`, `ChatMessageType.HTML`, `ChatMessageType.TOPIC_UPDATED`, `ChatMessageType.PARTICIPANT_ADDED`, `ChatMessageType.PARTICIPANT_REMOVED` - Use `sender_display_name` to specify the display name of the sender, if not specified, empty name will be set `SendChatMessageResult` is the response returned from sending a message, it contains an id, which is the unique ID of the message. @@ -224,10 +261,9 @@ Use `send_message` method to sends a message to a thread identified by threadId. from azure.communication.chat import ChatMessagePriority content='hello world' -priority=ChatMessagePriority.NORMAL sender_display_name='sender name' -send_message_result = chat_thread_client.send_message(content, priority=priority, sender_display_name=sender_display_name) +send_message_result = chat_thread_client.send_message(content, sender_display_name=sender_display_name) ``` ### Get a message diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py index dfbdd67b37de..df75f3fd2efb 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py @@ -2,9 +2,9 @@ from ._chat_client import ChatClient from ._chat_thread_client import ChatThreadClient from ._generated.models import ( - ChatMessagePriority, SendChatMessageResult, ChatThreadInfo, + ChatMessageType ) from ._shared.user_credential import CommunicationUserCredential from ._models import ( @@ -12,6 +12,7 @@ ChatMessage, ChatThread, ChatMessageReadReceipt, + ChatMessageContent ) from ._shared.models import CommunicationUser @@ -19,7 +20,7 @@ 'ChatClient', 'ChatThreadClient', 'ChatMessage', - 'ChatMessagePriority', + 'ChatMessageContent', 'ChatMessageReadReceipt', 'SendChatMessageResult', 'ChatThread', @@ -27,5 +28,6 @@ 'CommunicationUserCredential', 'ChatThreadParticipant', 'CommunicationUser', + 'ChatMessageType' ] __version__ = VERSION 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 45945a5f408b..ebc2d6e6d3f4 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 @@ -4,7 +4,7 @@ # license information. # -------------------------------------------------------------------------- from typing import TYPE_CHECKING - +from uuid import uuid4 try: from urllib.parse import urlparse except ImportError: @@ -120,6 +120,7 @@ def get_chat_thread_client( def create_chat_thread( self, topic, # type: str thread_participants, # type: list[ChatThreadParticipant] + repeatability_request_id=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> ChatThreadClient @@ -129,6 +130,13 @@ def create_chat_thread( :type topic: str :param thread_participants: Required. Participants to be added to the thread. :type thread_participants: list[~azure.communication.chat.ChatThreadParticipant] + :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. If not + specified, a new unique id would be generated. + :type repeatability_request_id: str :return: ChatThreadClient :rtype: ~azure.communication.chat.ChatThreadClient :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -146,13 +154,17 @@ def create_chat_thread( raise ValueError("topic cannot be None.") if not thread_participants: raise ValueError("List of ChatThreadParticipant cannot be None.") + if repeatability_request_id is None: + repeatability_request_id = str(uuid4()) participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access create_thread_request = \ CreateChatThreadRequest(topic=topic, participants=participants) create_chat_thread_result = self._client.chat.create_chat_thread( - create_thread_request, **kwargs) + create_chat_thread_request=create_thread_request, + repeatability_request_id=repeatability_request_id, + **kwargs) if hasattr(create_chat_thread_result, 'errors') and \ create_chat_thread_result.errors is not None: participants = \ 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 35731b414c13..04f10c3c8b7a 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 @@ -20,7 +20,8 @@ SendReadReceiptRequest, SendChatMessageRequest, UpdateChatMessageRequest, - UpdateChatThreadRequest + UpdateChatThreadRequest, + ChatMessageType ) from ._models import ( ChatThreadParticipant, @@ -248,8 +249,9 @@ def send_message( :param content: Required. Chat message content. :type content: str - :keyword priority: Message priority. - :paramtype priority: str or ChatMessagePriority + :param chat_message_type: The chat message type. Possible values include: "text", "html", "participant_added", + "participant_removed", "topic_updated" Default: ChatMessageType.TEXT + :type chat_message_type: str or ~azure.communication.chat.models.ChatMessageType :keyword str sender_display_name: The display name of the message sender. This property is used to populate sender name for push notifications. :keyword callable cls: A custom type or function that will be passed the direct response @@ -269,12 +271,21 @@ def send_message( if not content: raise ValueError("content cannot be None.") - priority = kwargs.pop("priority", None) + chat_message_type = kwargs.pop("chat_message_type", None) + if chat_message_type is None: + chat_message_type = ChatMessageType.TEXT + elif not isinstance(chat_message_type, ChatMessageType): + try: + chat_message_type = ChatMessageType.__getattr__(chat_message_type) # pylint:disable=protected-access + except Exception: + raise ValueError( + "chat_message_type: {message_type} is not acceptable".format(message_type=chat_message_type)) + sender_display_name = kwargs.pop("sender_display_name", None) create_message_request = SendChatMessageRequest( content=content, - priority=priority, + type=chat_message_type, sender_display_name=sender_display_name ) 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 index 7245e4ad5ebd..f4c03ab7678e 100644 --- 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 @@ -69,10 +69,10 @@ async def create_chat_thread( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -140,10 +140,10 @@ def list_chat_threads( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -224,10 +224,10 @@ async def get_chat_thread( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -285,10 +285,10 @@ async def delete_chat_thread( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py index 66b2939dd730..c0310c0e14a0 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py @@ -67,10 +67,10 @@ def list_chat_read_receipts( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -156,10 +156,10 @@ async def send_chat_read_receipt( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -222,10 +222,10 @@ async def send_chat_message( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -295,10 +295,10 @@ def list_chat_messages( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -384,10 +384,10 @@ async def get_chat_message( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -452,10 +452,10 @@ async def update_chat_message( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -519,10 +519,10 @@ async def delete_chat_message( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -578,10 +578,10 @@ async def send_typing_notification( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -642,10 +642,10 @@ def list_chat_participants( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -731,10 +731,10 @@ async def remove_chat_participant( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -793,10 +793,10 @@ async def add_chat_participants( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -862,10 +862,10 @@ async def update_chat_thread( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" 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 d8cdbe52dd58..5a3c0ca85620 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 @@ -11,6 +11,7 @@ from ._models_py3 import AddChatParticipantsRequest from ._models_py3 import AddChatParticipantsResult from ._models_py3 import ChatMessage + from ._models_py3 import ChatMessageContent from ._models_py3 import ChatMessageReadReceipt from ._models_py3 import ChatMessageReadReceiptsCollection from ._models_py3 import ChatMessagesCollection @@ -19,10 +20,11 @@ from ._models_py3 import ChatThread from ._models_py3 import ChatThreadInfo from ._models_py3 import ChatThreadsInfoCollection + from ._models_py3 import CommunicationError + from ._models_py3 import CommunicationErrorResponse 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 from ._models_py3 import SendReadReceiptRequest @@ -33,6 +35,7 @@ from ._models import AddChatParticipantsRequest # type: ignore from ._models import AddChatParticipantsResult # type: ignore from ._models import ChatMessage # type: ignore + from ._models import ChatMessageContent # type: ignore from ._models import ChatMessageReadReceipt # type: ignore from ._models import ChatMessageReadReceiptsCollection # type: ignore from ._models import ChatMessagesCollection # type: ignore @@ -41,10 +44,11 @@ from ._models import ChatThread # type: ignore from ._models import ChatThreadInfo # type: ignore from ._models import ChatThreadsInfoCollection # type: ignore + from ._models import CommunicationError # type: ignore + from ._models import CommunicationErrorResponse # 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 from ._models import SendReadReceiptRequest # type: ignore @@ -52,7 +56,7 @@ from ._models import UpdateChatThreadRequest # type: ignore from ._azure_communication_chat_service_enums import ( - ChatMessagePriority, + ChatMessageType, ) __all__ = [ @@ -60,6 +64,7 @@ 'AddChatParticipantsRequest', 'AddChatParticipantsResult', 'ChatMessage', + 'ChatMessageContent', 'ChatMessageReadReceipt', 'ChatMessageReadReceiptsCollection', 'ChatMessagesCollection', @@ -68,14 +73,15 @@ 'ChatThread', 'ChatThreadInfo', 'ChatThreadsInfoCollection', + 'CommunicationError', + 'CommunicationErrorResponse', 'CreateChatThreadErrors', 'CreateChatThreadRequest', 'CreateChatThreadResult', - 'Error', 'SendChatMessageRequest', 'SendChatMessageResult', 'SendReadReceiptRequest', 'UpdateChatMessageRequest', 'UpdateChatThreadRequest', - 'ChatMessagePriority', + 'ChatMessageType', ] diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_azure_communication_chat_service_enums.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_azure_communication_chat_service_enums.py index 1e93e5728b03..9370f9fec0d7 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_azure_communication_chat_service_enums.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_azure_communication_chat_service_enums.py @@ -26,9 +26,12 @@ def __getattr__(cls, name): raise AttributeError(name) -class ChatMessagePriority(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The chat message priority. +class ChatMessageType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The chat message type. """ - NORMAL = "Normal" - HIGH = "High" + TEXT = "text" + HTML = "html" + TOPIC_UPDATED = "topicUpdated" + PARTICIPANT_ADDED = "participantAdded" + PARTICIPANT_REMOVED = "participantRemoved" 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 484f928d4a45..999437af07cb 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 @@ -13,18 +13,19 @@ 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. + All required parameters must be populated in order to send to Azure. - :ivar invalid_participants: The participants that failed to be added to the chat thread. - :vartype invalid_participants: list[~azure.communication.chat.models.Error] + :param invalid_participants: Required. The participants that failed to be added to the chat + thread. + :type invalid_participants: list[~azure.communication.chat.models.CommunicationError] """ _validation = { - 'invalid_participants': {'readonly': True}, + 'invalid_participants': {'required': True}, } _attribute_map = { - 'invalid_participants': {'key': 'invalidParticipants', 'type': '[Error]'}, + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[CommunicationError]'}, } def __init__( @@ -32,7 +33,7 @@ def __init__( **kwargs ): super(AddChatParticipantsErrors, self).__init__(**kwargs) - self.invalid_participants = None + self.invalid_participants = kwargs['invalid_participants'] class AddChatParticipantsRequest(msrest.serialization.Model): @@ -83,35 +84,27 @@ def __init__( class ChatMessage(msrest.serialization.Model): """Chat message. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar id: The id of the chat message. This id is server generated. - :vartype id: str - :param type: Type of the chat message. - - Possible values: - - .. code-block:: - - - Text - - ThreadActivity/TopicUpdate - - ThreadActivity/AddMember - - ThreadActivity/DeleteMember. - :type type: str - :param priority: The chat message priority. Possible values include: "Normal", "High". - :type priority: str or ~azure.communication.chat.models.ChatMessagePriority - :ivar version: Version of the chat message. - :vartype version: str - :param content: Content of the chat message. - :type content: str + :param id: Required. The id of the chat message. This id is server generated. + :type id: str + :param type: Required. The chat message type. Possible values include: "text", "html", + "topicUpdated", "participantAdded", "participantRemoved". + :type type: str or ~azure.communication.chat.models.ChatMessageType + :param sequence_id: Required. Sequence of the chat message in the conversation. + :type sequence_id: str + :param version: Required. Version of the chat message. + :type version: str + :param content: Content of a chat message. + :type content: ~azure.communication.chat.models.ChatMessageContent :param sender_display_name: The display name of the chat message sender. This property is used 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 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 created_on: Required. The timestamp when the chat message arrived at the server. The + timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type created_on: ~datetime.datetime + :param sender_id: The id of the chat message sender. + :type sender_id: str :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 @@ -121,18 +114,19 @@ class ChatMessage(msrest.serialization.Model): """ _validation = { - 'id': {'readonly': True}, - 'version': {'readonly': True}, - 'created_on': {'readonly': True}, - 'sender_id': {'readonly': True}, + 'id': {'required': True}, + 'type': {'required': True}, + 'sequence_id': {'required': True}, + 'version': {'required': True}, + 'created_on': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'priority': {'key': 'priority', 'type': 'str'}, + 'sequence_id': {'key': 'sequenceId', 'type': 'str'}, 'version': {'key': 'version', 'type': 'str'}, - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'ChatMessageContent'}, 'sender_display_name': {'key': 'senderDisplayName', 'type': 'str'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'sender_id': {'key': 'senderId', 'type': 'str'}, @@ -145,37 +139,70 @@ def __init__( **kwargs ): super(ChatMessage, self).__init__(**kwargs) - self.id = None - self.type = kwargs.get('type', None) - self.priority = kwargs.get('priority', None) - self.version = None + self.id = kwargs['id'] + self.type = kwargs['type'] + self.sequence_id = kwargs['sequence_id'] + self.version = kwargs['version'] self.content = kwargs.get('content', None) self.sender_display_name = kwargs.get('sender_display_name', None) - self.created_on = None - self.sender_id = None + self.created_on = kwargs['created_on'] + self.sender_id = kwargs.get('sender_id', None) self.deleted_on = kwargs.get('deleted_on', None) self.edited_on = kwargs.get('edited_on', None) +class ChatMessageContent(msrest.serialization.Model): + """Content of a chat message. + + :param message: Chat message content for messages of types text or html. + :type message: str + :param topic: Chat message content for messages of type topicUpdated. + :type topic: str + :param participants: Chat message content for messages of types participantAdded or + participantRemoved. + :type participants: list[~azure.communication.chat.models.ChatParticipant] + :param initiator: Chat message content for messages of types participantAdded or + participantRemoved. + :type initiator: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'topic': {'key': 'topic', 'type': 'str'}, + 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, + 'initiator': {'key': 'initiator', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ChatMessageContent, self).__init__(**kwargs) + self.message = kwargs.get('message', None) + self.topic = kwargs.get('topic', None) + self.participants = kwargs.get('participants', None) + self.initiator = kwargs.get('initiator', None) + + class ChatMessageReadReceipt(msrest.serialization.Model): """A chat message read receipt indicates the time a chat message was read by a recipient. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar sender_id: Id of the participant who read the message. - :vartype sender_id: str - :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: The time at which the message was read. The timestamp is in RFC3339 format: - ``yyyy-MM-ddTHH:mm:ssZ``. - :vartype read_on: ~datetime.datetime + :param sender_id: Required. Id of the participant who read the message. + :type sender_id: str + :param chat_message_id: Required. Id of the chat message that has been read. This id is + generated by the server. + :type chat_message_id: str + :param read_on: Required. The time at which the message was read. The timestamp is in RFC3339 + format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type read_on: ~datetime.datetime """ _validation = { - 'sender_id': {'readonly': True}, - 'chat_message_id': {'readonly': True}, - 'read_on': {'readonly': True}, + 'sender_id': {'required': True}, + 'chat_message_id': {'required': True}, + 'read_on': {'required': True}, } _attribute_map = { @@ -189,9 +216,9 @@ def __init__( **kwargs ): super(ChatMessageReadReceipt, self).__init__(**kwargs) - self.sender_id = None - self.chat_message_id = None - self.read_on = None + self.sender_id = kwargs['sender_id'] + self.chat_message_id = kwargs['chat_message_id'] + self.read_on = kwargs['read_on'] class ChatMessageReadReceiptsCollection(msrest.serialization.Model): @@ -199,15 +226,17 @@ class ChatMessageReadReceiptsCollection(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar value: Collection of chat message read receipts. - :vartype value: list[~azure.communication.chat.models.ChatMessageReadReceipt] + All required parameters must be populated in order to send to Azure. + + :param value: Required. Collection of chat message read receipts. + :type value: list[~azure.communication.chat.models.ChatMessageReadReceipt] :ivar next_link: If there are more chat message read receipts that can be retrieved, the next link will be populated. :vartype next_link: str """ _validation = { - 'value': {'readonly': True}, + 'value': {'required': True}, 'next_link': {'readonly': True}, } @@ -221,7 +250,7 @@ def __init__( **kwargs ): super(ChatMessageReadReceiptsCollection, self).__init__(**kwargs) - self.value = None + self.value = kwargs['value'] self.next_link = None @@ -230,15 +259,17 @@ class ChatMessagesCollection(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar value: Collection of chat messages. - :vartype value: list[~azure.communication.chat.models.ChatMessage] + All required parameters must be populated in order to send to Azure. + + :param value: Required. Collection of chat messages. + :type value: list[~azure.communication.chat.models.ChatMessage] :ivar next_link: If there are more chat messages that can be retrieved, the next link will be populated. :vartype next_link: str """ _validation = { - 'value': {'readonly': True}, + 'value': {'required': True}, 'next_link': {'readonly': True}, } @@ -252,7 +283,7 @@ def __init__( **kwargs ): super(ChatMessagesCollection, self).__init__(**kwargs) - self.value = None + self.value = kwargs['value'] self.next_link = None @@ -295,7 +326,9 @@ class ChatParticipantsCollection(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :param value: Chat participants. + All required parameters must be populated in order to send to Azure. + + :param value: Required. Chat participants. :type value: list[~azure.communication.chat.models.ChatParticipant] :ivar next_link: If there are more chat participants that can be retrieved, the next link will be populated. @@ -303,6 +336,7 @@ class ChatParticipantsCollection(msrest.serialization.Model): """ _validation = { + 'value': {'required': True}, 'next_link': {'readonly': True}, } @@ -316,33 +350,34 @@ def __init__( **kwargs ): super(ChatParticipantsCollection, self).__init__(**kwargs) - self.value = kwargs.get('value', None) + self.value = kwargs['value'] self.next_link = None class ChatThread(msrest.serialization.Model): """Chat thread. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar id: Chat thread id. - :vartype id: str - :param topic: Chat thread topic. + :param id: Required. Chat thread id. + :type id: str + :param topic: Required. Chat thread topic. :type topic: str - :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 created_on: Required. The timestamp when the chat thread was created. The timestamp is + in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type created_on: ~datetime.datetime + :param created_by: Required. Id of the chat thread owner. + :type created_by: str :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 """ _validation = { - 'id': {'readonly': True}, - 'created_on': {'readonly': True}, - 'created_by': {'readonly': True}, + 'id': {'required': True}, + 'topic': {'required': True}, + 'created_on': {'required': True}, + 'created_by': {'required': True}, } _attribute_map = { @@ -358,10 +393,10 @@ def __init__( **kwargs ): super(ChatThread, self).__init__(**kwargs) - self.id = None - self.topic = kwargs.get('topic', None) - self.created_on = None - self.created_by = None + self.id = kwargs['id'] + self.topic = kwargs['topic'] + self.created_on = kwargs['created_on'] + self.created_by = kwargs['created_by'] self.deleted_on = kwargs.get('deleted_on', None) @@ -370,9 +405,11 @@ class ChatThreadInfo(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Chat thread id. - :vartype id: str - :param topic: Chat thread topic. + All required parameters must be populated in order to send to Azure. + + :param id: Required. Chat thread id. + :type id: str + :param topic: Required. Chat thread topic. :type topic: str :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. @@ -383,7 +420,8 @@ class ChatThreadInfo(msrest.serialization.Model): """ _validation = { - 'id': {'readonly': True}, + 'id': {'required': True}, + 'topic': {'required': True}, 'last_message_received_on': {'readonly': True}, } @@ -399,8 +437,8 @@ def __init__( **kwargs ): super(ChatThreadInfo, self).__init__(**kwargs) - self.id = None - self.topic = kwargs.get('topic', None) + self.id = kwargs['id'] + self.topic = kwargs['topic'] self.deleted_on = kwargs.get('deleted_on', None) self.last_message_received_on = None @@ -410,15 +448,17 @@ class ChatThreadsInfoCollection(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar value: Collection of chat threads. - :vartype value: list[~azure.communication.chat.models.ChatThreadInfo] + All required parameters must be populated in order to send to Azure. + + :param value: Required. Collection of chat threads. + :type value: list[~azure.communication.chat.models.ChatThreadInfo] :ivar next_link: If there are more chat threads that can be retrieved, the next link will be populated. :vartype next_link: str """ _validation = { - 'value': {'readonly': True}, + 'value': {'required': True}, 'next_link': {'readonly': True}, } @@ -432,17 +472,89 @@ def __init__( **kwargs ): super(ChatThreadsInfoCollection, self).__init__(**kwargs) - self.value = None + self.value = kwargs['value'] self.next_link = None +class CommunicationError(msrest.serialization.Model): + """The Communication Services error. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error code. + :type code: str + :param message: Required. The error message. + :type message: str + :ivar target: The error target. + :vartype target: str + :ivar details: Further details about specific errors that led to this error. + :vartype details: list[~azure.communication.chat.models.CommunicationError] + :ivar inner_error: The inner error if any. + :vartype inner_error: ~azure.communication.chat.models.CommunicationError + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + 'inner_error': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[CommunicationError]'}, + 'inner_error': {'key': 'innererror', 'type': 'CommunicationError'}, + } + + def __init__( + self, + **kwargs + ): + super(CommunicationError, self).__init__(**kwargs) + self.code = kwargs['code'] + self.message = kwargs['message'] + self.target = None + self.details = None + self.inner_error = None + + +class CommunicationErrorResponse(msrest.serialization.Model): + """The Communication Services error. + + All required parameters must be populated in order to send to Azure. + + :param error: Required. The Communication Services error. + :type error: ~azure.communication.chat.models.CommunicationError + """ + + _validation = { + 'error': {'required': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'CommunicationError'}, + } + + def __init__( + self, + **kwargs + ): + super(CommunicationErrorResponse, self).__init__(**kwargs) + self.error = kwargs['error'] + + 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] + :vartype invalid_participants: list[~azure.communication.chat.models.CommunicationError] """ _validation = { @@ -450,7 +562,7 @@ class CreateChatThreadErrors(msrest.serialization.Model): } _attribute_map = { - 'invalid_participants': {'key': 'invalidParticipants', 'type': '[Error]'}, + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[CommunicationError]'}, } def __init__( @@ -514,59 +626,19 @@ def __init__( self.errors = kwargs.get('errors', None) -class Error(msrest.serialization.Model): - """Error encountered while performing an operation. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Error code. - :vartype code: str - :ivar message: Description of the error. - :vartype message: str - :ivar target: If applicable, would be used to indicate the property causing the error. - :vartype target: str - :ivar inner_errors: If applicable, inner errors would be returned for more details on the - error. - :vartype inner_errors: list[~azure.communication.chat.models.Error] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'inner_errors': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'inner_errors': {'key': 'innerErrors', 'type': '[Error]'}, - } - - def __init__( - self, - **kwargs - ): - super(Error, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.inner_errors = None - - class SendChatMessageRequest(msrest.serialization.Model): """Details of the message to send. All required parameters must be populated in order to send to Azure. - :param priority: The chat message priority. Possible values include: "Normal", "High". - :type priority: str or ~azure.communication.chat.models.ChatMessagePriority :param content: Required. Chat message content. :type content: str :param sender_display_name: The display name of the chat message sender. This property is used to populate sender name for push notifications. :type sender_display_name: str + :param type: The chat message type. Possible values include: "text", "html", "topicUpdated", + "participantAdded", "participantRemoved". + :type type: str or ~azure.communication.chat.models.ChatMessageType """ _validation = { @@ -574,9 +646,9 @@ class SendChatMessageRequest(msrest.serialization.Model): } _attribute_map = { - 'priority': {'key': 'priority', 'type': 'str'}, 'content': {'key': 'content', 'type': 'str'}, 'sender_display_name': {'key': 'senderDisplayName', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, } def __init__( @@ -584,22 +656,22 @@ def __init__( **kwargs ): super(SendChatMessageRequest, self).__init__(**kwargs) - self.priority = kwargs.get('priority', None) self.content = kwargs['content'] self.sender_display_name = kwargs.get('sender_display_name', None) + self.type = kwargs.get('type', None) class SendChatMessageResult(msrest.serialization.Model): """Result of the send message operation. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar id: A server-generated message id. - :vartype id: str + :param id: Required. A server-generated message id. + :type id: str """ _validation = { - 'id': {'readonly': True}, + 'id': {'required': True}, } _attribute_map = { @@ -611,7 +683,7 @@ def __init__( **kwargs ): super(SendChatMessageResult, self).__init__(**kwargs) - self.id = None + self.id = kwargs['id'] class SendReadReceiptRequest(msrest.serialization.Model): @@ -644,13 +716,10 @@ class UpdateChatMessageRequest(msrest.serialization.Model): :param content: Chat message content. :type content: str - :param priority: The chat message priority. Possible values include: "Normal", "High". - :type priority: str or ~azure.communication.chat.models.ChatMessagePriority """ _attribute_map = { 'content': {'key': 'content', 'type': 'str'}, - 'priority': {'key': 'priority', 'type': 'str'}, } def __init__( @@ -659,7 +728,6 @@ def __init__( ): super(UpdateChatMessageRequest, self).__init__(**kwargs) self.content = kwargs.get('content', None) - self.priority = kwargs.get('priority', None) class UpdateChatThreadRequest(msrest.serialization.Model): 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 4d743ed71c48..8da8a31bc35c 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 @@ -18,26 +18,29 @@ 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. + All required parameters must be populated in order to send to Azure. - :ivar invalid_participants: The participants that failed to be added to the chat thread. - :vartype invalid_participants: list[~azure.communication.chat.models.Error] + :param invalid_participants: Required. The participants that failed to be added to the chat + thread. + :type invalid_participants: list[~azure.communication.chat.models.CommunicationError] """ _validation = { - 'invalid_participants': {'readonly': True}, + 'invalid_participants': {'required': True}, } _attribute_map = { - 'invalid_participants': {'key': 'invalidParticipants', 'type': '[Error]'}, + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[CommunicationError]'}, } def __init__( self, + *, + invalid_participants: List["CommunicationError"], **kwargs ): super(AddChatParticipantsErrors, self).__init__(**kwargs) - self.invalid_participants = None + self.invalid_participants = invalid_participants class AddChatParticipantsRequest(msrest.serialization.Model): @@ -92,35 +95,27 @@ def __init__( class ChatMessage(msrest.serialization.Model): """Chat message. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar id: The id of the chat message. This id is server generated. - :vartype id: str - :param type: Type of the chat message. - - Possible values: - - .. code-block:: - - - Text - - ThreadActivity/TopicUpdate - - ThreadActivity/AddMember - - ThreadActivity/DeleteMember. - :type type: str - :param priority: The chat message priority. Possible values include: "Normal", "High". - :type priority: str or ~azure.communication.chat.models.ChatMessagePriority - :ivar version: Version of the chat message. - :vartype version: str - :param content: Content of the chat message. - :type content: str + :param id: Required. The id of the chat message. This id is server generated. + :type id: str + :param type: Required. The chat message type. Possible values include: "text", "html", + "topicUpdated", "participantAdded", "participantRemoved". + :type type: str or ~azure.communication.chat.models.ChatMessageType + :param sequence_id: Required. Sequence of the chat message in the conversation. + :type sequence_id: str + :param version: Required. Version of the chat message. + :type version: str + :param content: Content of a chat message. + :type content: ~azure.communication.chat.models.ChatMessageContent :param sender_display_name: The display name of the chat message sender. This property is used 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 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 created_on: Required. The timestamp when the chat message arrived at the server. The + timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type created_on: ~datetime.datetime + :param sender_id: The id of the chat message sender. + :type sender_id: str :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 @@ -130,18 +125,19 @@ class ChatMessage(msrest.serialization.Model): """ _validation = { - 'id': {'readonly': True}, - 'version': {'readonly': True}, - 'created_on': {'readonly': True}, - 'sender_id': {'readonly': True}, + 'id': {'required': True}, + 'type': {'required': True}, + 'sequence_id': {'required': True}, + 'version': {'required': True}, + 'created_on': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'priority': {'key': 'priority', 'type': 'str'}, + 'sequence_id': {'key': 'sequenceId', 'type': 'str'}, 'version': {'key': 'version', 'type': 'str'}, - 'content': {'key': 'content', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'ChatMessageContent'}, 'sender_display_name': {'key': 'senderDisplayName', 'type': 'str'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'sender_id': {'key': 'senderId', 'type': 'str'}, @@ -152,46 +148,88 @@ class ChatMessage(msrest.serialization.Model): def __init__( self, *, - type: Optional[str] = None, - priority: Optional[Union[str, "ChatMessagePriority"]] = None, - content: Optional[str] = None, + id: str, + type: Union[str, "ChatMessageType"], + sequence_id: str, + version: str, + created_on: datetime.datetime, + content: Optional["ChatMessageContent"] = None, sender_display_name: Optional[str] = None, + sender_id: Optional[str] = None, deleted_on: Optional[datetime.datetime] = None, edited_on: Optional[datetime.datetime] = None, **kwargs ): super(ChatMessage, self).__init__(**kwargs) - self.id = None + self.id = id self.type = type - self.priority = priority - self.version = None + self.sequence_id = sequence_id + self.version = version self.content = content self.sender_display_name = sender_display_name - self.created_on = None - self.sender_id = None + self.created_on = created_on + self.sender_id = sender_id self.deleted_on = deleted_on self.edited_on = edited_on +class ChatMessageContent(msrest.serialization.Model): + """Content of a chat message. + + :param message: Chat message content for messages of types text or html. + :type message: str + :param topic: Chat message content for messages of type topicUpdated. + :type topic: str + :param participants: Chat message content for messages of types participantAdded or + participantRemoved. + :type participants: list[~azure.communication.chat.models.ChatParticipant] + :param initiator: Chat message content for messages of types participantAdded or + participantRemoved. + :type initiator: str + """ + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'topic': {'key': 'topic', 'type': 'str'}, + 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, + 'initiator': {'key': 'initiator', 'type': 'str'}, + } + + def __init__( + self, + *, + message: Optional[str] = None, + topic: Optional[str] = None, + participants: Optional[List["ChatParticipant"]] = None, + initiator: Optional[str] = None, + **kwargs + ): + super(ChatMessageContent, self).__init__(**kwargs) + self.message = message + self.topic = topic + self.participants = participants + self.initiator = initiator + + class ChatMessageReadReceipt(msrest.serialization.Model): """A chat message read receipt indicates the time a chat message was read by a recipient. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar sender_id: Id of the participant who read the message. - :vartype sender_id: str - :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: The time at which the message was read. The timestamp is in RFC3339 format: - ``yyyy-MM-ddTHH:mm:ssZ``. - :vartype read_on: ~datetime.datetime + :param sender_id: Required. Id of the participant who read the message. + :type sender_id: str + :param chat_message_id: Required. Id of the chat message that has been read. This id is + generated by the server. + :type chat_message_id: str + :param read_on: Required. The time at which the message was read. The timestamp is in RFC3339 + format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type read_on: ~datetime.datetime """ _validation = { - 'sender_id': {'readonly': True}, - 'chat_message_id': {'readonly': True}, - 'read_on': {'readonly': True}, + 'sender_id': {'required': True}, + 'chat_message_id': {'required': True}, + 'read_on': {'required': True}, } _attribute_map = { @@ -202,12 +240,16 @@ class ChatMessageReadReceipt(msrest.serialization.Model): def __init__( self, + *, + sender_id: str, + chat_message_id: str, + read_on: datetime.datetime, **kwargs ): super(ChatMessageReadReceipt, self).__init__(**kwargs) - self.sender_id = None - self.chat_message_id = None - self.read_on = None + self.sender_id = sender_id + self.chat_message_id = chat_message_id + self.read_on = read_on class ChatMessageReadReceiptsCollection(msrest.serialization.Model): @@ -215,15 +257,17 @@ class ChatMessageReadReceiptsCollection(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar value: Collection of chat message read receipts. - :vartype value: list[~azure.communication.chat.models.ChatMessageReadReceipt] + All required parameters must be populated in order to send to Azure. + + :param value: Required. Collection of chat message read receipts. + :type value: list[~azure.communication.chat.models.ChatMessageReadReceipt] :ivar next_link: If there are more chat message read receipts that can be retrieved, the next link will be populated. :vartype next_link: str """ _validation = { - 'value': {'readonly': True}, + 'value': {'required': True}, 'next_link': {'readonly': True}, } @@ -234,10 +278,12 @@ class ChatMessageReadReceiptsCollection(msrest.serialization.Model): def __init__( self, + *, + value: List["ChatMessageReadReceipt"], **kwargs ): super(ChatMessageReadReceiptsCollection, self).__init__(**kwargs) - self.value = None + self.value = value self.next_link = None @@ -246,15 +292,17 @@ class ChatMessagesCollection(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar value: Collection of chat messages. - :vartype value: list[~azure.communication.chat.models.ChatMessage] + All required parameters must be populated in order to send to Azure. + + :param value: Required. Collection of chat messages. + :type value: list[~azure.communication.chat.models.ChatMessage] :ivar next_link: If there are more chat messages that can be retrieved, the next link will be populated. :vartype next_link: str """ _validation = { - 'value': {'readonly': True}, + 'value': {'required': True}, 'next_link': {'readonly': True}, } @@ -265,10 +313,12 @@ class ChatMessagesCollection(msrest.serialization.Model): def __init__( self, + *, + value: List["ChatMessage"], **kwargs ): super(ChatMessagesCollection, self).__init__(**kwargs) - self.value = None + self.value = value self.next_link = None @@ -315,7 +365,9 @@ class ChatParticipantsCollection(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :param value: Chat participants. + All required parameters must be populated in order to send to Azure. + + :param value: Required. Chat participants. :type value: list[~azure.communication.chat.models.ChatParticipant] :ivar next_link: If there are more chat participants that can be retrieved, the next link will be populated. @@ -323,6 +375,7 @@ class ChatParticipantsCollection(msrest.serialization.Model): """ _validation = { + 'value': {'required': True}, 'next_link': {'readonly': True}, } @@ -334,7 +387,7 @@ class ChatParticipantsCollection(msrest.serialization.Model): def __init__( self, *, - value: Optional[List["ChatParticipant"]] = None, + value: List["ChatParticipant"], **kwargs ): super(ChatParticipantsCollection, self).__init__(**kwargs) @@ -345,26 +398,27 @@ def __init__( class ChatThread(msrest.serialization.Model): """Chat thread. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar id: Chat thread id. - :vartype id: str - :param topic: Chat thread topic. + :param id: Required. Chat thread id. + :type id: str + :param topic: Required. Chat thread topic. :type topic: str - :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 created_on: Required. The timestamp when the chat thread was created. The timestamp is + in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type created_on: ~datetime.datetime + :param created_by: Required. Id of the chat thread owner. + :type created_by: str :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 """ _validation = { - 'id': {'readonly': True}, - 'created_on': {'readonly': True}, - 'created_by': {'readonly': True}, + 'id': {'required': True}, + 'topic': {'required': True}, + 'created_on': {'required': True}, + 'created_by': {'required': True}, } _attribute_map = { @@ -378,15 +432,18 @@ class ChatThread(msrest.serialization.Model): def __init__( self, *, - topic: Optional[str] = None, + id: str, + topic: str, + created_on: datetime.datetime, + created_by: str, deleted_on: Optional[datetime.datetime] = None, **kwargs ): super(ChatThread, self).__init__(**kwargs) - self.id = None + self.id = id self.topic = topic - self.created_on = None - self.created_by = None + self.created_on = created_on + self.created_by = created_by self.deleted_on = deleted_on @@ -395,9 +452,11 @@ class ChatThreadInfo(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Chat thread id. - :vartype id: str - :param topic: Chat thread topic. + All required parameters must be populated in order to send to Azure. + + :param id: Required. Chat thread id. + :type id: str + :param topic: Required. Chat thread topic. :type topic: str :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. @@ -408,7 +467,8 @@ class ChatThreadInfo(msrest.serialization.Model): """ _validation = { - 'id': {'readonly': True}, + 'id': {'required': True}, + 'topic': {'required': True}, 'last_message_received_on': {'readonly': True}, } @@ -422,12 +482,13 @@ class ChatThreadInfo(msrest.serialization.Model): def __init__( self, *, - topic: Optional[str] = None, + id: str, + topic: str, deleted_on: Optional[datetime.datetime] = None, **kwargs ): super(ChatThreadInfo, self).__init__(**kwargs) - self.id = None + self.id = id self.topic = topic self.deleted_on = deleted_on self.last_message_received_on = None @@ -438,15 +499,17 @@ class ChatThreadsInfoCollection(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar value: Collection of chat threads. - :vartype value: list[~azure.communication.chat.models.ChatThreadInfo] + All required parameters must be populated in order to send to Azure. + + :param value: Required. Collection of chat threads. + :type value: list[~azure.communication.chat.models.ChatThreadInfo] :ivar next_link: If there are more chat threads that can be retrieved, the next link will be populated. :vartype next_link: str """ _validation = { - 'value': {'readonly': True}, + 'value': {'required': True}, 'next_link': {'readonly': True}, } @@ -457,20 +520,99 @@ class ChatThreadsInfoCollection(msrest.serialization.Model): def __init__( self, + *, + value: List["ChatThreadInfo"], **kwargs ): super(ChatThreadsInfoCollection, self).__init__(**kwargs) - self.value = None + self.value = value self.next_link = None +class CommunicationError(msrest.serialization.Model): + """The Communication Services error. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error code. + :type code: str + :param message: Required. The error message. + :type message: str + :ivar target: The error target. + :vartype target: str + :ivar details: Further details about specific errors that led to this error. + :vartype details: list[~azure.communication.chat.models.CommunicationError] + :ivar inner_error: The inner error if any. + :vartype inner_error: ~azure.communication.chat.models.CommunicationError + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + 'inner_error': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[CommunicationError]'}, + 'inner_error': {'key': 'innererror', 'type': 'CommunicationError'}, + } + + def __init__( + self, + *, + code: str, + message: str, + **kwargs + ): + super(CommunicationError, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = None + self.details = None + self.inner_error = None + + +class CommunicationErrorResponse(msrest.serialization.Model): + """The Communication Services error. + + All required parameters must be populated in order to send to Azure. + + :param error: Required. The Communication Services error. + :type error: ~azure.communication.chat.models.CommunicationError + """ + + _validation = { + 'error': {'required': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'CommunicationError'}, + } + + def __init__( + self, + *, + error: "CommunicationError", + **kwargs + ): + super(CommunicationErrorResponse, self).__init__(**kwargs) + self.error = error + + 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] + :vartype invalid_participants: list[~azure.communication.chat.models.CommunicationError] """ _validation = { @@ -478,7 +620,7 @@ class CreateChatThreadErrors(msrest.serialization.Model): } _attribute_map = { - 'invalid_participants': {'key': 'invalidParticipants', 'type': '[Error]'}, + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[CommunicationError]'}, } def __init__( @@ -548,59 +690,19 @@ def __init__( self.errors = errors -class Error(msrest.serialization.Model): - """Error encountered while performing an operation. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar code: Error code. - :vartype code: str - :ivar message: Description of the error. - :vartype message: str - :ivar target: If applicable, would be used to indicate the property causing the error. - :vartype target: str - :ivar inner_errors: If applicable, inner errors would be returned for more details on the - error. - :vartype inner_errors: list[~azure.communication.chat.models.Error] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - 'target': {'readonly': True}, - 'inner_errors': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'inner_errors': {'key': 'innerErrors', 'type': '[Error]'}, - } - - def __init__( - self, - **kwargs - ): - super(Error, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = None - self.inner_errors = None - - class SendChatMessageRequest(msrest.serialization.Model): """Details of the message to send. All required parameters must be populated in order to send to Azure. - :param priority: The chat message priority. Possible values include: "Normal", "High". - :type priority: str or ~azure.communication.chat.models.ChatMessagePriority :param content: Required. Chat message content. :type content: str :param sender_display_name: The display name of the chat message sender. This property is used to populate sender name for push notifications. :type sender_display_name: str + :param type: The chat message type. Possible values include: "text", "html", "topicUpdated", + "participantAdded", "participantRemoved". + :type type: str or ~azure.communication.chat.models.ChatMessageType """ _validation = { @@ -608,36 +710,36 @@ class SendChatMessageRequest(msrest.serialization.Model): } _attribute_map = { - 'priority': {'key': 'priority', 'type': 'str'}, 'content': {'key': 'content', 'type': 'str'}, 'sender_display_name': {'key': 'senderDisplayName', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, } def __init__( self, *, content: str, - priority: Optional[Union[str, "ChatMessagePriority"]] = None, sender_display_name: Optional[str] = None, + type: Optional[Union[str, "ChatMessageType"]] = None, **kwargs ): super(SendChatMessageRequest, self).__init__(**kwargs) - self.priority = priority self.content = content self.sender_display_name = sender_display_name + self.type = type class SendChatMessageResult(msrest.serialization.Model): """Result of the send message operation. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar id: A server-generated message id. - :vartype id: str + :param id: Required. A server-generated message id. + :type id: str """ _validation = { - 'id': {'readonly': True}, + 'id': {'required': True}, } _attribute_map = { @@ -646,10 +748,12 @@ class SendChatMessageResult(msrest.serialization.Model): def __init__( self, + *, + id: str, **kwargs ): super(SendChatMessageResult, self).__init__(**kwargs) - self.id = None + self.id = id class SendReadReceiptRequest(msrest.serialization.Model): @@ -684,25 +788,20 @@ class UpdateChatMessageRequest(msrest.serialization.Model): :param content: Chat message content. :type content: str - :param priority: The chat message priority. Possible values include: "Normal", "High". - :type priority: str or ~azure.communication.chat.models.ChatMessagePriority """ _attribute_map = { 'content': {'key': 'content', 'type': 'str'}, - 'priority': {'key': 'priority', 'type': 'str'}, } def __init__( self, *, content: Optional[str] = None, - priority: Optional[Union[str, "ChatMessagePriority"]] = None, **kwargs ): super(UpdateChatMessageRequest, self).__init__(**kwargs) self.content = content - self.priority = priority class UpdateChatThreadRequest(msrest.serialization.Model): 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 index b32a8156c43b..c6c3e06c9d72 100644 --- 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 @@ -74,10 +74,10 @@ def create_chat_thread( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -146,10 +146,10 @@ def list_chat_threads( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -231,10 +231,10 @@ def get_chat_thread( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -293,10 +293,10 @@ def delete_chat_thread( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py index ed6ae68f7cb9..46c22d82b4b5 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py @@ -72,10 +72,10 @@ def list_chat_read_receipts( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -162,10 +162,10 @@ def send_chat_read_receipt( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -229,10 +229,10 @@ def send_chat_message( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -303,10 +303,10 @@ def list_chat_messages( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -393,10 +393,10 @@ def get_chat_message( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -462,10 +462,10 @@ def update_chat_message( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -530,10 +530,10 @@ def delete_chat_message( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -590,10 +590,10 @@ def send_typing_notification( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -655,10 +655,10 @@ def list_chat_participants( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -745,10 +745,10 @@ def remove_chat_participant( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -808,10 +808,10 @@ def add_chat_participants( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" @@ -878,10 +878,10 @@ def update_chat_thread( 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)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" 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 8bf456b70ef5..b2767311ebac 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py @@ -6,7 +6,7 @@ from ._shared.models import CommunicationUser from ._generated.models import ChatParticipant as ChatParticipantAutorest - +from ._generated.models import ChatMessageType class ChatThreadParticipant(object): """A participant of the chat thread. @@ -47,68 +47,115 @@ def _to_generated(self): class ChatMessage(object): - """ChatMessage. + """Chat message. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar id: The id of the chat message. This id is server generated. - :vartype id: str - :param type: Type of the chat message. Possible values include: "Text", - "ThreadActivity/TopicUpdate", "ThreadActivity/AddParticipant", "ThreadActivity/DeleteParticipant". - :type type: str - :param priority: The chat message priority. Possible values include: "Normal", "High". - :type priority: str or ~azure.communication.chat.models.ChatMessagePriority - :ivar version: Version of the chat message. - :vartype version: str - :param content: Content of the chat message. - :type content: str + :param id: Required. The id of the chat message. This id is server generated. + :type id: str + :param type: Required. The chat message type. Possible values include: "text", "html", + "topicUpdated", "participantAdded", "participantRemoved". + :type type: str or ~azure.communication.chat.models.ChatMessageType + :param sequence_id: Required. Sequence of the chat message in the conversation. + :type sequence_id: str + :param version: Required. Version of the chat message. + :type version: str + :param content: Content of a chat message. + :type content: ~azure.communication.chat.models.ChatMessageContent :param sender_display_name: The display name of the chat message sender. This property is used 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``. - :vartype created_on: ~datetime.datetime - :ivar sender: The chat message sender. - :vartype sender: CommunicationUser - :param deleted_on: The timestamp when the chat message was deleted. The timestamp is in ISO8601 - format: ``yyyy-MM-ddTHH:mm:ssZ``. + :param created_on: Required. The timestamp when the chat message arrived at the server. The + timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type created_on: ~datetime.datetime + :param sender_id: The id of the chat message sender. + :type sender_id: str + :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 """ def __init__( - self, - **kwargs + self, + **kwargs ): self.id = kwargs['id'] - self.type = kwargs.get('type', None) - self.priority = kwargs.get('priority', None) + self.type = kwargs['type'] + self.sequence_id = kwargs['sequence_id'] self.version = kwargs['version'] self.content = kwargs.get('content', None) self.sender_display_name = kwargs.get('sender_display_name', None) self.created_on = kwargs['created_on'] - self.sender = kwargs['sender'] + self.sender_id = kwargs.get('sender_id', None) self.deleted_on = kwargs.get('deleted_on', None) self.edited_on = kwargs.get('edited_on', None) + @classmethod + def _get_message_type(cls, chat_message_type): + for message_type in ChatMessageType: + value = message_type.value + if value == chat_message_type: + return message_type + raise AttributeError(chat_message_type) + @classmethod def _from_generated(cls, chat_message): return cls( id=chat_message.id, - type=chat_message.type, - priority=chat_message.priority, + type=cls._get_message_type(chat_message.type), + sequence_id=chat_message.sequence_id, version=chat_message.version, - content=chat_message.content, + content=ChatMessageContent._from_generated(chat_message.content), # pylint:disable=protected-access sender_display_name=chat_message.sender_display_name, created_on=chat_message.created_on, - sender=CommunicationUser(chat_message.sender_id), + sender_id=CommunicationUser(chat_message.sender_id), deleted_on=chat_message.deleted_on, edited_on=chat_message.edited_on ) +class ChatMessageContent(object): + """Content of a chat message. + + :param message: Chat message content for messages of types text or html. + :type message: str + :param topic: Chat message content for messages of type topicUpdated. + :type topic: str + :param participants: Chat message content for messages of types participantAdded or + participantRemoved. + :type participants: list[~azure.communication.chat.models.ChatParticipant] + :param initiator: Chat message content for messages of types participantAdded or + participantRemoved. + :type initiator: str + """ + + def __init__( + self, + **kwargs + ): + self.message = kwargs.get('message', None) + self.topic = kwargs.get('topic', None) + self.participants = kwargs.get('participants', None) + self.initiator = kwargs.get('initiator', None) + + @classmethod + def _from_generated(cls, chat_message_content): + participants_list = chat_message_content.participants + if participants_list is not None and len(participants_list) > 0: + participants = [ChatThreadParticipant._from_generated(participant) for participant in participants_list] # pylint:disable=protected-access + else: + participants = [] + return cls( + message=chat_message_content.message, + topic=chat_message_content.topic, + participants=participants, + initiator=chat_message_content.initiator + ) + + class ChatThread(object): """ChatThread. 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 99562f92a5a2..1645a7235848 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 @@ -11,6 +11,7 @@ # pylint: disable=unused-import,ungrouped-imports from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union from datetime import datetime +from uuid import uuid4 import six from azure.core.tracing.decorator import distributed_trace @@ -119,6 +120,7 @@ def get_chat_thread_client( async def create_chat_thread( self, topic: str, thread_participants: List[ChatThreadParticipant], + repeatability_request_id: Optional[str] = None, **kwargs ) -> ChatThreadClient: """Creates a chat thread. @@ -127,6 +129,13 @@ async def create_chat_thread( :type topic: str :param thread_participants: Required. Participants to be added to the thread. :type thread_participants: list[~azure.communication.chat.ChatThreadParticipant] + :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. If not + specified, a new unique id would be generated. + :type repeatability_request_id: str :return: ChatThreadClient :rtype: ~azure.communication.chat.aio.ChatThreadClient :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -144,13 +153,17 @@ async def create_chat_thread( raise ValueError("topic cannot be None.") if not thread_participants: raise ValueError("List of ThreadParticipant cannot be None.") + if repeatability_request_id is None: + repeatability_request_id = str(uuid4()) participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access create_thread_request = \ CreateChatThreadRequest(topic=topic, participants=participants) create_chat_thread_result = await self._client.chat.create_chat_thread( - create_thread_request, **kwargs) + create_chat_thread_request=create_thread_request, + repeatability_request_id=repeatability_request_id, + **kwargs) if hasattr(create_chat_thread_result, 'errors') \ and create_chat_thread_result.errors is not None: participants = \ 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 86e2f47a2f14..a510c6c6e3f3 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 @@ -26,7 +26,8 @@ SendChatMessageRequest, UpdateChatMessageRequest, UpdateChatThreadRequest, - SendChatMessageResult + SendChatMessageResult, + ChatMessageType ) from .._models import ( ChatThreadParticipant, @@ -241,8 +242,9 @@ async def send_message( :param content: Required. Chat message content. :type content: str - :keyword priority: Message priority. - :paramtype priority: str or ChatMessagePriority + :param chat_message_type: The chat message type. Possible values include: "text", "html", "participant_added", + "participant_removed", "topic_updated" Default: ChatMessageType.TEXT + :type chat_message_type: str or ~azure.communication.chat.models.ChatMessageType :keyword str sender_display_name: The display name of the message sender. This property is used to populate sender name for push notifications. :keyword callable cls: A custom type or function that will be passed the direct response @@ -262,12 +264,21 @@ async def send_message( if not content: raise ValueError("content cannot be None.") - priority = kwargs.pop("priority", None) + chat_message_type = kwargs.pop("chat_message_type", None) + if chat_message_type is None: + chat_message_type = ChatMessageType.TEXT + elif not isinstance(chat_message_type, ChatMessageType): + try: + chat_message_type = ChatMessageType.__getattr__(chat_message_type) # pylint:disable=protected-access + except Exception: + raise ValueError( + "chat_message_type: {message_type} is not acceptable".format(message_type=chat_message_type)) + sender_display_name = kwargs.pop("sender_display_name", None) create_message_request = SendChatMessageRequest( content=content, - priority=priority, + type=chat_message_type, sender_display_name=sender_display_name ) send_chat_message_result = await self._client.chat_thread.send_chat_message( diff --git a/sdk/communication/azure-communication-chat/samples/chat_client_sample.py b/sdk/communication/azure-communication-chat/samples/chat_client_sample.py index 90d9d3421858..fedcbc0c243b 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_client_sample.py +++ b/sdk/communication/azure-communication-chat/samples/chat_client_sample.py @@ -67,7 +67,15 @@ def create_thread(self): display_name='name', share_history_time=datetime.utcnow() )] + + # creates a new chat_thread everytime chat_thread_client = chat_client.create_chat_thread(topic, participants) + + # creates a new chat_thread if not exists + repeatability_request_id = 'b66d6031-fdcc-41df-8306-e524c9f226b8' # unique identifier + chat_thread_client_w_repeatability_id = chat_client.create_chat_thread(topic, + participants, + repeatability_request_id) # [END create_thread] self._thread_id = chat_thread_client.thread_id diff --git a/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py b/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py index 9a4db1a2c60e..653bda48edf6 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py +++ b/sdk/communication/azure-communication-chat/samples/chat_client_sample_async.py @@ -64,7 +64,14 @@ async def create_thread_async(self): display_name='name', share_history_time=datetime.utcnow() )] + # creates a new chat_thread everytime chat_thread_client = await chat_client.create_chat_thread(topic, participants) + + # creates a new chat_thread if not exists + repeatability_request_id = 'b66d6031-fdcc-41df-8306-e524c9f226b8' # unique identifier + chat_thread_client_w_repeatability_id = await chat_client.create_chat_thread(topic, + participants, + repeatability_request_id) # [END create_thread] self._thread_id = chat_thread_client.thread_id diff --git a/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py b/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py index 48b6320c8429..cd08ecbe3db4 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py +++ b/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample.py @@ -84,18 +84,21 @@ def send_message(self): # [START send_message] from azure.communication.chat import ChatMessagePriority - priority = ChatMessagePriority.NORMAL content = 'hello world' sender_display_name = 'sender name' send_message_result_id = chat_thread_client.send_message( content, - priority=priority, sender_display_name=sender_display_name) + + send_message_result_w_type_id = chat_thread_client.send_message( + content, + sender_display_name=sender_display_name, chat_message_type=ChatMessageType.TEXT) # [END send_message] self._message_id = send_message_result_id print("send_chat_message succeeded, message id:", self._message_id) + print("send_message succeeded with type specified, message id:", send_message_result_w_type_id) def get_message(self): from azure.communication.chat import ChatThreadClient diff --git a/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample_async.py b/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample_async.py index 64f96222f39c..c90c3301c3c8 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample_async.py +++ b/sdk/communication/azure-communication-chat/samples/chat_thread_client_sample_async.py @@ -95,9 +95,14 @@ async def send_message_async(self): content, priority=priority, sender_display_name=sender_display_name) + + send_message_result_w_type_id = await chat_thread_client.send_message( + content, + sender_display_name=sender_display_name, chat_message_type=ChatMessageType.TEXT) # [END send_message] self._message_id = send_message_result_id print("send_message succeeded, message id:", self._message_id) + print("send_message succeeded with type specified, message id:", send_message_result_w_type_id) async def get_message_async(self): from azure.communication.chat.aio import ChatThreadClient, CommunicationUserCredential 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 f36b4fb477dc..66b4e598a972 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:47:22 GMT + - Thu, 28 Jan 2021 02:49:38 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:47:09 GMT + - Thu, 28 Jan 2021 02:49:30 GMT ms-cv: - - kgdYNPOdy02C1uA2NBza3w.0 + - eukGcoVkYEmfXdtkWEUg0g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 43ms + - 31ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:47:23 GMT + - Thu, 28 Jan 2021 02:49:38 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:47:08.26655+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:49:30.7693795+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:47:09 GMT + - Thu, 28 Jan 2021 02:49:31 GMT ms-cv: - - kdtzCxgkHE+7GeoJohHJRQ.0 + - u2xSnBCYQE655AuC6QnwpQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 351ms + - 396ms status: code: 200 message: OK @@ -94,26 +94,28 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - bbcbf9e3-1ae0-4b59-88c9-ec901af331fb method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:4321981f25704eb49488d552300fe22e@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T17:47:10Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da89-b8ab-b0b7-3a3a0d0027fd"}}' + body: '{"chatThread": {"id": "19:yiIn_C0u1M0WqY_7ODM3p7oHEbaG6K97V_fovPuq5BM1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:49:32Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6c6-fbbb-9c58-373a0d0004ba"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:47:11 GMT + - Thu, 28 Jan 2021 02:49:32 GMT ms-cv: - - ZuICXreYz0GxucVSP2qfIA.0 + - R7bKGjS8/k+JE42B60EOog.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 878ms + - 893ms status: code: 201 message: Created @@ -129,7 +131,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:47:24 GMT + - Thu, 28 Jan 2021 02:49:40 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -143,13 +145,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:47:27 GMT + - Thu, 28 Jan 2021 02:49:50 GMT ms-cv: - - TJoAqESAikaMaa+XuD5BSw.0 + - XeAFOGi6ekWnSQIx1h0/AA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16641ms + - 17266ms status: code: 204 message: No Content @@ -173,15 +175,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 17:47:27 GMT + - Thu, 28 Jan 2021 02:49:50 GMT ms-cv: - - ElM8ymKj+02Gi/u6MD3ygQ.0 + - 5OlQtreslE2aOWfVcItihQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 300ms + - 336ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml new file mode 100644 index 000000000000..c4dce1a648f2 --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml @@ -0,0 +1,230 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 28 Jan 2021 02:49:57 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 28 Jan 2021 02:49:50 GMT + ms-cv: + - zDUF04rBW06wXDZbRnQkJg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 25ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Thu, 28 Jan 2021 02:49:58 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:49:50.0116294+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 28 Jan 2021 02:49:50 GMT + ms-cv: + - hRTH3IzaFEiWpvzp5CFQRg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 90ms + status: + code: 200 + message: OK +- request: + body: '{"topic": "test topic", "participants": "sanitized"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '206' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - b4ad9002-fcd8-4bd6-bcda-7aad8800023e + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"chatThread": {"id": "19:bPy02GFl1-6g2OSwmbtq6yiVSVT5ekhaKApjRZwbPIk1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:49:51Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6c7-47ff-9c58-373a0d0004bb"}}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 28 Jan 2021 02:49:51 GMT + ms-cv: + - HjbSYFRn8EypIAycGp5DpA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 836ms + status: + code: 201 + message: Created +- request: + body: '{"topic": "test topic", "participants": "sanitized"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '205' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - b4ad9002-fcd8-4bd6-bcda-7aad8800023e + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"chatThread": {"id": "19:bPy02GFl1-6g2OSwmbtq6yiVSVT5ekhaKApjRZwbPIk1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:49:51Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6c7-47ff-9c58-373a0d0004bb"}}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 28 Jan 2021 02:49:52 GMT + ms-cv: + - Txo39R+aYE6I96Ah86mcfw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 689ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 28 Jan 2021 02:50:00 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + date: + - Thu, 28 Jan 2021 02:50:08 GMT + ms-cv: + - Y2vDciG+VkekxRbCdkRuxw.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 16146ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: + - Thu, 28 Jan 2021 02:50:08 GMT + ms-cv: + - R5DfLqXb2Ey7D8AuVsYBNQ.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 331ms + status: + code: 204 + message: No Content +version: 1 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 3234874f8f70..f419cfd11136 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:47:41 GMT + - Thu, 28 Jan 2021 02:50:16 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:47:28 GMT + - Thu, 28 Jan 2021 02:50:09 GMT ms-cv: - - g8o+UYZYX0mpxZhC9yKMXg.0 + - KCsUg8EJV0us6s8KZZWmWw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 72ms + - 29ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:47:42 GMT + - Thu, 28 Jan 2021 02:50:17 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:47:27.9077124+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:50:08.8686514+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:47:28 GMT + - Thu, 28 Jan 2021 02:50:09 GMT ms-cv: - - 5KGDjpJUl0C3zdEyZKqC3w.0 + - JlHKkjOyrEeM+Ko8SUu8oA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 107ms + - 98ms status: code: 200 message: OK @@ -94,26 +94,28 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 33856f9d-9d59-4355-93be-1d43338f5c66 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:12d78aa192304464b00317fd26c9ff04@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T17:47:29Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8a-026e-9c58-373a0d00273b"}}' + body: '{"chatThread": {"id": "19:ODogljVTL6NBq_7_XXKpSly9AbXKchOYn335LwLy_mQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:50:10Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6c7-91b5-dbb7-3a3a0d000526"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:47:29 GMT + - Thu, 28 Jan 2021 02:50:10 GMT ms-cv: - - u/2IZjucOUCiaAj9OhbrTw.0 + - ZuUMdoVjHEC16ePDRJU0QQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 854ms + - 892ms status: code: 201 message: Created @@ -137,15 +139,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 17:47:30 GMT + - Thu, 28 Jan 2021 02:50:11 GMT ms-cv: - - hkl4/aC1dkWel0KDIA7kHw.0 + - oaWQpHK7q0OmL8SHVi2FRw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 307ms + - 336ms status: code: 204 message: No Content @@ -161,7 +163,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:47:43 GMT + - Thu, 28 Jan 2021 02:50:18 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -175,13 +177,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:47:47 GMT + - Thu, 28 Jan 2021 02:50:26 GMT ms-cv: - - fsyq6ouEIUWA6w5Q4Kv1eQ.0 + - 00Zq+VAZB0KRGOod9+gQrA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 17205ms + - 16144ms status: code: 204 message: No Content @@ -205,15 +207,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 17:47:48 GMT + - Thu, 28 Jan 2021 02:50:27 GMT ms-cv: - - Xs5/2WvTgkiLLvcpX3aojA.0 + - /oZeg1TTjEy4n9i4yWBrxQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 739ms + - 281ms 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 a858cf06c5e9..61c963cdf98e 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:48:01 GMT + - Thu, 28 Jan 2021 02:50:35 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,9 +26,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:47:48 GMT + - Thu, 28 Jan 2021 02:50:27 GMT ms-cv: - - PN/KbdZzP0evxZs7M4IzTw.0 + - aEHikcTgskqXOXYraFI7fg.0 strict-transport-security: - max-age=2592000 transfer-encoding: @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:48:02 GMT + - Thu, 28 Jan 2021 02:50:35 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:47:47.8499306+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:50:27.3065677+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:47:48 GMT + - Thu, 28 Jan 2021 02:50:27 GMT ms-cv: - - kWzin0cMY0esWHjqAXy2mA.0 + - 2VOqmj5Hf0+Iyw3Ui1Dpvg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 87ms + - 83ms status: code: 200 message: OK @@ -94,26 +94,28 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 4eb0ddb5-6a06-40e9-88f0-45806d6530a3 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:932c8a6967c94372b776152a657055c7@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T17:47:49Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8a-506c-1db7-3a3a0d002ad3"}}' + body: '{"chatThread": {"id": "19:nGVSsJXIhDU2DS-1TlMcjx5HKt4A60NqZj6daAN19nE1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:50:28Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6c7-d9bb-1db7-3a3a0d0004fc"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:47:49 GMT + - Thu, 28 Jan 2021 02:50:28 GMT ms-cv: - - 08PQtsol8Uqylt9HD16EFw.0 + - N1pPCjXHvUqUyuUgc6yZsw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1405ms + - 892ms status: code: 201 message: Created @@ -131,23 +133,23 @@ interactions: method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-01-25T17:47:49Z", + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-01-28T02:50:28Z", "createdBy": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:47:49 GMT + - Thu, 28 Jan 2021 02:50:28 GMT ms-cv: - - 1bf6+syxyUOkVgNsrBOrXA.0 + - CIgG12mXeEWHMAXvLl4x+w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 278ms + - 257ms status: code: 200 message: OK @@ -163,7 +165,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:48:04 GMT + - Thu, 28 Jan 2021 02:50:36 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -177,13 +179,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:48:06 GMT + - Thu, 28 Jan 2021 02:50:45 GMT ms-cv: - - Q9Vx5Gs0CUq2pAVz6hv94Q.0 + - QnoqW+RreEa8NPq3ko8U3Q.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16225ms + - 16463ms status: code: 204 message: No Content @@ -207,15 +209,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 17:48:07 GMT + - Thu, 28 Jan 2021 02:50:46 GMT ms-cv: - - miah0VvSHE6+nxpb7Q3JRw.0 + - fdsMOibpO0SIVhU9uYG+Lg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 473ms + - 329ms 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 09989a756bb4..2c6cea7ceb42 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:48:20 GMT + - Thu, 28 Jan 2021 02:50:53 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:48:07 GMT + - Thu, 28 Jan 2021 02:50:46 GMT ms-cv: - - Qt+hMsZ0SUeWbBjqOVT5oQ.0 + - RbulWIkRWEukIdYD+b1iAw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 17ms + - 18ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:48:21 GMT + - Thu, 28 Jan 2021 02:50:54 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:48:07.144614+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:50:46.1560369+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:48:07 GMT + - Thu, 28 Jan 2021 02:50:46 GMT ms-cv: - - 7jnSvnCEU06zOJ9y3r3GRA.0 + - oAxrYt+5mUylH4Ialsi/Dg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 89ms + - 86ms status: code: 200 message: OK @@ -94,26 +94,28 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 412b94b6-1de3-47ad-a5b8-5390fd438e53 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:bafda2190f924a6da8b3f4274676677d@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T17:48:08Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8a-9bc6-1655-373a0d002762"}}' + body: '{"chatThread": {"id": "19:aI9emU45LXBXPXSXd4BbGzXjRMDOt0NI-CmvZ6YXxCc1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:50:47Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6c8-2366-1db7-3a3a0d0004ff"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:48:08 GMT + - Thu, 28 Jan 2021 02:50:48 GMT ms-cv: - - 0MiTXLitokaWeSX2SiO1Ng.0 + - Crbg/kTJhEKp9hjQgeu6FA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 896ms + - 840ms status: code: 201 message: Created @@ -129,7 +131,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:48:22 GMT + - Thu, 28 Jan 2021 02:50:55 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -143,13 +145,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:48:25 GMT + - Thu, 28 Jan 2021 02:51:04 GMT ms-cv: - - 8g/S0JsofE2iuKBQbLr25w.0 + - PPm6vxi5hkOZOgy+tCivlg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16550ms + - 16446ms status: code: 204 message: No Content @@ -173,15 +175,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 17:48:25 GMT + - Thu, 28 Jan 2021 02:51:04 GMT ms-cv: - - KSO679H6l0W7deoQpb1Jxg.0 + - w2JkgMRDs0OwWI3jweIgXg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 302ms + - 332ms 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 f3039b109ea4..d130ba08102d 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:48:39 GMT + - Thu, 28 Jan 2021 02:51:12 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:48:25 GMT + - Thu, 28 Jan 2021 02:51:04 GMT ms-cv: - - rYSY/wje90K4OOIC8moh6w.0 + - gw7WjpjzqEefrk1egF7q0w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 39ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:48:39 GMT + - Thu, 28 Jan 2021 02:51:12 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:48:25.5162705+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:51:04.5496712+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:48:25 GMT + - Thu, 28 Jan 2021 02:51:05 GMT ms-cv: - - oNEWXTcUSEeTJA7rS2OAhg.0 + - l1Kz0MoRkECsVD2/sHOzrQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 93ms + - 171ms status: code: 200 message: OK @@ -94,26 +94,28 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - f489f982-a0cb-4ab5-bcfc-256151673fb5 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:95e9bec0b74d4a8eb7414257626a4f18@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T17:48:27Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8a-e374-b0b7-3a3a0d002800"}}' + body: '{"chatThread": {"id": "19:7_3swJQk-aldEAxcwOSt_6q121zmGWe8k-e_9vSCYbo1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:51:05Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6c8-6a99-9c58-373a0d0004c1"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:48:27 GMT + - Thu, 28 Jan 2021 02:51:05 GMT ms-cv: - - 2yMh19/WIUun8ywzgA2mOw.0 + - RG/KNbpkAUe7yvRLw/s3sw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1173ms + - 893ms status: code: 201 message: Created @@ -134,19 +136,19 @@ interactions: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:48:29 GMT + - Thu, 28 Jan 2021 02:51:09 GMT ms-cv: - - VirqTs34gU2vEHPGN7EgEA.0 + - M4H+kfmfiU2S785/gPJKbQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 321ms + - 407ms status: code: 200 message: OK @@ -162,7 +164,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:48:43 GMT + - Thu, 28 Jan 2021 02:51:16 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -176,13 +178,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:48:46 GMT + - Thu, 28 Jan 2021 02:51:24 GMT ms-cv: - - YQwYD/M6kEObut/qJon8zA.0 + - 6rBZ1c1fUkWY+QvQubD6kg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16304ms + - 15854ms status: code: 204 message: No Content @@ -206,15 +208,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 17:48:46 GMT + - Thu, 28 Jan 2021 02:51:25 GMT ms-cv: - - 3odFWv6dVU2/bi5fZgwODg.0 + - +ZjV6MInN0yXwiGymfcQlw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 297ms + - 341ms 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 060f09238aa2..b4f5d8f8a937 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:49:00 GMT + - Thu, 28 Jan 2021 02:51:32 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:48:47 GMT + - Thu, 28 Jan 2021 02:51:25 GMT ms-cv: - - BVIRAQIW7kuQRq/88BCj8A.0 + - +ghOK2wpokS63Na/0ZOgGA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 30ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:49:00 GMT + - Thu, 28 Jan 2021 02:51:33 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:48:46.4503998+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:51:24.0655917+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:48:47 GMT + - Thu, 28 Jan 2021 02:51:25 GMT ms-cv: - - cKGQvzv/skyuZgEPbsBfQw.0 + - 1LRFyK6OckeH0TGGm7X37A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 115ms + - 88ms status: code: 200 message: OK @@ -90,19 +90,21 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 390f9edc-89eb-4df4-9096-417ea1d303b1 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:aa53cd0cbfba4aa48df0850405d6b0a0@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T17:48:47Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8b-353e-9c58-373a0d00273c"}}' + body: '{"chatThread": {"id": "19:NfTe8jsv4GFm7rSnqB4W6qL2UJscYALQtN68hb3Lnww1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:51:26Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6c8-bb52-1db7-3a3a0d000502"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 17:48:48 GMT - ms-cv: T1kL5ifVSECg3upWveP7ug.0 + date: Thu, 28 Jan 2021 02:51:26 GMT + ms-cv: XIU0BBtCQkiBDfKY/IEujg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 878ms + x-processing-time: 882ms status: code: 201 message: Created @@ -120,11 +122,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 17:48:48 GMT - ms-cv: WDgG+UEYqEuYZU3M7i3gIg.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 02:51:26 GMT + ms-cv: KuH3fRffU0yJRVRuvxxp0g.0 strict-transport-security: max-age=2592000 - x-processing-time: 305ms + x-processing-time: 333ms status: code: 204 message: No Content @@ -141,7 +143,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:49:02 GMT + - Thu, 28 Jan 2021 02:51:34 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -155,13 +157,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:49:04 GMT + - Thu, 28 Jan 2021 02:51:42 GMT ms-cv: - - T2WJ5d79iUWRnOBSsYbcpQ.0 + - iiTtYNaG8UikgSvLSWBDtQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16204ms + - 15757ms 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_w_repeatability_request_id_async.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml new file mode 100644 index 000000000000..0e34c42090cc --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml @@ -0,0 +1,200 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 28 Jan 2021 02:51:50 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 28 Jan 2021 02:51:42 GMT + ms-cv: + - ePcKaHxqu0ijfBRZ4F/bfA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 19ms + status: + code: 200 + message: OK +- request: + body: '{"scopes": ["chat"]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '20' + Content-Type: + - application/json + Date: + - Thu, 28 Jan 2021 02:51:50 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:51:42.6046378+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 28 Jan 2021 02:51:42 GMT + ms-cv: + - RWPqYTcIVU+4lOEGm76IVw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 83ms + status: + code: 200 + message: OK +- request: + body: '{"topic": "test topic", "participants": "sanitized"}' + headers: + Accept: + - application/json + Content-Length: + - '206' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - e170ca1e-cc43-4168-ad12-1a9437ece904 + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"chatThread": {"id": "19:nq9XVq_sf9QTjkMT6DvEZF3Hun0ak0niIdCxJL6slzQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:51:44Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6c8-ffdd-1db7-3a3a0d000504"}}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + content-type: application/json; charset=utf-8 + date: Thu, 28 Jan 2021 02:51:44 GMT + ms-cv: JiL4t1uHNkmpT+d1s2Negw.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 914ms + status: + code: 201 + message: Created + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 +- request: + body: '{"topic": "test topic", "participants": "sanitized"}' + headers: + Accept: + - application/json + Content-Length: + - '206' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - e170ca1e-cc43-4168-ad12-1a9437ece904 + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"chatThread": {"id": "19:nq9XVq_sf9QTjkMT6DvEZF3Hun0ak0niIdCxJL6slzQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:51:44Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6c8-ffdd-1db7-3a3a0d000504"}}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + content-type: application/json; charset=utf-8 + date: Thu, 28 Jan 2021 02:51:45 GMT + ms-cv: 0JVDz9pWKUOxfq0VoDOHNA.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 665ms + status: + code: 201 + message: Created + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 02:51:45 GMT + ms-cv: GOXR9Pa8TUiT71d9XOTLvQ.0 + strict-transport-security: max-age=2592000 + x-processing-time: 341ms + status: + code: 204 + message: No Content + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 28 Jan 2021 02:51:53 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 + date: + - Thu, 28 Jan 2021 02:52:01 GMT + ms-cv: + - FbSkj5Qt7USkz5MCQU332Q.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 15853ms + status: + code: 204 + message: No Content +version: 1 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 17ef431486ed..834a632f29ae 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:49:18 GMT + - Thu, 28 Jan 2021 02:52:09 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:49:05 GMT + - Thu, 28 Jan 2021 02:52:01 GMT ms-cv: - - RVrIyUzajEiGXbPEhg+6XA.0 + - ChT/AzqJAEWV5bJDCIxZrg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 45ms + - 21ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:49:18 GMT + - Thu, 28 Jan 2021 02:52:09 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:49:04.6480313+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:52:01.2809248+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:49:05 GMT + - Thu, 28 Jan 2021 02:52:02 GMT ms-cv: - - V/V5xZgop0eh7cCdTe3wIw.0 + - L/qkiURqh06HvntvqEb9SA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 93ms + - 185ms status: code: 200 message: OK @@ -90,19 +90,21 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - bc4ef5a4-6d85-4c30-ba1d-44d861476a5d method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:d336b7a72bff4f94b19ab2d74d7f9c35@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T17:49:06Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8b-7c4f-1655-373a0d002765"}}' + body: '{"chatThread": {"id": "19:6iaeEoCb1Jg_Gj1ff33rVu2bTgVjQbaEzb2dv3pUlew1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:52:02Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6c9-4878-9c58-373a0d0004c3"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 17:49:07 GMT - ms-cv: mwbttry9FkuDj6ANZO6XOQ.0 + date: Thu, 28 Jan 2021 02:52:03 GMT + ms-cv: UtX30cVAdEqDd3iyhf1W0A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 850ms + x-processing-time: 913ms status: code: 201 message: Created @@ -120,11 +122,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 17:49:07 GMT - ms-cv: VBefqR2rbkqVQoaK6LJxfA.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 02:52:03 GMT + ms-cv: hnEA2Yrp4EO1wUZseuf8cA.0 strict-transport-security: max-age=2592000 - x-processing-time: 293ms + x-processing-time: 346ms status: code: 204 message: No Content @@ -142,11 +144,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 17:49:07 GMT - ms-cv: fgY4wvqpFkaEgCd4fr/A8A.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 02:52:03 GMT + ms-cv: NURNPbzbY0qZhvSXXgcflA.0 strict-transport-security: max-age=2592000 - x-processing-time: 257ms + x-processing-time: 287ms status: code: 204 message: No Content @@ -163,7 +165,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:49:21 GMT + - Thu, 28 Jan 2021 02:52:11 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -177,13 +179,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:49:23 GMT + - Thu, 28 Jan 2021 02:52:19 GMT ms-cv: - - oI34Crr2rUyyMo+h8KVXvg.0 + - ssk8hjO9PUK/wPVhTVCS+A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16089ms + - 16065ms 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 49a0cc5a2dc9..7daca206175e 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:49:37 GMT + - Thu, 28 Jan 2021 02:52:27 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:49:24 GMT + - Thu, 28 Jan 2021 02:52:19 GMT ms-cv: - - wEyH0YIoVEaJYqd4cCtWRQ.0 + - oDWwu3e2zkO/MHLow7SRlw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 35ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:49:38 GMT + - Thu, 28 Jan 2021 02:52:27 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:49:23.8373762+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:52:19.6111708+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:49:24 GMT + - Thu, 28 Jan 2021 02:52:19 GMT ms-cv: - - EK6RBGx/kUifI0FRxN7XpA.0 + - ONiGgkOlek2mqwv1Gd9NhA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 85ms + - 99ms status: code: 200 message: OK @@ -90,19 +90,21 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 324f1bb5-1d60-4eaf-bfa3-4892e5a17476 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:0258ac0a1d77422ea1c130b891552808@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T17:49:25Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8b-c761-1655-373a0d002768"}}' + body: '{"chatThread": {"id": "19:_qAo9mHjoLVSr7I4QWntBUnoXjvydZviUG93YEj7kII1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:52:20Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6c9-906e-dbb7-3a3a0d000532"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 17:49:25 GMT - ms-cv: ZpJm2YSpMEWhKuZJRPlomA.0 + date: Thu, 28 Jan 2021 02:52:21 GMT + ms-cv: vpymEbR/p0iKvMQBYB546g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 857ms + x-processing-time: 912ms status: code: 201 message: Created @@ -117,16 +119,16 @@ interactions: method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-01-25T17:49:25Z", + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-01-28T02:52:20Z", "createdBy": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 17:49:25 GMT - ms-cv: HlbdcVYqKkmNGomDFpDFwQ.0 + date: Thu, 28 Jan 2021 02:52:21 GMT + ms-cv: 7tD7G1PoF0qslALD3T/sFg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 258ms + x-processing-time: 257ms status: code: 200 message: OK @@ -144,11 +146,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 17:49:25 GMT - ms-cv: sqH5Iu3F3USpM0IKHyfa3w.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 02:52:21 GMT + ms-cv: sExvShwvAUqv6kLc4VQwLg.0 strict-transport-security: max-age=2592000 - x-processing-time: 301ms + x-processing-time: 287ms status: code: 204 message: No Content @@ -165,7 +167,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:49:39 GMT + - Thu, 28 Jan 2021 02:52:29 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -179,13 +181,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:49:42 GMT + - Thu, 28 Jan 2021 02:52:38 GMT ms-cv: - - c1H6lZWItUu4maIiIiHqVA.0 + - BIGXlc+wuUOP5nx4mqmOoQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16231ms + - 16842ms 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 aaa113d87b8d..acd260559c7f 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:49:56 GMT + - Thu, 28 Jan 2021 02:52:46 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:49:43 GMT + - Thu, 28 Jan 2021 02:52:38 GMT ms-cv: - - i421D7R/XEK6vANt6iooxw.0 + - cbRBcgjlVEm04lbdicbfpg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 27ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:49:56 GMT + - Thu, 28 Jan 2021 02:52:46 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:49:42.1805472+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:52:38.6380296+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:49:43 GMT + - Thu, 28 Jan 2021 02:52:38 GMT ms-cv: - - clTWLXF66UWxMYad2LTFiQ.0 + - UP6/1NKgMUOz0xsMHVW01w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 123ms + - 136ms status: code: 200 message: OK @@ -90,19 +90,21 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 79e62744-60ff-4e3e-a409-a3f811650d93 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:84b0db05082941678ec4f015b8f9f172@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T17:49:43Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8c-0edd-1db7-3a3a0d002adc"}}' + body: '{"chatThread": {"id": "19:kDkNRq9E2v4VH-92hJNix6M4FAcKwMIELj6UJhzYHps1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:52:39Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6c9-da9e-dbb7-3a3a0d000536"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 17:49:43 GMT - ms-cv: p+z1na/BJ0Cmifj5okN3BA.0 + date: Thu, 28 Jan 2021 02:52:39 GMT + ms-cv: ozGcDv1SaEOSTBhDQ/n+Fw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 868ms + x-processing-time: 830ms status: code: 201 message: Created @@ -120,11 +122,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 17:49:43 GMT - ms-cv: h6St3wtw4kG4FvpZaS0gbw.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 02:52:40 GMT + ms-cv: en166IXcHUa6hed/sEuadw.0 strict-transport-security: max-age=2592000 - x-processing-time: 295ms + x-processing-time: 288ms status: code: 204 message: No Content @@ -141,7 +143,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:49:57 GMT + - Thu, 28 Jan 2021 02:52:48 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -155,13 +157,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:50:00 GMT + - Thu, 28 Jan 2021 02:52:56 GMT ms-cv: - - Vc5ZCGLGMUW/uXqcABzFow.0 + - M0BclhX8G0CedgrKpX7Csg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16560ms + - 15772ms 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 60952805c5c8..21279ecfdf26 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:50:14 GMT + - Thu, 28 Jan 2021 02:53:04 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:50:00 GMT + - Thu, 28 Jan 2021 02:52:56 GMT ms-cv: - - Qk0HvRQqPk2J7r9gfDrPew.0 + - uHYuLL6Xn0O2DCve3/Ln7w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 19ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:50:14 GMT + - Thu, 28 Jan 2021 02:53:04 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:50:00.6505801+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:52:56.1438292+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:50:00 GMT + - Thu, 28 Jan 2021 02:52:57 GMT ms-cv: - - BamiJIwrykybfvYuXJSZAA.0 + - ElbjBDEfR0i5EYbCcsze1g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 92ms + - 88ms status: code: 200 message: OK @@ -85,24 +85,26 @@ interactions: Accept: - application/json Content-Length: - - '205' + - '206' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 4e41686d-249a-42b1-b1b3-2eeac55c0d6d method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:1991106ae2bc44599111db958a135016@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T17:50:01Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da8c-5726-dbb7-3a3a0d002991"}}' + body: '{"chatThread": {"id": "19:xzjPI76oWBbES5UV2hOWbSyJFePFf60x0y1vBy3iXD81@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:52:57Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6ca-1f2d-dbb7-3a3a0d000537"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 17:50:01 GMT - ms-cv: ooc73IhRREWsypKw81pY9w.0 + date: Thu, 28 Jan 2021 02:52:57 GMT + ms-cv: +oWO0a0CqkyhR0jKMqooRg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 845ms + x-processing-time: 838ms status: code: 201 message: Created @@ -119,13 +121,13 @@ interactions: response: body: '{"value": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 17:50:04 GMT - ms-cv: 0tjprqjYqE+UvBF57b60hw.0 + date: Thu, 28 Jan 2021 02:52:59 GMT + ms-cv: QciBxBXKmUC3hM7eUACvyQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 316ms + x-processing-time: 400ms status: code: 200 message: OK @@ -143,11 +145,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 17:50:04 GMT - ms-cv: f7ZM9fdmk06yesQhq8V1lg.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 02:53:00 GMT + ms-cv: LIjjKSo8DUafKPGN8QuoUg.0 strict-transport-security: max-age=2592000 - x-processing-time: 295ms + x-processing-time: 324ms status: code: 204 message: No Content @@ -164,7 +166,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:50:18 GMT + - Thu, 28 Jan 2021 02:53:08 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -178,13 +180,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:50:21 GMT + - Thu, 28 Jan 2021 02:53:16 GMT ms-cv: - - 5I/T5tjsxU+S1gX75sAyJg.0 + - eBnKTKg/o0SpGJpiihit+g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16136ms + - 16288ms 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 3ea21d2b450f..15b4eb6680db 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:43:41 GMT + - Thu, 28 Jan 2021 02:53:24 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:43:27 GMT + - Thu, 28 Jan 2021 02:53:17 GMT ms-cv: - - oKRx4zh+QkaN0EcDBrWLTg.0 + - nuTSb61btkKC0541ce1FDA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 76ms + - 20ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:43:42 GMT + - Thu, 28 Jan 2021 02:53:24 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:43:27.5398235+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:53:16.7796221+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:43:27 GMT + - Thu, 28 Jan 2021 02:53:17 GMT ms-cv: - - gGgUG9cHAUid9CwRhrCt+g.0 + - EkGxbJGztkWuQRfelOvbPQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 92ms + - 100ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:43:42 GMT + - Thu, 28 Jan 2021 02:53:25 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:43:27 GMT + - Thu, 28 Jan 2021 02:53:17 GMT ms-cv: - - wq0vSfYE+k2kKi8sh1203Q.0 + - DradkXTBcEWxGyrjpbgHeg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 16ms + - 24ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:43:42 GMT + - Thu, 28 Jan 2021 02:53:25 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:43:27.7341497+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:53:17.0112305+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:43:27 GMT + - Thu, 28 Jan 2021 02:53:17 GMT ms-cv: - - faDmhVQz+0KTIkx/VNBefA.0 + - FVzu6cw5QUOLpJjOOH80LQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 88ms + - 100ms status: code: 200 message: OK @@ -174,26 +174,28 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 56090ed0-6190-446c-8f6b-649fd4a12125 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:59482b7f477148a7a9fe4fdcf23093e2@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:43:29Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dabd-460d-1db7-3a3a0d002b6f"}}' + body: '{"chatThread": {"id": "19:bmuz2t67vLsE8bhCz0Y9IkgdErCARmxOwvaXRkbpJZU1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:53:18Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6ca-6fc0-dbb7-3a3a0d000538"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:43:29 GMT + - Thu, 28 Jan 2021 02:53:18 GMT ms-cv: - - WJsRBrQqZE2iI9ZiUMTSgQ.0 + - eFNx36rnmkSYM3rCthy9ow.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 879ms + - 892ms status: code: 201 message: Created @@ -207,7 +209,7 @@ interactions: Connection: - keep-alive Content-Length: - - '183' + - '182' Content-Type: - application/json User-Agent: @@ -218,19 +220,19 @@ interactions: body: '{}' headers: api-supported-versions: - - 2020-11-01-preview3 + - 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:43:30 GMT + - Thu, 28 Jan 2021 02:53:19 GMT ms-cv: - - I4AD08sPQkGV3X4vcBKv6w.0 + - oMKzwlbw2k2U319yWBteKQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 408ms + - 397ms status: code: 201 message: Created @@ -246,7 +248,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:43:44 GMT + - Thu, 28 Jan 2021 02:53:27 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -260,13 +262,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:43:46 GMT + - Thu, 28 Jan 2021 02:53:35 GMT ms-cv: - - iOwJb897x0G8KkpKf5Efmg.0 + - FL1ThO3Rw0672zJ6JVTX/w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16109ms + - 16460ms status: code: 204 message: No Content @@ -282,7 +284,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:44:00 GMT + - Thu, 28 Jan 2021 02:53:43 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -296,13 +298,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:44:02 GMT + - Thu, 28 Jan 2021 02:53:51 GMT ms-cv: - - S6D8jA+Tv0KvQjFNJprXpw.0 + - 9iAGoQxXgEms9LsoRjIp1g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16057ms + - 15903ms status: code: 204 message: No Content @@ -326,15 +328,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:44:02 GMT + - Thu, 28 Jan 2021 02:53:51 GMT ms-cv: - - VxGMJuxHQ0OWPoPm7SVKtA.0 + - 9LALryDlgUGld/7w57dulQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 313ms + - 306ms 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 29c034352320..1c2c701a1d25 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:44:17 GMT + - Thu, 28 Jan 2021 02:53:59 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:44:03 GMT + - Thu, 28 Jan 2021 02:53:52 GMT ms-cv: - - EC3zzJpZZUaK/irAzezSZw.0 + - vAMAryc/nkuEiMJAtNLEEQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 30ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:44:17 GMT + - Thu, 28 Jan 2021 02:54:00 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:44:02.6489909+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:53:51.9611824+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:44:03 GMT + - Thu, 28 Jan 2021 02:53:52 GMT ms-cv: - - J9NQ172wPkeNzs1XTskP2A.0 + - BIuXBb4NQEaW+LgLBQtoNw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 90ms + - 85ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:44:17 GMT + - Thu, 28 Jan 2021 02:54:00 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:44:03 GMT + - Thu, 28 Jan 2021 02:53:52 GMT ms-cv: - - /eNzY1NtRU++ZQ+1OiSjyg.0 + - SK/PSk+Bn0uH7e457XFz0g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 19ms + - 16ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:44:17 GMT + - Thu, 28 Jan 2021 02:54:00 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:44:02.8464121+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:53:52.165552+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:44:03 GMT + - Thu, 28 Jan 2021 02:53:52 GMT ms-cv: - - FX25cHsYP06xo1HHTIqfhA.0 + - bikHBYxFz0i0EXh2HjXXew.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 94ms + - 88ms status: code: 200 message: OK @@ -174,26 +174,28 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 0acd8185-b790-480e-96d9-c022f3a09cd8 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:5d3dac447bbf4a819a4a01abd92d4067@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:44:04Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dabd-cf37-1db7-3a3a0d002b72"}}' + body: '{"chatThread": {"id": "19:TVl_xp_kn_8m2rM0tlmg74e971JKs4VcTMqXgaTxYlo1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:53:54Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6ca-f924-1db7-3a3a0d000509"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:44:04 GMT + - Thu, 28 Jan 2021 02:53:53 GMT ms-cv: - - crpNg8/LG0yRASi6w51Vxg.0 + - GnJMcbvHJ0a4eIeTN2Q0nA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 864ms + - 1362ms status: code: 201 message: Created @@ -218,19 +220,19 @@ interactions: body: '{}' headers: api-supported-versions: - - 2020-11-01-preview3 + - 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:44:04 GMT + - Thu, 28 Jan 2021 02:53:55 GMT ms-cv: - - t1/a7+QqR0mljL2EzVyLlg.0 + - Y7neiVDQE0qw5ODyoDIyYg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 404ms + - 906ms status: code: 201 message: Created @@ -246,7 +248,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:44:19 GMT + - Thu, 28 Jan 2021 02:54:03 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -260,13 +262,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:44:20 GMT + - Thu, 28 Jan 2021 02:54:12 GMT ms-cv: - - ogZg48W5Pkin//L7WZ8dwg.0 + - ZjAeLbeSeE6vCmqQY1xyww.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15902ms + - 16543ms status: code: 204 message: No Content @@ -282,7 +284,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:44:35 GMT + - Thu, 28 Jan 2021 02:54:19 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -296,13 +298,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:44:36 GMT + - Thu, 28 Jan 2021 02:54:28 GMT ms-cv: - - lGW2AwMWZE+nSyGQmw1W+w.0 + - ADHr+LsCFUGqoDVAic5r+A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15985ms + - 15886ms status: code: 204 message: No Content @@ -326,15 +328,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:44:37 GMT + - Thu, 28 Jan 2021 02:54:28 GMT ms-cv: - - X2vRWTp/8kK/LX+rpTDWhw.0 + - x+ryMjif4UaeB/3eMT+Akw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 322ms + - 303ms 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 bdf5c67f901c..22927ae020e3 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:44:51 GMT + - Thu, 28 Jan 2021 02:54:36 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:44:38 GMT + - Thu, 28 Jan 2021 02:54:28 GMT ms-cv: - - pP4N+j5G/EyszxIeVPhjtA.0 + - /eRfLNiO3kSTYyhJNEZXBA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 65ms + - 48ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:44:52 GMT + - Thu, 28 Jan 2021 02:54:36 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:44:37.7047435+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:54:28.3469906+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:44:38 GMT + - Thu, 28 Jan 2021 02:54:28 GMT ms-cv: - - dKDAxuWQ8U+sSEVqAdb5lQ.0 + - EvkkQlCbpkithsYNURhTnQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 87ms + - 208ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:44:52 GMT + - Thu, 28 Jan 2021 02:54:36 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:44:38 GMT + - Thu, 28 Jan 2021 02:54:28 GMT ms-cv: - - b8ZKJznCekOUyVDg21ueLA.0 + - 09jI1i8P5kq5ikXDMNleJA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 46ms + - 18ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:44:52 GMT + - Thu, 28 Jan 2021 02:54:36 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:44:37.9540654+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:54:28.6492633+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:44:38 GMT + - Thu, 28 Jan 2021 02:54:29 GMT ms-cv: - - NvHp6Ofuj0mNEc5LiZ3W5A.0 + - uxaRQTt8z0qc9NzUJ/bmwQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 91ms + - 175ms status: code: 200 message: OK @@ -174,32 +174,34 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - f1c5ebdb-14e2-44ca-8a10-3c23e9dd6208 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:ffe1b3558127474e923fbd45cbb75e65@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:44:39Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dabe-5817-1655-373a0d0027e5"}}' + body: '{"chatThread": {"id": "19:p6yTRSyGstJL9u1yz3BAU3d_EgFdI-Rq2swMXE6WTio1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:54:30Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6cb-86d5-dbb7-3a3a0d000541"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:44:39 GMT + - Thu, 28 Jan 2021 02:54:30 GMT ms-cv: - - JPk94FunaEOLDxXJo/Er4Q.0 + - JBZ1Sgd9bkKpX/LI97mUJw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 847ms + - 842ms status: code: 201 message: Created - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json @@ -208,7 +210,7 @@ interactions: Connection: - keep-alive Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -219,19 +221,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:44:40 GMT + - Thu, 28 Jan 2021 02:54:31 GMT ms-cv: - - pKEUet1MvUSJPpX3CzzV2A.0 + - LSv1Pg2WHEiT1BIwnJeToA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 834ms + - 869ms status: code: 201 message: Created @@ -255,15 +257,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:44:41 GMT + - Thu, 28 Jan 2021 02:54:31 GMT ms-cv: - - FnrADCL5ukWrri0XsSrNHg.0 + - Y28rr8mJkk6qJEWW1QW+yg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 400ms + - 442ms status: code: 204 message: No Content @@ -279,7 +281,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:44:55 GMT + - Thu, 28 Jan 2021 02:54:39 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -293,13 +295,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:44:56 GMT + - Thu, 28 Jan 2021 02:54:47 GMT ms-cv: - - yAZHb7sH8kqk+953gRifKA.0 + - tucyIy3RUU6coQOLH4lbAQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16221ms + - 15940ms status: code: 204 message: No Content @@ -315,7 +317,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:45:11 GMT + - Thu, 28 Jan 2021 02:54:55 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -329,13 +331,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:45:13 GMT + - Thu, 28 Jan 2021 02:55:04 GMT ms-cv: - - c2wSYaKuuUOZa+i+oVwVqw.0 + - F1AOuseS50+kLYBeAEJrJA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15598ms + - 16673ms status: code: 204 message: No Content @@ -359,15 +361,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:45:13 GMT + - Thu, 28 Jan 2021 02:55:04 GMT ms-cv: - - gNlvnW/roEGP9KhoVLAmXw.0 + - evaLMh21+kWVfOHji8yXew.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 341ms + - 317ms 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 34d5ef071562..b786d3a2fe84 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:45:27 GMT + - Thu, 28 Jan 2021 02:55:12 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:13 GMT + - Thu, 28 Jan 2021 02:55:05 GMT ms-cv: - - 0ZFBvIj7f028BsNyzbE55w.0 + - U/gMGq9QpkODfp/Mg6Dm9g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 24ms + - 60ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:45:27 GMT + - Thu, 28 Jan 2021 02:55:13 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:45:13.2602928+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:55:05.4363162+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:13 GMT + - Thu, 28 Jan 2021 02:55:05 GMT ms-cv: - - Dpfw4A/Py06l1S6VHGWKoA.0 + - PjsCf3jB/U2B77E1C3Ecmg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 88ms + - 341ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:45:27 GMT + - Thu, 28 Jan 2021 02:55:13 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:13 GMT + - Thu, 28 Jan 2021 02:55:05 GMT ms-cv: - - inlBIKKwbkW/xg9m8FPIHw.0 + - PF6+R81tYEea4u8NappQpQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 17ms + - 21ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:45:28 GMT + - Thu, 28 Jan 2021 02:55:13 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:45:13.4429851+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:55:05.655757+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:13 GMT + - Thu, 28 Jan 2021 02:55:05 GMT ms-cv: - - yNNUaxMf1EG9hP1IvSLU+g.0 + - t5Jw4i48oke1DLTwO2a4OQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 84ms + - 113ms status: code: 200 message: OK @@ -174,32 +174,34 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 92f12785-9a86-4eff-95ee-bf94f84f7342 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:720589ea282043ef984f0ae54a25a7b7@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:45:14Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dabe-e308-b0b7-3a3a0d002850"}}' + body: '{"chatThread": {"id": "19:i1wkuNFffwHa0cg5DDk2DuM4C0vOyBIEDelb8qUHdjQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:55:07Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6cc-1739-1655-373a0d0005cc"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:15 GMT + - Thu, 28 Jan 2021 02:55:07 GMT ms-cv: - - b7XjO9YJ3Umt8+7HWKXBPg.0 + - I0eOjT6uqUuwnsPn9PFn/w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 917ms + - 906ms status: code: 201 message: Created - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json @@ -208,7 +210,7 @@ interactions: Connection: - keep-alive Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -219,19 +221,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:15 GMT + - Thu, 28 Jan 2021 02:55:08 GMT ms-cv: - - Mh4OKIRPSkm+lIA6ogrsnA.0 + - qB8LHSlqVECLgqK6jojAXw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 404ms + - 398ms status: code: 201 message: Created @@ -249,24 +251,24 @@ interactions: method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1611600315871", + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1611802508230", "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": - "2021-01-25T18:45:15Z", "senderId": "sanitized"}' + "2021-01-28T02:55:08Z", "senderId": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:15 GMT + - Thu, 28 Jan 2021 02:55:08 GMT ms-cv: - - RASQqexRcUy1Nyfc/xTe1g.0 + - jS2fPZ6jO06iqYFMxLVR3g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 258ms + - 257ms status: code: 200 message: OK @@ -282,7 +284,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:45:30 GMT + - Thu, 28 Jan 2021 02:55:16 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -296,13 +298,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:45:32 GMT + - Thu, 28 Jan 2021 02:55:25 GMT ms-cv: - - PLScvFqsBEiDs7+JKKsILA.0 + - fgPfcP2vkkC/pSF5h6A0Eg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16309ms + - 16537ms status: code: 204 message: No Content @@ -318,7 +320,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:45:46 GMT + - Thu, 28 Jan 2021 02:55:32 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -332,13 +334,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:45:49 GMT + - Thu, 28 Jan 2021 02:55:41 GMT ms-cv: - - L4ZeN4YwM0+3RHrTzHdQKw.0 + - rfJ8b16Oe0uZy4WSIVrQDQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 17062ms + - 16795ms status: code: 204 message: No Content @@ -362,15 +364,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:45:49 GMT + - Thu, 28 Jan 2021 02:55:42 GMT ms-cv: - - LAb34vFSBUyVfz7q6sl1MA.0 + - HU2Up4qaP0eV86XEE5a4uw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 300ms + - 322ms 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 a7e61178404f..9f6d94f46714 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:46:03 GMT + - Thu, 28 Jan 2021 02:55:49 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:49 GMT + - Thu, 28 Jan 2021 02:55:41 GMT ms-cv: - - unagzh5SdUWK3NwBE1yL/A.0 + - kwGl8KMlZ067JyxCwf1ODg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 19ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:46:04 GMT + - Thu, 28 Jan 2021 02:55:50 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:45:49.6938238+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:55:41.0552003+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:49 GMT + - Thu, 28 Jan 2021 02:55:42 GMT ms-cv: - - 9ODd3u+FOUm/vsOggAHx7g.0 + - zUXuiFqDjUKgP2gIjLF7Kw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 90ms + - 105ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:46:04 GMT + - Thu, 28 Jan 2021 02:55:50 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:50 GMT + - Thu, 28 Jan 2021 02:55:42 GMT ms-cv: - - oiinWEDTNUGDX074oij4VA.0 + - SEasf1nK202APUzL0jUR6Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 39ms + - 53ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:46:04 GMT + - Thu, 28 Jan 2021 02:55:50 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:45:49.9706876+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:55:42.3409913+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:50 GMT + - Thu, 28 Jan 2021 02:55:42 GMT ms-cv: - - 01nDKwhwV0O5pdnS6AHlIw.0 + - I2mqAK5lyEyljK2HsoRlig.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 139ms + - 130ms status: code: 200 message: OK @@ -174,32 +174,34 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 5a242483-87f4-4aa8-9e23-de8f00e1e700 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:7c6b05f056fd4d34b35cfc35323d8be7@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:45:51Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dabf-715b-dbb7-3a3a0d0029f0"}}' + body: '{"chatThread": {"id": "19:xBdjNqZ7YLdbPl295x-hv4E7-_TtEZQtkPH2riQJxiM1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:55:43Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6cc-a733-b0b7-3a3a0d00046e"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:52 GMT + - Thu, 28 Jan 2021 02:55:43 GMT ms-cv: - - Dhg0lbDoZEOVRTonjcUCsw.0 + - bJcvsjBlQEmfPrlEuv1vVA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 867ms + - 913ms status: code: 201 message: Created - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json @@ -208,7 +210,7 @@ interactions: Connection: - keep-alive Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -219,19 +221,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:52 GMT + - Thu, 28 Jan 2021 02:55:44 GMT ms-cv: - - H1leZtlFuU6wSNRJxLtTIg.0 + - RVg1WR+RekqF7tJmkmlRng.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 381ms + - 395ms status: code: 201 message: Created @@ -252,19 +254,19 @@ interactions: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:52 GMT + - Thu, 28 Jan 2021 02:55:45 GMT ms-cv: - - dyYYQH20WUmTucn9zxXrog.0 + - sMgpAn8i2ESSfENblSd/og.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 273ms + - 266ms status: code: 200 message: OK @@ -285,19 +287,19 @@ interactions: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:53 GMT + - Thu, 28 Jan 2021 02:55:45 GMT ms-cv: - - erlDOQjoo0Cv/HB9j6spsg.0 + - 27Kx6MlSoEqGHiYuRzS5iw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 373ms + - 365ms status: code: 200 message: OK @@ -318,19 +320,19 @@ interactions: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:53 GMT + - Thu, 28 Jan 2021 02:55:45 GMT ms-cv: - - 04qxqyiO20KVsF57tWUDQQ.0 + - t8pmIYdVnUGsVQ/APzEG/A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 373ms + - 356ms status: code: 200 message: OK @@ -351,13 +353,13 @@ interactions: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:45:54 GMT + - Thu, 28 Jan 2021 02:55:46 GMT ms-cv: - - 87ngpgE1mES390iTfyKx/w.0 + - K2x8vKPhjUm7Ko0kb8jP6w.0 strict-transport-security: - max-age=2592000 transfer-encoding: @@ -379,7 +381,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:46:07 GMT + - Thu, 28 Jan 2021 02:55:53 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -393,13 +395,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:46:11 GMT + - Thu, 28 Jan 2021 02:56:02 GMT ms-cv: - - mC7CyMdqqkG4tPyB2CwseQ.0 + - J1h76RQax0uYmjj5uR4ZHw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 17446ms + - 16596ms status: code: 204 message: No Content @@ -415,7 +417,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:46:25 GMT + - Thu, 28 Jan 2021 02:56:10 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -429,13 +431,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:46:27 GMT + - Thu, 28 Jan 2021 02:56:19 GMT ms-cv: - - 50WMfvrMEkCkQV0A0mKJVw.0 + - h0J+v7mvjEeMbIBUdqXGPw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15840ms + - 16983ms status: code: 204 message: No Content @@ -459,15 +461,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:46:27 GMT + - Thu, 28 Jan 2021 02:56:20 GMT ms-cv: - - FuDzf6sAmkWFF5ElUpmNmQ.0 + - lvHDOYQHt0mEPXlAYRgZIA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 336ms + - 292ms 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 221f514b0ad8..c1ada8333cc5 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:46:41 GMT + - Thu, 28 Jan 2021 02:56:27 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:46:27 GMT + - Thu, 28 Jan 2021 02:56:20 GMT ms-cv: - - A5pPuFL+jke0+zWXUGLVfg.0 + - lesRlgj9F0mnYpoMOrZhUA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 23ms + - 22ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:46:41 GMT + - Thu, 28 Jan 2021 02:56:28 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:46:27.3419406+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:56:20.1248266+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:46:27 GMT + - Thu, 28 Jan 2021 02:56:20 GMT ms-cv: - - jOQ6al5nIkCa1b1wRg/ncg.0 + - N7aaY4FMLEOKJHMsy6ml4w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 102ms + - 100ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:46:42 GMT + - Thu, 28 Jan 2021 02:56:28 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:46:27 GMT + - Thu, 28 Jan 2021 02:56:20 GMT ms-cv: - - /T+IygIyY0e5hC1gNzsawA.0 + - yCCnHDID2UKLACPypowg/Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 22ms + - 68ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:46:42 GMT + - Thu, 28 Jan 2021 02:56:28 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:46:27.5691461+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:56:20.4862089+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:46:27 GMT + - Thu, 28 Jan 2021 02:56:20 GMT ms-cv: - - KUCRC91QakGemTcUH9vSDA.0 + - dY7M99are0ShGL64HaIpwg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 103ms + - 144ms status: code: 200 message: OK @@ -174,26 +174,28 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - e2aacb97-d351-4737-bd3e-3bd5a985713c method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:bdd087fab6e444298e40ddf3196c7b4d@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:46:29Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac0-043e-1db7-3a3a0d002b77"}}' + body: '{"chatThread": {"id": "19:nF7Ou6uizYUmajjzyCsva8yMlluwfj28xo7PwnvjdBQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:56:22Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6cd-3bde-dbb7-3a3a0d00054c"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:46:29 GMT + - Thu, 28 Jan 2021 02:56:22 GMT ms-cv: - - f/AJ3Z5SFU6zDL8JRjUcDw.0 + - buRloAdMXUSBay70R6n3Qw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 865ms + - 1285ms status: code: 201 message: Created @@ -218,19 +220,19 @@ interactions: body: '{}' headers: api-supported-versions: - - 2020-11-01-preview3 + - 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:46:30 GMT + - Thu, 28 Jan 2021 02:56:23 GMT ms-cv: - - sB0o36MSsEa5SAczOyG6Gg.0 + - I618zmPWY0mRtBjQBfA9ZA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 420ms + - 455ms status: code: 201 message: Created @@ -251,19 +253,19 @@ interactions: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-11-01-preview3 + - 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:46:30 GMT + - Thu, 28 Jan 2021 02:56:23 GMT ms-cv: - - lpA+Ry8mskmpmVZfdv9w2A.0 + - 1BAgflwOCUiILihP0ga2yw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 269ms + - 267ms status: code: 200 message: OK @@ -279,7 +281,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:46:44 GMT + - Thu, 28 Jan 2021 02:56:31 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -293,13 +295,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:46:46 GMT + - Thu, 28 Jan 2021 02:56:39 GMT ms-cv: - - 1KdvNjFZykWrHIt7M1SdJA.0 + - poOYXgqaykyhmTW/xlCECw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 17056ms + - 16281ms status: code: 204 message: No Content @@ -315,7 +317,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:47:01 GMT + - Thu, 28 Jan 2021 02:56:47 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -329,13 +331,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:47:03 GMT + - Thu, 28 Jan 2021 02:56:56 GMT ms-cv: - - uCZMYGRArUqybun05SEiXw.0 + - qQ6+G+oST0SNbLrlyH0IcA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15838ms + - 16535ms status: code: 204 message: No Content @@ -359,15 +361,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:47:03 GMT + - Thu, 28 Jan 2021 02:56:57 GMT ms-cv: - - K79YHhB3H02KxQKZUOJnUQ.0 + - yamloZXt/0yedabcyfa2LA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 340ms + - 288ms 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 ddfafe727530..b1a598923ad6 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:47:17 GMT + - Thu, 28 Jan 2021 02:57:04 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:03 GMT + - Thu, 28 Jan 2021 02:56:57 GMT ms-cv: - - KmArPD0DlkSqMJdz9GRcUg.0 + - eSYTkMn7tEa0wx8qUExYVQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 73ms + - 19ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:47:18 GMT + - Thu, 28 Jan 2021 02:57:04 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:47:03.4279193+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:56:56.7041302+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:03 GMT + - Thu, 28 Jan 2021 02:56:57 GMT ms-cv: - - tsh0ScLFLkya9RmdOTewxQ.0 + - lXlnvI4cF0SQvopoziFDow.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 88ms + - 92ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:47:18 GMT + - Thu, 28 Jan 2021 02:57:05 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:03 GMT + - Thu, 28 Jan 2021 02:56:57 GMT ms-cv: - - 5lagXms0TECdqtX2vLo/aw.0 + - tMrfciAeskqDKXV/+PfaKQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 52ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:47:18 GMT + - Thu, 28 Jan 2021 02:57:05 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:47:03.6776787+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:56:56.9741452+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:04 GMT + - Thu, 28 Jan 2021 02:56:57 GMT ms-cv: - - 8NGPvPCdfEOSE6QcA7Szxg.0 + - Ok5i1EgtFEG8SL9v9FMHQg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 137ms + - 116ms status: code: 200 message: OK @@ -174,32 +174,34 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 6ab65574-c8b7-4f89-8460-659c1e20392e method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:9cf33f763ee7413a960e302ec7fec09c@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:47:05Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac0-915f-b0b7-3a3a0d002853"}}' + body: '{"chatThread": {"id": "19:yfJH0hAT_2bVssdXBhztpVDjlHblnliK-heIORMtnf41@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:56:58Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6cd-cadc-dbb7-3a3a0d000551"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:05 GMT + - Thu, 28 Jan 2021 02:56:58 GMT ms-cv: - - j5GIecWHXUiW5S1RIQLKPg.0 + - 1LpDoIWUN0OXgVKgNR2y7Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 909ms + - 915ms status: code: 201 message: Created - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json @@ -208,7 +210,7 @@ interactions: Connection: - keep-alive Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -219,19 +221,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:05 GMT + - Thu, 28 Jan 2021 02:56:59 GMT ms-cv: - - OlL0PRQ/fkO+yDmKgEuRvw.0 + - gOmCsKUK5UmDQ8KxDyFG4A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 397ms + - 394ms status: code: 201 message: Created @@ -257,17 +259,17 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: - '0' date: - - Mon, 25 Jan 2021 18:47:06 GMT + - Thu, 28 Jan 2021 02:57:00 GMT ms-cv: - - 05YTSTjukU2ZSs5wc+MRQA.0 + - jKbfyDDD6kinMN4lyq5fsA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 919ms + - 632ms status: code: 200 message: OK @@ -288,25 +290,25 @@ interactions: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:06 GMT + - Thu, 28 Jan 2021 02:57:00 GMT ms-cv: - - FXpjg45T3U6FN7yxw4SpQg.0 + - GFB61mwdcUGFDt7XG4c2sg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 283ms + - 260ms status: code: 200 message: OK - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json @@ -315,7 +317,7 @@ interactions: Connection: - keep-alive Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -326,19 +328,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:07 GMT + - Thu, 28 Jan 2021 02:57:01 GMT ms-cv: - - Zlr909DLs0m4XczUd4zTpw.0 + - k088AucTwUy1BzvZyPUYqA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 403ms + - 396ms status: code: 201 message: Created @@ -364,17 +366,17 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: - '0' date: - - Mon, 25 Jan 2021 18:47:08 GMT + - Thu, 28 Jan 2021 02:57:02 GMT ms-cv: - - rd4UCH52yke6ef8kuyVSrQ.0 + - 31ugWpLl1k6kUNt2bsYTGg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 457ms + - 1114ms status: code: 200 message: OK @@ -395,24 +397,25 @@ interactions: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:09 GMT + - Thu, 28 Jan 2021 02:57:02 GMT ms-cv: - - n2oTYPeq8kS0bGVZI/yQbg.0 + - 8A060xlCkUKjV/tkQrxqew.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 627ms + - 257ms status: code: 200 message: OK - request: - body: '{"priority": "Normal", "content": "content", "senderDisplayName": "sender_display_name"}' + body: '{"content": "content", "senderDisplayName": "sender_display_name", "type": + "text"}' headers: Accept: - application/json @@ -421,7 +424,7 @@ interactions: Connection: - keep-alive Content-Length: - - '88' + - '82' Content-Type: - application/json User-Agent: @@ -432,19 +435,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:08 GMT + - Thu, 28 Jan 2021 02:57:03 GMT ms-cv: - - GjfH+plNL0adiE91Kog0iQ.0 + - QJNM4OzUyEWI/NFUJqkLSQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 395ms + - 399ms status: code: 201 message: Created @@ -470,17 +473,17 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: - '0' date: - - Mon, 25 Jan 2021 18:47:09 GMT + - Thu, 28 Jan 2021 02:57:04 GMT ms-cv: - - G9IEzgiEMUC1OPvOnbJB9w.0 + - jQtucTmZ6EOIwITOoaf23Q.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 464ms + - 637ms status: code: 200 message: OK @@ -501,19 +504,19 @@ interactions: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:10 GMT + - Thu, 28 Jan 2021 02:57:04 GMT ms-cv: - - qAI8O1oZPkaFrXwZVb7LKA.0 + - m09XnDYygkyFkJGAJNScjQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 259ms + - 258ms status: code: 200 message: OK @@ -534,19 +537,19 @@ interactions: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:10 GMT + - Thu, 28 Jan 2021 02:57:04 GMT ms-cv: - - 2lCXU/5yNkKfAs/2NJJB5A.0 + - Sw3gP2YO2E2MwJAdSMqVlg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 285ms + - 266ms status: code: 200 message: OK @@ -562,7 +565,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:47:24 GMT + - Thu, 28 Jan 2021 02:57:12 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -576,13 +579,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:47:27 GMT + - Thu, 28 Jan 2021 02:57:20 GMT ms-cv: - - d5pEL95LqEyR71OXWI337Q.0 + - ay5EMUnQCEiCuinZmgsaag.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16456ms + - 16547ms status: code: 204 message: No Content @@ -598,7 +601,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:47:41 GMT + - Thu, 28 Jan 2021 02:57:28 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -612,13 +615,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:47:43 GMT + - Thu, 28 Jan 2021 02:57:37 GMT ms-cv: - - PJQsOqBJK0GFzRA9795CQw.0 + - S+zl2wcWb0i+yvHEXqAkTg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16382ms + - 16442ms status: code: 204 message: No Content @@ -642,15 +645,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:47:43 GMT + - Thu, 28 Jan 2021 02:57:37 GMT ms-cv: - - nRKtD26MrkOm57r8GFmoGg.0 + - wZMwmqLebkihpf/YlYvMJw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 335ms + - 347ms 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 160928e2a56c..1c4033fd3999 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:47:58 GMT + - Thu, 28 Jan 2021 02:57:45 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:44 GMT + - Thu, 28 Jan 2021 02:57:38 GMT ms-cv: - - hAFX3HtLFk2WrpJilExuqQ.0 + - /A0so1MtJ0SGyIhP//ZOyA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 26ms + - 22ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:47:58 GMT + - Thu, 28 Jan 2021 02:57:46 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:47:44.1891435+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:57:37.9787377+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:44 GMT + - Thu, 28 Jan 2021 02:57:38 GMT ms-cv: - - r1ZraHVUc0Kk+R7srEeZ4w.0 + - mGhDyZyRQkmrdZJ94vhCyw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 100ms + - 95ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:47:58 GMT + - Thu, 28 Jan 2021 02:57:46 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:44 GMT + - Thu, 28 Jan 2021 02:57:38 GMT ms-cv: - - dWXqia6WT0CREMlt9Oi2mQ.0 + - 0zzj+M5LLUqVWpnzuXrhFQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 59ms + - 43ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:47:59 GMT + - Thu, 28 Jan 2021 02:57:46 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:47:44.4376621+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:57:38.2106827+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:45 GMT + - Thu, 28 Jan 2021 02:57:39 GMT ms-cv: - - mp99H3mJ7Uutem2HkGa79A.0 + - kUzOpz10gEG4K+HaT0Offw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 108ms + - 98ms status: code: 200 message: OK @@ -174,26 +174,28 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - e1581677-492f-4b57-b38c-1bdbfae9ded7 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:82ba24b810eb47e6b17847459c007e48@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:47:45Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac1-307a-dbb7-3a3a0d0029f6"}}' + body: '{"chatThread": {"id": "19:7ucqZqu76m4JeD92xxJJKrAM4osO4aAIsjQEh3u6_Lw1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:57:39Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6ce-6c0c-b0b7-3a3a0d000474"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:46 GMT + - Thu, 28 Jan 2021 02:57:40 GMT ms-cv: - - n2JccLiM1U+bdABv199L+g.0 + - 15sykvov+k6Ewhay5PRRTw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 909ms + - 910ms status: code: 201 message: Created @@ -218,19 +220,19 @@ interactions: body: '{}' headers: api-supported-versions: - - 2020-11-01-preview3 + - 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:47:46 GMT + - Thu, 28 Jan 2021 02:57:40 GMT ms-cv: - - efjYFuOHQUOmsO3MXjJfKA.0 + - BlTr4tcQDUSh3tBVcnBkmQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 915ms + - 456ms status: code: 201 message: Created @@ -248,21 +250,21 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/8%3Aacs%3A46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac1-3181-dbb7-3a3a0d0029f7?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/8%3Aacs%3A46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6ce-6cf2-b0b7-3a3a0d000475?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: - - 2020-11-01-preview3 + - 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:47:48 GMT + - Thu, 28 Jan 2021 02:57:41 GMT ms-cv: - - eW8hJl5XoE2dYlA2YzZ4/w.0 + - xjCsxfZ7g0CbbfoRz2FDDA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 492ms + - 502ms status: code: 204 message: No Content @@ -278,7 +280,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:48:02 GMT + - Thu, 28 Jan 2021 02:57:48 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -292,13 +294,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:48:04 GMT + - Thu, 28 Jan 2021 02:57:58 GMT ms-cv: - - MzFRvSwdxkmOlpNRiuCGiw.0 + - elTDrC5zUkyNZJMdZI9/Iw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16344ms + - 17358ms status: code: 204 message: No Content @@ -314,7 +316,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:48:18 GMT + - Thu, 28 Jan 2021 02:58:06 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -328,13 +330,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:48:20 GMT + - Thu, 28 Jan 2021 02:58:14 GMT ms-cv: - - 87XO2Wx1q0K8EtqGfZxdfA.0 + - Y3tBu8j/6EqgVlUj4+Gcxw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16831ms + - 16109ms status: code: 204 message: No Content @@ -358,15 +360,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:48:21 GMT + - Thu, 28 Jan 2021 02:58:14 GMT ms-cv: - - YjDxumxdJ0qX354pHiqEzw.0 + - rJ3pA0YnYEGg3RksE34fOQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 340ms + - 302ms 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 d82848b3f9df..7346f3c0bc7c 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:48:35 GMT + - Thu, 28 Jan 2021 02:58:23 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:48:21 GMT + - Thu, 28 Jan 2021 02:58:15 GMT ms-cv: - - 0buIK9u2NUqTbFGXXTpOIA.0 + - bx0TvjRbRUer2jdyxG6F7Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 34ms + - 50ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:48:36 GMT + - Thu, 28 Jan 2021 02:58:23 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:48:21.5117801+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:58:15.3118035+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:48:21 GMT + - Thu, 28 Jan 2021 02:58:15 GMT ms-cv: - - TgBPHnIBdUyro+jBhGWe9Q.0 + - c9frNKyGJ0KCawr4F+aTug.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 91ms + - 292ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:48:36 GMT + - Thu, 28 Jan 2021 02:58:23 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:48:21 GMT + - Thu, 28 Jan 2021 02:58:15 GMT ms-cv: - - 3ek5D1jHy06GmrsihIP9Bw.0 + - zwYXYWxkhU+3EQk+WtztMw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 19ms + - 22ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:48:36 GMT + - Thu, 28 Jan 2021 02:58:23 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:48:21.8301583+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:58:15.5025753+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:48:21 GMT + - Thu, 28 Jan 2021 02:58:15 GMT ms-cv: - - WvDb/QJhGUadJsBcmo6i3Q.0 + - fU3Ydz2UwECCGQX+kDNzwg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 186ms + - 84ms status: code: 200 message: OK @@ -169,37 +169,39 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '205' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 2ac7c798-f6f1-417f-a27d-01d6034777f7 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:d766ead3513b415b910a97da596b30d1@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:48:23Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac1-c260-1db7-3a3a0d002b79"}}' + body: '{"chatThread": {"id": "19:VDOe4yURgwp3yVI_6A8ej67KhPYKkiM4qqBu-J2dYB01@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:58:16Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6ce-fd1f-1655-373a0d0005ce"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:48:24 GMT + - Thu, 28 Jan 2021 02:58:16 GMT ms-cv: - - Osv9RxGhDU2PccuTgZW+3g.0 + - QQov8rSj0UyItGQbexHRfA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1363ms + - 822ms status: code: 201 message: Created - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json @@ -208,7 +210,7 @@ interactions: Connection: - keep-alive Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -219,19 +221,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:48:24 GMT + - Thu, 28 Jan 2021 02:58:17 GMT ms-cv: - - NtYIc4WqmU2JPtTI+YeSwQ.0 + - ICXf9MeLJEaqqbkm4rREAg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 839ms + - 391ms status: code: 201 message: Created @@ -247,7 +249,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:48:39 GMT + - Thu, 28 Jan 2021 02:58:25 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -261,13 +263,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:48:41 GMT + - Thu, 28 Jan 2021 02:58:34 GMT ms-cv: - - Lsiaa67PjU+nVOrT8m9P9Q.0 + - QH87s+ibc0e0ONzP13jUqA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16239ms + - 16437ms status: code: 204 message: No Content @@ -283,7 +285,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:48:55 GMT + - Thu, 28 Jan 2021 02:58:41 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -297,13 +299,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:48:58 GMT + - Thu, 28 Jan 2021 02:58:49 GMT ms-cv: - - MbkBhrsinE+QD84NbZCrQg.0 + - ohe/pQwbmEqlz89o6bLrBA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16919ms + - 15948ms status: code: 204 message: No Content @@ -327,15 +329,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:48:59 GMT + - Thu, 28 Jan 2021 02:58:50 GMT ms-cv: - - BVi6oPe+5UG6e6S9QNnTSQ.0 + - BegpAPIH8UiSx0IZG2ge9g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 827ms + - 345ms 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 6ab5bd36e1dc..59cf3ba525ec 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:49:13 GMT + - Thu, 28 Jan 2021 02:58:58 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:48:59 GMT + - Thu, 28 Jan 2021 02:58:50 GMT ms-cv: - - XZkHwo6/W0+Bzq6dyeeCCg.0 + - p0k1Fn9N5kKVMfe++MJjnw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 42ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:49:13 GMT + - Thu, 28 Jan 2021 02:58:58 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:48:59.0835653+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:58:50.4436344+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:48:59 GMT + - Thu, 28 Jan 2021 02:58:50 GMT ms-cv: - - JdJTa+oRTkSSakDBz9pZsQ.0 + - auPx4dkVGUKialo5fCHfMw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 85ms + - 103ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:49:13 GMT + - Thu, 28 Jan 2021 02:58:58 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:48:59 GMT + - Thu, 28 Jan 2021 02:58:51 GMT ms-cv: - - QpGJuM3UvU+se/Wlcb1lDw.0 + - UQlnhhG2Jkem7AFBKRiLZg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 17ms + - 28ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:49:13 GMT + - Thu, 28 Jan 2021 02:58:58 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:48:59.2906129+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:58:50.6917131+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:48:59 GMT + - Thu, 28 Jan 2021 02:58:51 GMT ms-cv: - - F/hqdesaVkCg4fHMmnczCg.0 + - KUMS8wyd9EC4G0Q+49kEyg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 87ms + - 119ms status: code: 200 message: OK @@ -169,37 +169,39 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '205' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - ebe703f4-bc68-46ff-9a40-297192a0b3fc method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:162e576cab854f47b30bcaf07879f5b2@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:49:00Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac2-552f-1655-373a0d0027f4"}}' + body: '{"chatThread": {"id": "19:F1WmVh0FONcBMfaaG4qWHbDrG9AGlNljiGCtoHQjcyw1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:58:52Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6cf-870d-dbb7-3a3a0d000559"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:49:01 GMT + - Thu, 28 Jan 2021 02:58:53 GMT ms-cv: - - 1Xt0uc4zJUy1xojMrIWMpQ.0 + - Nq2sQ0NYe0e7y1If5MISqw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 951ms + - 1275ms status: code: 201 message: Created - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json @@ -208,7 +210,7 @@ interactions: Connection: - keep-alive Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -219,19 +221,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:49:01 GMT + - Thu, 28 Jan 2021 02:58:53 GMT ms-cv: - - VKdathFUekG+gUTSDk70GA.0 + - Sdmvxxifmki3M1pStpQWFw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 400ms + - 397ms status: code: 201 message: Created @@ -257,17 +259,17 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: - '0' date: - - Mon, 25 Jan 2021 18:49:02 GMT + - Thu, 28 Jan 2021 02:58:54 GMT ms-cv: - - 3Zd6k86hREOyYHcowhlpKQ.0 + - Cm1e1VxaX0aN0ALs/oY1QQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 467ms + - 627ms status: code: 200 message: OK @@ -283,7 +285,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:49:16 GMT + - Thu, 28 Jan 2021 02:59:01 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -297,13 +299,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:49:18 GMT + - Thu, 28 Jan 2021 02:59:09 GMT ms-cv: - - Ld9pEcW3SEawJ1z7NQN6bQ.0 + - 8duaZ4hYCkOCZ+Y+KeByuQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16189ms + - 15738ms status: code: 204 message: No Content @@ -319,7 +321,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:49:32 GMT + - Thu, 28 Jan 2021 02:59:17 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -333,13 +335,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:49:33 GMT + - Thu, 28 Jan 2021 02:59:27 GMT ms-cv: - - Ukahzq6KT0OEQNQ0jZ5tnA.0 + - dWSmrOGJoEKW2H7960xw0A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15882ms + - 17006ms status: code: 204 message: No Content @@ -363,15 +365,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:49:34 GMT + - Thu, 28 Jan 2021 02:59:27 GMT ms-cv: - - TfGXCeZ4kEmWlC+gh2QlVA.0 + - ETIKAJOLdUyRp9dr3gfTsA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 351ms + - 345ms 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 d3c23240f3f9..9b604f752f2d 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:49:48 GMT + - Thu, 28 Jan 2021 02:59:35 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:49:34 GMT + - Thu, 28 Jan 2021 02:59:27 GMT ms-cv: - - u5Dn9rZgQESUT6j2WwioAQ.0 + - HOSyxa53RkKyDYsAOIElzQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 60ms + - 20ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:49:49 GMT + - Thu, 28 Jan 2021 02:59:35 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:49:34.5573468+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:59:27.4382882+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:49:34 GMT + - Thu, 28 Jan 2021 02:59:27 GMT ms-cv: - - BnOwBi5KOUmxVJ059Kk6QQ.0 + - sUPZ9APqp0CnY6Q0zP4YpQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 92ms + - 331ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:49:49 GMT + - Thu, 28 Jan 2021 02:59:35 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:49:34 GMT + - Thu, 28 Jan 2021 02:59:27 GMT ms-cv: - - p87XfAaEGkaV5KsADgDrDw.0 + - ULhNpDNyuEWlNOpgoOSDeg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 56ms + - 21ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:49:49 GMT + - Thu, 28 Jan 2021 02:59:35 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:49:34.8839082+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T02:59:27.7089098+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:49:35 GMT + - Thu, 28 Jan 2021 02:59:28 GMT ms-cv: - - 8PhH5px9UEeVJehOZaki4Q.0 + - 0+Dn1sXrpEykJn3iK3BTUA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 164ms + - 126ms status: code: 200 message: OK @@ -174,26 +174,28 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 617def35-e577-4b73-8406-c0a892e2de19 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:88479da3e4d64ebfb832b39ee347fdf8@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:49:36Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac2-dfae-dbb7-3a3a0d0029fc"}}' + body: '{"chatThread": {"id": "19:kyTKUWhj0NtFxPlne9T0s3ECjeqOGTPqz-a1zkFlwa81@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T02:59:29Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d0-16a7-9c58-373a0d0004c9"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:49:36 GMT + - Thu, 28 Jan 2021 02:59:29 GMT ms-cv: - - Ru4iLb6HF0KNJccrScRUzA.0 + - qs7Tsxc1+Eq2aWdrgEOFfA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 925ms + - 915ms status: code: 201 message: Created @@ -217,17 +219,17 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: - '0' date: - - Mon, 25 Jan 2021 18:49:37 GMT + - Thu, 28 Jan 2021 02:59:30 GMT ms-cv: - - ahnrKHShU0GYrYdsT/63yw.0 + - rPiFWxRCA0WLauj/Ar2E3Q.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 366ms + - 855ms status: code: 200 message: OK @@ -243,7 +245,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:49:51 GMT + - Thu, 28 Jan 2021 02:59:38 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -257,13 +259,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:49:53 GMT + - Thu, 28 Jan 2021 02:59:46 GMT ms-cv: - - dA1Pe/Mc8UyoGzSBJdW2QA.0 + - 9A3URTf/EkGQc+gflYZqEQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16107ms + - 16654ms status: code: 204 message: No Content @@ -279,7 +281,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:50:07 GMT + - Thu, 28 Jan 2021 02:59:55 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -293,13 +295,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:50:09 GMT + - Thu, 28 Jan 2021 03:00:04 GMT ms-cv: - - Ccwx02p830y2G5dwqBDFxw.0 + - ygGV6BBu602kfprjGydbVQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16324ms + - 16560ms status: code: 204 message: No Content @@ -323,15 +325,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:50:10 GMT + - Thu, 28 Jan 2021 03:00:04 GMT ms-cv: - - eEeTfvC/80qvd3dZd5FXpA.0 + - EPxkympmkE+ZyGm60SaWPg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 340ms + - 289ms 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 66298f31d28e..9b7bbac4d0ce 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:50:24 GMT + - Thu, 28 Jan 2021 03:00:12 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:50:10 GMT + - Thu, 28 Jan 2021 03:00:04 GMT ms-cv: - - ER6ZwojbRU25lC/jQBHJHQ.0 + - LQPEZnE6PEGDsiKntImQ7w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 155ms + - 20ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:50:24 GMT + - Thu, 28 Jan 2021 03:00:12 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:50:10.1475336+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:00:04.0921359+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:50:10 GMT + - Thu, 28 Jan 2021 03:00:04 GMT ms-cv: - - VrXqjRTrX0O68qRzVeyMVA.0 + - kU/+IvaJT0qD9/kzvVXyoA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 204ms + - 89ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:50:24 GMT + - Thu, 28 Jan 2021 03:00:12 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:50:10 GMT + - Thu, 28 Jan 2021 03:00:04 GMT ms-cv: - - Qu4QHRGJZ0+hIC/xGj7pMw.0 + - ynHNp2hsLESDGdMXxeqdeQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 70ms + - 24ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:50:25 GMT + - Thu, 28 Jan 2021 03:00:12 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:50:10.4345651+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:00:04.3132142+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:50:10 GMT + - Thu, 28 Jan 2021 03:00:05 GMT ms-cv: - - T5zZPCnrlEOUmF7oaRRo/A.0 + - S6og+U/gmEykt07lwcFdww.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 96ms + - 90ms status: code: 200 message: OK @@ -174,32 +174,34 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - c997543b-90a9-455c-acc1-65c3ba7d3a81 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:3911867b048a47b38475f200da2694dd@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:50:11Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac3-6a4a-b0b7-3a3a0d002858"}}' + body: '{"chatThread": {"id": "19:I1T7fLgK9Ssho1cAd48iHxUeNjCo00aVKEPiEAOKK-I1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:00:05Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d0-a6d6-9c58-373a0d0004cb"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:50:12 GMT + - Thu, 28 Jan 2021 03:00:06 GMT ms-cv: - - nOzVAvnhe0S4zsvCVQrTaQ.0 + - x43x0Y5F+k6PmJNG5S/gJw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 898ms + - 845ms status: code: 201 message: Created - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json @@ -208,7 +210,7 @@ interactions: Connection: - keep-alive Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -219,19 +221,19 @@ interactions: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:50:12 GMT + - Thu, 28 Jan 2021 03:00:06 GMT ms-cv: - - 15OjgifpRUCAdnLl9Bikkw.0 + - h4ekNHBKIEOs2WAHKCeilA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 375ms + - 372ms status: code: 201 message: Created @@ -257,15 +259,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:50:13 GMT + - Thu, 28 Jan 2021 03:00:07 GMT ms-cv: - - 3jh3XvNRC02YgZwuzxizmA.0 + - pWcrAA/egU+Rlad/FYA5Sw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 663ms + - 662ms status: code: 204 message: No Content @@ -281,7 +283,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:50:27 GMT + - Thu, 28 Jan 2021 03:00:14 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -295,13 +297,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:50:30 GMT + - Thu, 28 Jan 2021 03:00:23 GMT ms-cv: - - cvGjpS5GREmlk3rW36pinQ.0 + - 56RNabjlXkSa2G7/iGYFyA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16604ms + - 16531ms status: code: 204 message: No Content @@ -317,7 +319,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:50:44 GMT + - Thu, 28 Jan 2021 03:00:31 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -331,13 +333,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:50:47 GMT + - Thu, 28 Jan 2021 03:00:39 GMT ms-cv: - - D9w5mNqoU0KT6e/jxpK2EQ.0 + - BMJUaVz/SU2oSDXUZdZniQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 17032ms + - 15667ms status: code: 204 message: No Content @@ -361,11 +363,11 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:50:47 GMT + - Thu, 28 Jan 2021 03:00:39 GMT ms-cv: - - RFAWXEc+5ky4lOHY03f5Fg.0 + - fDCTCrTO6EOvmIxgHlk/fw.0 strict-transport-security: - max-age=2592000 x-processing-time: 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 25f25e5740f6..3a3721834e1b 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:51:01 GMT + - Thu, 28 Jan 2021 03:00:47 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:50:48 GMT + - Thu, 28 Jan 2021 03:00:40 GMT ms-cv: - - lazOoGt+00eZICg9LY242Q.0 + - RUAA5UlZvE2Mugs8Mg/UVQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 24ms + - 168ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:51:02 GMT + - Thu, 28 Jan 2021 03:00:48 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:50:47.4757428+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:00:40.5525707+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:50:48 GMT + - Thu, 28 Jan 2021 03:00:40 GMT ms-cv: - - Eoy8SCZD7k2c9yeOi36ymw.0 + - so9Wv3P9zU+0otz1B/8V5A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 90ms + - 695ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:51:02 GMT + - Thu, 28 Jan 2021 03:00:48 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:50:48 GMT + - Thu, 28 Jan 2021 03:00:41 GMT ms-cv: - - WDCShi1UKkeQ6MdSRdSX2g.0 + - W2sAhoyd90m+i5l4wktjMw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 178ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:51:02 GMT + - Thu, 28 Jan 2021 03:00:49 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:50:47.7167105+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:00:41.1086118+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:50:48 GMT + - Thu, 28 Jan 2021 03:00:41 GMT ms-cv: - - DYZzpFoh2k+Hxnq+eEm83Q.0 + - EfdeF2TJSEW/DuUwCm5KAg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 121ms + - 270ms status: code: 200 message: OK @@ -174,26 +174,28 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - ac9ba145-5647-47cb-aad0-b61467443c26 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:f391862cc2ae4428adfd76c6e568bd73@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:50:49Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-dac3-fc7d-b0b7-3a3a0d00285e"}}' + body: '{"chatThread": {"id": "19:mL-2UerGYH5wFbgp1FCkaaczMKPfKk1jd4FFKCHNnvc1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:00:42Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d1-32e6-1655-373a0d0005d1"}}' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:50:49 GMT + - Thu, 28 Jan 2021 03:00:43 GMT ms-cv: - - VenWef+PtUu1tAPQoFRHqQ.0 + - lq1M1kbQv0CbAiWwacXo7w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 858ms + - 850ms status: code: 201 message: Created @@ -219,15 +221,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:50:49 GMT + - Thu, 28 Jan 2021 03:00:42 GMT ms-cv: - - /3EVg5YMgE6cJJdl/Jh5sg.0 + - ZKT71IK4HE6KrgCtifKxgA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 442ms + - 390ms status: code: 204 message: No Content @@ -243,7 +245,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:51:04 GMT + - Thu, 28 Jan 2021 03:00:51 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -257,13 +259,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:51:06 GMT + - Thu, 28 Jan 2021 03:00:59 GMT ms-cv: - - lZtD/xEgfEuzY7JM3QeAKw.0 + - 5xfLDjLEi0qehi77O4Z4ag.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16153ms + - 16086ms status: code: 204 message: No Content @@ -279,7 +281,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:51:20 GMT + - Thu, 28 Jan 2021 03:01:07 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -293,13 +295,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:51:22 GMT + - Thu, 28 Jan 2021 03:01:15 GMT ms-cv: - - m6sFATiAeki2ocseITIcKw.0 + - 0KBd2U9eUESD4lD2D03//w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16511ms + - 15991ms status: code: 204 message: No Content @@ -323,15 +325,15 @@ interactions: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Mon, 25 Jan 2021 18:51:23 GMT + - Thu, 28 Jan 2021 03:01:15 GMT ms-cv: - - qnaIze33CkuhOBH//Puv9w.0 + - lCni6CD+wUWBiUF98Q+VMw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 518ms + - 305ms 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 22fe09caa173..b466332556e1 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:58:31 GMT + - Thu, 28 Jan 2021 03:01:23 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:58:18 GMT + - Thu, 28 Jan 2021 03:01:16 GMT ms-cv: - - rHgeoGFlLku33mpgfw5gMw.0 + - B8Pad+cVKkW3/pHcaa4A6g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 68ms + - 179ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:58:31 GMT + - Thu, 28 Jan 2021 03:01:24 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:58:17.9433567+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:01:16.0274942+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:58:18 GMT + - Thu, 28 Jan 2021 03:01:16 GMT ms-cv: - - o9fwip3y9UqdkzbZvw9CRg.0 + - XFa2RAbfFUCjoNN5pYMiyw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 316ms + - 122ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:58:32 GMT + - Thu, 28 Jan 2021 03:01:24 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:58:19 GMT + - Thu, 28 Jan 2021 03:01:16 GMT ms-cv: - - wVPrEUfCqk2+JjM1+ZSxeQ.0 + - 5Tk1Mb8ickusbQR+tnmSDw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 27ms + - 101ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:58:32 GMT + - Thu, 28 Jan 2021 03:01:24 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:58:18.1641302+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:01:16.4172366+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:58:19 GMT + - Thu, 28 Jan 2021 03:01:17 GMT ms-cv: - - bXzSDngez0OHHmrQMYRMeQ.0 + - 9R6kRTzkkkW3RDwcFsyk/g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 88ms + - 162ms status: code: 200 message: OK @@ -170,19 +170,21 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - cd971c3f-0388-4da1-bbf0-db2a3f3db0a2 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:77e359cb7f1e442799794eef6f629d2b@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T17:58:19Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da93-ecca-9c58-373a0d00274b"}}' + body: '{"chatThread": {"id": "19:6vQ5mnGYUJBIHInaOZFEE-kueDUoEOXtB3phZw46pbs1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:01:17Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d1-bf13-1655-373a0d0005d3"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 17:58:19 GMT - ms-cv: 0wBX30Zdyk+xA/ypWZQhBw.0 + date: Thu, 28 Jan 2021 03:01:17 GMT + ms-cv: pIl07IGAlkWGe3tBaTAWRQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 947ms + x-processing-time: 870ms status: code: 201 message: Created @@ -203,13 +205,13 @@ interactions: response: body: '{}' headers: - api-supported-versions: 2020-11-01-preview3 + api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 17:58:20 GMT - ms-cv: qTX9ZATdVUyAR56i2zfGkQ.0 + date: Thu, 28 Jan 2021 03:01:18 GMT + ms-cv: i2ye1jz3KUO8036cO5NRZA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 921ms + x-processing-time: 464ms status: code: 201 message: Created @@ -227,11 +229,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 17:58:21 GMT - ms-cv: 8tvnVNJDmUClr6pfmuSljw.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:01:18 GMT + ms-cv: 73WAbRWca0mYfYFRfUpPEg.0 strict-transport-security: max-age=2592000 - x-processing-time: 364ms + x-processing-time: 351ms status: code: 204 message: No Content @@ -248,7 +250,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:58:35 GMT + - Thu, 28 Jan 2021 03:01:26 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -262,13 +264,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:58:38 GMT + - Thu, 28 Jan 2021 03:01:35 GMT ms-cv: - - MGUP/uCoj0eIUpLHi/fFWw.0 + - bdGS+eav6kK7jfnC2giy7Q.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16730ms + - 16414ms status: code: 204 message: No Content @@ -284,7 +286,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:58:52 GMT + - Thu, 28 Jan 2021 03:01:43 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -298,13 +300,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:58:55 GMT + - Thu, 28 Jan 2021 03:01:51 GMT ms-cv: - - IgKTJsIZeEmCNftLo2QP/w.0 + - 0WWYxiNfhkWku9DPih+ihw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16961ms + - 15755ms 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 8fc5e138ec43..e2b12c83c3ca 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:59:09 GMT + - Thu, 28 Jan 2021 03:01:59 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:58:56 GMT + - Thu, 28 Jan 2021 03:01:51 GMT ms-cv: - - RtwVoY1XgUGqclR603WFkA.0 + - E+2iPZzvm0mqPSUSDf0quA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 56ms + - 22ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:59:09 GMT + - Thu, 28 Jan 2021 03:01:59 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:58:55.2938238+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:01:51.1545374+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:58:56 GMT + - Thu, 28 Jan 2021 03:01:51 GMT ms-cv: - - iPvMUhYgcU+Uf3cVoJ+gnA.0 + - fdf8vTTACUacG/h7VnRcGA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 107ms + - 91ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:59:09 GMT + - Thu, 28 Jan 2021 03:01:59 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:58:56 GMT + - Thu, 28 Jan 2021 03:01:51 GMT ms-cv: - - 5HI9z2QMfk6yX6bQHtEgUw.0 + - +j2iIsbe3UmLv5DZL+cESw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 24ms + - 18ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:59:09 GMT + - Thu, 28 Jan 2021 03:01:59 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:58:55.5097637+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:01:51.3442948+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:58:56 GMT + - Thu, 28 Jan 2021 03:01:52 GMT ms-cv: - - HHzuI4NqrUKuPKPdw2D/3w.0 + - kAMms2GRSEqZUq9Si2pR/g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 95ms + - 86ms status: code: 200 message: OK @@ -170,19 +170,21 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 7de1dfbf-14b8-4703-9ad7-9d75fe6b97a2 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:f035c9acf85e427f912733facb9c19e8@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T17:58:56Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da94-7f88-9c58-373a0d00274f"}}' + body: '{"chatThread": {"id": "19:2lurzJY3XjXo5KgkO7aNvB9cIh5bglt4rrCZPzIzXv41@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:01:52Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d2-48fc-1655-373a0d0005d6"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 17:58:56 GMT - ms-cv: MR7T714tNkOnLK8gHMmW5Q.0 + date: Thu, 28 Jan 2021 03:01:52 GMT + ms-cv: xXXmunCg5UuHKwawbHD30Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 948ms + x-processing-time: 897ms status: code: 201 message: Created @@ -203,13 +205,13 @@ interactions: response: body: '{}' headers: - api-supported-versions: 2020-11-01-preview3 + api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 17:58:57 GMT - ms-cv: Ej8jZYw0M0+p2Kvv9ku6uw.0 + date: Thu, 28 Jan 2021 03:01:53 GMT + ms-cv: dRCptjZMOUqRwtHnDQ1pTw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 412ms + x-processing-time: 404ms status: code: 201 message: Created @@ -227,11 +229,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 17:58:57 GMT - ms-cv: X0Jpzfy7Q0O4hSdT6xAh5g.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:01:53 GMT + ms-cv: rch/zOdEy0C714cZXNLLAw.0 strict-transport-security: max-age=2592000 - x-processing-time: 317ms + x-processing-time: 340ms status: code: 204 message: No Content @@ -248,7 +250,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:59:11 GMT + - Thu, 28 Jan 2021 03:02:01 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -262,13 +264,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:59:14 GMT + - Thu, 28 Jan 2021 03:02:10 GMT ms-cv: - - zEGbG+bbyUuDYhPtU5WYAg.0 + - 7L39Jj6O/kqaHFGFHpzeng.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16262ms + - 16302ms status: code: 204 message: No Content @@ -284,7 +286,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:59:28 GMT + - Thu, 28 Jan 2021 03:02:18 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -298,13 +300,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:59:31 GMT + - Thu, 28 Jan 2021 03:02:25 GMT ms-cv: - - nUoB65v6Y0SnIhabxkhsAQ.0 + - /XIIXNxOAES0XE+UBO4R+w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 17012ms + - 15926ms 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 d9efe800f3ab..2728f5746040 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:59:45 GMT + - Thu, 28 Jan 2021 03:02:34 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:59:31 GMT + - Thu, 28 Jan 2021 03:02:26 GMT ms-cv: - - SUCjwSCRF0+F71LFULiu4g.0 + - 2B6TZ5g0mkGQi1fB9iEirw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 91ms + - 21ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:59:45 GMT + - Thu, 28 Jan 2021 03:02:34 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:59:31.4792589+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:02:26.0859476+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:59:32 GMT + - Thu, 28 Jan 2021 03:02:26 GMT ms-cv: - - NkVybVFFxkyK01zh+y4bCw.0 + - PY4gKUNjV0a47+iHjHNxxw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 93ms + - 124ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:59:45 GMT + - Thu, 28 Jan 2021 03:02:34 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:59:32 GMT + - Thu, 28 Jan 2021 03:02:26 GMT ms-cv: - - Sbtv2HhWbUC6Mxlj2Qnvxg.0 + - KiAMkILTdkS33CW576zl1g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 33ms + - 27ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 17:59:45 GMT + - Thu, 28 Jan 2021 03:02:34 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:59:31.7005393+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:02:26.3003794+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 17:59:32 GMT + - Thu, 28 Jan 2021 03:02:26 GMT ms-cv: - - L8BSYWijCkW8H3TaaQhmjw.0 + - LuRW2hv67UO6ycxqiB8TRw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 95ms + - 87ms status: code: 200 message: OK @@ -170,31 +170,33 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 813e11db-09ab-4aec-9071-19a0e8bc50af method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:9fd5acb13c92453f889d12755eb7c90a@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T17:59:33Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da95-0cdc-1655-373a0d00278b"}}' + body: '{"chatThread": {"id": "19:CG2VKVr158wzWS84eXvwbJWQ1hgdHbFL9bI3le3pIRQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:02:27Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d2-d14b-1655-373a0d0005d8"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 17:59:33 GMT - ms-cv: lPEPcWmUCUuAUi9PXtupFQ.0 + date: Thu, 28 Jan 2021 03:02:27 GMT + ms-cv: FHmWVcE3Ek6EVbd4t01qYg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 928ms + x-processing-time: 894ms status: code: 201 message: Created url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -204,13 +206,13 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 17:59:34 GMT - ms-cv: C4K03M212USOp79bN00yXg.0 + date: Thu, 28 Jan 2021 03:02:28 GMT + ms-cv: iW6IzAWD4UmqDjeMQ3OUMg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 407ms + x-processing-time: 388ms status: code: 201 message: Created @@ -228,11 +230,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 17:59:34 GMT - ms-cv: g6s2vHkpukm89xleWxrHjQ.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:02:28 GMT + ms-cv: g9Nl6BIpFEqgXtqzQzxCug.0 strict-transport-security: max-age=2592000 - x-processing-time: 456ms + x-processing-time: 438ms status: code: 204 message: No Content @@ -250,11 +252,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 17:59:34 GMT - ms-cv: kL02ZjFZ5UiF2ztCmIT1Ow.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:02:29 GMT + ms-cv: e1GyBCP9S0ONCN3r8NO9rA.0 strict-transport-security: max-age=2592000 - x-processing-time: 340ms + x-processing-time: 297ms status: code: 204 message: No Content @@ -271,7 +273,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 17:59:48 GMT + - Thu, 28 Jan 2021 03:02:37 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -285,13 +287,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 17:59:51 GMT + - Thu, 28 Jan 2021 03:02:46 GMT ms-cv: - - xCHUmXbCDEeb/siTdlkcsw.0 + - dBHIp7Ojf0C15fBB1ahmYg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16524ms + - 17237ms status: code: 204 message: No Content @@ -307,7 +309,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:00:05 GMT + - Thu, 28 Jan 2021 03:02:54 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -321,13 +323,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:00:07 GMT + - Thu, 28 Jan 2021 03:03:03 GMT ms-cv: - - flWCwVje/0C+fRQqo8x/DA.0 + - QQHvw0tvpUGiWbJZmBJ95A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16874ms + - 16295ms 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 34b2e7274af9..c1d292f1ab4b 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:00:22 GMT + - Thu, 28 Jan 2021 03:03:10 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:00:08 GMT + - Thu, 28 Jan 2021 03:03:03 GMT ms-cv: - - tQxleHmHkEuyxpWel1ulQA.0 + - orpHmK8Cl06KAiPosajUTw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 23ms + - 22ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:00:22 GMT + - Thu, 28 Jan 2021 03:03:11 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:00:08.2281789+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:03:02.7937829+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:00:08 GMT + - Thu, 28 Jan 2021 03:03:03 GMT ms-cv: - - YEPqapzrWUWEe9vSfNvgAw.0 + - jMDmOm/MbU26MHGiqU5BqQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 91ms + - 115ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:00:22 GMT + - Thu, 28 Jan 2021 03:03:11 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:00:08 GMT + - Thu, 28 Jan 2021 03:03:03 GMT ms-cv: - - eMgvY98I4kSo81U4pS1uOw.0 + - NVsrXCrIdkyF9XXv9Lukfg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 20ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:00:22 GMT + - Thu, 28 Jan 2021 03:03:11 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:00:08.437144+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:03:03.0172071+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:00:08 GMT + - Thu, 28 Jan 2021 03:03:03 GMT ms-cv: - - +Ho0NAb/gEy0yRrD2MLnww.0 + - 6vNrADdsQUiviZvrKczqhw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 101ms + - 96ms status: code: 200 message: OK @@ -170,31 +170,33 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 82596e11-cd6b-45b5-87c3-7377d6588480 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:d2c1043b48d2468ebc020f6905d732c4@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:00:09Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da95-9c6c-b0b7-3a3a0d002819"}}' + body: '{"chatThread": {"id": "19:LnuKLYZSXFAFKKKUkG7IIs-g8yraeIlhDNk-0CQG_sE1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:03:04Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d3-60c5-1655-373a0d0005da"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:00:09 GMT - ms-cv: zgnxALMi9EemXZ7FnakVnA.0 + date: Thu, 28 Jan 2021 03:03:04 GMT + ms-cv: bEoE2AUdD0y0DLVN55yidw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 943ms + x-processing-time: 842ms status: code: 201 message: Created url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -204,13 +206,13 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:00:11 GMT - ms-cv: APHJNLJyp0GBk9cfVQT1IQ.0 + date: Thu, 28 Jan 2021 03:03:05 GMT + ms-cv: n9HiL19/CUG7T6zdXNv3LQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 409ms + x-processing-time: 833ms status: code: 201 message: Created @@ -225,17 +227,17 @@ interactions: method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1611597610872", + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1611802985903", "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": - "2021-01-25T18:00:10Z", "senderId": "sanitized"}' + "2021-01-28T03:03:05Z", "senderId": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:00:11 GMT - ms-cv: luXG3Onm+0GC6t6US/hudQ.0 + date: Thu, 28 Jan 2021 03:03:05 GMT + ms-cv: ykaYRF0ZEEq29Q7Gxm+fiA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 281ms + x-processing-time: 256ms status: code: 200 message: OK @@ -253,11 +255,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 18:00:11 GMT - ms-cv: u5PZNfUjj0WoCI+EsVOBRw.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:03:05 GMT + ms-cv: +wISZzlkxkev1q6JxKdi9A.0 strict-transport-security: max-age=2592000 - x-processing-time: 349ms + x-processing-time: 331ms status: code: 204 message: No Content @@ -274,7 +276,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:00:25 GMT + - Thu, 28 Jan 2021 03:03:14 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -288,13 +290,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:00:28 GMT + - Thu, 28 Jan 2021 03:03:22 GMT ms-cv: - - CmZ70QbByk6NKkeYA5Rh+A.0 + - aVEzBfpKx0WHnmxAiakeXA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16459ms + - 16601ms status: code: 204 message: No Content @@ -310,7 +312,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:00:41 GMT + - Thu, 28 Jan 2021 03:03:30 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -324,13 +326,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:00:44 GMT + - Thu, 28 Jan 2021 03:03:38 GMT ms-cv: - - 7MnyqCHDvUao3ymZLPEwrA.0 + - I51/Coq+SUW3gWKhnc76CA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16470ms + - 16002ms 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 d1805dca089e..850ff94b96cf 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:00:58 GMT + - Thu, 28 Jan 2021 03:03:46 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:00:44 GMT + - Thu, 28 Jan 2021 03:03:39 GMT ms-cv: - - UEO7SMADk0KqCC+9T/uUcw.0 + - jRs46rvLukOJRmLe7ovkuA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 19ms + - 75ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:00:58 GMT + - Thu, 28 Jan 2021 03:03:47 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:00:44.2533376+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:03:38.9023623+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:00:44 GMT + - Thu, 28 Jan 2021 03:03:39 GMT ms-cv: - - fO/WRqpJYk+ciOfEraP+Jw.0 + - cjmBThB9lU6lKublUZKVbA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 85ms + - 90ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:00:58 GMT + - Thu, 28 Jan 2021 03:03:47 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:00:44 GMT + - Thu, 28 Jan 2021 03:03:39 GMT ms-cv: - - mGimoljORkW6dznXMEwU2Q.0 + - KPu22fW+mkuV6miwFoQK2g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 22ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:00:58 GMT + - Thu, 28 Jan 2021 03:03:47 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:00:44.4433786+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:03:39.1101469+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:00:45 GMT + - Thu, 28 Jan 2021 03:03:39 GMT ms-cv: - - qk9uCpd6TUaxb2kwtvmQBA.0 + - 3JX7go5x/0q72JMIgo0KAA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 82ms + - 95ms status: code: 200 message: OK @@ -170,31 +170,33 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 2d826cdc-e12c-4b64-a6b6-abc967b3ee32 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:2ed501ee3da54ad599b7169ec59e2c9b@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:00:45Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da96-293e-1655-373a0d00278f"}}' + body: '{"chatThread": {"id": "19:coimsBNVWBeh-sYBSK7S7u8YcuCaUR8jyJ97KnwMKnk1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:03:40Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d3-eddf-9c58-373a0d0004d1"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:00:46 GMT - ms-cv: JZebIe/QkUazBWfMUroVQw.0 + date: Thu, 28 Jan 2021 03:03:41 GMT + ms-cv: FuSswvnIr0GM2xlZIoWyrw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 934ms + x-processing-time: 898ms status: code: 201 message: Created url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -204,13 +206,13 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:00:46 GMT - ms-cv: TVZubOyzzEy9NtjdopUhtw.0 + date: Thu, 28 Jan 2021 03:03:40 GMT + ms-cv: LiJ+nqj0fUOowqgMlRRPtQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 409ms + x-processing-time: 391ms status: code: 201 message: Created @@ -227,13 +229,13 @@ interactions: response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:00:46 GMT - ms-cv: MVdaFk4blUalSaatLroUhQ.0 + date: Thu, 28 Jan 2021 03:03:42 GMT + ms-cv: 2vEw6xFkY0u39ZOzMOcceQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 349ms + x-processing-time: 272ms status: code: 200 message: OK @@ -250,13 +252,13 @@ interactions: response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:00:47 GMT - ms-cv: jFswW48X8kSrmXbyg+HG0g.0 + date: Thu, 28 Jan 2021 03:03:42 GMT + ms-cv: ATUYtStUQEuo6gEPQzrm1w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 380ms + x-processing-time: 359ms status: code: 200 message: OK @@ -273,13 +275,13 @@ interactions: response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:00:47 GMT - ms-cv: 6w+8RMJ1YUi+e2n2Oom64g.0 + date: Thu, 28 Jan 2021 03:03:42 GMT + ms-cv: LFRI5kvXGES2JbFfQLZojg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 385ms + x-processing-time: 361ms status: code: 200 message: OK @@ -296,13 +298,13 @@ interactions: response: body: '{"value": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:00:48 GMT - ms-cv: B14hjb0FYkuCV1ZqKkVfQw.0 + date: Thu, 28 Jan 2021 03:03:43 GMT + ms-cv: h6bC03glZUOL21M479c7LQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 375ms + x-processing-time: 372ms status: code: 200 message: OK @@ -320,11 +322,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 18:00:49 GMT - ms-cv: rlIJbOdjOUyw9UaUI5oBag.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:03:43 GMT + ms-cv: X6+Tvcsil02hs69NkA1RIA.0 strict-transport-security: max-age=2592000 - x-processing-time: 347ms + x-processing-time: 297ms status: code: 204 message: No Content @@ -341,7 +343,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:01:02 GMT + - Thu, 28 Jan 2021 03:03:51 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -355,13 +357,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:01:05 GMT + - Thu, 28 Jan 2021 03:03:59 GMT ms-cv: - - v2mn2f57ekykqIesGZdDAA.0 + - 2S0mMcz81U29kitxId9M4A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16720ms + - 16630ms status: code: 204 message: No Content @@ -377,7 +379,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:01:19 GMT + - Thu, 28 Jan 2021 03:04:07 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -391,13 +393,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:01:21 GMT + - Thu, 28 Jan 2021 03:04:16 GMT ms-cv: - - AQjLQbowsEuKIcXie91mDA.0 + - npWaCyLOi0O2R5AODfGeWA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15928ms + - 17001ms 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 145128171571..cd21e5da3be8 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:01:35 GMT + - Thu, 28 Jan 2021 03:04:24 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:01:22 GMT + - Thu, 28 Jan 2021 03:04:17 GMT ms-cv: - - CykDabzLvkOf4uiRsuzorQ.0 + - E4n9DKYok0OYHKWPVW/SSw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 20ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:01:35 GMT + - Thu, 28 Jan 2021 03:04:25 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:01:21.4022424+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:04:16.8437063+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:01:22 GMT + - Thu, 28 Jan 2021 03:04:17 GMT ms-cv: - - iepWFPJzu0GhRB/qhu9NeQ.0 + - hV06f1iTjEGMHJvoWaZtFA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 112ms + - 86ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:01:35 GMT + - Thu, 28 Jan 2021 03:04:25 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:01:22 GMT + - Thu, 28 Jan 2021 03:04:17 GMT ms-cv: - - BVJZE7g7EEeGwCz/vPG9jg.0 + - 5vx3/C1utEupZROdOSIbMQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 46ms + - 17ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:01:35 GMT + - Thu, 28 Jan 2021 03:04:25 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:01:21.652012+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:04:17.0396038+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:01:22 GMT + - Thu, 28 Jan 2021 03:04:17 GMT ms-cv: - - y/YZ7+zwCk6ApNuVCVc7GA.0 + - SCtl4yDW8U28SFLtLVaNEQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 102ms + - 83ms status: code: 200 message: OK @@ -170,19 +170,21 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 9835aca6-ff43-4d13-ba2f-f858f38e4275 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:1e7f403e163e4118a2c3475502b9914c@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:01:23Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da96-ba2e-9c58-373a0d002755"}}' + body: '{"chatThread": {"id": "19:vv1TBwWKlxIVuFmAX4s7k7UJELXTwzXlvAUARulmo0g1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:04:18Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d4-822d-1655-373a0d0005dc"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:01:23 GMT - ms-cv: wS+0GK3wfE2L2k7swucpyQ.0 + date: Thu, 28 Jan 2021 03:04:18 GMT + ms-cv: AoSeA6oSh06MMniGVQ9fZQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 929ms + x-processing-time: 861ms status: code: 201 message: Created @@ -203,13 +205,13 @@ interactions: response: body: '{}' headers: - api-supported-versions: 2020-11-01-preview3 + api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:01:23 GMT - ms-cv: UH0hNnjUskGTq+r7KYnZiw.0 + date: Thu, 28 Jan 2021 03:04:19 GMT + ms-cv: M7LpYrw+Dku9N9hAEbzMtA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 459ms + x-processing-time: 918ms status: code: 201 message: Created @@ -226,13 +228,13 @@ interactions: response: body: '{"value": "sanitized"}' headers: - api-supported-versions: 2020-11-01-preview3 + api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:01:24 GMT - ms-cv: 4rX40Idn4kyRuEtbrRM4yA.0 + date: Thu, 28 Jan 2021 03:04:19 GMT + ms-cv: FvAC9oYULkWfybI0lzwo3A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 284ms + x-processing-time: 263ms status: code: 200 message: OK @@ -250,11 +252,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 18:01:24 GMT - ms-cv: 6VtyQ3pZoEa6i+aEErS81Q.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:04:20 GMT + ms-cv: Z3RTJ1E8nE6HtaXtndJNww.0 strict-transport-security: max-age=2592000 - x-processing-time: 348ms + x-processing-time: 344ms status: code: 204 message: No Content @@ -271,7 +273,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:01:38 GMT + - Thu, 28 Jan 2021 03:04:28 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -285,13 +287,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:01:40 GMT + - Thu, 28 Jan 2021 03:04:37 GMT ms-cv: - - F7/g+Cn1xkS2jETY78jcAw.0 + - r7yCXcxKrkq+ZH95V5fNqg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15576ms + - 16912ms status: code: 204 message: No Content @@ -307,7 +309,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:01:54 GMT + - Thu, 28 Jan 2021 03:04:45 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -321,13 +323,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:01:56 GMT + - Thu, 28 Jan 2021 03:04:53 GMT ms-cv: - - GcnGeSpChE6047B6l014Qg.0 + - i++1HjGeB0Sk04yfCY+/dQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16623ms + - 16259ms 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 5f7f466ca4c3..6e4a3861a497 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:02:10 GMT + - Thu, 28 Jan 2021 03:05:01 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:01:57 GMT + - Thu, 28 Jan 2021 03:04:54 GMT ms-cv: - - fL6esiSAH0a5J3Cb1E6DXg.0 + - xnAUWIMs70+snRXHcOepXg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 58ms + - 18ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:02:11 GMT + - Thu, 28 Jan 2021 03:05:02 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:01:56.9945897+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:04:53.8250141+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:01:57 GMT + - Thu, 28 Jan 2021 03:04:54 GMT ms-cv: - - oUJI8XO/3UqzUw9mM6lK8g.0 + - oF6uH5Wk9kKv4orK3HIg4A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 151ms + - 84ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:02:11 GMT + - Thu, 28 Jan 2021 03:05:02 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:01:57 GMT + - Thu, 28 Jan 2021 03:04:54 GMT ms-cv: - - nQ0d9riVVEKst+BzNqb/jg.0 + - tlQxA2VTU0ec1UEqAvmLXg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 63ms + - 18ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:02:11 GMT + - Thu, 28 Jan 2021 03:05:02 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:01:57.3505167+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:04:54.0391694+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:01:58 GMT + - Thu, 28 Jan 2021 03:04:54 GMT ms-cv: - - IyKRHK9XWkijgmt3ZL9mmw.0 + - +BoUYldDSkiqJG0qBLgwuQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 178ms + - 90ms status: code: 200 message: OK @@ -170,31 +170,33 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - f74d21d5-cb4e-4403-b4b4-b0aaa36f8bc3 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:b1e427d0001441cbac385cfda6af25b2@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:01:58Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da97-4507-1655-373a0d002792"}}' + body: '{"chatThread": {"id": "19:RJ212mrc7xjENVzJNGeeIXLLx9nYeGE7JVWxVFJQH541@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:04:55Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d5-12a3-1db7-3a3a0d000529"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:01:58 GMT - ms-cv: LQig+cWNPEGH2hWtoCWEiA.0 + date: Thu, 28 Jan 2021 03:04:55 GMT + ms-cv: NbSFywuHu0uCCcYz7PAdjA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 922ms + x-processing-time: 894ms status: code: 201 message: Created url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -204,13 +206,13 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:01:59 GMT - ms-cv: jXDMU3jR6ky7PqKZB/MnXw.0 + date: Thu, 28 Jan 2021 03:04:56 GMT + ms-cv: J5HAssd3tkmRfGZL1sMTwg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 400ms + x-processing-time: 396ms status: code: 201 message: Created @@ -232,12 +234,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Mon, 25 Jan 2021 18:02:00 GMT - ms-cv: 7wMRrOUw8U+vMwTkTI/T/w.0 + date: Thu, 28 Jan 2021 03:04:57 GMT + ms-cv: JAK83Qp2YE6aaMdn13ArzA.0 strict-transport-security: max-age=2592000 - x-processing-time: 944ms + x-processing-time: 940ms status: code: 200 message: OK @@ -254,25 +256,25 @@ interactions: response: body: '{"value": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:02:00 GMT - ms-cv: j9rGblAkfEKgGNIsBOyQlA.0 + date: Thu, 28 Jan 2021 03:04:58 GMT + ms-cv: pKeiKKbYY0mw/tlApVx8jg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 273ms + x-processing-time: 704ms status: code: 200 message: OK url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -282,13 +284,13 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:02:01 GMT - ms-cv: cxeaASaSDU+9k8DTdawJcQ.0 + date: Thu, 28 Jan 2021 03:04:58 GMT + ms-cv: wPiMGpViqUahMvFWjG/+LQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 391ms + x-processing-time: 369ms status: code: 201 message: Created @@ -310,12 +312,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Mon, 25 Jan 2021 18:02:01 GMT - ms-cv: PggznI5tEEuqjKqJUbosgA.0 + date: Thu, 28 Jan 2021 03:04:59 GMT + ms-cv: galz/GCuakmvTFtcfV6BBA.0 strict-transport-security: max-age=2592000 - x-processing-time: 493ms + x-processing-time: 618ms status: code: 200 message: OK @@ -332,24 +334,25 @@ interactions: response: body: '{"value": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:02:03 GMT - ms-cv: 40YaXKVrqUKfVuxuT4HkgA.0 + date: Thu, 28 Jan 2021 03:04:59 GMT + ms-cv: 7Hy97ON6dU2Vf7T2vIUROQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 729ms + x-processing-time: 763ms status: code: 200 message: OK url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 - request: - body: '{"priority": "Normal", "content": "content", "senderDisplayName": "sender_display_name"}' + body: '{"content": "content", "senderDisplayName": "sender_display_name", "type": + "text"}' headers: Accept: - application/json Content-Length: - - '88' + - '82' Content-Type: - application/json User-Agent: @@ -359,13 +362,13 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:02:03 GMT - ms-cv: s04zALJHnkis/YEC+dZwug.0 + date: Thu, 28 Jan 2021 03:05:00 GMT + ms-cv: VkwLav1lykStCmO7YZF3AA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 428ms + x-processing-time: 392ms status: code: 201 message: Created @@ -387,12 +390,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Mon, 25 Jan 2021 18:02:03 GMT - ms-cv: Fkxs2E1tBE+5VtfibFJYuA.0 + date: Thu, 28 Jan 2021 03:05:01 GMT + ms-cv: JC+jgOGQBUqQ0LXu2kplQQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 507ms + x-processing-time: 623ms status: code: 200 message: OK @@ -409,13 +412,13 @@ interactions: response: body: '{"value": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:02:04 GMT - ms-cv: 81VagS++oEWZbk+rGwDScw.0 + date: Thu, 28 Jan 2021 03:05:01 GMT + ms-cv: 5GMN4Y97jEebBFmenWnFLA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 266ms + x-processing-time: 255ms status: code: 200 message: OK @@ -432,13 +435,13 @@ interactions: response: body: '{"value": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:02:04 GMT - ms-cv: OWtogL+hrE6Gnnz/mzcZwA.0 + date: Thu, 28 Jan 2021 03:05:02 GMT + ms-cv: S7SzT2NUV0iWh32PhER3jQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 257ms + x-processing-time: 260ms status: code: 200 message: OK @@ -456,11 +459,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 18:02:05 GMT - ms-cv: +eBf5Peo3EanXUBF/6aVeg.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:05:02 GMT + ms-cv: DwV9ic7nsk+OOfE79X/Zgw.0 strict-transport-security: max-age=2592000 - x-processing-time: 332ms + x-processing-time: 334ms status: code: 204 message: No Content @@ -477,7 +480,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:02:19 GMT + - Thu, 28 Jan 2021 03:05:10 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -491,13 +494,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:02:21 GMT + - Thu, 28 Jan 2021 03:05:19 GMT ms-cv: - - HcbxYqas3kigx51Thg6/Tg.0 + - n7oSrmG5YUKJDbMLrH8tug.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16001ms + - 16659ms status: code: 204 message: No Content @@ -513,7 +516,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:02:35 GMT + - Thu, 28 Jan 2021 03:05:27 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -527,13 +530,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:02:36 GMT + - Thu, 28 Jan 2021 03:05:35 GMT ms-cv: - - 4epRjHkghkmQTeKqCjVlxA.0 + - z3bCGV7z5EeU/WLuNrJ4yA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15892ms + - 16118ms 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 2b750c26d639..1cfbd024df6f 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:02:51 GMT + - Thu, 28 Jan 2021 03:05:43 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:02:38 GMT + - Thu, 28 Jan 2021 03:05:36 GMT ms-cv: - - lhBlzrOs10mecPSBKAU/mg.0 + - IhBqSpX3ukKU50Qs601dOw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 68ms + - 21ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:02:51 GMT + - Thu, 28 Jan 2021 03:05:43 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:02:37.450648+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:05:35.4849957+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:02:38 GMT + - Thu, 28 Jan 2021 03:05:36 GMT ms-cv: - - 7KlKaLkp0UWlSxo4s6uGmg.0 + - 8SZgvf81/0SZcDHc7KVEHA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 91ms + - 92ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:02:51 GMT + - Thu, 28 Jan 2021 03:05:43 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:02:38 GMT + - Thu, 28 Jan 2021 03:05:36 GMT ms-cv: - - YwdzY6hIZEumV8jF7grpAQ.0 + - Q5fqlUS/QUuNB1WGUpHMOA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 21ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:02:51 GMT + - Thu, 28 Jan 2021 03:05:43 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:02:37.6476091+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:05:35.701029+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:02:38 GMT + - Thu, 28 Jan 2021 03:05:36 GMT ms-cv: - - W15RffGB4EG2XdMjEeLvvg.0 + - g93T96S5VE+5gpssDmj+rQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 89ms + - 93ms status: code: 200 message: OK @@ -170,19 +170,21 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - c1135dbe-1897-484a-ba1a-4ce55d932adb method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:ceb77821e2cf41d09fe134e8b14725fb@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:02:39Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da97-e367-dbb7-3a3a0d0029a9"}}' + body: '{"chatThread": {"id": "19:Mx9GDJ576nFcerLW6S-kZx1tWqogXCpLEXjnFXnL7Q01@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:05:36Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d5-b556-dbb7-3a3a0d000571"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:02:39 GMT - ms-cv: cMkzZ8+5AEycqTSTB08H6A.0 + date: Thu, 28 Jan 2021 03:05:37 GMT + ms-cv: Py4KOtHHFE2Zd8fJM1NxQw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1202ms + x-processing-time: 898ms status: code: 201 message: Created @@ -203,13 +205,13 @@ interactions: response: body: '{}' headers: - api-supported-versions: 2020-11-01-preview3 + api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:02:40 GMT - ms-cv: B6Ttr9jenkWYbVuyXXi18g.0 + date: Thu, 28 Jan 2021 03:05:37 GMT + ms-cv: Na8L2DKIlE6edRFknBOeYw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 445ms + x-processing-time: 447ms status: code: 201 message: Created @@ -222,20 +224,20 @@ interactions: User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da97-e429-dbb7-3a3a0d0029aa?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d5-b62f-dbb7-3a3a0d000572?api-version=2020-11-01-preview3 response: body: string: '' headers: - api-supported-versions: 2020-11-01-preview3 - date: Mon, 25 Jan 2021 18:02:40 GMT - ms-cv: rzsJ3UFvqEGcqINor9et/Q.0 + api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:05:38 GMT + ms-cv: KxcEM9x3D0q5NAVuR3WkKg.0 strict-transport-security: max-age=2592000 - x-processing-time: 497ms + x-processing-time: 477ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da97-e429-dbb7-3a3a0d0029aa?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d5-b62f-dbb7-3a3a0d000572?api-version=2020-11-01-preview3 - request: body: null headers: @@ -249,11 +251,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 18:02:41 GMT - ms-cv: VgrL3GxNKUSvBNfihrLHAA.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:05:38 GMT + ms-cv: t5gnJB71W0arBS/agtZL/Q.0 strict-transport-security: max-age=2592000 - x-processing-time: 332ms + x-processing-time: 288ms status: code: 204 message: No Content @@ -270,7 +272,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:02:54 GMT + - Thu, 28 Jan 2021 03:05:46 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -284,13 +286,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:02:57 GMT + - Thu, 28 Jan 2021 03:05:55 GMT ms-cv: - - lwN2tDDRREq79GqGOYbAuQ.0 + - hOuttqo7TEGNcxdY0U1qNQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16620ms + - 16372ms status: code: 204 message: No Content @@ -306,7 +308,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:03:11 GMT + - Thu, 28 Jan 2021 03:06:02 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -320,13 +322,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:03:13 GMT + - Thu, 28 Jan 2021 03:06:11 GMT ms-cv: - - 7gBuRV8wm0+dEYiKZRy7gw.0 + - 9tlln2CzjEKBDYw7hxKAtA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16459ms + - 16214ms 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 d77b90d7902c..992fac72a847 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:03:28 GMT + - Thu, 28 Jan 2021 03:06:19 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:03:14 GMT + - Thu, 28 Jan 2021 03:06:12 GMT ms-cv: - - vTJfVr5apkWm1g2gyGpcQw.0 + - hRDzVjBr1keJfjzFCuRrlw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 78ms + - 35ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:03:28 GMT + - Thu, 28 Jan 2021 03:06:19 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:03:14.5647417+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:06:11.3274772+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:03:14 GMT + - Thu, 28 Jan 2021 03:06:12 GMT ms-cv: - - 5SkpNveJK0C2p3FNI8tc2Q.0 + - +k78GYZx30KdgGB/NzbwBg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 351ms + - 87ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:03:29 GMT + - Thu, 28 Jan 2021 03:06:19 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:03:14 GMT + - Thu, 28 Jan 2021 03:06:12 GMT ms-cv: - - Bjzz78xLK0uqZKILHEs+/w.0 + - 5VU90s5XJkSMP/e27jo/Fw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 30ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:03:29 GMT + - Thu, 28 Jan 2021 03:06:19 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:03:14.7595707+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:06:11.551862+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:03:14 GMT + - Thu, 28 Jan 2021 03:06:12 GMT ms-cv: - - v5hP/rochk6naejWJ6Nt1Q.0 + - h1OVphwQXUuyNzk9sWMhUQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 85ms + - 87ms status: code: 200 message: OK @@ -165,36 +165,38 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '205' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 7c3111cd-4cfa-4388-a874-6365bece7c7d method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:9f547ebf10954066ba5741fde1f852ab@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:03:16Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da98-7347-b0b7-3a3a0d00281c"}}' + body: '{"chatThread": {"id": "19:a-GugdN3kXaqYgxjkxmD-X_F-U6_d83O9oo0eQr8jr81@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:06:12Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d6-4149-b0b7-3a3a0d000484"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:03:16 GMT - ms-cv: h+aMtgqHqEqPh53wNDQ5pg.0 + date: Thu, 28 Jan 2021 03:06:13 GMT + ms-cv: A4iMhv2H1U2HPDnNvhEBkQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 916ms + x-processing-time: 834ms status: code: 201 message: Created url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -204,13 +206,13 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:03:16 GMT - ms-cv: 8QqvojfOEECMBzdtQMbsHg.0 + date: Thu, 28 Jan 2021 03:06:13 GMT + ms-cv: xCIXMfhIdEKWw4eobdkizA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 400ms + x-processing-time: 386ms status: code: 201 message: Created @@ -228,11 +230,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 18:03:17 GMT - ms-cv: y2Mu90EUTUOklCEFQlX3xg.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:06:13 GMT + ms-cv: 84+gcELLGUmUzh+SKQM0AA.0 strict-transport-security: max-age=2592000 - x-processing-time: 334ms + x-processing-time: 295ms status: code: 204 message: No Content @@ -249,7 +251,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:03:31 GMT + - Thu, 28 Jan 2021 03:06:21 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -263,13 +265,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:03:33 GMT + - Thu, 28 Jan 2021 03:06:30 GMT ms-cv: - - Ypzm9n/6dk6z9Tz/mkKw6g.0 + - L+0xHN9KYUmNNT0j1olh7Q.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15962ms + - 16885ms status: code: 204 message: No Content @@ -285,7 +287,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:03:47 GMT + - Thu, 28 Jan 2021 03:06:38 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -299,13 +301,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:03:49 GMT + - Thu, 28 Jan 2021 03:06:47 GMT ms-cv: - - csHtK1ThokWi3GVYTwy3/Q.0 + - hpbVJt8hMEa5peCg7Lqnkw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16377ms + - 16472ms 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 6118e14e626e..075ce0c1c154 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:04:03 GMT + - Thu, 28 Jan 2021 03:06:55 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:03:49 GMT + - Thu, 28 Jan 2021 03:06:47 GMT ms-cv: - - nlpZDZ9R9EOa34G8PvhpfQ.0 + - yZoNTiJD40q2Q9LrSKtcfA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 20ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:04:03 GMT + - Thu, 28 Jan 2021 03:06:55 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:03:49.6483747+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:06:47.2693999+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:03:50 GMT + - Thu, 28 Jan 2021 03:06:47 GMT ms-cv: - - H0oFD+RIVkWldHpuB9M4Wg.0 + - SkgkQ+6K706xKPBzhleCAg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 90ms + - 88ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:04:04 GMT + - Thu, 28 Jan 2021 03:06:55 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:03:50 GMT + - Thu, 28 Jan 2021 03:06:47 GMT ms-cv: - - CMl/Gf/m8kKowS65JQFDMw.0 + - Iz9zVl8GZUeVBsJ9fkkmBA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 25ms + - 21ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:04:04 GMT + - Thu, 28 Jan 2021 03:06:55 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:03:49.8696883+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:06:47.4863528+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:03:50 GMT + - Thu, 28 Jan 2021 03:06:47 GMT ms-cv: - - frhKhhfNGkiEaOvHGmfHcQ.0 + - VL6MGSLTgUSwDv4JoRgCPw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 94ms + - 91ms status: code: 200 message: OK @@ -170,31 +170,33 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 8ac8729a-484b-47d1-aaf0-9b19a974d4e7 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:133df3b057b2479a860c7be4fd732745@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:03:51Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da98-fd5a-dbb7-3a3a0d0029ab"}}' + body: '{"chatThread": {"id": "19:tWlE2TZDtdPC39cDzc4DHeX7pkWaK4pUecKd7_X-zkA1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:06:48Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d6-cdb2-b0b7-3a3a0d000488"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:03:51 GMT - ms-cv: 6fJvvzRXGUC5jMKtlLuPDA.0 + date: Thu, 28 Jan 2021 03:06:48 GMT + ms-cv: 6HG24F3Iv0y7/w3oGhnsOA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 910ms + x-processing-time: 834ms status: code: 201 message: Created url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -204,13 +206,13 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:03:52 GMT - ms-cv: hYssfmHQkUONVPsUXVZ6Gg.0 + date: Thu, 28 Jan 2021 03:06:49 GMT + ms-cv: nypeTzyQ1UabfJQyu/NjgQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 856ms + x-processing-time: 368ms status: code: 201 message: Created @@ -232,12 +234,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Mon, 25 Jan 2021 18:03:52 GMT - ms-cv: e/mP15+2t0y5VSLFxYdfhA.0 + date: Thu, 28 Jan 2021 03:06:50 GMT + ms-cv: EUBwZUZANUOPzYjzS/LOsQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 454ms + x-processing-time: 927ms status: code: 200 message: OK @@ -255,11 +257,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 18:03:53 GMT - ms-cv: haa5wrlr1UyuoYzQSAzdGA.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:06:51 GMT + ms-cv: a2Rf8wErsUGxqhKFw3AzXA.0 strict-transport-security: max-age=2592000 - x-processing-time: 329ms + x-processing-time: 288ms status: code: 204 message: No Content @@ -276,7 +278,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:04:07 GMT + - Thu, 28 Jan 2021 03:06:58 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -290,13 +292,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:04:09 GMT + - Thu, 28 Jan 2021 03:07:07 GMT ms-cv: - - WtLG+iv9dk+nTZ2AzzRlMw.0 + - 3G9eBgHVH0WczusODLlaLg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16330ms + - 16147ms status: code: 204 message: No Content @@ -312,7 +314,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:04:23 GMT + - Thu, 28 Jan 2021 03:07:14 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -326,13 +328,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:04:26 GMT + - Thu, 28 Jan 2021 03:07:24 GMT ms-cv: - - MYm1HQ5XiESu1GJ+Fmk1iQ.0 + - IHOLIKTPLUyoZfaPYKUOGQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16770ms + - 16759ms 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 39d2a351cacc..22c2f10671b2 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:04:40 GMT + - Thu, 28 Jan 2021 03:07:31 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:04:26 GMT + - Thu, 28 Jan 2021 03:07:24 GMT ms-cv: - - oWpLwIQ6ZEe+YTr72FLCIw.0 + - IFT8n+W7b0WADhwUBdFgrQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 21ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:04:40 GMT + - Thu, 28 Jan 2021 03:07:32 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:04:26.5244214+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:07:23.8414058+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:04:26 GMT + - Thu, 28 Jan 2021 03:07:24 GMT ms-cv: - - om/uqgOS802kqeKxYtUgxA.0 + - YmhZLgED20KUoU3SVcM23Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 85ms + - 94ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:04:40 GMT + - Thu, 28 Jan 2021 03:07:32 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:04:27 GMT + - Thu, 28 Jan 2021 03:07:24 GMT ms-cv: - - j8cJ/3WkaU2T0pkhfhHBZg.0 + - ikBNtX1xD0OeD7X2CHbgjA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 15ms + - 20ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:04:41 GMT + - Thu, 28 Jan 2021 03:07:32 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:04:26.7262406+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:07:23.0583605+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:04:27 GMT + - Thu, 28 Jan 2021 03:07:24 GMT ms-cv: - - NUat00w7rk+maMB//KUP8g.0 + - 9GPSpfvmGU23IinvNHAs8g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 83ms + - 90ms status: code: 200 message: OK @@ -165,24 +165,26 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '205' Content-Type: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 0d06e00d-998d-4b8e-8c24-66ea7c26bd5c method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:d5e6036250894b6eaadcf3ac679a9c8a@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:04:28Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da99-8d79-b0b7-3a3a0d002820"}}' + body: '{"chatThread": {"id": "19:o5IvRNo-DQhc-XhGanCpJLJLcNjtZ6ziAUkKUwGe6Eo1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:07:25Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d7-5c94-9c58-373a0d0004da"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:04:28 GMT - ms-cv: 03/hkrA3NUiCsPumhgENLQ.0 + date: Thu, 28 Jan 2021 03:07:25 GMT + ms-cv: pq+Qz9YPhUqLht7e7Tutqw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 893ms + x-processing-time: 837ms status: code: 201 message: Created @@ -200,12 +202,12 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Mon, 25 Jan 2021 18:04:28 GMT - ms-cv: N8WY+wo0ckG0jtIoI3M+Dg.0 + date: Thu, 28 Jan 2021 03:07:26 GMT + ms-cv: LxQ01okKFUCr8lL6rDYhUQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 408ms + x-processing-time: 847ms status: code: 200 message: OK @@ -223,11 +225,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 18:04:29 GMT - ms-cv: ukYCuO2eMUOr9JWqkRh7yw.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:07:26 GMT + ms-cv: +Y0WDY9L3E6EhNZpmzCaTQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 336ms + x-processing-time: 286ms status: code: 204 message: No Content @@ -244,7 +246,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:04:43 GMT + - Thu, 28 Jan 2021 03:07:34 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -258,13 +260,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:04:45 GMT + - Thu, 28 Jan 2021 03:07:43 GMT ms-cv: - - HSsc8BmWoEeOW3JD1naZvg.0 + - KGGOf7oVcEm53Ejm9n0U2Q.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16577ms + - 16073ms status: code: 204 message: No Content @@ -280,7 +282,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:04:59 GMT + - Thu, 28 Jan 2021 03:07:50 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -294,13 +296,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:05:02 GMT + - Thu, 28 Jan 2021 03:07:59 GMT ms-cv: - - Xi9d5LVedUeoruLAnPJx7A.0 + - eDnOrzvl/EilF+FJSxGCig.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15871ms + - 16185ms 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 7e7a1eecafe6..2a9e79e5be10 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:05:15 GMT + - Thu, 28 Jan 2021 03:08:07 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:05:02 GMT + - Thu, 28 Jan 2021 03:08:00 GMT ms-cv: - - 3e0us11r0kSoSEpvvjajvw.0 + - D+iw+kIh40ylCbLIpeToYg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 24ms + - 25ms status: code: 200 message: OK @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:05:15 GMT + - Thu, 28 Jan 2021 03:08:07 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:05:01.6442687+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:07:59.167218+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:05:02 GMT + - Thu, 28 Jan 2021 03:08:00 GMT ms-cv: - - vd1+PR51ykGx63GutU73/A.0 + - w9PGb74Jg0KHEQ6/fCc2MQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 101ms + - 93ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:05:16 GMT + - Thu, 28 Jan 2021 03:08:07 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:05:02 GMT + - Thu, 28 Jan 2021 03:08:00 GMT ms-cv: - - zJzdCfz4KEqgyEbSrc1/ig.0 + - fLBE0x5JNEGMr00CMKMG8Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 25ms + - 21ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:05:16 GMT + - Thu, 28 Jan 2021 03:08:07 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:05:01.8691364+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:07:59.3702139+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:05:02 GMT + - Thu, 28 Jan 2021 03:08:00 GMT ms-cv: - - FySW6owWmUyCfdYs9Pj3CQ.0 + - NOuD925xjE27zfAYgOKH7g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 112ms + - 91ms status: code: 200 message: OK @@ -170,31 +170,33 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - 9b563f05-244a-4324-ae64-0039901f8398 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:654491a4c86b47c4aad289e23664d2f4@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:05:03Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da9a-168f-1db7-3a3a0d002b15"}}' + body: '{"chatThread": {"id": "19:DQYg-mETHC1eIllDwHBDRa-kRg4AFOs04qN6Ic_nSdc1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:08:00Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d7-e696-1db7-3a3a0d000535"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:05:03 GMT - ms-cv: AK5CcHwZHUWPtRxVqNw/+w.0 + date: Thu, 28 Jan 2021 03:08:01 GMT + ms-cv: hhAYQ/CUX02/U3J5N0rrcg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 919ms + x-processing-time: 857ms status: code: 201 message: Created url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: - body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender - name"}' + body: '{"content": "hello world", "senderDisplayName": "sender name", "type": + "text"}' headers: Accept: - application/json Content-Length: - - '84' + - '78' Content-Type: - application/json User-Agent: @@ -204,13 +206,13 @@ interactions: response: body: '{"id": "sanitized"}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:05:04 GMT - ms-cv: cwLP/Sq0ekCC8TL++QGyUA.0 + date: Thu, 28 Jan 2021 03:08:01 GMT + ms-cv: OZfMqOHLc02MwL2AjQjfaw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 410ms + x-processing-time: 383ms status: code: 201 message: Created @@ -232,11 +234,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 18:05:05 GMT - ms-cv: XYq3xt+j5EOPI26kgG4IzA.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:08:02 GMT + ms-cv: 1HRzQBueEEqNxE/fYdJCnA.0 strict-transport-security: max-age=2592000 - x-processing-time: 761ms + x-processing-time: 645ms status: code: 204 message: No Content @@ -254,11 +256,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 18:05:05 GMT - ms-cv: qog0bonzuEyZUxgbPGcYxw.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:08:02 GMT + ms-cv: 13oC/jl/X02mdoalUPA1YQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 334ms + x-processing-time: 292ms status: code: 204 message: No Content @@ -275,7 +277,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:05:19 GMT + - Thu, 28 Jan 2021 03:08:10 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -289,13 +291,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:05:21 GMT + - Thu, 28 Jan 2021 03:08:19 GMT ms-cv: - - KIQ9nWLFaU64XCdXU5wVPg.0 + - S+Y3SEIfnU+k30RFTCGBKg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16509ms + - 16432ms status: code: 204 message: No Content @@ -311,7 +313,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:05:35 GMT + - Thu, 28 Jan 2021 03:08:26 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -325,13 +327,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:05:37 GMT + - Thu, 28 Jan 2021 03:08:35 GMT ms-cv: - - +JzvemoM3U6ixd86NvtfHQ.0 + - ptw3chJVIk2ref9LjqcjiA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15815ms + - 16319ms 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 ed32af2dadac..6b3574278aeb 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,7 +11,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:05:51 GMT + - Thu, 28 Jan 2021 03:08:43 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -26,9 +26,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:05:37 GMT + - Thu, 28 Jan 2021 03:08:35 GMT ms-cv: - - /XB+5AWXUESzjrRs8oCenQ.0 + - txR//a/5fUuAFNxHBeOoPQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: @@ -52,7 +52,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:05:51 GMT + - Thu, 28 Jan 2021 03:08:43 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -60,22 +60,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:05:37.8185064+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:08:35.2067811+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:05:38 GMT + - Thu, 28 Jan 2021 03:08:35 GMT ms-cv: - - 7OXxOj8pEkaZLDIK0+xGyw.0 + - Td0eks1vBkSGHR13wQjHng.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 333ms + - 96ms status: code: 200 message: OK @@ -91,7 +91,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:05:52 GMT + - Thu, 28 Jan 2021 03:08:43 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:05:38 GMT + - Thu, 28 Jan 2021 03:08:35 GMT ms-cv: - - jCaAVnSNJUC/nHIxQweB0A.0 + - kBqByIqgIkOsjCGlZS6JVA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 74ms + - 30ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Content-Type: - application/json Date: - - Mon, 25 Jan 2021 18:05:52 GMT + - Thu, 28 Jan 2021 03:08:43 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -140,22 +140,22 @@ interactions: method: POST uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:05:38.3031466+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-29T03:08:35.4365294+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 25 Jan 2021 18:05:38 GMT + - Thu, 28 Jan 2021 03:08:36 GMT ms-cv: - - zNJPjc9pJ0S0qae7imgljg.0 + - SJtYZCor9EatzaY4F0B4Rg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 226ms + - 114ms status: code: 200 message: OK @@ -170,19 +170,21 @@ interactions: - application/json User-Agent: - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + repeatability-Request-ID: + - b7bfbd3e-6ca1-41b2-9fcd-e0b34b27515e method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:8b345228c2e34fd7b5f36aafa1f997e2@thread.v2", - "topic": "test topic", "createdOn": "2021-01-25T18:05:39Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-da9a-a2f6-dbb7-3a3a0d0029b4"}}' + body: '{"chatThread": {"id": "19:qtzjxPvg07Xkl53T8hzVkI38dVqBq3agi_JwsLCmZeE1@thread.v2", + "topic": "test topic", "createdOn": "2021-01-28T03:08:37Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e6d8-735b-dbb7-3a3a0d00057e"}}' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Mon, 25 Jan 2021 18:05:39 GMT - ms-cv: KE5UWKoRPkuM30FBufSb3w.0 + date: Thu, 28 Jan 2021 03:08:37 GMT + ms-cv: ODQmxZ2ChkqXCWiKGBr+bw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 909ms + x-processing-time: 1135ms status: code: 201 message: Created @@ -204,11 +206,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 18:05:40 GMT - ms-cv: 0tZo+daNM0q0VCtCVdi6/A.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:08:37 GMT + ms-cv: oxrG/Wg8rk2wnoXG448Gug.0 strict-transport-security: max-age=2592000 - x-processing-time: 439ms + x-processing-time: 389ms status: code: 204 message: No Content @@ -226,11 +228,11 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Mon, 25 Jan 2021 18:05:40 GMT - ms-cv: peh3t5UvhUi8Fv2J9pFHtw.0 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 + date: Thu, 28 Jan 2021 03:08:38 GMT + ms-cv: ERQUy3024U6Ys7sGrg8boQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 304ms + x-processing-time: 296ms status: code: 204 message: No Content @@ -247,7 +249,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:05:54 GMT + - Thu, 28 Jan 2021 03:08:46 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -261,13 +263,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:05:56 GMT + - Thu, 28 Jan 2021 03:08:54 GMT ms-cv: - - Ckxwlr27u0utIAH9MogHmQ.0 + - 18RmxlemQUiqfTUFJdxUOQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16563ms + - 16339ms status: code: 204 message: No Content @@ -283,7 +285,7 @@ interactions: Content-Length: - '0' Date: - - Mon, 25 Jan 2021 18:06:11 GMT + - Thu, 28 Jan 2021 03:09:02 GMT User-Agent: - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: @@ -297,13 +299,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 25 Jan 2021 18:06:14 GMT + - Thu, 28 Jan 2021 03:09:10 GMT ms-cv: - - a57B07S0KUWmNGXhD0NptQ.0 + - sfYJfMjcbk2WBS/f9y31ng.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16378ms + - 16472ms 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 c825464b24ac..a7e9769e4137 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client.py @@ -64,6 +64,42 @@ def mock_send(*_, **__): self.assertFalse(raised, 'Expected is no excpetion raised') assert chat_thread_client.thread_id == thread_id + def test_create_chat_thread_w_repeatability_request_id(self): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + chat_thread_client = None + raised = False + repeatability_request_id="b66d6031-fdcc-41df-8306-e524c9f226b8" + + def mock_send(*_, **__): + 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)) + + topic = "test topic" + user = CommunicationUser("8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041") + participants = [ChatThreadParticipant( + user=user, + display_name='name', + share_history_time=datetime.utcnow() + )] + try: + chat_thread_client = chat_client.create_chat_thread(topic=topic, + thread_participants=participants, + repeatability_request_id=repeatability_request_id) + except: + raised = True + raise + + self.assertFalse(raised, 'Expected is no excpetion raised') + assert chat_thread_client.thread_id == thread_id + def test_create_chat_thread_raises_error(self): def mock_send(*_, **__): return mock_response(status_code=400, json_payload={"msg": "some error"}) 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 45d18b04be22..ef962da2f917 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 @@ -53,6 +53,34 @@ async def mock_send(*_, **__): chat_thread_client = await chat_client.create_chat_thread(topic, participants) assert chat_thread_client.thread_id == thread_id +@pytest.mark.asyncio +async def test_create_chat_thread_w_repeatability_request_id(): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + repeatability_request_id = "b66d6031-fdcc-41df-8306-e524c9f226b8" + async def mock_send(*_, **__): + 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)) + + topic="test topic" + user = CommunicationUser("8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041") + participants=[ChatThreadParticipant( + user=user, + display_name='name', + share_history_time=datetime.utcnow() + )] + chat_thread_client = await chat_client.create_chat_thread(topic=topic, + thread_participants=participants, + repeatability_request_id=repeatability_request_id) + assert chat_thread_client.thread_id == thread_id + @pytest.mark.asyncio async def test_create_chat_thread_raises_error(): async def mock_send(*_, **__): diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py index 2e32d55f3d48..3d5ed7d2bee5 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py @@ -9,6 +9,7 @@ from datetime import datetime from devtools_testutils import AzureTestCase from msrest.serialization import TZ_UTC +from uuid import uuid4 from azure.communication.administration import CommunicationIdentityClient from azure.communication.chat import ( @@ -58,7 +59,7 @@ def tearDown(self): self.identity_client.delete_user(self.user) self.chat_client.delete_chat_thread(self.thread_id) - def _create_thread(self): + def _create_thread(self, repeatability_request_id=None): # create chat thread topic = "test topic" share_history_time = datetime.utcnow() @@ -68,7 +69,7 @@ def _create_thread(self): display_name='name', share_history_time=share_history_time )] - chat_thread_client = self.chat_client.create_chat_thread(topic, participants) + chat_thread_client = self.chat_client.create_chat_thread(topic, participants, repeatability_request_id) self.thread_id = chat_thread_client.thread_id @pytest.mark.live_test_only @@ -76,6 +77,19 @@ def test_create_chat_thread(self): self._create_thread() assert self.thread_id is not None + @pytest.mark.live_test_only + def test_create_chat_thread_w_repeatability_request_id(self): + repeatability_request_id = str(uuid4()) + # create thread + self._create_thread(repeatability_request_id=repeatability_request_id) + thread_id = self.thread_id + + # re-create thread with same repeatability_request_id + self._create_thread(repeatability_request_id=repeatability_request_id) + + # test idempotency + assert thread_id == self.thread_id + @pytest.mark.live_test_only def test_get_chat_thread(self): self._create_thread() diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py index ddd269516fbe..a4063df00a60 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e_async.py @@ -8,6 +8,7 @@ import os from datetime import datetime from msrest.serialization import TZ_UTC +from uuid import uuid4 from azure.communication.administration import CommunicationIdentityClient from azure.communication.chat.aio import ( @@ -55,7 +56,7 @@ def tearDown(self): if not self.is_playback(): self.identity_client.delete_user(self.user) - async def _create_thread(self): + async def _create_thread(self, repeatability_request_id=None): # create chat thread topic = "test topic" share_history_time = datetime.utcnow() @@ -65,7 +66,7 @@ async def _create_thread(self): display_name='name', share_history_time=share_history_time )] - chat_thread_client = await self.chat_client.create_chat_thread(topic, participants) + chat_thread_client = await self.chat_client.create_chat_thread(topic, participants, repeatability_request_id) self.thread_id = chat_thread_client.thread_id @pytest.mark.live_test_only @@ -79,6 +80,27 @@ async def test_create_chat_thread_async(self): if not self.is_playback(): await self.chat_client.delete_chat_thread(self.thread_id) + @pytest.mark.live_test_only + @AsyncCommunicationTestCase.await_prepared_test + async def test_create_chat_thread_w_repeatability_request_id_async(self): + async with self.chat_client: + repeatability_request_id = str(uuid4()) + + # create thread + await self._create_thread(repeatability_request_id=repeatability_request_id) + assert self.thread_id is not None + thread_id = self.thread_id + + # re-create thread + await self._create_thread(repeatability_request_id=repeatability_request_id) + assert thread_id == self.thread_id + + + # delete created users and chat threads + if not self.is_playback(): + await self.chat_client.delete_chat_thread(self.thread_id) + + @pytest.mark.live_test_only @AsyncCommunicationTestCase.await_prepared_test async def test_get_chat_thread(self): diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py index 520c9bae791d..4018eed69460 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client.py @@ -11,10 +11,10 @@ from azure.core.exceptions import HttpResponseError from azure.communication.chat import ( ChatThreadClient, - ChatMessagePriority, ChatThreadParticipant, CommunicationUser, - CommunicationUserCredential + CommunicationUserCredential, + ChatMessageType ) from unittest_helpers import mock_response @@ -57,13 +57,10 @@ def mock_send(*_, **__): create_message_result = None try: - priority=ChatMessagePriority.NORMAL content='hello world' sender_display_name='sender name' - create_message_result_id = chat_thread_client.send_message( - content, - priority=priority, + content=content, sender_display_name=sender_display_name) except: raised = True @@ -71,13 +68,91 @@ def mock_send(*_, **__): self.assertFalse(raised, 'Expected is no excpetion raised') assert create_message_result_id == message_id + def test_send_message_w_type(self): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + message_id='1596823919339' + raised = False + + def mock_send(*_, **__): + return mock_response(status_code=201, json_payload={"id": message_id}) + chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) + + create_message_result = None + + chat_message_types = [ChatMessageType.TEXT, ChatMessageType.HTML, + ChatMessageType.PARTICIPANT_ADDED, ChatMessageType.PARTICIPANT_REMOVED, ChatMessageType.TOPIC_UPDATED, + "text", "html", "participant_added", "participant_removed", "topic_updated"] + + for chat_message_type in chat_message_types: + try: + content='hello world' + sender_display_name='sender name' + create_message_result_id = chat_thread_client.send_message( + content=content, + chat_message_type=chat_message_type, + sender_display_name=sender_display_name) + except: + raised = True + + self.assertFalse(raised, 'Expected is no excpetion raised') + assert create_message_result_id == message_id + + def test_send_message_w_invalid_type_throws_error(self): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + message_id='1596823919339' + raised = False + + def mock_send(*_, **__): + return mock_response(status_code=201, json_payload={"id": message_id}) + chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) + + create_message_result = None + + chat_message_types = ["ChatMessageType.TEXT", "ChatMessageType.HTML", + "ChatMessageType.PARTICIPANT_ADDED", "ChatMessageType.PARTICIPANT_REMOVED", + "ChatMessageType.TOPIC_UPDATED"] + for chat_message_type in chat_message_types: + try: + content='hello world' + sender_display_name='sender name' + create_message_result_id = chat_thread_client.send_message( + content=content, + chat_message_type=chat_message_type, + sender_display_name=sender_display_name) + except: + raised = True + + self.assertTrue(raised, 'Expected is excpetion raised') + + def test_get_message(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" message_id='1596823919339' raised = False + message_str = "Hi I am Bob." def mock_send(*_, **__): - return mock_response(status_code=200, json_payload={"id": message_id}) + return mock_response(status_code=200, json_payload={ + "id": message_id, + "type": "text", + "sequenceId": "3", + "version": message_id, + "content": { + "message": message_str, + "topic": "Lunch Chat thread", + "participants": [ + { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", + "displayName": "Bob", + "shareHistoryTime": "2020-10-30T10:50:50Z" + } + ], + "initiator": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" + }, + "senderDisplayName": "Bob", + "createdOn": "2021-01-27T01:37:33Z", + "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + }) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) message = None @@ -88,6 +163,9 @@ def mock_send(*_, **__): self.assertFalse(raised, 'Expected is no excpetion raised') assert message.id == message_id + assert message.content.message == message_str + assert message.type == ChatMessageType.TEXT + assert len(message.content.participants) > 0 def test_list_messages(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" @@ -95,7 +173,18 @@ def test_list_messages(self): raised = False def mock_send(*_, **__): - return mock_response(status_code=200, json_payload={"value": [{"id": message_id}]}) + return mock_response(status_code=200, json_payload={"value": [{ + "id": message_id, + "type": "text", + "sequenceId": "3", + "version": message_id, + "content": { + "message": "Hi I am Bob." + }, + "senderDisplayName": "Bob", + "createdOn": "2021-01-27T01:37:33Z", + "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + }]}) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) chat_messages = None @@ -113,13 +202,45 @@ def mock_send(*_, **__): def test_list_messages_with_start_time(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" raised = False + message_id = '1596823919339' def mock_send(*_, **__): return mock_response(status_code=200, json_payload={ "value": [ - {"id": "message_id1", "createdOn": "2020-08-17T18:05:44Z"}, - {"id": "message_id2", "createdOn": "2020-08-17T23:13:33Z"} - ]}) + { + "id": message_id, + "type": "text", + "sequenceId": "3", + "version": message_id, + "content": { + "message": "Hi I am Bob." + }, + "senderDisplayName": "Bob", + "createdOn": "2021-01-27T01:37:33Z", + "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + }, + { + "id": message_id, + "type": "text", + "sequenceId": "3", + "version": message_id, + "content": { + "message": "Come one guys, lets go for lunch together.", + "topic": "Lunch Chat thread", + "participants": [ + { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", + "displayName": "Bob", + "shareHistoryTime": "2020-10-30T10:50:50Z" + } + ], + "initiator": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" + }, + "senderDisplayName": "Bob", + "createdOn": "2021-01-27T01:37:33Z", + "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + } + ]}) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) chat_messages = None diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py index 3854badc0076..e366bf3e8cc2 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_async.py @@ -8,9 +8,9 @@ from msrest.serialization import TZ_UTC from azure.communication.chat.aio import ChatThreadClient from azure.communication.chat import ( - ChatMessagePriority, ChatThreadParticipant, CommunicationUser, + ChatMessageType ) from unittest_helpers import mock_response from azure.core.exceptions import HttpResponseError @@ -54,13 +54,11 @@ async def mock_send(*_, **__): create_message_result_id = None try: - priority=ChatMessagePriority.NORMAL content='hello world' sender_display_name='sender name' create_message_result_id = await chat_thread_client.send_message( content, - priority=priority, sender_display_name=sender_display_name) except: raised = True @@ -68,14 +66,97 @@ async def mock_send(*_, **__): assert raised == False assert create_message_result_id == message_id +@pytest.mark.asyncio +async def test_send_message_w_type(): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + message_id='1596823919339' + raised = False + + async def mock_send(*_, **__): + return mock_response(status_code=201, json_payload={"id": message_id}) + chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) + + create_message_result_id = None + + chat_message_types = [ChatMessageType.TEXT, ChatMessageType.HTML, + ChatMessageType.PARTICIPANT_ADDED, ChatMessageType.PARTICIPANT_REMOVED, + ChatMessageType.TOPIC_UPDATED, + "text", "html", "participant_added", "participant_removed", "topic_updated"] + + for chat_message_type in chat_message_types: + try: + content='hello world' + sender_display_name='sender name' + + create_message_result_id = await chat_thread_client.send_message( + content, + chat_message_type=chat_message_type, + sender_display_name=sender_display_name) + except: + raised = True + + assert raised == False + assert create_message_result_id == message_id + +@pytest.mark.asyncio +async def test_send_message_w_invalid_type_throws_error(): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + message_id='1596823919339' + raised = False + + async def mock_send(*_, **__): + return mock_response(status_code=201, json_payload={"id": message_id}) + chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) + + create_message_result_id = None + + chat_message_types = ["ChatMessageType.TEXT", "ChatMessageType.HTML", + "ChatMessageType.PARTICIPANT_ADDED", "ChatMessageType.PARTICIPANT_REMOVED", + "ChatMessageType.TOPIC_UPDATED"] + for chat_message_type in chat_message_types: + try: + content='hello world' + sender_display_name='sender name' + + create_message_result_id = await chat_thread_client.send_message( + content, + chat_message_type=chat_message_type, + sender_display_name=sender_display_name) + except: + raised = True + + assert raised == True + + @pytest.mark.asyncio async def test_get_message(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" message_id='1596823919339' raised = False + message_str = "Hi I am Bob." async def mock_send(*_, **__): - return mock_response(status_code=200, json_payload={"id": message_id}) + return mock_response(status_code=200, json_payload={ + "id": message_id, + "type": "text", + "sequenceId": "3", + "version": message_id, + "content": { + "message": message_str, + "topic": "Lunch Chat thread", + "participants": [ + { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", + "displayName": "Bob", + "shareHistoryTime": "2020-10-30T10:50:50Z" + } + ], + "initiator": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" + }, + "senderDisplayName": "Bob", + "createdOn": "2021-01-27T01:37:33Z", + "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + }) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) message = None @@ -86,6 +167,9 @@ async def mock_send(*_, **__): assert raised == False assert message.id == message_id + assert message.type == ChatMessageType.TEXT + assert message.content.message == message_str + assert len(message.content.participants) > 0 @pytest.mark.asyncio async def test_list_messages(): @@ -94,7 +178,27 @@ async def test_list_messages(): raised = False async def mock_send(*_, **__): - return mock_response(status_code=200, json_payload={"value": [{"id": message_id}]}) + return mock_response(status_code=200, json_payload={"value": [{ + "id": message_id, + "type": "text", + "sequenceId": "3", + "version": message_id, + "content": { + "message": "message_str", + "topic": "Lunch Chat thread", + "participants": [ + { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", + "displayName": "Bob", + "shareHistoryTime": "2020-10-30T10:50:50Z" + } + ], + "initiator": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" + }, + "senderDisplayName": "Bob", + "createdOn": "2021-01-27T01:37:33Z", + "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + }]}) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) chat_messages = None @@ -121,9 +225,48 @@ async def test_list_messages_with_start_time(): async def mock_send(*_, **__): return mock_response(status_code=200, json_payload={ "value": [ - {"id": "message_id1", "createdOn": "2020-08-17T18:05:44Z"}, - {"id": "message_id2", "createdOn": "2020-08-17T23:13:33Z"} - ]}) + { + "id": "message_id1", + "type": "text", + "sequenceId": "3", + "version": "message_id1", + "content": { + "message": "message_str", + "topic": "Lunch Chat thread", + "participants": [ + { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", + "displayName": "Bob", + "shareHistoryTime": "2020-10-30T10:50:50Z" + } + ], + "initiator": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" + }, + "senderDisplayName": "Bob", + "createdOn": "2020-08-17T18:05:44Z", + "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + }, + { + "id": "message_id2", + "type": "text", + "sequenceId": "3", + "version": "message_id2", + "content": { + "message": "message_str", + "topic": "Lunch Chat thread", + "participants": [ + { + "id": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b", + "displayName": "Bob", + "shareHistoryTime": "2020-10-30T10:50:50Z" + } + ], + "initiator": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" + }, + "senderDisplayName": "Bob", + "createdOn": "2020-08-17T23:13:33Z", + "senderId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-e155-1f06-1db7-3a3a0d00004b" + }]}) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) chat_messages = None diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py index e171a79de006..8b5a96535fb9 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e.py @@ -15,7 +15,7 @@ ChatClient, CommunicationUserCredential, ChatThreadParticipant, - ChatMessagePriority + ChatMessageType ) from azure.communication.chat._shared.utils import parse_connection_str @@ -106,12 +106,10 @@ def _create_thread_w_two_users( def _send_message(self): # send a message - priority = ChatMessagePriority.NORMAL content = 'hello world' sender_display_name = 'sender name' create_message_result_id = self.chat_thread_client.send_message( content, - priority=priority, sender_display_name=sender_display_name) message_id = create_message_result_id return message_id @@ -126,13 +124,11 @@ def test_update_topic(self): def test_send_message(self): self._create_thread() - priority = ChatMessagePriority.NORMAL content = 'hello world' sender_display_name = 'sender name' create_message_result_id = self.chat_thread_client.send_message( content, - priority=priority, sender_display_name=sender_display_name) assert create_message_result_id is not None @@ -143,6 +139,8 @@ def test_get_message(self): message_id = self._send_message() message = self.chat_thread_client.get_message(message_id) assert message.id == message_id + assert message.type == ChatMessageType.TEXT + assert message.content.message == 'hello world' @pytest.mark.live_test_only def test_list_messages(self): @@ -281,7 +279,6 @@ def test_list_read_receipts(self): # send messages and read receipts for i in range(2): message_id = self._send_message() - print("Message Id: ", message_id) self.chat_thread_client.send_read_receipt(message_id) if self.is_live: @@ -292,7 +289,6 @@ def test_list_read_receipts(self): # second user sends 1 message message_id_new_user = chat_thread_client_new_user.send_message( "content", - priority=ChatMessagePriority.NORMAL, sender_display_name="sender_display_name") # send read receipt chat_thread_client_new_user.send_read_receipt(message_id_new_user) diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py index 4797c48979a4..c5fdac036ddb 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py @@ -16,7 +16,7 @@ ) from azure.communication.chat import ( ChatThreadParticipant, - ChatMessagePriority + ChatMessageType ) from azure.communication.administration._shared.utils import parse_connection_str from azure_devtools.scenario_tests import RecordingProcessor @@ -103,12 +103,10 @@ async def _create_thread_w_two_users(self): async def _send_message(self): # send a message - priority = ChatMessagePriority.NORMAL content = 'hello world' sender_display_name = 'sender name' create_message_result_id = await self.chat_thread_client.send_message( content, - priority=priority, sender_display_name=sender_display_name) message_id = create_message_result_id return message_id @@ -134,13 +132,11 @@ async def test_send_message(self): await self._create_thread() async with self.chat_thread_client: - priority = ChatMessagePriority.NORMAL content = 'hello world' sender_display_name = 'sender name' create_message_result_id = await self.chat_thread_client.send_message( content, - priority=priority, sender_display_name=sender_display_name) self.assertTrue(create_message_result_id) @@ -159,6 +155,8 @@ async def test_get_message(self): message_id = await self._send_message() message = await self.chat_thread_client.get_message(message_id) assert message.id == message_id + assert message.type == ChatMessageType.TEXT + assert message.content.message == 'hello world' # delete chat threads if not self.is_playback(): @@ -362,8 +360,6 @@ async def test_list_read_receipts(self): # first user sends 2 messages for i in range(2): message_id = await self._send_message() - print(f"Message Id: {message_id}") - # send read receipts first await self.chat_thread_client.send_read_receipt(message_id) @@ -378,12 +374,10 @@ async def test_list_read_receipts(self): # second user sends 1 message message_id_new_user = await chat_thread_client_new_user.send_message( "content", - priority=ChatMessagePriority.NORMAL, sender_display_name="sender_display_name") # send read receipt await chat_thread_client_new_user.send_read_receipt(message_id_new_user) - print(f"Second User message id: {message_id_new_user}") if self.is_live: await self._wait_on_thread(chat_client=self.chat_client_new_user, thread_id=self.thread_id, message_id=message_id_new_user)