From c5441be4ba292f6438688fccef52f193306f4c2f Mon Sep 17 00:00:00 2001 From: "Jixing (Leo) Li" Date: Mon, 30 Nov 2020 10:32:11 -0800 Subject: [PATCH 1/6] ACS Chat: Changes for API version: 2020-11-01-preview3 (#15455) Several changes required by `2020-11-01-preview3` of the API: - Rename `Thread Members` to `Participants` - Rename function `UpdateThread` to `UpdateTopic` - Rename `ReadReceipt` to `ChatMessageReadReceipt` in model - Return message id (string) instead of SendMessageResult (object) when calling `send_message` - Add a convenience method `add_participant` for adding 1 participant - Add failed participants check in response header in `create_thread` function Misc: - Add updated test record files Co-authored-by: Leo Li Co-authored-by: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> --- .../azure-communication-chat/README.md | 76 ++-- .../azure/communication/chat/__init__.py | 8 +- .../azure/communication/chat/_chat_client.py | 52 ++- .../communication/chat/_chat_thread_client.py | 138 +++--- .../_azure_communication_chat_service.py | 1 + .../chat/_generated/_configuration.py | 2 +- .../aio/_azure_communication_chat_service.py | 1 + .../chat/_generated/aio/_configuration.py | 2 +- ...e_communication_chat_service_operations.py | 322 +++++++------- .../chat/_generated/models/__init__.py | 36 +- .../chat/_generated/models/_models.py | 395 +++++++---------- .../chat/_generated/models/_models_py3.py | 416 ++++++++---------- ...e_communication_chat_service_operations.py | 322 +++++++------- .../azure/communication/chat/_models.py | 32 +- .../azure/communication/chat/_utils.py | 3 + .../chat/aio/_chat_client_async.py | 49 ++- .../chat/aio/_chat_thread_client_async.py | 135 +++--- .../samples/chat_client_sample.py | 6 +- .../samples/chat_client_sample_async.py | 6 +- .../samples/chat_thread_client_sample.py | 93 ++-- .../chat_thread_client_sample_async.py | 97 ++-- .../swagger/SWAGGER.md | 2 +- ...at_client_e2e.test_create_chat_thread.yaml | 75 ++-- ...at_client_e2e.test_delete_chat_thread.yaml | 85 ++-- ..._chat_client_e2e.test_get_chat_thread.yaml | 89 ++-- ...hat_client_e2e.test_get_thread_client.yaml | 75 ++-- ...hat_client_e2e.test_list_chat_threads.yaml | 85 ++-- ...e_async.test_create_chat_thread_async.yaml | 79 ++-- ...ent_e2e_async.test_delete_chat_thread.yaml | 91 ++-- ...client_e2e_async.test_get_chat_thread.yaml | 95 ++-- ...ient_e2e_async.test_get_thread_client.yaml | 79 ++-- ...ient_e2e_async.test_list_chat_threads.yaml | 91 ++-- ...hread_client_e2e.test_add_participant.yaml | 290 ++++++++++++ ...read_client_e2e.test_add_participants.yaml | 290 ++++++++++++ ...thread_client_e2e.test_delete_message.yaml | 124 +++--- ...at_thread_client_e2e.test_get_message.yaml | 128 +++--- ..._thread_client_e2e.test_list_messages.yaml | 154 +++---- ...ead_client_e2e.test_list_participants.yaml | 287 ++++++++++++ ...ad_client_e2e.test_list_read_receipts.yaml | 134 +++--- ...ad_client_e2e.test_remove_participant.yaml | 322 ++++++++++++++ ...t_thread_client_e2e.test_send_message.yaml | 114 +++-- ...ead_client_e2e.test_send_read_receipt.yaml | 124 +++--- ...ent_e2e.test_send_typing_notification.yaml | 114 +++-- ...thread_client_e2e.test_update_message.yaml | 132 +++--- ...t_thread_client_e2e.test_update_topic.yaml | 288 ++++++++++++ ...client_e2e_async.test_add_participant.yaml | 261 +++++++++++ ...lient_e2e_async.test_add_participants.yaml | 261 +++++++++++ ..._client_e2e_async.test_delete_message.yaml | 132 +++--- ...ead_client_e2e_async.test_get_message.yaml | 136 +++--- ...d_client_e2e_async.test_list_messages.yaml | 168 ++++--- ...ient_e2e_async.test_list_participants.yaml | 257 +++++++++++ ...ent_e2e_async.test_list_read_receipts.yaml | 144 +++--- ...ent_e2e_async.test_remove_participant.yaml | 283 ++++++++++++ ...ad_client_e2e_async.test_send_message.yaml | 120 +++-- ...ient_e2e_async.test_send_read_receipt.yaml | 132 +++--- ...e_async.test_send_typing_notification.yaml | 120 +++-- ..._client_e2e_async.test_update_message.yaml | 139 +++--- ...ad_client_e2e_async.test_update_topic.yaml | 260 +++++++++++ .../tests/test_chat_client.py | 14 +- .../tests/test_chat_client_async.py | 16 +- .../tests/test_chat_client_e2e.py | 8 +- .../tests/test_chat_client_e2e_async.py | 8 +- .../tests/test_chat_thread_client.py | 71 +-- .../tests/test_chat_thread_client_async.py | 70 ++- .../tests/test_chat_thread_client_e2e.py | 87 ++-- .../test_chat_thread_client_e2e_async.py | 67 ++- 66 files changed, 5498 insertions(+), 2795 deletions(-) create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml diff --git a/sdk/communication/azure-communication-chat/README.md b/sdk/communication/azure-communication-chat/README.md index b178c8bd0e48..73a15aa1b285 100644 --- a/sdk/communication/azure-communication-chat/README.md +++ b/sdk/communication/azure-communication-chat/README.md @@ -36,8 +36,8 @@ tokenresponse = identity_client.issue_token(user, scopes=["chat"]) token = tokenresponse.token ``` -The `user` created above will be used later, because that user should be added as a member of new chat thread when you creating -it with this token. It is because the initiator of the create request must be in the list of the members of the chat thread. +The `user` created above will be used later, because that user should be added as a participant of new chat thread when you creating +it with this token. It is because the initiator of the create request must be in the list of the participants of the chat thread. ## Create the Chat Client @@ -55,12 +55,12 @@ chat_client = ChatClient(endpoint, CommunicationTokenCredential(refresh_options) ## Create Chat Thread Client The ChatThreadClient will allow you to perform operations specific to a chat thread, like send message, get message, update -the chat thread topic, add members to chat thread, etc. +the chat thread topic, add participants to chat thread, etc. You can get it by creating a new chat thread using ChatClient: ```python -chat_thread_client = chat_client.create_chat_thread(topic, thread_members) +chat_thread_client = chat_client.create_chat_thread(topic, thread_participants) ``` Alternatively, if you have created a chat thread before and you have its thread_id, you can create it by: @@ -71,14 +71,14 @@ chat_thread_client = chat_client.get_chat_thread_client(thread_id) # Key concepts -A chat conversation is represented by a chat thread. Each user in the thread is called a thread member. Thread members can chat with one another privately in a 1:1 chat or huddle up in a 1:N group chat. Users also get near real-time updates for when others are typing and when they have read the messages. +A chat conversation is represented by a chat thread. Each user in the thread is called a thread participant. Thread participants can chat with one another privately in a 1:1 chat or huddle up in a 1:N group chat. Users also get near real-time updates for when others are typing and when they have read the messages. Once you initialized a `ChatClient` class, you can do the following chat operations: ## Create, get, update, and delete threads ```Python -create_chat_thread(topic, thread_members, **kwargs) +create_chat_thread(topic, thread_participants, **kwargs) get_chat_thread(thread_id, **kwargs) list_chat_threads(**kwargs) delete_chat_thread(thread_id, **kwargs) @@ -89,7 +89,7 @@ Once you initialized a `ChatThreadClient` class, you can do the following chat o ## Update thread ```python -update_thread(topic, **kwargs) +update_topic(topic, **kwargs) ``` ## Send, get, update, and delete messages @@ -102,12 +102,12 @@ update_message(message_id, content, **kwargs) delete_message(message_id, **kwargs) ``` -## Get, add, and remove members +## Get, add, and remove participants ```Python -list_members(**kwargs) -add_members(thread_members, **kwargs) -remove_member(member_id, **kwargs) +list_participants(**kwargs) +add_participants(thread_participants, **kwargs) +remove_participant(participant_id, **kwargs) ``` ## Send typing notification @@ -131,7 +131,7 @@ The following sections provide several code snippets covering some of the most c ## Thread Operations @@ -141,24 +141,24 @@ The following sections provide several code snippets covering some of the most c Use the `create_chat_thread` method to create a chat thread client object. - Use `topic` to give a thread topic; -- Use `thread_members` to list the `ChatThreadMember` to be added to the thread; +- Use `thread_participants` to list the `ChatThreadParticipant` to be added to the thread; - `user`, required, it is the `CommunicationUserIdentifier` you created by CommunicationIdentityClient.create_user() from User Access Tokens -- `display_name`, optional, is the display name for the thread member. -- `share_history_time`, optional, time from which the chat history is shared with the member. +- `display_name`, optional, is the display name for the thread participant. +- `share_history_time`, optional, time from which the chat history is shared with the participant. `ChatThreadClient` is the result returned from creating a thread, you can use it to perform other chat operations to this chat thread ```Python -from azure.communication.chat import ChatThreadMember +from azure.communication.chat import ChatThreadParticipant topic = "test topic" -thread_members = [ChatThreadMember( +thread_participants = [ChatThreadParticipant( user='', display_name='name', share_history_time=datetime.utcnow() )] -chat_thread_client = chat_client.create_chat_thread(topic, thread_members) +chat_thread_client = chat_client.create_chat_thread(topic, thread_participants) thread_id = chat_thread_client.thread_id ``` @@ -282,50 +282,50 @@ Use `delete_message` to delete a message. chat_thread_client.delete_message(message_id) ``` -## Thread Member Operations +## Thread Participant Operations -### Get thread members +### Get thread participants -Use `list_members` to retrieve the members of the thread. +Use `list_participants` to retrieve the participants of the thread. -An iterator of `[ChatThreadMember]` is the response returned from listing members +An iterator of `[ChatThreadParticipant]` is the response returned from listing participants ```python -chat_thread_members = chat_thread_client.list_members() -for chat_thread_member in chat_thread_members: - print(chat_thread_member) +chat_thread_participants = chat_thread_client.list_participants() +for chat_thread_participant in chat_thread_participants: + print(chat_thread_participant) ``` -### Add thread members +### Add thread participants -Use `add_members` method to add thread members to the thread. +Use `add_participants` method to add thread participants to the thread. -- Use `thread_members` to list the `ChatThreadMember` to be added to the thread; +- Use `thread_participants` to list the `ChatThreadParticipant` to be added to the thread; - `user`, required, it is the `CommunicationUserIdentifier` you created by CommunicationIdentityClient.create_user() from User Access Tokens -- `display_name`, optional, is the display name for the thread member. -- `share_history_time`, optional, time from which the chat history is shared with the member. +- `display_name`, optional, is the display name for the thread participant. +- `share_history_time`, optional, time from which the chat history is shared with the participant. ```Python -from azure.communication.chat import ChatThreadMember +from azure.communication.chat import ChatThreadParticipant from datetime import datetime -member = ChatThreadMember( +participant = ChatThreadParticipant( user='', display_name='name', share_history_time=datetime.utcnow()) -thread_members = [member] -chat_thread_client.add_members(thread_members) +thread_participants = [participant] +chat_thread_client.add_participants(thread_participants) ``` -### Remove thread member +### Remove thread participant -Use `remove_member` method to remove thread member from the thread identified by threadId. +Use `remove_participant` method to remove thread participant from the thread identified by threadId. `user` is the `CommunicationUserIdentifier` you created by CommunicationIdentityClient.create_user() from User Access Tokens and was added into this chat thread. ```python -chat_thread_client.remove_member(user) +chat_thread_client.remove_participant(user) ``` ## Events Operations @@ -350,7 +350,7 @@ chat_thread_client.send_read_receipt(message_id) `list_read_receipts` method retrieves read receipts for a thread. -An iterator of `[ReadReceipt]` is the response returned from listing read receipts +An iterator of `[ChatMessageReadReceipt]` is the response returned from listing read receipts ```python read_receipts = chat_thread_client.list_read_receipts() 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 0e33c4caa201..bd766e8aa0d2 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py @@ -9,10 +9,10 @@ from ._shared.user_credential import CommunicationTokenCredential from ._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from ._models import ( - ChatThreadMember, + ChatThreadParticipant, ChatMessage, ChatThread, - ReadReceipt, + ChatMessageReadReceipt, ) from ._shared.models import CommunicationUserIdentifier @@ -21,7 +21,7 @@ 'ChatThreadClient', 'ChatMessage', 'ChatMessagePriority', - 'ReadReceipt', + 'ChatMessageReadReceipt', 'SendChatMessageResult', 'ChatThread', 'ChatThreadInfo', @@ -29,5 +29,7 @@ 'CommunicationTokenRefreshOptions', 'ChatThreadMember', 'CommunicationUserIdentifier', + 'CommunicationUserCredential', + 'ChatThreadParticipant' ] __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 096e31311fd0..ae1d991fb8c1 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 @@ -18,8 +18,11 @@ from ._shared.user_credential import CommunicationTokenCredential from ._generated import AzureCommunicationChatService from ._generated.models import CreateChatThreadRequest -from ._models import ChatThread -from ._utils import _to_utc_datetime # pylint: disable=unused-import +from ._models import ( + ChatThread, + ChatThreadParticipant +) +from ._utils import _to_utc_datetime, return_response # pylint: disable=unused-import from ._version import SDK_MONIKER if TYPE_CHECKING: @@ -117,7 +120,7 @@ def get_chat_thread_client( @distributed_trace def create_chat_thread( self, topic, # type: str - thread_members, # type: list[ChatThreadMember] + thread_participants, # type: list[ChatThreadParticipant] **kwargs # type: Any ): # type: (...) -> ChatThreadClient @@ -125,8 +128,8 @@ def create_chat_thread( :param topic: Required. The thread topic. :type topic: str - :param thread_members: Required. Members to be added to the thread. - :type thread_members: list[~azure.communication.chat.ChatThreadMember] + :param thread_participants: Required. Participants to be added to the thread. + :type thread_participants: list[~azure.communication.chat.ChatThreadParticipant] :return: ChatThreadClient :rtype: ~azure.communication.chat.ChatThreadClient :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -142,28 +145,29 @@ def create_chat_thread( """ if not topic: raise ValueError("topic cannot be None.") - if not thread_members: - raise ValueError("List of ThreadMember cannot be None.") - - members = [m._to_generated() for m in thread_members] # pylint:disable=protected-access - create_thread_request = CreateChatThreadRequest(topic=topic, members=members) - - create_chat_thread_result = self._client.create_chat_thread(create_thread_request, **kwargs) - - multiple_status = create_chat_thread_result.multiple_status - thread_status = [status for status in multiple_status if status.type == "Thread"] - if not thread_status: - raise HttpResponseError(message="Can not find chat thread status result from: {}".format(thread_status)) - if thread_status[0].status_code != 201: - raise HttpResponseError(message="Chat thread creation failed with status code {}, message: {}.".format( - thread_status[0].status_code, thread_status[0].message)) - - thread_id = thread_status[0].id - + if not thread_participants: + raise ValueError("List of ChatThreadParticipant cannot be None.") + + participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access + create_thread_request = CreateChatThreadRequest(topic=topic, participants=participants) + + response, create_chat_thread_result = self._client.create_chat_thread( + create_thread_request, cls=return_response, **kwargs) + if response is not None: + response_header = response.http_response.headers + if ('Azure-Acs-InvalidParticipants' in response_header.keys() and + response_header['Azure-Acs-InvalidParticipants'] is not None): + invalid_participant_and_reason_list = response_header['Azure-Acs-InvalidParticipants'].split('|') + errors = [] + for invalid_participant_and_reason in invalid_participant_and_reason_list: + participant, reason = invalid_participant_and_reason.split(',', 1) + errors.append('participant ' + participant + ' failed to join thread ' + + create_chat_thread_result.id + ' return statue code ' + reason) + raise ValueError(errors) return ChatThreadClient( endpoint=self._endpoint, credential=self._credential, - thread_id=thread_id, + thread_id=create_chat_thread_result.id, **kwargs ) 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 8da49613ae01..20edd8a02554 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 @@ -16,16 +16,16 @@ from ._shared.user_credential import CommunicationTokenCredential from ._generated import AzureCommunicationChatService from ._generated.models import ( - AddChatThreadMembersRequest, + AddChatParticipantsRequest, SendReadReceiptRequest, SendChatMessageRequest, UpdateChatMessageRequest, UpdateChatThreadRequest ) from ._models import ( - ChatThreadMember, + ChatThreadParticipant, ChatMessage, - ReadReceipt + ChatMessageReadReceipt ) from ._utils import _to_utc_datetime # pylint: disable=unused-import @@ -42,7 +42,7 @@ class ChatThreadClient(object): """A client to interact with the AzureCommunicationService Chat gateway. Instances of this class is normally created by ChatClient.create_chat_thread() - This client provides operations to add member to chat thread, remove member from + This client provides operations to add participant to chat thread, remove participant from chat thread, send message, delete message, update message, send typing notifications, send and list read receipt @@ -113,7 +113,7 @@ def thread_id(self): return self._thread_id @distributed_trace - def update_thread( + def update_topic( self, topic=None, # type: Optional[str] **kwargs # type: Any @@ -132,17 +132,17 @@ def update_thread( .. admonition:: Example: .. literalinclude:: ../samples/chat_thread_client_sample.py - :start-after: [START update_thread] - :end-before: [END update_thread] + :start-after: [START update_topic] + :end-before: [END update_topic] :language: python :dedent: 8 :caption: Updating chat thread. """ - update_thread_request = UpdateChatThreadRequest(topic=topic) + update_topic_request = UpdateChatThreadRequest(topic=topic) return self._client.update_chat_thread( chat_thread_id=self._thread_id, - body=update_thread_request, + update_chat_thread_request=update_topic_request, **kwargs) @distributed_trace @@ -176,7 +176,7 @@ def send_read_receipt( post_read_receipt_request = SendReadReceiptRequest(chat_message_id=message_id) return self._client.send_chat_read_receipt( self._thread_id, - body=post_read_receipt_request, + send_read_receipt_request=post_read_receipt_request, **kwargs) @distributed_trace @@ -184,11 +184,11 @@ def list_read_receipts( self, **kwargs # type: Any ): - # type: (...) -> ItemPaged[ReadReceipt] + # type: (...) -> ItemPaged[ChatMessageReadReceipt] """Gets read receipts for a thread. :keyword callable cls: A custom type or function that will be passed the direct response - :return: ItemPaged[:class:`~azure.communication.chat.ReadReceipt`] + :return: ItemPaged[:class:`~azure.communication.chat.ChatMessageReadReceipt`] :rtype: ~azure.core.paging.ItemPaged :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -203,7 +203,7 @@ def list_read_receipts( """ return self._client.list_chat_read_receipts( self._thread_id, - cls=lambda objs: [ReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access + cls=lambda objs: [ChatMessageReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @distributed_trace @@ -236,7 +236,7 @@ def send_message( content, # type: str **kwargs # type: Any ): - # type: (...) -> SendChatMessageResult + # type: (...) -> str """Sends a message to a thread. :param content: Required. Chat message content. @@ -246,8 +246,8 @@ def send_message( :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 - :return: SendChatMessageResult, or the result of cls(response) - :rtype: ~azure.communication.chat.SendChatMessageResult + :return: str, or the result of cls(response) + :rtype: str :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: @@ -270,10 +270,12 @@ def send_message( priority=priority, sender_display_name=sender_display_name ) - return self._client.send_chat_message( + + send_chat_message_result = self._client.send_chat_message( chat_thread_id=self._thread_id, - body=create_message_request, + send_chat_message_request=create_message_request, **kwargs) + return send_chat_message_result.id @distributed_trace def get_message( @@ -376,7 +378,7 @@ def update_message( return self._client.update_chat_message( chat_thread_id=self._thread_id, chat_message_id=message_id, - body=update_message_request, + update_chat_message_request=update_message_request, **kwargs) @distributed_trace @@ -413,44 +415,80 @@ def delete_message( **kwargs) @distributed_trace - def list_members( + def list_participants( self, **kwargs # type: Any ): - # type: (...) -> ItemPaged[ChatThreadMember] - """Gets the members of a thread. + # type: (...) -> ItemPaged[ChatThreadParticipant] + """Gets the participants of a thread. :keyword callable cls: A custom type or function that will be passed the direct response - :return: ItemPaged[:class:`~azure.communication.chat.ChatThreadMember`] + :return: ItemPaged[:class:`~azure.communication.chat.ChatThreadParticipant`] :rtype: ~azure.core.paging.ItemPaged :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: .. literalinclude:: ../samples/chat_thread_client_sample.py - :start-after: [START list_members] - :end-before: [END list_members] + :start-after: [START list_participants] + :end-before: [END list_participants] :language: python :dedent: 8 - :caption: Listing members of chat thread. + :caption: Listing participants of chat thread. """ - return self._client.list_chat_thread_members( + return self._client.list_chat_participants( self._thread_id, - cls=lambda objs: [ChatThreadMember._from_generated(x) for x in objs], # pylint:disable=protected-access + cls=lambda objs: [ChatThreadParticipant._from_generated(x) for x in objs], # pylint:disable=protected-access + **kwargs) + + @distributed_trace + def add_participant( + self, + thread_participant, # type: ChatThreadParticipant + **kwargs # type: Any + ): + # type: (...) -> None + """Adds single thread participant to a thread. If participant already exist, no change occurs. + + :param thread_participant: Required. Single thread participant to be added to the thread. + :type thread_participant: ~azure.communication.chat.ChatThreadParticipant + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError, ValueError + + .. admonition:: Example: + + .. literalinclude:: ../samples/chat_thread_client_sample.py + :start-after: [START add_participant] + :end-before: [END add_participant] + :language: python + :dedent: 8 + :caption: Adding single participant to chat thread. + """ + if not thread_participant: + raise ValueError("thread_participant cannot be None.") + + participants = [thread_participant._to_generated()] # pylint:disable=protected-access + add_thread_participants_request = AddChatParticipantsRequest(participants=participants) + + return self._client.add_chat_participants( + chat_thread_id=self._thread_id, + add_chat_participants_request=add_thread_participants_request, **kwargs) @distributed_trace - def add_members( + def add_participants( self, - thread_members, # type: list[ChatThreadMember] + thread_participants, # type: list[ChatThreadParticipant] **kwargs # type: Any ): # type: (...) -> None - """Adds thread members to a thread. If members already exist, no change occurs. + """Adds thread participants to a thread. If participants already exist, no change occurs. - :param thread_members: Required. Thread members to be added to the thread. - :type thread_members: list[~azure.communication.chat.ChatThreadMember] + :param thread_participants: Required. Thread participants to be added to the thread. + :type thread_participants: list[~azure.communication.chat.ChatThreadParticipant] :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None @@ -459,33 +497,33 @@ def add_members( .. admonition:: Example: .. literalinclude:: ../samples/chat_thread_client_sample.py - :start-after: [START add_members] - :end-before: [END add_members] + :start-after: [START add_participants] + :end-before: [END add_participants] :language: python :dedent: 8 - :caption: Adding members to chat thread. + :caption: Adding participants to chat thread. """ - if not thread_members: - raise ValueError("thread_members cannot be None.") + if not thread_participants: + raise ValueError("thread_participants cannot be None.") - members = [m._to_generated() for m in thread_members] # pylint:disable=protected-access - add_thread_members_request = AddChatThreadMembersRequest(members=members) + participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access + add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - return self._client.add_chat_thread_members( + return self._client.add_chat_participants( chat_thread_id=self._thread_id, - body=add_thread_members_request, + add_chat_participants_request=add_thread_participants_request, **kwargs) @distributed_trace - def remove_member( + def remove_participant( self, user, # type: CommunicationUser **kwargs # type: Any ): # type: (...) -> None - """Remove a member from a thread. + """Remove a participant from a thread. - :param user: Required. User identity of the thread member to remove from the thread. + :param user: Required. User identity of the thread participant to remove from the thread. :type user: ~azure.communication.chat.CommunicationUserIdentifier :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) @@ -495,18 +533,18 @@ def remove_member( .. admonition:: Example: .. literalinclude:: ../samples/chat_thread_client_sample.py - :start-after: [START remove_member] - :end-before: [END remove_member] + :start-after: [START remove_participant] + :end-before: [END remove_participant] :language: python :dedent: 8 - :caption: Removing member from chat thread. + :caption: Removing participant from chat thread. """ if not user: raise ValueError("user cannot be None.") - return self._client.remove_chat_thread_member( + return self._client.remove_chat_participant( chat_thread_id=self._thread_id, - chat_member_id=user.identifier, + chat_participant_id=user.identifier, **kwargs) def close(self): diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_azure_communication_chat_service.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_azure_communication_chat_service.py index 996122990a6b..386507ece71d 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_azure_communication_chat_service.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_azure_communication_chat_service.py @@ -39,6 +39,7 @@ def __init__( client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) + self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_configuration.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_configuration.py index 65b08c58e662..ffeba8865187 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_configuration.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_configuration.py @@ -38,7 +38,7 @@ def __init__( super(AzureCommunicationChatServiceConfiguration, self).__init__(**kwargs) self.endpoint = endpoint - self.api_version = "2020-09-21-preview2" + self.api_version = "2020-11-01-preview3" kwargs.setdefault('sdk_moniker', 'azurecommunicationchatservice/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_azure_communication_chat_service.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_azure_communication_chat_service.py index eb5faba2dd2b..0b37b0a92e70 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_azure_communication_chat_service.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_azure_communication_chat_service.py @@ -34,6 +34,7 @@ def __init__( client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self._serialize = Serializer(client_models) + self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_configuration.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_configuration.py index 60e56e152f13..ccd461ebf21b 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_configuration.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_configuration.py @@ -33,7 +33,7 @@ def __init__( super(AzureCommunicationChatServiceConfiguration, self).__init__(**kwargs) self.endpoint = endpoint - self.api_version = "2020-09-21-preview2" + self.api_version = "2020-11-01-preview3" kwargs.setdefault('sdk_moniker', 'azurecommunicationchatservice/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_azure_communication_chat_service_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_azure_communication_chat_service_operations.py index b1ab6ae6f996..8153823a07ec 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_azure_communication_chat_service_operations.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_azure_communication_chat_service_operations.py @@ -14,7 +14,7 @@ from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -25,29 +25,29 @@ def list_chat_read_receipts( self, chat_thread_id: str, **kwargs - ) -> AsyncIterable["models.ReadReceiptsCollection"]: - """Gets read receipts for a thread. + ) -> AsyncIterable["_models.ChatMessageReadReceiptsCollection"]: + """Gets chat message read receipts for a thread. - Gets read receipts for a thread. + Gets chat message read receipts for a thread. - :param chat_thread_id: Thread id to get the read receipts for. + :param chat_thread_id: Thread id to get the chat message read receipts for. :type chat_thread_id: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ReadReceiptsCollection or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ReadReceiptsCollection] + :return: An iterator like instance of either ChatMessageReadReceiptsCollection or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ChatMessageReadReceiptsCollection] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ReadReceiptsCollection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatMessageReadReceiptsCollection"] 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" def prepare_request(next_link=None): @@ -80,7 +80,7 @@ def prepare_request(next_link=None): return request async def extract_data(pipeline_response): - deserialized = self._deserialize('ReadReceiptsCollection', pipeline_response) + deserialized = self._deserialize('ChatMessageReadReceiptsCollection', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -106,7 +106,7 @@ async def get_next(next_link=None): async def send_chat_read_receipt( self, chat_thread_id: str, - body: "models.SendReadReceiptRequest", + send_read_receipt_request: "_models.SendReadReceiptRequest", **kwargs ) -> None: """Sends a read receipt event to a thread, on behalf of a user. @@ -115,8 +115,8 @@ async def send_chat_read_receipt( :param chat_thread_id: Thread id to send the read receipt event to. :type chat_thread_id: str - :param body: Read receipt details. - :type body: ~azure.communication.chat.models.SendReadReceiptRequest + :param send_read_receipt_request: Read receipt details. + :type send_read_receipt_request: ~azure.communication.chat.models.SendReadReceiptRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None @@ -126,13 +126,13 @@ 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -154,7 +154,7 @@ async def send_chat_read_receipt( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(body, 'SendReadReceiptRequest') + body_content = self._serialize.body(send_read_receipt_request, 'SendReadReceiptRequest') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -172,33 +172,33 @@ async def send_chat_read_receipt( async def send_chat_message( self, chat_thread_id: str, - body: "models.SendChatMessageRequest", + send_chat_message_request: "_models.SendChatMessageRequest", **kwargs - ) -> "models.SendChatMessageResult": + ) -> "_models.SendChatMessageResult": """Sends a message to a thread. Sends a message to a thread. :param chat_thread_id: The thread id to send the message to. :type chat_thread_id: str - :param body: Details of the message to send. - :type body: ~azure.communication.chat.models.SendChatMessageRequest + :param send_chat_message_request: Details of the message to send. + :type send_chat_message_request: ~azure.communication.chat.models.SendChatMessageRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: SendChatMessageResult, or the result of cls(response) :rtype: ~azure.communication.chat.models.SendChatMessageResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SendChatMessageResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SendChatMessageResult"] 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -220,7 +220,7 @@ async def send_chat_message( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(body, 'SendChatMessageRequest') + body_content = self._serialize.body(send_chat_message_request, 'SendChatMessageRequest') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -244,7 +244,7 @@ def list_chat_messages( max_page_size: Optional[int] = None, start_time: Optional[datetime.datetime] = None, **kwargs - ) -> AsyncIterable["models.ChatMessagesCollection"]: + ) -> AsyncIterable["_models.ChatMessagesCollection"]: """Gets a list of messages from a thread. Gets a list of messages from a thread. @@ -261,17 +261,17 @@ def list_chat_messages( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ChatMessagesCollection] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ChatMessagesCollection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatMessagesCollection"] 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" def prepare_request(next_link=None): @@ -336,7 +336,7 @@ async def get_chat_message( chat_thread_id: str, chat_message_id: str, **kwargs - ) -> "models.ChatMessage": + ) -> "_models.ChatMessage": """Gets a message by id. Gets a message by id. @@ -350,17 +350,17 @@ async def get_chat_message( :rtype: ~azure.communication.chat.models.ChatMessage :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ChatMessage"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatMessage"] 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" # Construct URL @@ -400,7 +400,7 @@ async def update_chat_message( self, chat_thread_id: str, chat_message_id: str, - body: "models.UpdateChatMessageRequest", + update_chat_message_request: "_models.UpdateChatMessageRequest", **kwargs ) -> None: """Updates a message. @@ -411,8 +411,8 @@ async def update_chat_message( :type chat_thread_id: str :param chat_message_id: The message id. :type chat_message_id: str - :param body: Details of the request to update the message. - :type body: ~azure.communication.chat.models.UpdateChatMessageRequest + :param update_chat_message_request: Details of the request to update the message. + :type update_chat_message_request: ~azure.communication.chat.models.UpdateChatMessageRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None @@ -422,14 +422,14 @@ 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" - content_type = kwargs.pop("content_type", "application/json") + api_version = "2020-11-01-preview3" + content_type = kwargs.pop("content_type", "application/merge-patch+json") accept = "application/json" # Construct URL @@ -451,13 +451,13 @@ async def update_chat_message( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(body, 'UpdateChatMessageRequest') + body_content = self._serialize.body(update_chat_message_request, 'UpdateChatMessageRequest') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) @@ -489,13 +489,13 @@ 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" # Construct URL @@ -548,13 +548,13 @@ 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" # Construct URL @@ -586,33 +586,33 @@ async def send_typing_notification( send_typing_notification.metadata = {'url': '/chat/threads/{chatThreadId}/typing'} # type: ignore - def list_chat_thread_members( + def list_chat_participants( self, chat_thread_id: str, **kwargs - ) -> AsyncIterable["models.ChatThreadMembersCollection"]: - """Gets the members of a thread. + ) -> AsyncIterable["_models.ChatParticipantsCollection"]: + """Gets the participants of a thread. - Gets the members of a thread. + Gets the participants of a thread. - :param chat_thread_id: Thread id to get members for. + :param chat_thread_id: Thread id to get participants for. :type chat_thread_id: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ChatThreadMembersCollection or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ChatThreadMembersCollection] + :return: An iterator like instance of either ChatParticipantsCollection or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ChatParticipantsCollection] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ChatThreadMembersCollection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatParticipantsCollection"] 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" def prepare_request(next_link=None): @@ -622,7 +622,7 @@ def prepare_request(next_link=None): if not next_link: # Construct URL - url = self.list_chat_thread_members.metadata['url'] # type: ignore + url = self.list_chat_participants.metadata['url'] # type: ignore path_format_arguments = { 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), @@ -645,7 +645,7 @@ def prepare_request(next_link=None): return request async def extract_data(pipeline_response): - deserialized = self._deserialize('ChatThreadMembersCollection', pipeline_response) + deserialized = self._deserialize('ChatParticipantsCollection', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -666,22 +666,22 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_chat_thread_members.metadata = {'url': '/chat/threads/{chatThreadId}/members'} # type: ignore + list_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore - async def add_chat_thread_members( + async def add_chat_participants( self, chat_thread_id: str, - body: "models.AddChatThreadMembersRequest", + add_chat_participants_request: "_models.AddChatParticipantsRequest", **kwargs ) -> None: - """Adds thread members to a thread. If members already exist, no change occurs. + """Adds thread participants to a thread. If participants already exist, no change occurs. - Adds thread members to a thread. If members already exist, no change occurs. + Adds thread participants to a thread. If participants already exist, no change occurs. - :param chat_thread_id: Id of the thread to add members to. + :param chat_thread_id: Id of the thread to add participants to. :type chat_thread_id: str - :param body: Thread members to be added to the thread. - :type body: ~azure.communication.chat.models.AddChatThreadMembersRequest + :param add_chat_participants_request: Thread participants to be added to the thread. + :type add_chat_participants_request: ~azure.communication.chat.models.AddChatParticipantsRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None @@ -691,18 +691,18 @@ async def add_chat_thread_members( 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self.add_chat_thread_members.metadata['url'] # type: ignore + url = self.add_chat_participants.metadata['url'] # type: ignore path_format_arguments = { 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), @@ -719,35 +719,35 @@ async def add_chat_thread_members( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(body, 'AddChatThreadMembersRequest') + body_content = self._serialize.body(add_chat_participants_request, 'AddChatParticipantsRequest') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [207]: + if response.status_code not in [201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if cls: return cls(pipeline_response, None, {}) - add_chat_thread_members.metadata = {'url': '/chat/threads/{chatThreadId}/members'} # type: ignore + add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore - async def remove_chat_thread_member( + async def remove_chat_participant( self, chat_thread_id: str, - chat_member_id: str, + chat_participant_id: str, **kwargs ) -> None: - """Remove a member from a thread. + """Remove a participant from a thread. - Remove a member from a thread. + Remove a participant from a thread. - :param chat_thread_id: Thread id to remove the member from. + :param chat_thread_id: Thread id to remove the participant from. :type chat_thread_id: str - :param chat_member_id: Id of the thread member to remove from the thread. - :type chat_member_id: str + :param chat_participant_id: Id of the thread participant to remove from the thread. + :type chat_participant_id: str :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None @@ -757,21 +757,21 @@ async def remove_chat_thread_member( 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" # Construct URL - url = self.remove_chat_thread_member.metadata['url'] # type: ignore + url = self.remove_chat_participant.metadata['url'] # type: ignore path_format_arguments = { 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), - 'chatMemberId': self._serialize.url("chat_member_id", chat_member_id, 'str'), + 'chatParticipantId': self._serialize.url("chat_participant_id", chat_participant_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -794,35 +794,35 @@ async def remove_chat_thread_member( if cls: return cls(pipeline_response, None, {}) - remove_chat_thread_member.metadata = {'url': '/chat/threads/{chatThreadId}/members/{chatMemberId}'} # type: ignore + remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore async def create_chat_thread( self, - body: "models.CreateChatThreadRequest", + create_chat_thread_request: "_models.CreateChatThreadRequest", **kwargs - ) -> "models.MultiStatusResponse": + ) -> "_models.ChatThread": """Creates a chat thread. Creates a chat thread. - :param body: Request payload for creating a chat thread. - :type body: ~azure.communication.chat.models.CreateChatThreadRequest + :param create_chat_thread_request: Request payload for creating a chat thread. + :type create_chat_thread_request: ~azure.communication.chat.models.CreateChatThreadRequest :keyword callable cls: A custom type or function that will be passed the direct response - :return: MultiStatusResponse, or the result of cls(response) - :rtype: ~azure.communication.chat.models.MultiStatusResponse + :return: ChatThread, or the result of cls(response) + :rtype: ~azure.communication.chat.models.ChatThread :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.MultiStatusResponse"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -843,17 +843,17 @@ async def create_chat_thread( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(body, 'CreateChatThreadRequest') + body_content = self._serialize.body(create_chat_thread_request, 'CreateChatThreadRequest') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [207]: + if response.status_code not in [201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) - deserialized = self._deserialize('MultiStatusResponse', pipeline_response) + deserialized = self._deserialize('ChatThread', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -866,7 +866,7 @@ def list_chat_threads( max_page_size: Optional[int] = None, start_time: Optional[datetime.datetime] = None, **kwargs - ) -> AsyncIterable["models.ChatThreadsInfoCollection"]: + ) -> AsyncIterable["_models.ChatThreadsInfoCollection"]: """Gets the list of chat threads of a user. Gets the list of chat threads of a user. @@ -881,17 +881,17 @@ def list_chat_threads( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ChatThreadsInfoCollection] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ChatThreadsInfoCollection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadsInfoCollection"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" def prepare_request(next_link=None): @@ -952,7 +952,7 @@ async def get_next(next_link=None): async def update_chat_thread( self, chat_thread_id: str, - body: "models.UpdateChatThreadRequest", + update_chat_thread_request: "_models.UpdateChatThreadRequest", **kwargs ) -> None: """Updates a thread's properties. @@ -961,8 +961,8 @@ async def update_chat_thread( :param chat_thread_id: The id of the thread to update. :type chat_thread_id: str - :param body: Request payload for updating a chat thread. - :type body: ~azure.communication.chat.models.UpdateChatThreadRequest + :param update_chat_thread_request: Request payload for updating a chat thread. + :type update_chat_thread_request: ~azure.communication.chat.models.UpdateChatThreadRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None @@ -972,14 +972,14 @@ 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" - content_type = kwargs.pop("content_type", "application/json") + api_version = "2020-11-01-preview3" + content_type = kwargs.pop("content_type", "application/merge-patch+json") accept = "application/json" # Construct URL @@ -1000,13 +1000,13 @@ async def update_chat_thread( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(body, 'UpdateChatThreadRequest') + body_content = self._serialize.body(update_chat_thread_request, 'UpdateChatThreadRequest') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) @@ -1019,7 +1019,7 @@ async def get_chat_thread( self, chat_thread_id: str, **kwargs - ) -> "models.ChatThread": + ) -> "_models.ChatThread": """Gets a chat thread. Gets a chat thread. @@ -1031,17 +1031,17 @@ async def get_chat_thread( :rtype: ~azure.communication.chat.models.ChatThread :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ChatThread"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" # Construct URL @@ -1096,13 +1096,13 @@ 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" # Construct URL 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 7ab0f15afde3..6e86967f52b8 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/__init__.py @@ -7,40 +7,36 @@ # -------------------------------------------------------------------------- try: - from ._models_py3 import AddChatThreadMembersRequest + from ._models_py3 import AddChatParticipantsRequest from ._models_py3 import ChatMessage + from ._models_py3 import ChatMessageReadReceipt + from ._models_py3 import ChatMessageReadReceiptsCollection from ._models_py3 import ChatMessagesCollection + from ._models_py3 import ChatParticipant + from ._models_py3 import ChatParticipantsCollection from ._models_py3 import ChatThread from ._models_py3 import ChatThreadInfo - from ._models_py3 import ChatThreadMember - from ._models_py3 import ChatThreadMembersCollection from ._models_py3 import ChatThreadsInfoCollection from ._models_py3 import CreateChatThreadRequest from ._models_py3 import Error - from ._models_py3 import IndividualStatusResponse - from ._models_py3 import MultiStatusResponse - from ._models_py3 import ReadReceipt - from ._models_py3 import ReadReceiptsCollection from ._models_py3 import SendChatMessageRequest from ._models_py3 import SendChatMessageResult from ._models_py3 import SendReadReceiptRequest from ._models_py3 import UpdateChatMessageRequest from ._models_py3 import UpdateChatThreadRequest except (SyntaxError, ImportError): - from ._models import AddChatThreadMembersRequest # type: ignore + from ._models import AddChatParticipantsRequest # type: ignore from ._models import ChatMessage # type: ignore + from ._models import ChatMessageReadReceipt # type: ignore + from ._models import ChatMessageReadReceiptsCollection # type: ignore from ._models import ChatMessagesCollection # type: ignore + from ._models import ChatParticipant # type: ignore + from ._models import ChatParticipantsCollection # type: ignore from ._models import ChatThread # type: ignore from ._models import ChatThreadInfo # type: ignore - from ._models import ChatThreadMember # type: ignore - from ._models import ChatThreadMembersCollection # type: ignore from ._models import ChatThreadsInfoCollection # type: ignore from ._models import CreateChatThreadRequest # type: ignore from ._models import Error # type: ignore - from ._models import IndividualStatusResponse # type: ignore - from ._models import MultiStatusResponse # type: ignore - from ._models import ReadReceipt # type: ignore - from ._models import ReadReceiptsCollection # type: ignore from ._models import SendChatMessageRequest # type: ignore from ._models import SendChatMessageResult # type: ignore from ._models import SendReadReceiptRequest # type: ignore @@ -52,20 +48,18 @@ ) __all__ = [ - 'AddChatThreadMembersRequest', + 'AddChatParticipantsRequest', 'ChatMessage', + 'ChatMessageReadReceipt', + 'ChatMessageReadReceiptsCollection', 'ChatMessagesCollection', + 'ChatParticipant', + 'ChatParticipantsCollection', 'ChatThread', 'ChatThreadInfo', - 'ChatThreadMember', - 'ChatThreadMembersCollection', 'ChatThreadsInfoCollection', 'CreateChatThreadRequest', 'Error', - 'IndividualStatusResponse', - 'MultiStatusResponse', - 'ReadReceipt', - 'ReadReceiptsCollection', 'SendChatMessageRequest', 'SendChatMessageResult', 'SendReadReceiptRequest', 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 4bc3f247591d..9598cb18db1f 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py @@ -10,29 +10,29 @@ import msrest.serialization -class AddChatThreadMembersRequest(msrest.serialization.Model): - """Thread members to be added to the thread. +class AddChatParticipantsRequest(msrest.serialization.Model): + """Participants to be added to the thread. All required parameters must be populated in order to send to Azure. - :param members: Required. Members to add to a chat thread. - :type members: list[~azure.communication.chat.models.ChatThreadMember] + :param participants: Required. Participants to add to a chat thread. + :type participants: list[~azure.communication.chat.models.ChatParticipant] """ _validation = { - 'members': {'required': True}, + 'participants': {'required': True}, } _attribute_map = { - 'members': {'key': 'members', 'type': '[ChatThreadMember]'}, + 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, } def __init__( self, **kwargs ): - super(AddChatThreadMembersRequest, self).__init__(**kwargs) - self.members = kwargs['members'] + super(AddChatParticipantsRequest, self).__init__(**kwargs) + self.participants = kwargs['participants'] class ChatMessage(msrest.serialization.Model): @@ -112,6 +112,74 @@ def __init__( self.edited_on = kwargs.get('edited_on', 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. + + :ivar sender_id: Chat message read receipt sender id. + :vartype sender_id: str + :ivar chat_message_id: Id for the chat message that has been read. This id is generated by the + server. + :vartype chat_message_id: str + :ivar read_on: Chat message read receipt timestamp. The timestamp is in ISO8601 format: ``yyyy- + MM-ddTHH:mm:ssZ``. + :vartype read_on: ~datetime.datetime + """ + + _validation = { + 'sender_id': {'readonly': True}, + 'chat_message_id': {'readonly': True}, + 'read_on': {'readonly': True}, + } + + _attribute_map = { + 'sender_id': {'key': 'senderId', 'type': 'str'}, + 'chat_message_id': {'key': 'chatMessageId', 'type': 'str'}, + 'read_on': {'key': 'readOn', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(ChatMessageReadReceipt, self).__init__(**kwargs) + self.sender_id = None + self.chat_message_id = None + self.read_on = None + + +class ChatMessageReadReceiptsCollection(msrest.serialization.Model): + """ChatMessageReadReceiptsCollection. + + 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] + :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}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ChatMessageReadReceipt]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ChatMessageReadReceiptsCollection, self).__init__(**kwargs) + self.value = None + self.next_link = None + + class ChatMessagesCollection(msrest.serialization.Model): """Collection of chat messages for a particular chat thread. @@ -143,6 +211,70 @@ def __init__( self.next_link = None +class ChatParticipant(msrest.serialization.Model): + """A participant of the chat thread. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. The id of the chat participant. + :type id: str + :param display_name: Display name for the chat participant. + :type display_name: str + :param share_history_time: Time from which the chat history is shared with the participant. The + timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type share_history_time: ~datetime.datetime + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'share_history_time': {'key': 'shareHistoryTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(ChatParticipant, self).__init__(**kwargs) + self.id = kwargs['id'] + self.display_name = kwargs.get('display_name', None) + self.share_history_time = kwargs.get('share_history_time', None) + + +class ChatParticipantsCollection(msrest.serialization.Model): + """Collection of participants belong to a particular thread. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param value: 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. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ChatParticipant]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ChatParticipantsCollection, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = None + + class ChatThread(msrest.serialization.Model): """ChatThread. @@ -157,8 +289,11 @@ class ChatThread(msrest.serialization.Model): :vartype created_on: ~datetime.datetime :ivar created_by: Id of the chat thread owner. :vartype created_by: str - :param members: Chat thread members. - :type members: list[~azure.communication.chat.models.ChatThreadMember] + :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in ISO8601 + format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type deleted_on: ~datetime.datetime + :param participants: Chat participants. + :type participants: list[~azure.communication.chat.models.ChatParticipant] """ _validation = { @@ -172,7 +307,8 @@ class ChatThread(msrest.serialization.Model): 'topic': {'key': 'topic', 'type': 'str'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'created_by': {'key': 'createdBy', 'type': 'str'}, - 'members': {'key': 'members', 'type': '[ChatThreadMember]'}, + 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, + 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, } def __init__( @@ -184,7 +320,8 @@ def __init__( self.topic = kwargs.get('topic', None) self.created_on = None self.created_by = None - self.members = kwargs.get('members', None) + self.deleted_on = kwargs.get('deleted_on', None) + self.participants = kwargs.get('participants', None) class ChatThreadInfo(msrest.serialization.Model): @@ -196,8 +333,9 @@ class ChatThreadInfo(msrest.serialization.Model): :vartype id: str :param topic: Chat thread topic. :type topic: str - :param is_deleted: Flag if a chat thread is soft deleted. - :type is_deleted: bool + :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in ISO8601 + format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type deleted_on: ~datetime.datetime :ivar last_message_received_on: The timestamp when the last message arrived at the server. The timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. :vartype last_message_received_on: ~datetime.datetime @@ -211,7 +349,7 @@ class ChatThreadInfo(msrest.serialization.Model): _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'topic': {'key': 'topic', 'type': 'str'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, 'last_message_received_on': {'key': 'lastMessageReceivedOn', 'type': 'iso-8601'}, } @@ -222,75 +360,10 @@ def __init__( super(ChatThreadInfo, self).__init__(**kwargs) self.id = None self.topic = kwargs.get('topic', None) - self.is_deleted = kwargs.get('is_deleted', None) + self.deleted_on = kwargs.get('deleted_on', None) self.last_message_received_on = None -class ChatThreadMember(msrest.serialization.Model): - """A member of the chat thread. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. The id of the chat thread member in the format - ``8:acs:ResourceId_AcsUserId``. - :type id: str - :param display_name: Display name for the chat thread member. - :type display_name: str - :param share_history_time: Time from which the chat history is shared with the member. The - timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. - :type share_history_time: ~datetime.datetime - """ - - _validation = { - 'id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'share_history_time': {'key': 'shareHistoryTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - super(ChatThreadMember, self).__init__(**kwargs) - self.id = kwargs['id'] - self.display_name = kwargs.get('display_name', None) - self.share_history_time = kwargs.get('share_history_time', None) - - -class ChatThreadMembersCollection(msrest.serialization.Model): - """Collection of thread members belong to a particular thread. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param value: Chat thread members. - :type value: list[~azure.communication.chat.models.ChatThreadMember] - :ivar next_link: If there are more chat threads that can be retrieved, the next link will be - populated. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ChatThreadMember]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ChatThreadMembersCollection, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = None - - class ChatThreadsInfoCollection(msrest.serialization.Model): """Collection of chat threads. @@ -329,18 +402,18 @@ class CreateChatThreadRequest(msrest.serialization.Model): :param topic: Required. The chat thread topic. :type topic: str - :param members: Required. Members to be added to the chat thread. - :type members: list[~azure.communication.chat.models.ChatThreadMember] + :param participants: Required. Participants to be added to the chat thread. + :type participants: list[~azure.communication.chat.models.ChatParticipant] """ _validation = { 'topic': {'required': True}, - 'members': {'required': True}, + 'participants': {'required': True}, } _attribute_map = { 'topic': {'key': 'topic', 'type': 'str'}, - 'members': {'key': 'members', 'type': '[ChatThreadMember]'}, + 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, } def __init__( @@ -349,7 +422,7 @@ def __init__( ): super(CreateChatThreadRequest, self).__init__(**kwargs) self.topic = kwargs['topic'] - self.members = kwargs['members'] + self.participants = kwargs['participants'] class Error(msrest.serialization.Model): @@ -357,13 +430,14 @@ class Error(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar code: + :ivar code: Error code. :vartype code: str - :ivar message: + :ivar message: Description of the error. :vartype message: str - :ivar target: + :ivar target: If applicable, would be used to indicate the property causing the error. :vartype target: str - :ivar inner_errors: + :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] """ @@ -392,147 +466,6 @@ def __init__( self.inner_errors = None -class IndividualStatusResponse(msrest.serialization.Model): - """IndividualStatusResponse. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Identifies the resource to which the individual status corresponds. - :vartype id: str - :ivar status_code: The status code of the resource operation. - - Possible values include: - 200 for a successful update or delete, - 201 for successful creation, - 400 for a malformed input, - 403 for lacking permission to execute the operation, - 404 for resource not found. - :vartype status_code: int - :ivar message: The message explaining why the operation failed for the resource identified by - the key; null if the operation succeeded. - :vartype message: str - :ivar type: Identifies the type of the resource to which the individual status corresponds. - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'status_code': {'readonly': True}, - 'message': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(IndividualStatusResponse, self).__init__(**kwargs) - self.id = None - self.status_code = None - self.message = None - self.type = None - - -class MultiStatusResponse(msrest.serialization.Model): - """MultiStatusResponse. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar multiple_status: The list of status information for each resource in the request. - :vartype multiple_status: list[~azure.communication.chat.models.IndividualStatusResponse] - """ - - _validation = { - 'multiple_status': {'readonly': True}, - } - - _attribute_map = { - 'multiple_status': {'key': 'multipleStatus', 'type': '[IndividualStatusResponse]'}, - } - - def __init__( - self, - **kwargs - ): - super(MultiStatusResponse, self).__init__(**kwargs) - self.multiple_status = None - - -class ReadReceipt(msrest.serialization.Model): - """A 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. - - :ivar sender_id: Read receipt sender id. - :vartype sender_id: str - :ivar chat_message_id: Id for the chat message that has been read. This id is generated by the - server. - :vartype chat_message_id: str - :ivar read_on: Read receipt timestamp. The timestamp is in ISO8601 format: ``yyyy-MM- - ddTHH:mm:ssZ``. - :vartype read_on: ~datetime.datetime - """ - - _validation = { - 'sender_id': {'readonly': True}, - 'chat_message_id': {'readonly': True}, - 'read_on': {'readonly': True}, - } - - _attribute_map = { - 'sender_id': {'key': 'senderId', 'type': 'str'}, - 'chat_message_id': {'key': 'chatMessageId', 'type': 'str'}, - 'read_on': {'key': 'readOn', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - super(ReadReceipt, self).__init__(**kwargs) - self.sender_id = None - self.chat_message_id = None - self.read_on = None - - -class ReadReceiptsCollection(msrest.serialization.Model): - """ReadReceiptsCollection. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: Collection of read receipts. - :vartype value: list[~azure.communication.chat.models.ReadReceipt] - :ivar next_link: If there are more read receipts that can be retrieved, the next link will be - populated. - :vartype next_link: str - """ - - _validation = { - 'value': {'readonly': True}, - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ReadReceipt]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ReadReceiptsCollection, self).__init__(**kwargs) - self.value = None - self.next_link = None - - class SendChatMessageRequest(msrest.serialization.Model): """Details of the message to send. 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 85157315f42c..2ace184240fa 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py @@ -15,31 +15,31 @@ from ._azure_communication_chat_service_enums import * -class AddChatThreadMembersRequest(msrest.serialization.Model): - """Thread members to be added to the thread. +class AddChatParticipantsRequest(msrest.serialization.Model): + """Participants to be added to the thread. All required parameters must be populated in order to send to Azure. - :param members: Required. Members to add to a chat thread. - :type members: list[~azure.communication.chat.models.ChatThreadMember] + :param participants: Required. Participants to add to a chat thread. + :type participants: list[~azure.communication.chat.models.ChatParticipant] """ _validation = { - 'members': {'required': True}, + 'participants': {'required': True}, } _attribute_map = { - 'members': {'key': 'members', 'type': '[ChatThreadMember]'}, + 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, } def __init__( self, *, - members: List["ChatThreadMember"], + participants: List["ChatParticipant"], **kwargs ): - super(AddChatThreadMembersRequest, self).__init__(**kwargs) - self.members = members + super(AddChatParticipantsRequest, self).__init__(**kwargs) + self.participants = participants class ChatMessage(msrest.serialization.Model): @@ -126,6 +126,74 @@ def __init__( self.edited_on = edited_on +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. + + :ivar sender_id: Chat message read receipt sender id. + :vartype sender_id: str + :ivar chat_message_id: Id for the chat message that has been read. This id is generated by the + server. + :vartype chat_message_id: str + :ivar read_on: Chat message read receipt timestamp. The timestamp is in ISO8601 format: ``yyyy- + MM-ddTHH:mm:ssZ``. + :vartype read_on: ~datetime.datetime + """ + + _validation = { + 'sender_id': {'readonly': True}, + 'chat_message_id': {'readonly': True}, + 'read_on': {'readonly': True}, + } + + _attribute_map = { + 'sender_id': {'key': 'senderId', 'type': 'str'}, + 'chat_message_id': {'key': 'chatMessageId', 'type': 'str'}, + 'read_on': {'key': 'readOn', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(ChatMessageReadReceipt, self).__init__(**kwargs) + self.sender_id = None + self.chat_message_id = None + self.read_on = None + + +class ChatMessageReadReceiptsCollection(msrest.serialization.Model): + """ChatMessageReadReceiptsCollection. + + 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] + :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}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ChatMessageReadReceipt]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ChatMessageReadReceiptsCollection, self).__init__(**kwargs) + self.value = None + self.next_link = None + + class ChatMessagesCollection(msrest.serialization.Model): """Collection of chat messages for a particular chat thread. @@ -157,6 +225,76 @@ def __init__( self.next_link = None +class ChatParticipant(msrest.serialization.Model): + """A participant of the chat thread. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. The id of the chat participant. + :type id: str + :param display_name: Display name for the chat participant. + :type display_name: str + :param share_history_time: Time from which the chat history is shared with the participant. The + timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type share_history_time: ~datetime.datetime + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'share_history_time': {'key': 'shareHistoryTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + id: str, + display_name: Optional[str] = None, + share_history_time: Optional[datetime.datetime] = None, + **kwargs + ): + super(ChatParticipant, self).__init__(**kwargs) + self.id = id + self.display_name = display_name + self.share_history_time = share_history_time + + +class ChatParticipantsCollection(msrest.serialization.Model): + """Collection of participants belong to a particular thread. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param value: 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. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ChatParticipant]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["ChatParticipant"]] = None, + **kwargs + ): + super(ChatParticipantsCollection, self).__init__(**kwargs) + self.value = value + self.next_link = None + + class ChatThread(msrest.serialization.Model): """ChatThread. @@ -171,8 +309,11 @@ class ChatThread(msrest.serialization.Model): :vartype created_on: ~datetime.datetime :ivar created_by: Id of the chat thread owner. :vartype created_by: str - :param members: Chat thread members. - :type members: list[~azure.communication.chat.models.ChatThreadMember] + :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in ISO8601 + format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type deleted_on: ~datetime.datetime + :param participants: Chat participants. + :type participants: list[~azure.communication.chat.models.ChatParticipant] """ _validation = { @@ -186,14 +327,16 @@ class ChatThread(msrest.serialization.Model): 'topic': {'key': 'topic', 'type': 'str'}, 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'created_by': {'key': 'createdBy', 'type': 'str'}, - 'members': {'key': 'members', 'type': '[ChatThreadMember]'}, + 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, + 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, } def __init__( self, *, topic: Optional[str] = None, - members: Optional[List["ChatThreadMember"]] = None, + deleted_on: Optional[datetime.datetime] = None, + participants: Optional[List["ChatParticipant"]] = None, **kwargs ): super(ChatThread, self).__init__(**kwargs) @@ -201,7 +344,8 @@ def __init__( self.topic = topic self.created_on = None self.created_by = None - self.members = members + self.deleted_on = deleted_on + self.participants = participants class ChatThreadInfo(msrest.serialization.Model): @@ -213,8 +357,9 @@ class ChatThreadInfo(msrest.serialization.Model): :vartype id: str :param topic: Chat thread topic. :type topic: str - :param is_deleted: Flag if a chat thread is soft deleted. - :type is_deleted: bool + :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in ISO8601 + format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type deleted_on: ~datetime.datetime :ivar last_message_received_on: The timestamp when the last message arrived at the server. The timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. :vartype last_message_received_on: ~datetime.datetime @@ -228,7 +373,7 @@ class ChatThreadInfo(msrest.serialization.Model): _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'topic': {'key': 'topic', 'type': 'str'}, - 'is_deleted': {'key': 'isDeleted', 'type': 'bool'}, + 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, 'last_message_received_on': {'key': 'lastMessageReceivedOn', 'type': 'iso-8601'}, } @@ -236,87 +381,16 @@ def __init__( self, *, topic: Optional[str] = None, - is_deleted: Optional[bool] = None, + deleted_on: Optional[datetime.datetime] = None, **kwargs ): super(ChatThreadInfo, self).__init__(**kwargs) self.id = None self.topic = topic - self.is_deleted = is_deleted + self.deleted_on = deleted_on self.last_message_received_on = None -class ChatThreadMember(msrest.serialization.Model): - """A member of the chat thread. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. The id of the chat thread member in the format - ``8:acs:ResourceId_AcsUserId``. - :type id: str - :param display_name: Display name for the chat thread member. - :type display_name: str - :param share_history_time: Time from which the chat history is shared with the member. The - timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. - :type share_history_time: ~datetime.datetime - """ - - _validation = { - 'id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'share_history_time': {'key': 'shareHistoryTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - *, - id: str, - display_name: Optional[str] = None, - share_history_time: Optional[datetime.datetime] = None, - **kwargs - ): - super(ChatThreadMember, self).__init__(**kwargs) - self.id = id - self.display_name = display_name - self.share_history_time = share_history_time - - -class ChatThreadMembersCollection(msrest.serialization.Model): - """Collection of thread members belong to a particular thread. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param value: Chat thread members. - :type value: list[~azure.communication.chat.models.ChatThreadMember] - :ivar next_link: If there are more chat threads that can be retrieved, the next link will be - populated. - :vartype next_link: str - """ - - _validation = { - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ChatThreadMember]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - *, - value: Optional[List["ChatThreadMember"]] = None, - **kwargs - ): - super(ChatThreadMembersCollection, self).__init__(**kwargs) - self.value = value - self.next_link = None - - class ChatThreadsInfoCollection(msrest.serialization.Model): """Collection of chat threads. @@ -355,30 +429,30 @@ class CreateChatThreadRequest(msrest.serialization.Model): :param topic: Required. The chat thread topic. :type topic: str - :param members: Required. Members to be added to the chat thread. - :type members: list[~azure.communication.chat.models.ChatThreadMember] + :param participants: Required. Participants to be added to the chat thread. + :type participants: list[~azure.communication.chat.models.ChatParticipant] """ _validation = { 'topic': {'required': True}, - 'members': {'required': True}, + 'participants': {'required': True}, } _attribute_map = { 'topic': {'key': 'topic', 'type': 'str'}, - 'members': {'key': 'members', 'type': '[ChatThreadMember]'}, + 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, } def __init__( self, *, topic: str, - members: List["ChatThreadMember"], + participants: List["ChatParticipant"], **kwargs ): super(CreateChatThreadRequest, self).__init__(**kwargs) self.topic = topic - self.members = members + self.participants = participants class Error(msrest.serialization.Model): @@ -386,13 +460,14 @@ class Error(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar code: + :ivar code: Error code. :vartype code: str - :ivar message: + :ivar message: Description of the error. :vartype message: str - :ivar target: + :ivar target: If applicable, would be used to indicate the property causing the error. :vartype target: str - :ivar inner_errors: + :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] """ @@ -421,147 +496,6 @@ def __init__( self.inner_errors = None -class IndividualStatusResponse(msrest.serialization.Model): - """IndividualStatusResponse. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar id: Identifies the resource to which the individual status corresponds. - :vartype id: str - :ivar status_code: The status code of the resource operation. - - Possible values include: - 200 for a successful update or delete, - 201 for successful creation, - 400 for a malformed input, - 403 for lacking permission to execute the operation, - 404 for resource not found. - :vartype status_code: int - :ivar message: The message explaining why the operation failed for the resource identified by - the key; null if the operation succeeded. - :vartype message: str - :ivar type: Identifies the type of the resource to which the individual status corresponds. - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'status_code': {'readonly': True}, - 'message': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(IndividualStatusResponse, self).__init__(**kwargs) - self.id = None - self.status_code = None - self.message = None - self.type = None - - -class MultiStatusResponse(msrest.serialization.Model): - """MultiStatusResponse. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar multiple_status: The list of status information for each resource in the request. - :vartype multiple_status: list[~azure.communication.chat.models.IndividualStatusResponse] - """ - - _validation = { - 'multiple_status': {'readonly': True}, - } - - _attribute_map = { - 'multiple_status': {'key': 'multipleStatus', 'type': '[IndividualStatusResponse]'}, - } - - def __init__( - self, - **kwargs - ): - super(MultiStatusResponse, self).__init__(**kwargs) - self.multiple_status = None - - -class ReadReceipt(msrest.serialization.Model): - """A 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. - - :ivar sender_id: Read receipt sender id. - :vartype sender_id: str - :ivar chat_message_id: Id for the chat message that has been read. This id is generated by the - server. - :vartype chat_message_id: str - :ivar read_on: Read receipt timestamp. The timestamp is in ISO8601 format: ``yyyy-MM- - ddTHH:mm:ssZ``. - :vartype read_on: ~datetime.datetime - """ - - _validation = { - 'sender_id': {'readonly': True}, - 'chat_message_id': {'readonly': True}, - 'read_on': {'readonly': True}, - } - - _attribute_map = { - 'sender_id': {'key': 'senderId', 'type': 'str'}, - 'chat_message_id': {'key': 'chatMessageId', 'type': 'str'}, - 'read_on': {'key': 'readOn', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - super(ReadReceipt, self).__init__(**kwargs) - self.sender_id = None - self.chat_message_id = None - self.read_on = None - - -class ReadReceiptsCollection(msrest.serialization.Model): - """ReadReceiptsCollection. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: Collection of read receipts. - :vartype value: list[~azure.communication.chat.models.ReadReceipt] - :ivar next_link: If there are more read receipts that can be retrieved, the next link will be - populated. - :vartype next_link: str - """ - - _validation = { - 'value': {'readonly': True}, - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[ReadReceipt]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ReadReceiptsCollection, self).__init__(**kwargs) - self.value = None - self.next_link = None - - class SendChatMessageRequest(msrest.serialization.Model): """Details of the message to send. diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_azure_communication_chat_service_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_azure_communication_chat_service_operations.py index a2fdb439c5df..5bd7ed00d62f 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_azure_communication_chat_service_operations.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_azure_communication_chat_service_operations.py @@ -14,7 +14,7 @@ from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -30,29 +30,29 @@ def list_chat_read_receipts( chat_thread_id, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.ReadReceiptsCollection"] - """Gets read receipts for a thread. + # type: (...) -> Iterable["_models.ChatMessageReadReceiptsCollection"] + """Gets chat message read receipts for a thread. - Gets read receipts for a thread. + Gets chat message read receipts for a thread. - :param chat_thread_id: Thread id to get the read receipts for. + :param chat_thread_id: Thread id to get the chat message read receipts for. :type chat_thread_id: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ReadReceiptsCollection or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ReadReceiptsCollection] + :return: An iterator like instance of either ChatMessageReadReceiptsCollection or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ChatMessageReadReceiptsCollection] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ReadReceiptsCollection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatMessageReadReceiptsCollection"] 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" def prepare_request(next_link=None): @@ -85,7 +85,7 @@ def prepare_request(next_link=None): return request def extract_data(pipeline_response): - deserialized = self._deserialize('ReadReceiptsCollection', pipeline_response) + deserialized = self._deserialize('ChatMessageReadReceiptsCollection', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -111,7 +111,7 @@ def get_next(next_link=None): def send_chat_read_receipt( self, chat_thread_id, # type: str - body, # type: "models.SendReadReceiptRequest" + send_read_receipt_request, # type: "_models.SendReadReceiptRequest" **kwargs # type: Any ): # type: (...) -> None @@ -121,8 +121,8 @@ def send_chat_read_receipt( :param chat_thread_id: Thread id to send the read receipt event to. :type chat_thread_id: str - :param body: Read receipt details. - :type body: ~azure.communication.chat.models.SendReadReceiptRequest + :param send_read_receipt_request: Read receipt details. + :type send_read_receipt_request: ~azure.communication.chat.models.SendReadReceiptRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None @@ -132,13 +132,13 @@ 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -160,7 +160,7 @@ def send_chat_read_receipt( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(body, 'SendReadReceiptRequest') + body_content = self._serialize.body(send_read_receipt_request, 'SendReadReceiptRequest') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -178,34 +178,34 @@ def send_chat_read_receipt( def send_chat_message( self, chat_thread_id, # type: str - body, # type: "models.SendChatMessageRequest" + send_chat_message_request, # type: "_models.SendChatMessageRequest" **kwargs # type: Any ): - # type: (...) -> "models.SendChatMessageResult" + # type: (...) -> "_models.SendChatMessageResult" """Sends a message to a thread. Sends a message to a thread. :param chat_thread_id: The thread id to send the message to. :type chat_thread_id: str - :param body: Details of the message to send. - :type body: ~azure.communication.chat.models.SendChatMessageRequest + :param send_chat_message_request: Details of the message to send. + :type send_chat_message_request: ~azure.communication.chat.models.SendChatMessageRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: SendChatMessageResult, or the result of cls(response) :rtype: ~azure.communication.chat.models.SendChatMessageResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SendChatMessageResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.SendChatMessageResult"] 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -227,7 +227,7 @@ def send_chat_message( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(body, 'SendChatMessageRequest') + body_content = self._serialize.body(send_chat_message_request, 'SendChatMessageRequest') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -252,7 +252,7 @@ def list_chat_messages( start_time=None, # type: Optional[datetime.datetime] **kwargs # type: Any ): - # type: (...) -> Iterable["models.ChatMessagesCollection"] + # type: (...) -> Iterable["_models.ChatMessagesCollection"] """Gets a list of messages from a thread. Gets a list of messages from a thread. @@ -269,17 +269,17 @@ def list_chat_messages( :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ChatMessagesCollection] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ChatMessagesCollection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatMessagesCollection"] 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" def prepare_request(next_link=None): @@ -345,7 +345,7 @@ def get_chat_message( chat_message_id, # type: str **kwargs # type: Any ): - # type: (...) -> "models.ChatMessage" + # type: (...) -> "_models.ChatMessage" """Gets a message by id. Gets a message by id. @@ -359,17 +359,17 @@ def get_chat_message( :rtype: ~azure.communication.chat.models.ChatMessage :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ChatMessage"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatMessage"] 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" # Construct URL @@ -409,7 +409,7 @@ def update_chat_message( self, chat_thread_id, # type: str chat_message_id, # type: str - body, # type: "models.UpdateChatMessageRequest" + update_chat_message_request, # type: "_models.UpdateChatMessageRequest" **kwargs # type: Any ): # type: (...) -> None @@ -421,8 +421,8 @@ def update_chat_message( :type chat_thread_id: str :param chat_message_id: The message id. :type chat_message_id: str - :param body: Details of the request to update the message. - :type body: ~azure.communication.chat.models.UpdateChatMessageRequest + :param update_chat_message_request: Details of the request to update the message. + :type update_chat_message_request: ~azure.communication.chat.models.UpdateChatMessageRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None @@ -432,14 +432,14 @@ 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" - content_type = kwargs.pop("content_type", "application/json") + api_version = "2020-11-01-preview3" + content_type = kwargs.pop("content_type", "application/merge-patch+json") accept = "application/json" # Construct URL @@ -461,13 +461,13 @@ def update_chat_message( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(body, 'UpdateChatMessageRequest') + body_content = self._serialize.body(update_chat_message_request, 'UpdateChatMessageRequest') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) @@ -500,13 +500,13 @@ 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" # Construct URL @@ -560,13 +560,13 @@ 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" # Construct URL @@ -598,34 +598,34 @@ def send_typing_notification( send_typing_notification.metadata = {'url': '/chat/threads/{chatThreadId}/typing'} # type: ignore - def list_chat_thread_members( + def list_chat_participants( self, chat_thread_id, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.ChatThreadMembersCollection"] - """Gets the members of a thread. + # type: (...) -> Iterable["_models.ChatParticipantsCollection"] + """Gets the participants of a thread. - Gets the members of a thread. + Gets the participants of a thread. - :param chat_thread_id: Thread id to get members for. + :param chat_thread_id: Thread id to get participants for. :type chat_thread_id: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ChatThreadMembersCollection or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ChatThreadMembersCollection] + :return: An iterator like instance of either ChatParticipantsCollection or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ChatParticipantsCollection] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ChatThreadMembersCollection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatParticipantsCollection"] 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" def prepare_request(next_link=None): @@ -635,7 +635,7 @@ def prepare_request(next_link=None): if not next_link: # Construct URL - url = self.list_chat_thread_members.metadata['url'] # type: ignore + url = self.list_chat_participants.metadata['url'] # type: ignore path_format_arguments = { 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), @@ -658,7 +658,7 @@ def prepare_request(next_link=None): return request def extract_data(pipeline_response): - deserialized = self._deserialize('ChatThreadMembersCollection', pipeline_response) + deserialized = self._deserialize('ChatParticipantsCollection', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -679,23 +679,23 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_chat_thread_members.metadata = {'url': '/chat/threads/{chatThreadId}/members'} # type: ignore + list_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore - def add_chat_thread_members( + def add_chat_participants( self, chat_thread_id, # type: str - body, # type: "models.AddChatThreadMembersRequest" + add_chat_participants_request, # type: "_models.AddChatParticipantsRequest" **kwargs # type: Any ): # type: (...) -> None - """Adds thread members to a thread. If members already exist, no change occurs. + """Adds thread participants to a thread. If participants already exist, no change occurs. - Adds thread members to a thread. If members already exist, no change occurs. + Adds thread participants to a thread. If participants already exist, no change occurs. - :param chat_thread_id: Id of the thread to add members to. + :param chat_thread_id: Id of the thread to add participants to. :type chat_thread_id: str - :param body: Thread members to be added to the thread. - :type body: ~azure.communication.chat.models.AddChatThreadMembersRequest + :param add_chat_participants_request: Thread participants to be added to the thread. + :type add_chat_participants_request: ~azure.communication.chat.models.AddChatParticipantsRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None @@ -705,18 +705,18 @@ def add_chat_thread_members( 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self.add_chat_thread_members.metadata['url'] # type: ignore + url = self.add_chat_participants.metadata['url'] # type: ignore path_format_arguments = { 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), @@ -733,36 +733,36 @@ def add_chat_thread_members( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(body, 'AddChatThreadMembersRequest') + body_content = self._serialize.body(add_chat_participants_request, 'AddChatParticipantsRequest') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [207]: + if response.status_code not in [201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) if cls: return cls(pipeline_response, None, {}) - add_chat_thread_members.metadata = {'url': '/chat/threads/{chatThreadId}/members'} # type: ignore + add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore - def remove_chat_thread_member( + def remove_chat_participant( self, chat_thread_id, # type: str - chat_member_id, # type: str + chat_participant_id, # type: str **kwargs # type: Any ): # type: (...) -> None - """Remove a member from a thread. + """Remove a participant from a thread. - Remove a member from a thread. + Remove a participant from a thread. - :param chat_thread_id: Thread id to remove the member from. + :param chat_thread_id: Thread id to remove the participant from. :type chat_thread_id: str - :param chat_member_id: Id of the thread member to remove from the thread. - :type chat_member_id: str + :param chat_participant_id: Id of the thread participant to remove from the thread. + :type chat_participant_id: str :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None @@ -772,21 +772,21 @@ def remove_chat_thread_member( 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" # Construct URL - url = self.remove_chat_thread_member.metadata['url'] # type: ignore + url = self.remove_chat_participant.metadata['url'] # type: ignore path_format_arguments = { 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), - 'chatMemberId': self._serialize.url("chat_member_id", chat_member_id, 'str'), + 'chatParticipantId': self._serialize.url("chat_participant_id", chat_participant_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -809,36 +809,36 @@ def remove_chat_thread_member( if cls: return cls(pipeline_response, None, {}) - remove_chat_thread_member.metadata = {'url': '/chat/threads/{chatThreadId}/members/{chatMemberId}'} # type: ignore + remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore def create_chat_thread( self, - body, # type: "models.CreateChatThreadRequest" + create_chat_thread_request, # type: "_models.CreateChatThreadRequest" **kwargs # type: Any ): - # type: (...) -> "models.MultiStatusResponse" + # type: (...) -> "_models.ChatThread" """Creates a chat thread. Creates a chat thread. - :param body: Request payload for creating a chat thread. - :type body: ~azure.communication.chat.models.CreateChatThreadRequest + :param create_chat_thread_request: Request payload for creating a chat thread. + :type create_chat_thread_request: ~azure.communication.chat.models.CreateChatThreadRequest :keyword callable cls: A custom type or function that will be passed the direct response - :return: MultiStatusResponse, or the result of cls(response) - :rtype: ~azure.communication.chat.models.MultiStatusResponse + :return: ChatThread, or the result of cls(response) + :rtype: ~azure.communication.chat.models.ChatThread :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.MultiStatusResponse"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -859,17 +859,17 @@ def create_chat_thread( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(body, 'CreateChatThreadRequest') + body_content = self._serialize.body(create_chat_thread_request, 'CreateChatThreadRequest') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [207]: + if response.status_code not in [201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) - deserialized = self._deserialize('MultiStatusResponse', pipeline_response) + deserialized = self._deserialize('ChatThread', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) @@ -883,7 +883,7 @@ def list_chat_threads( start_time=None, # type: Optional[datetime.datetime] **kwargs # type: Any ): - # type: (...) -> Iterable["models.ChatThreadsInfoCollection"] + # type: (...) -> Iterable["_models.ChatThreadsInfoCollection"] """Gets the list of chat threads of a user. Gets the list of chat threads of a user. @@ -898,17 +898,17 @@ def list_chat_threads( :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ChatThreadsInfoCollection] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ChatThreadsInfoCollection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadsInfoCollection"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" def prepare_request(next_link=None): @@ -969,7 +969,7 @@ def get_next(next_link=None): def update_chat_thread( self, chat_thread_id, # type: str - body, # type: "models.UpdateChatThreadRequest" + update_chat_thread_request, # type: "_models.UpdateChatThreadRequest" **kwargs # type: Any ): # type: (...) -> None @@ -979,8 +979,8 @@ def update_chat_thread( :param chat_thread_id: The id of the thread to update. :type chat_thread_id: str - :param body: Request payload for updating a chat thread. - :type body: ~azure.communication.chat.models.UpdateChatThreadRequest + :param update_chat_thread_request: Request payload for updating a chat thread. + :type update_chat_thread_request: ~azure.communication.chat.models.UpdateChatThreadRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None @@ -990,14 +990,14 @@ 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" - content_type = kwargs.pop("content_type", "application/json") + api_version = "2020-11-01-preview3" + content_type = kwargs.pop("content_type", "application/merge-patch+json") accept = "application/json" # Construct URL @@ -1018,13 +1018,13 @@ def update_chat_thread( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(body, 'UpdateChatThreadRequest') + body_content = self._serialize.body(update_chat_thread_request, 'UpdateChatThreadRequest') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [200]: + if response.status_code not in [204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) @@ -1038,7 +1038,7 @@ def get_chat_thread( chat_thread_id, # type: str **kwargs # type: Any ): - # type: (...) -> "models.ChatThread" + # type: (...) -> "_models.ChatThread" """Gets a chat thread. Gets a chat thread. @@ -1050,17 +1050,17 @@ def get_chat_thread( :rtype: ~azure.communication.chat.models.ChatThread :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ChatThread"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(models.Error, response)), + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" # Construct URL @@ -1116,13 +1116,13 @@ 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.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-09-21-preview2" + api_version = "2020-11-01-preview3" accept = "application/json" # Construct URL 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 5998963cc5b2..d8d0bda7b54a 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py @@ -4,20 +4,20 @@ # Licensed under the MIT License. # ------------------------------------ +from ._generated.models import ChatParticipant as ChatParticipantAutorest from ._shared.models import CommunicationUserIdentifier -from ._generated.models import ChatThreadMember as ChatThreadMemberAutorest -class ChatThreadMember(object): - """A member of the chat thread. +class ChatThreadParticipant(object): + """A participant of the chat thread. All required parameters must be populated in order to send to Azure. :param user: Required. The CommunicationUserIdentifier. :type user: CommunicationUserIdentifier - :param display_name: Display name for the chat thread member. + :param display_name: Display name for the chat thread participant. :type display_name: str - :param share_history_time: Time from which the chat history is shared with the member. The + :param share_history_time: Time from which the chat history is shared with the participant. The timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type share_history_time: ~datetime.datetime """ @@ -31,15 +31,15 @@ def __init__( self.share_history_time = kwargs.get('share_history_time', None) @classmethod - def _from_generated(cls, chat_thread_member): + def _from_generated(cls, chat_thread_participant): return cls( user=CommunicationUserIdentifier(chat_thread_member.id), - display_name=chat_thread_member.display_name, - share_history_time=chat_thread_member.share_history_time + display_name=chat_thread_participant.display_name, + share_history_time=chat_thread_participant.share_history_time ) def _to_generated(self): - return ChatThreadMemberAutorest( + return ChatParticipantAutorest( id=self.user.identifier, display_name=self.display_name, share_history_time=self.share_history_time @@ -54,7 +54,7 @@ class ChatMessage(object): :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/AddMember", "ThreadActivity/DeleteMember". + "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 @@ -123,8 +123,8 @@ class ChatThread(object): :vartype created_on: ~datetime.datetime :ivar created_by: the chat thread owner. :vartype created_by: CommunicationUserIdentifier - :param members: Chat thread members. - :type members: list[~azure.communication.chat.ChatThreadMember] + :param participants: Chat thread participants. + :type participants: list[~azure.communication.chat.ChatThreadParticipant] """ # pylint:disable=protected-access @@ -137,7 +137,7 @@ def __init__( self.topic = kwargs.get('topic', None) self.created_on = kwargs['created_on'] self.created_by = kwargs['created_by'] - self.members = kwargs.get('members', None) + self.participants = kwargs.get('participants', None) @classmethod def _from_generated(cls, chat_thread): @@ -146,12 +146,12 @@ def _from_generated(cls, chat_thread): topic=chat_thread.topic, created_on=chat_thread.created_on, created_by=CommunicationUserIdentifier(chat_thread.created_by), - members=[ChatThreadMember._from_generated(x) for x in chat_thread.members] + participants=[ChatThreadParticipant._from_generated(x) for x in chat_thread.participants] ) -class ReadReceipt(object): - """A read receipt indicates the time a chat message was read by a recipient. +class ChatMessageReadReceipt(object): + """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. diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py index 886f4b51c413..5311e8979cc3 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py @@ -6,3 +6,6 @@ def _to_utc_datetime(value): return value.strftime('%Y-%m-%dT%H:%M:%SZ') + +def return_response(response, deserialized, _): # pylint: disable=unused-argument + return response, deserialized 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 62f6969ec87f..e90a459fdb60 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 @@ -28,9 +28,9 @@ ) from .._models import ( ChatThread, - ChatThreadMember + ChatThreadParticipant ) -from .._utils import _to_utc_datetime # pylint: disable=unused-import +from .._utils import _to_utc_datetime, return_response # pylint: disable=unused-import from .._version import SDK_MONIKER @@ -118,15 +118,15 @@ def get_chat_thread_client( @distributed_trace_async async def create_chat_thread( self, topic: str, - thread_members: List[ChatThreadMember], + thread_participants: List[ChatThreadParticipant], **kwargs ) -> ChatThreadClient: """Creates a chat thread. :param topic: Required. The thread topic. :type topic: str - :param thread_members: Required. Members to be added to the thread. - :type thread_members: list[~azure.communication.chat.ChatThreadMember] + :param thread_participants: Required. Participants to be added to the thread. + :type thread_participants: list[~azure.communication.chat.ChatThreadParticipant] :return: ChatThreadClient :rtype: ~azure.communication.chat.aio.ChatThreadClient :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -142,28 +142,29 @@ async def create_chat_thread( """ if not topic: raise ValueError("topic cannot be None.") - if not thread_members: - raise ValueError("List of ThreadMember cannot be None.") - - members = [m._to_generated() for m in thread_members] # pylint:disable=protected-access - create_thread_request = CreateChatThreadRequest(topic=topic, members=members) - - create_chat_thread_result = await self._client.create_chat_thread(create_thread_request, **kwargs) - - multiple_status = create_chat_thread_result.multiple_status - thread_status = [status for status in multiple_status if status.type == "Thread"] - if not thread_status: - raise HttpResponseError(message="Can not find chat thread status result from: {}".format(thread_status)) - if thread_status[0].status_code != 201: - raise HttpResponseError(message="Chat thread creation failed with status code {}, message: {}.".format( - thread_status[0].status_code, thread_status[0].message)) - - thread_id = thread_status[0].id - + if not thread_participants: + raise ValueError("List of ThreadParticipant cannot be None.") + + participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access + create_thread_request = CreateChatThreadRequest(topic=topic, participants=participants) + + response, create_chat_thread_result = await self._client.create_chat_thread( + create_thread_request, cls=return_response, **kwargs) + if response is not None: + response_header = response.http_response.headers + if ('Azure-Acs-InvalidParticipants' in response_header.keys() and + response_header['Azure-Acs-InvalidParticipants'] is not None): + invalid_participant_and_reason_list = response_header['Azure-Acs-InvalidParticipants'].split('|') + errors = [] + for invalid_participant_and_reason in invalid_participant_and_reason_list: + participant, reason = invalid_participant_and_reason.split(',', 1) + errors.append('participant ' + participant + ' failed to join thread ' + + create_chat_thread_result.id + ' return statue code ' + reason) + raise ValueError(errors) return ChatThreadClient( endpoint=self._endpoint, credential=self._credential, - thread_id=thread_id, + thread_id=create_chat_thread_result.id, **kwargs ) 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 597c0f7b39d4..808fe1da17cf 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 @@ -21,7 +21,7 @@ from .._shared.user_credential_async import CommunicationTokenCredential from .._generated.aio import AzureCommunicationChatService from .._generated.models import ( - AddChatThreadMembersRequest, + AddChatParticipantsRequest, SendReadReceiptRequest, SendChatMessageRequest, UpdateChatMessageRequest, @@ -29,9 +29,9 @@ SendChatMessageResult ) from .._models import ( - ChatThreadMember, + ChatThreadParticipant, ChatMessage, - ReadReceipt + ChatMessageReadReceipt ) from .._shared.models import CommunicationUserIdentifier from .._utils import _to_utc_datetime # pylint: disable=unused-import @@ -42,7 +42,7 @@ class ChatThreadClient(object): """A client to interact with the AzureCommunicationService Chat gateway. Instances of this class is normally created by ChatClient.create_chat_thread() - This client provides operations to add member to chat thread, remove member from + This client provides operations to add participant to chat thread, remove participant from chat thread, send message, delete message, update message, send typing notifications, send and list read receipt @@ -111,7 +111,7 @@ def thread_id(self): return self._thread_id @distributed_trace_async - async def update_thread( + async def update_topic( self, *, topic: str = None, @@ -130,8 +130,8 @@ async def update_thread( .. admonition:: Example: .. literalinclude:: ../samples/chat_thread_client_sample_async.py - :start-after: [START update_thread] - :end-before: [END update_thread] + :start-after: [START update_topic] + :end-before: [END update_topic] :language: python :dedent: 12 :caption: Updating chat thread. @@ -140,7 +140,7 @@ async def update_thread( update_thread_request = UpdateChatThreadRequest(topic=topic) return await self._client.update_chat_thread( chat_thread_id=self._thread_id, - body=update_thread_request, + update_chat_thread_request=update_topic_request, **kwargs) @distributed_trace_async @@ -173,18 +173,18 @@ async def send_read_receipt( post_read_receipt_request = SendReadReceiptRequest(chat_message_id=message_id) return await self._client.send_chat_read_receipt( self._thread_id, - body=post_read_receipt_request, + send_read_receipt_request=post_read_receipt_request, **kwargs) @distributed_trace def list_read_receipts( self, **kwargs - ) -> AsyncItemPaged[ReadReceipt]: + ) -> AsyncItemPaged[ChatMessageReadReceipt]: """Gets read receipts for a thread. :keyword callable cls: A custom type or function that will be passed the direct response - :return: AsyncItemPaged[:class:`~azure.communication.chat.ReadReceipt`] + :return: AsyncItemPaged[:class:`~azure.communication.chat.ChatMessageReadReceipt`] :rtype: ~azure.core.async_paging.AsyncItemPaged :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -199,7 +199,7 @@ def list_read_receipts( """ return self._client.list_chat_read_receipts( self._thread_id, - cls=lambda objs: [ReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access + cls=lambda objs: [ChatMessageReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @distributed_trace_async @@ -230,7 +230,7 @@ async def send_message( self, content: str, **kwargs - ) -> SendChatMessageResult: + ) -> str: """Sends a message to a thread. :param content: Required. Chat message content. @@ -240,8 +240,8 @@ async def send_message( :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 - :return: SendChatMessageResult, or the result of cls(response) - :rtype: ~azure.communication.chat.SendChatMessageResult + :return: str, or the result of cls(response) + :rtype: str :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: @@ -264,11 +264,13 @@ async def send_message( priority=priority, sender_display_name=sender_display_name ) - return await self._client.send_chat_message( + send_chat_message_result = await self._client.send_chat_message( chat_thread_id=self._thread_id, - body=create_message_request, + send_chat_message_request=create_message_request, **kwargs) + return send_chat_message_result.id + @distributed_trace_async async def get_message( self, @@ -368,7 +370,7 @@ async def update_message( return await self._client.update_chat_message( chat_thread_id=self._thread_id, chat_message_id=message_id, - body=update_message_request, + update_chat_message_request=update_message_request, **kwargs) @distributed_trace_async @@ -404,41 +406,76 @@ async def delete_message( **kwargs) @distributed_trace - def list_members( + def list_participants( self, **kwargs - ) -> AsyncItemPaged[ChatThreadMember]: - """Gets the members of a thread. + ) -> AsyncItemPaged[ChatThreadParticipant]: + """Gets the participants of a thread. :keyword callable cls: A custom type or function that will be passed the direct response - :return: AsyncItemPaged[:class:`~azure.communication.chat.ChatThreadMember`] + :return: AsyncItemPaged[:class:`~azure.communication.chat.ChatThreadParticipant`] :rtype: ~azure.core.async_paging.AsyncItemPaged :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: .. literalinclude:: ../samples/chat_thread_client_sample_async.py - :start-after: [START list_members] - :end-before: [END list_members] + :start-after: [START list_participants] + :end-before: [END list_participants] :language: python :dedent: 12 - :caption: Listing members of chat thread. + :caption: Listing participants of chat thread. """ - return self._client.list_chat_thread_members( + return self._client.list_chat_participants( self._thread_id, - cls=lambda objs: [ChatThreadMember._from_generated(x) for x in objs], # pylint:disable=protected-access + cls=lambda objs: [ChatThreadParticipant._from_generated(x) for x in objs], # pylint:disable=protected-access + **kwargs) + + @distributed_trace_async + async def add_participant( + self, + thread_participant: ChatThreadParticipant, + **kwargs + ) -> None: + """Adds single thread participant to a thread. If participant already exist, no change occurs. + + :param thread_participant: Required. Single thread participant to be added to the thread. + :type thread_participant: ~azure.communication.chat.ChatThreadParticipant + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError, ValueError + + .. admonition:: Example: + + .. literalinclude:: ../samples/chat_thread_client_sample_async.py + :start-after: [START add_participant] + :end-before: [END add_participant] + :language: python + :dedent: 12 + :caption: Adding single participant to chat thread. + """ + if not thread_participant: + raise ValueError("thread_participant cannot be None.") + + participants = [thread_participant._to_generated()] # pylint:disable=protected-access + add_thread_participants_request = AddChatParticipantsRequest(participants=participants) + + return await self._client.add_chat_participants( + chat_thread_id=self._thread_id, + add_chat_participants_request=add_thread_participants_request, **kwargs) @distributed_trace_async - async def add_members( + async def add_participants( self, - thread_members: List[ChatThreadMember], + thread_participants: List[ChatThreadParticipant], **kwargs ) -> None: - """Adds thread members to a thread. If members already exist, no change occurs. + """Adds thread participants to a thread. If participants already exist, no change occurs. - :param thread_members: Required. Thread members to be added to the thread. - :type thread_members: list[~azure.communication.chat.ChatThreadMember] + :param thread_participants: Required. Thread participants to be added to the thread. + :type thread_participants: list[~azure.communication.chat.ChatThreadParticipant] :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) :rtype: None @@ -447,32 +484,32 @@ async def add_members( .. admonition:: Example: .. literalinclude:: ../samples/chat_thread_client_sample_async.py - :start-after: [START add_members] - :end-before: [END add_members] + :start-after: [START add_participants] + :end-before: [END add_participants] :language: python :dedent: 12 - :caption: Adding members to chat thread. + :caption: Adding participants to chat thread. """ - if not thread_members: - raise ValueError("thread_members cannot be None.") + if not thread_participants: + raise ValueError("thread_participants cannot be None.") - members = [m._to_generated() for m in thread_members] # pylint:disable=protected-access - add_thread_members_request = AddChatThreadMembersRequest(members=members) + participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access + add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - return await self._client.add_chat_thread_members( + return await self._client.add_chat_participants( chat_thread_id=self._thread_id, - body=add_thread_members_request, + add_chat_participants_request=add_thread_participants_request, **kwargs) @distributed_trace_async - async def remove_member( + async def remove_participant( self, user: CommunicationUserIdentifier, **kwargs ) -> None: - """Remove a member from a thread. + """Remove a participant from a thread. - :param user: Required. User identity of the thread member to remove from the thread. + :param user: Required. User identity of the thread participant to remove from the thread. :type user: ~azure.communication.chat.CommunicationUserIdentifier :keyword callable cls: A custom type or function that will be passed the direct response :return: None, or the result of cls(response) @@ -482,18 +519,18 @@ async def remove_member( .. admonition:: Example: .. literalinclude:: ../samples/chat_thread_client_sample_async.py - :start-after: [START remove_member] - :end-before: [END remove_member] + :start-after: [START remove_participant] + :end-before: [END remove_participant] :language: python :dedent: 12 - :caption: Removing member from chat thread. + :caption: Removing participant from chat thread. """ if not user: raise ValueError("user cannot be None.") - return await self._client.remove_chat_thread_member( + return await self._client.remove_chat_participant( chat_thread_id=self._thread_id, - chat_member_id=user.identifier, + chat_participant_id=user.identifier, **kwargs) async def close(self) -> None: 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 25963095f8fd..e0aa5f32ea3c 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_client_sample.py +++ b/sdk/communication/azure-communication-chat/samples/chat_client_sample.py @@ -55,22 +55,22 @@ def create_thread(self): from datetime import datetime from azure.communication.chat import( ChatClient, - ChatThreadMember, CommunicationUserIdentifier, CommunicationTokenCredential, CommunicationTokenRefreshOptions + ChatThreadParticipant ) refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) topic = "test topic" - members = [ChatThreadMember( + participants = [ChatThreadParticipant( user=self.user, display_name='name', share_history_time=datetime.utcnow() )] - chat_thread_client = chat_client.create_chat_thread(topic, members) + chat_thread_client = chat_client.create_chat_thread(topic, participants) # [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 fc8874226f8b..ce180918e64f 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 @@ -55,19 +55,19 @@ def create_chat_client(self): async def create_thread_async(self): from datetime import datetime from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - from azure.communication.chat import ChatThreadMember, CommunicationUser + from azure.communication.chat import ChatThreadParticipant, CommunicationUser refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) async with chat_client: # [START create_thread] topic = "test topic" - members = [ChatThreadMember( + participants = [ChatThreadParticipant( user=self.user, display_name='name', share_history_time=datetime.utcnow() )] - chat_thread_client = await chat_client.create_chat_thread(topic, members) + chat_thread_client = await chat_client.create_chat_thread(topic, participants) # [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 8ba955777a08..37bc80993f3a 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 @@ -9,8 +9,8 @@ DESCRIPTION: These samples demonstrate create a chat thread client, to update chat thread, get chat message, list chat messages, update chat message, send - read receipt, list read receipts, delete chat message, add members, remove - members, list members, send typing notification + read receipt, list read receipts, delete chat message, add participants, remove + participants, list participants, send typing notification You need to use azure.communication.configuration module to get user access token and user identity before run this sample @@ -50,33 +50,33 @@ def create_chat_thread_client(self): from datetime import datetime from azure.communication.chat import ( ChatClient, - ChatThreadMember, CommunicationUserIdentifier, CommunicationTokenCredential, CommunicationTokenRefreshOptions + ChatThreadParticipant ) refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) topic = "test topic" - members = [ChatThreadMember( + participants = [ChatThreadParticipant( user=self.user, display_name='name', share_history_time=datetime.utcnow() )] - chat_thread_client = chat_client.create_chat_thread(topic, members) + chat_thread_client = chat_client.create_chat_thread(topic, participants) # [END create_chat_thread_client] self._thread_id = chat_thread_client.thread_id print("chat_thread_client created") - def update_thread(self): + def update_topic(self): from azure.communication.chat import ChatThreadClient from azure.communication.chat import CommunicationTokenCredential, CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) - # [START update_thread] + # [START update_topic] topic = "updated thread topic" - chat_thread_client.update_thread(topic=topic) - # [END update_thread] + chat_thread_client.update_topic(topic=topic) + # [END update_topic] print("update_chat_thread succeeded") @@ -92,13 +92,13 @@ def send_message(self): content = 'hello world' sender_display_name = 'sender name' - send_message_result = chat_thread_client.send_message( + send_message_result_id = chat_thread_client.send_message( content, priority=priority, sender_display_name=sender_display_name) # [END send_message] - self._message_id = send_message_result.id + self._message_id = send_message_result_id print("send_chat_message succeeded, message id:", self._message_id) def get_message(self): @@ -174,46 +174,64 @@ def delete_message(self): # [END delete_message] print("delete_chat_message succeeded") - def list_members(self): + def list_participants(self): from azure.communication.chat import ChatThreadClient from azure.communication.chat import CommunicationTokenCredential, CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) - # [START list_members] - chat_thread_members = chat_thread_client.list_members() - print("list_chat_members succeeded, members: ") - for chat_thread_member in chat_thread_members: - print(chat_thread_member) - # [END list_members] - - def add_members(self): - from azure.communication.chat import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions + # [START list_participants] + chat_thread_participants = chat_thread_client.list_participants() + print("list_chat_participants succeeded, participants: ") + for chat_thread_participant in chat_thread_participants: + print(chat_thread_participant) + # [END list_participants] + + def add_participant(self): + from azure.communication.chat import ChatThreadClient, CommunicationTokenCredential, \ + CommunicationTokenRefreshOptions + refresh_options = CommunicationTokenRefreshOptions(self.token) + chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), + self._thread_id) + # [START add_participant] + from azure.communication.chat import ChatThreadParticipant + from datetime import datetime + new_chat_thread_participant = ChatThreadParticipant( + user=self.new_user, + display_name='name', + share_history_time=datetime.utcnow()) + chat_thread_client.add_participant(new_chat_thread_participant) + # [END add_participant] + print("add_chat_participant succeeded") + + def add_participants(self): + from azure.communication.chat import ChatThreadClient, CommunicationTokenCredential, \ + CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) - # [START add_members] - from azure.communication.chat import ChatThreadMember + # [START add_participants] + from azure.communication.chat import ChatThreadParticipant from datetime import datetime - new_member = ChatThreadMember( + new_participant = ChatThreadParticipant( user=self.new_user, display_name='name', share_history_time=datetime.utcnow()) - thread_members = [new_member] - chat_thread_client.add_members(thread_members) - # [END add_members] - print("add_chat_members succeeded") + thread_participants = [new_participant] + chat_thread_client.add_participants(thread_participants) + # [END add_participants] + print("add_chat_participants succeeded") - def remove_member(self): + def remove_participant(self): from azure.communication.chat import ChatThreadClient from azure.communication.chat import CommunicationTokenCredential, CommunicationUser, CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) - # [START remove_member] - chat_thread_client.remove_member(self.new_user) - # [END remove_member] + # [START remove_participant] + chat_thread_client.remove_participant(self.new_user) + # [END remove_participant] - print("remove_chat_member succeeded") + print("remove_chat_participant succeeded") def send_typing_notification(self): from azure.communication.chat import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions @@ -233,7 +251,7 @@ def clean_up(self): if __name__ == '__main__': sample = ChatThreadClientSamples() sample.create_chat_thread_client() - sample.update_thread() + sample.update_topic() sample.send_message() sample.get_message() sample.list_messages() @@ -241,8 +259,9 @@ def clean_up(self): sample.send_read_receipt() sample.list_read_receipts() sample.delete_message() - sample.add_members() - sample.list_members() - sample.remove_member() + sample.add_participant() + sample.add_participants() + sample.list_participants() + sample.remove_participant() sample.send_typing_notification() sample.clean_up() 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 135fd274970c..4ecd68e2cd80 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 @@ -9,8 +9,8 @@ DESCRIPTION: These samples demonstrate create a chat thread client, to update chat thread, get chat message, list chat messages, update chat message, send - read receipt, list read receipts, delete chat message, add members, remove - members, list members, send typing notification + read receipt, list read receipts, delete chat message, add participants, remove + participants, list participants, send typing notification You need to use azure.communication.configuration module to get user access token and user identity before run this sample @@ -50,36 +50,38 @@ async def create_chat_thread_client_async(self): # [START create_chat_thread_client] from datetime import datetime from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - from azure.communication.chat import ChatThreadMember, CommunicationUserIdentifier + from azure.communication.chat import ChatThreadParticipant, CommunicationUserIdentifier refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) async with chat_client: topic = "test topic" - members = [ChatThreadMember( + participants = [ChatThreadParticipant( user=self.user, display_name='name', share_history_time=datetime.utcnow() )] - chat_thread_client = await chat_client.create_chat_thread(topic, members) + chat_thread_client = await chat_client.create_chat_thread(topic, participants) # [END create_chat_thread_client] self._thread_id = chat_thread_client.thread_id print("thread created, id: " + self._thread_id) - async def update_thread_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions + async def update_topic_async(self): + from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, \ + CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) + chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), + self._thread_id) async with chat_thread_client: - # [START update_thread] + # [START update_topic] topic = "updated thread topic" - await chat_thread_client.update_thread(topic=topic) - # [END update_thread] + await chat_thread_client.update_topic(topic=topic) + # [END update_topic] - print("update_thread succeeded") + print("update_topic succeeded") async def send_message_async(self): from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions @@ -94,12 +96,12 @@ async def send_message_async(self): content='hello world' sender_display_name='sender name' - send_message_result = await chat_thread_client.send_message( + send_message_result_id = await chat_thread_client.send_message( content, priority=priority, sender_display_name=sender_display_name) # [END send_message] - self._message_id = send_message_result.id + self._message_id = send_message_result_id print("send_message succeeded, message id:", self._message_id) async def get_message_async(self): @@ -178,47 +180,63 @@ async def delete_message_async(self): # [END delete_message] print("delete_message succeeded") - async def list_members_async(self): + async def list_participants_async(self): from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) async with chat_thread_client: - # [START list_members] - chat_thread_members = chat_thread_client.list_members() - print("list_members succeeded, members:") - async for chat_thread_member in chat_thread_members: - print(chat_thread_member) - # [END list_members] - - async def add_members_async(self): + # [START list_participants] + chat_thread_participants = chat_thread_client.list_participants() + print("list_participants succeeded, participants:") + async for chat_thread_participant in chat_thread_participants: + print(chat_thread_participant) + # [END list_participants] + + async def add_participant_async(self): from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) async with chat_thread_client: - # [START add_members] - from azure.communication.chat import ChatThreadMember, CommunicationUser + # [START add_participant] + from azure.communication.chat import ChatThreadParticipant, CommunicationUser from datetime import datetime - new_member = ChatThreadMember( + new_chat_thread_participant = ChatThreadParticipant( user=self.new_user, display_name='name', share_history_time=datetime.utcnow()) - members = [new_member] - await chat_thread_client.add_members(members) - # [END add_members] - print("add_members succeeded") + await chat_thread_client.add_participant(new_chat_thread_participant) + # [END add_participant] + print("add_participant succeeded") - async def remove_member_async(self): + async def add_participants_async(self): from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) async with chat_thread_client: - # [START remove_member] - await chat_thread_client.remove_member(self.new_user) - # [END remove_member] - print("remove_member_async succeeded") + # [START add_participants] + from azure.communication.chat import ChatThreadParticipant, CommunicationUser + from datetime import datetime + new_participant = ChatThreadParticipant( + user=self.new_user, + display_name='name', + share_history_time=datetime.utcnow()) + participants = [new_participant] + await chat_thread_client.add_participants(participants) + # [END add_participants] + print("add_participants succeeded") + + async def remove_participant_async(self): + from azure.communication.chat.aio import ChatThreadClient, CommunicationUserCredential + chat_thread_client = ChatThreadClient(self.endpoint, CommunicationUserCredential(self.token), self._thread_id) + + async with chat_thread_client: + # [START remove_participant] + await chat_thread_client.remove_participant(self.new_user) + # [END remove_participant] + print("remove_participant_async succeeded") async def send_typing_notification_async(self): from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions @@ -240,7 +258,7 @@ def clean_up(self): async def main(): sample = ChatThreadClientSamplesAsync() await sample.create_chat_thread_client_async() - await sample.update_thread_async() + await sample.update_topic_async() await sample.send_message_async() await sample.get_message_async() await sample.list_messages_async() @@ -248,9 +266,10 @@ async def main(): await sample.send_read_receipt_async() await sample.list_read_receipts_async() await sample.delete_message_async() - await sample.add_members_async() - await sample.list_members_async() - await sample.remove_member_async() + await sample.add_participant_async() + await sample.add_participants_async() + await sample.list_participants_async() + await sample.remove_participant_async() await sample.send_typing_notification_async() sample.clean_up() diff --git a/sdk/communication/azure-communication-chat/swagger/SWAGGER.md b/sdk/communication/azure-communication-chat/swagger/SWAGGER.md index 4d99df5dd8ce..1eb37c2ac30c 100644 --- a/sdk/communication/azure-communication-chat/swagger/SWAGGER.md +++ b/sdk/communication/azure-communication-chat/swagger/SWAGGER.md @@ -15,7 +15,7 @@ autorest SWAGGER.md ### Settings ``` yaml -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/8818a603b78a1355ba1647ab9cd4e3354cdc4b69/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-09-21-preview2/communicationserviceschat.json +input-file: https://int.chatgateway.trafficmanager.net/swagger/2020-11-01-preview3/swagger.json output-folder: ../azure/communication/chat/_generated namespace: azure.communication.chat no-namespace-folders: true 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 5f8fe3923e2c..7bef7ec7773e 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Thu, 10 Dec 2020 20:18:53 GMT + - Thu, 26 Nov 2020 01:19:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 10 Dec 2020 20:18:53 GMT + - Thu, 26 Nov 2020 01:19:09 GMT ms-cv: - - 26unB3Qk9kGJOTYw60xNKA.0 - strict-transport-security: - - max-age=2592000 + - lhCdaxUwWUCal3LpTU2/gQ.0 transfer-encoding: - chunked x-processing-time: - - 20ms + - 161ms status: code: 200 message: OK @@ -52,35 +50,33 @@ interactions: Content-Type: - application/json Date: - - Thu, 10 Dec 2020 20:18:53 GMT + - Thu, 26 Nov 2020 01:19:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-11T20:18:53.2210662+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:19:09.280025+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 10 Dec 2020 20:18:53 GMT + - Thu, 26 Nov 2020 01:19:10 GMT ms-cv: - - xJYSvPeXlUaWtjmVOEkxdA.0 - strict-transport-security: - - max-age=2592000 + - 9zBM01rBnkSnsXIF6pGg8w.0 transfer-encoding: - chunked x-processing-time: - - 27ms + - 318ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json @@ -89,33 +85,34 @@ interactions: Connection: - keep-alive Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:19:11Z", + "createdBy": "sanitized", "participants": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 10 Dec 2020 20:18:54 GMT + - Thu, 26 Nov 2020 01:19:11 GMT ms-cv: - - ybRSHz3T7UezfcBNs8+Q6Q.0 + - wLPXVZlkIk+EvcDCV57y1w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 460ms + - 1351ms status: - code: 207 - message: Multi-Status + code: 201 + message: Created - request: body: null headers: @@ -128,13 +125,13 @@ interactions: Content-Length: - '0' Date: - - Thu, 10 Dec 2020 20:18:54 GMT + - Thu, 26 Nov 2020 01:19:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -142,13 +139,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 10 Dec 2020 20:18:55 GMT + - Thu, 26 Nov 2020 01:19:28 GMT ms-cv: - - ohlmRj1q906w2iJt02dXqQ.0 - strict-transport-security: - - max-age=2592000 + - l/47be0coky6GSohoG6/uA.0 x-processing-time: - - 1296ms + - 17271ms status: code: 204 message: No Content @@ -164,9 +159,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -174,13 +169,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 10 Dec 2020 20:18:55 GMT + - Thu, 26 Nov 2020 01:19:29 GMT ms-cv: - - bhmNk4jKnE+OV/AY+p9szw.0 + - HzqDDsO2CE+cpW9xSamN4w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 139ms + - 323ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml index 89208acd8754..bac0ab889a78 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:07 GMT + - Thu, 26 Nov 2020 01:19:29 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:06 GMT + - Thu, 26 Nov 2020 01:19:29 GMT ms-cv: - - gWsoTNIIsESeHKQoyza/LA.0 - strict-transport-security: - - max-age=2592000 + - SN6y0S8TH0KORnzRByGoUg.0 transfer-encoding: - chunked x-processing-time: - - 209ms + - 148ms status: code: 200 message: OK @@ -52,35 +50,33 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:47:08 GMT + - Thu, 26 Nov 2020 01:19:30 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:47:06.1263309+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:19:29.5716996+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:06 GMT + - Thu, 26 Nov 2020 01:19:29 GMT ms-cv: - - R1/BpTiBsE+I8UbwKUR/0w.0 - strict-transport-security: - - max-age=2592000 + - uWqIQAyWREKBinbwxtNxyQ.0 transfer-encoding: - chunked x-processing-time: - - 278ms + - 297ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json @@ -89,33 +85,34 @@ interactions: Connection: - keep-alive Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:19:31Z", + "createdBy": "sanitized", "participants": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:07 GMT + - Thu, 26 Nov 2020 01:19:31 GMT ms-cv: - - WpuQkQmOmE6DGBY5BWe4IA.0 + - oscR5GX7Vky40MLMHjeT5Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 381ms + - 1341ms status: - code: 207 - message: Multi-Status + code: 201 + message: Created - request: body: null headers: @@ -128,9 +125,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -138,13 +135,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Wed, 02 Dec 2020 23:47:07 GMT + - Thu, 26 Nov 2020 01:19:32 GMT ms-cv: - - ZtUAO0OxB0q8ivftF6Yc0A.0 + - HTHqkbsQBE24n1uuWzevlA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 165ms + - 327ms status: code: 204 message: No Content @@ -160,13 +157,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:09 GMT + - Thu, 26 Nov 2020 01:19:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -174,13 +171,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:47:09 GMT + - Thu, 26 Nov 2020 01:19:49 GMT ms-cv: - - +h+VlWjjeUigsk2oZMhtHw.0 - strict-transport-security: - - max-age=2592000 + - q+P4L9UaAEuPRZqgxVFYNw.0 x-processing-time: - - 1071ms + - 16592ms status: code: 204 message: No Content @@ -196,9 +191,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -206,13 +201,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Wed, 02 Dec 2020 23:47:09 GMT + - Thu, 26 Nov 2020 01:19:48 GMT ms-cv: - - 3glYFarFr0aeJn9IGjsjGA.0 + - CwOn2xpCeEG4Vi66SNyTZA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 62ms + - 251ms 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 86098377aaf2..0431e7809c53 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:11 GMT + - Thu, 26 Nov 2020 01:19:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:10 GMT + - Thu, 26 Nov 2020 01:19:49 GMT ms-cv: - - tVlzxts3H0CGdNKx4oL4cg.0 - strict-transport-security: - - max-age=2592000 + - H+q0Jj4I9EaBypbStNPULg.0 transfer-encoding: - chunked x-processing-time: - - 211ms + - 147ms status: code: 200 message: OK @@ -52,35 +50,33 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:47:11 GMT + - Thu, 26 Nov 2020 01:19:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:47:09.8304716+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:19:49.2596204+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:10 GMT + - Thu, 26 Nov 2020 01:19:49 GMT ms-cv: - - vUtd9yMZMUqj+jyslkke8g.0 - strict-transport-security: - - max-age=2592000 + - gHerHEpe9Um9mBStpqCpsw.0 transfer-encoding: - chunked x-processing-time: - - 286ms + - 312ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json @@ -89,33 +85,34 @@ interactions: Connection: - keep-alive Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:19:50Z", + "createdBy": "sanitized", "participants": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:11 GMT + - Thu, 26 Nov 2020 01:19:50 GMT ms-cv: - - pcsN13x5eEuWMzOHELEEUg.0 + - UyVjv8vg2U27HwevNccVXA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 262ms + - 845ms status: - code: 207 - message: Multi-Status + code: 201 + message: Created - request: body: null headers: @@ -126,27 +123,27 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-12-02T23:47:11Z", - "createdBy": "sanitized", "members": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:19:50Z", + "createdBy": "sanitized", "participants": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:11 GMT + - Thu, 26 Nov 2020 01:19:50 GMT ms-cv: - - vWVn824KxkONTMHJgd+cQw.0 + - HIanX4hnMEqzk47JpFUnQg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 67ms + - 268ms status: code: 200 message: OK @@ -162,13 +159,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:13 GMT + - Thu, 26 Nov 2020 01:19:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -176,13 +173,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:47:13 GMT + - Thu, 26 Nov 2020 01:20:08 GMT ms-cv: - - jq9t7+ckWUi1Gqf+L8SP8Q.0 - strict-transport-security: - - max-age=2592000 + - oPT6/1XsDUGqdhZpf8CPOw.0 x-processing-time: - - 1495ms + - 16545ms status: code: 204 message: No Content @@ -198,9 +193,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -208,13 +203,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Wed, 02 Dec 2020 23:47:13 GMT + - Thu, 26 Nov 2020 01:20:07 GMT ms-cv: - - HQR5UmiuqUCdHM6nzdSLFA.0 + - mkFqRld8t02SdjqpytZVrA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 139ms + - 304ms 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 b9ad691d0b25..b5402ba74014 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:14 GMT + - Thu, 26 Nov 2020 01:20:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:14 GMT + - Thu, 26 Nov 2020 01:20:09 GMT ms-cv: - - unWGwaW/mkecuJOVqQYQjQ.0 - strict-transport-security: - - max-age=2592000 + - rA5btKsFg06XGStisyHugg.0 transfer-encoding: - chunked x-processing-time: - - 244ms + - 195ms status: code: 200 message: OK @@ -52,35 +50,33 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:47:15 GMT + - Thu, 26 Nov 2020 01:20:10 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:47:13.8882327+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:20:09.3532462+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:14 GMT + - Thu, 26 Nov 2020 01:20:09 GMT ms-cv: - - uMKM1KYK60mrKhR4TYZzyg.0 - strict-transport-security: - - max-age=2592000 + - 4JRdsjYW+Um6vcKNiBKDJQ.0 transfer-encoding: - chunked x-processing-time: - - 284ms + - 304ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json @@ -89,33 +85,34 @@ interactions: Connection: - keep-alive Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:20:10Z", + "createdBy": "sanitized", "participants": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:15 GMT + - Thu, 26 Nov 2020 01:20:11 GMT ms-cv: - - sdG/7ul5N06rvyrn+0EsOA.0 + - OpFYOFiYMkWagptd3pV0tQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 271ms + - 836ms status: - code: 207 - message: Multi-Status + code: 201 + message: Created - request: body: null headers: @@ -128,13 +125,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:17 GMT + - Thu, 26 Nov 2020 01:20:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -142,13 +139,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:47:16 GMT + - Thu, 26 Nov 2020 01:20:27 GMT ms-cv: - - YrsGqGLkKEKiqYcu6131dA.0 - strict-transport-security: - - max-age=2592000 + - mYTFkzkVmE6Q3Fhz5tgBuQ.0 x-processing-time: - - 1488ms + - 16069ms status: code: 204 message: No Content @@ -164,9 +159,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -174,13 +169,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Wed, 02 Dec 2020 23:47:17 GMT + - Thu, 26 Nov 2020 01:20:27 GMT ms-cv: - - xvywnUjse0S6fKP4F1bgQw.0 + - dgIk5vEohk+XZCi2a+lKkA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 145ms + - 295ms 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 a5676b4b1410..c3b0626fc745 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:19 GMT + - Thu, 26 Nov 2020 01:20:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:17 GMT + - Thu, 26 Nov 2020 01:20:27 GMT ms-cv: - - JYdK+w62Mky4+PnOgkIrYQ.0 - strict-transport-security: - - max-age=2592000 + - ZtOl01ckpUGH/4TRzuEdLw.0 transfer-encoding: - chunked x-processing-time: - - 207ms + - 151ms status: code: 200 message: OK @@ -52,35 +50,33 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:47:19 GMT + - Thu, 26 Nov 2020 01:20:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:47:17.6875722+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:20:27.8080382+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:17 GMT + - Thu, 26 Nov 2020 01:20:28 GMT ms-cv: - - PZXxCIENDUCVME1Uz0qfvQ.0 - strict-transport-security: - - max-age=2592000 + - anDmDF3Q8kyP3C2nC7TxUQ.0 transfer-encoding: - chunked x-processing-time: - - 279ms + - 301ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json @@ -89,33 +85,34 @@ interactions: Connection: - keep-alive Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:20:29Z", + "createdBy": "sanitized", "participants": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:18 GMT + - Thu, 26 Nov 2020 01:20:29 GMT ms-cv: - - YyA7Qs0k4kC5Il5kP1uGtw.0 + - mqvLyVJrq0i2gWVOshq+hw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 421ms + - 836ms status: - code: 207 - message: Multi-Status + code: 201 + message: Created - request: body: null headers: @@ -126,9 +123,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads?maxPageSize=1&api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -137,15 +134,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:21 GMT + - Thu, 26 Nov 2020 01:20:31 GMT ms-cv: - - 6gKpeApOKkeKLQ+jeIUeGw.0 + - csVt83Uuw0Su49XZjCJSkA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 25ms + - 412ms status: code: 200 message: OK @@ -161,13 +158,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:23 GMT + - Thu, 26 Nov 2020 01:20:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -175,13 +172,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:47:22 GMT + - Thu, 26 Nov 2020 01:20:48 GMT ms-cv: - - RiySMAdHEUOed6NAhjeWvQ.0 - strict-transport-security: - - max-age=2592000 + - +bY5lxNVIkC85eE9KeRMgg.0 x-processing-time: - - 977ms + - 16912ms status: code: 204 message: No Content @@ -197,9 +192,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -207,13 +202,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Wed, 02 Dec 2020 23:47:22 GMT + - Thu, 26 Nov 2020 01:20:49 GMT ms-cv: - - KH74ovx+8UOD57kDDLDMkw.0 + - 6lzh61ChDU2JPa7gROzRzw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 125ms + - 405ms 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 732cbf8ea0b1..33d75f4cd399 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:24 GMT + - Thu, 26 Nov 2020 01:20:50 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:23 GMT + - Thu, 26 Nov 2020 01:20:49 GMT ms-cv: - - k1uhIxxIHkytdDJYNJB1bQ.0 - strict-transport-security: - - max-age=2592000 + - 7LNIlmsgVUKLclt9NmrIdg.0 transfer-encoding: - chunked x-processing-time: - - 211ms + - 191ms status: code: 200 message: OK @@ -52,82 +50,81 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:47:25 GMT + - Thu, 26 Nov 2020 01:20:50 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:47:23.1482132+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:20:49.1938339+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:23 GMT + - Thu, 26 Nov 2020 01:20:50 GMT ms-cv: - - FeXfd+E6kEyk1Xiy6LG7dw.0 - strict-transport-security: - - max-age=2592000 + - pdnzelD87EG6AddYOK4FuA.0 transfer-encoding: - chunked x-processing-time: - - 290ms + - 597ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:20:51Z", + "createdBy": "sanitized", "participants": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:47:23 GMT - ms-cv: DAjO6UVirkKR+lanq+6LOA.0 + date: Thu, 26 Nov 2020 01:20:51 GMT + ms-cv: qT9nZ+YTzEWXC+i4ToeZOQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 278ms + x-processing-time: 1179ms status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + code: 201 + message: Created + url: https://sanitized.dev.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.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.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 - date: Wed, 02 Dec 2020 23:47:24 GMT - ms-cv: pMwU+IZh+kiRDUMa8dbiyw.0 + date: Thu, 26 Nov 2020 01:20:52 GMT + ms-cv: tF1t6AUKb0WV2J9oK1uNeg.0 strict-transport-security: max-age=2592000 - x-processing-time: 164ms + x-processing-time: 298ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -140,13 +137,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:26 GMT + - Thu, 26 Nov 2020 01:20:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -154,13 +151,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:47:26 GMT + - Thu, 26 Nov 2020 01:21:10 GMT ms-cv: - - MpmHa7pSQ0Km89WjP/kthA.0 - strict-transport-security: - - max-age=2592000 + - DCjC30JvEEGcibXtzydfQQ.0 x-processing-time: - - 1432ms + - 17288ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml index 306b2f0c72ea..b052f61217aa 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:28 GMT + - Thu, 26 Nov 2020 01:21:10 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:26 GMT + - Thu, 26 Nov 2020 01:21:10 GMT ms-cv: - - fhyGerZaykiz43C1wQrfKg.0 - strict-transport-security: - - max-age=2592000 + - wq7cVApy4kqd6SYbx3fpcQ.0 transfer-encoding: - chunked x-processing-time: - - 206ms + - 143ms status: code: 200 message: OK @@ -52,104 +50,103 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:47:28 GMT + - Thu, 26 Nov 2020 01:21:10 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:47:26.6202219+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:21:10.0726718+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:27 GMT + - Thu, 26 Nov 2020 01:21:10 GMT ms-cv: - - c7+GC/LdXkm5C16fJbebnQ.0 - strict-transport-security: - - max-age=2592000 + - o2X2iQrwf0WAzigZf5n2TA.0 transfer-encoding: - chunked x-processing-time: - - 283ms + - 299ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '200' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:21:11Z", + "createdBy": "sanitized", "participants": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:47:27 GMT - ms-cv: o3tiOtodrEOKVKshGpP1QA.0 + date: Thu, 26 Nov 2020 01:21:11 GMT + ms-cv: aUwac+kdn0Sx2po45PYNyQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 177ms + x-processing-time: 845ms status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + code: 201 + message: Created + url: https://sanitized.dev.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.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.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 - date: Wed, 02 Dec 2020 23:47:27 GMT - ms-cv: NkzF0V5ua0GC8deYEIT8WA.0 + date: Thu, 26 Nov 2020 01:21:11 GMT + ms-cv: 7MyJLIjrCU2H24DKADVQPg.0 strict-transport-security: max-age=2592000 - x-processing-time: 161ms + x-processing-time: 284ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.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 - date: Wed, 02 Dec 2020 23:47:28 GMT - ms-cv: V87A8A4W2EmEcsoety6PuA.0 + date: Thu, 26 Nov 2020 01:21:11 GMT + ms-cv: mq02YsmKVkC0uCqh2FcEeg.0 strict-transport-security: max-age=2592000 - x-processing-time: 83ms + x-processing-time: 245ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -162,13 +159,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:30 GMT + - Thu, 26 Nov 2020 01:21:12 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -176,13 +173,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:47:29 GMT + - Thu, 26 Nov 2020 01:21:28 GMT ms-cv: - - O3f1a1jO9EipDhJSu8jHAQ.0 - strict-transport-security: - - max-age=2592000 + - Y94mNlSzdUyoLHiR+Ba/2g.0 x-processing-time: - - 1006ms + - 16505ms 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 89581c1582a9..6a188ddad020 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:31 GMT + - Thu, 26 Nov 2020 01:21:29 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:30 GMT + - Thu, 26 Nov 2020 01:21:29 GMT ms-cv: - - 6R4gU+twbkyBcY7nsqsp8w.0 - strict-transport-security: - - max-age=2592000 + - zaLjG0NY1UaFlb37HqCSoA.0 transfer-encoding: - chunked x-processing-time: - - 207ms + - 144ms status: code: 200 message: OK @@ -52,106 +50,105 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:47:31 GMT + - Thu, 26 Nov 2020 01:21:29 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:47:29.9669179+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:21:29.3965216+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:30 GMT + - Thu, 26 Nov 2020 01:21:30 GMT ms-cv: - - x27mn1NLyk2+f4Fk2OwOVQ.0 - strict-transport-security: - - max-age=2592000 + - cbQRTe8Aek+UNzyPsIOY9Q.0 transfer-encoding: - chunked x-processing-time: - - 274ms + - 299ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:21:30Z", + "createdBy": "sanitized", "participants": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:47:31 GMT - ms-cv: Ky0SiCHD90ytgwrnq0mBeg.0 + date: Thu, 26 Nov 2020 01:21:31 GMT + ms-cv: l2HmSTYrbE27CkF0SDA+Aw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 279ms + x-processing-time: 979ms status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + code: 201 + message: Created + url: https://sanitized.dev.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.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-12-02T23:47:31Z", - "createdBy": "sanitized", "members": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:21:30Z", + "createdBy": "sanitized", "participants": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:47:31 GMT - ms-cv: /QksQtqV20ClYpZEdwRc7Q.0 + date: Thu, 26 Nov 2020 01:21:31 GMT + ms-cv: 48rJVl5XQEGV7MMbLQuY2Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 67ms + x-processing-time: 252ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.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 - date: Wed, 02 Dec 2020 23:47:31 GMT - ms-cv: gmZJhV+trEC1ejQ25JN4dw.0 + date: Thu, 26 Nov 2020 01:21:32 GMT + ms-cv: xBuagQl1ZUq9XQpOoTP2kQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 140ms + x-processing-time: 360ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -164,13 +161,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:33 GMT + - Thu, 26 Nov 2020 01:21:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -178,13 +175,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:47:32 GMT + - Thu, 26 Nov 2020 01:21:47 GMT ms-cv: - - m5aAQ69baEm0y2+QI/DRpw.0 - strict-transport-security: - - max-age=2592000 + - +tRng5OY0EShIZ+U7tvKtg.0 x-processing-time: - - 1084ms + - 16050ms 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 6d9a8d2845a6..d69b3a04edb2 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:34 GMT + - Thu, 26 Nov 2020 01:21:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:33 GMT + - Thu, 26 Nov 2020 01:21:48 GMT ms-cv: - - ZExDC3TnIEGTf6fVcPScQg.0 - strict-transport-security: - - max-age=2592000 + - uer+Ea5JKk618XcX2aUYjA.0 transfer-encoding: - chunked x-processing-time: - - 213ms + - 144ms status: code: 200 message: OK @@ -52,82 +50,81 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:47:35 GMT + - Thu, 26 Nov 2020 01:21:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:47:33.1685786+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:21:48.2262131+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:33 GMT + - Thu, 26 Nov 2020 01:21:48 GMT ms-cv: - - /+UR2bHAJUyDqqri1UcWoQ.0 - strict-transport-security: - - max-age=2592000 + - sa3ESOR4OEmriuLdfNHomQ.0 transfer-encoding: - chunked x-processing-time: - - 281ms + - 297ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:21:49Z", + "createdBy": "sanitized", "participants": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:47:33 GMT - ms-cv: NIGCXoZoCUu/aozrXfQgaA.0 + date: Thu, 26 Nov 2020 01:21:50 GMT + ms-cv: ya0Ghl3QsEiAC+8XL/RmXQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 349ms + x-processing-time: 838ms status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + code: 201 + message: Created + url: https://sanitized.dev.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.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.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 - date: Wed, 02 Dec 2020 23:47:34 GMT - ms-cv: cKlqBBe6XkSO60+WvuyrMg.0 + date: Thu, 26 Nov 2020 01:21:50 GMT + ms-cv: pdps7Mhv+kKCLyJnFbZcwQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 167ms + x-processing-time: 293ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -140,13 +137,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:36 GMT + - Thu, 26 Nov 2020 01:21:50 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -154,13 +151,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:47:36 GMT + - Thu, 26 Nov 2020 01:22:06 GMT ms-cv: - - S/5JtwWLa02aUFmSk3Fp4Q.0 - strict-transport-security: - - max-age=2592000 + - hh/fQapqO0+qU9rHgve42w.0 x-processing-time: - - 1237ms + - 16894ms 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 e8d3ed70cd4c..c0de98e51194 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:37 GMT + - Thu, 26 Nov 2020 01:22:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:36 GMT + - Thu, 26 Nov 2020 01:22:07 GMT ms-cv: - - qOanpWQSTUONn9sl7m00cw.0 - strict-transport-security: - - max-age=2592000 + - abSdviEBLUyqxoosse0XjQ.0 transfer-encoding: - chunked x-processing-time: - - 221ms + - 143ms status: code: 200 message: OK @@ -52,105 +50,104 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:47:38 GMT + - Thu, 26 Nov 2020 01:22:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:47:36.5603341+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:22:07.3610587+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:36 GMT + - Thu, 26 Nov 2020 01:22:07 GMT ms-cv: - - 3L7EM7UHeEimdupefnGSnw.0 - strict-transport-security: - - max-age=2592000 + - t9nhLIXhQUO5LmSKQIwh0Q.0 transfer-encoding: - chunked x-processing-time: - - 287ms + - 298ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:22:08Z", + "createdBy": "sanitized", "participants": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:47:37 GMT - ms-cv: tQcin5ycYE6yPjW5vdPqXg.0 + date: Thu, 26 Nov 2020 01:22:08 GMT + ms-cv: p0gwIWsmHkWyCUYRDGsFdA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 188ms + x-processing-time: 821ms status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + code: 201 + message: Created + url: https://sanitized.dev.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.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads?maxPageSize=1&api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:47:39 GMT - ms-cv: XF6pilSaCkWx437Td0gmjQ.0 + date: Thu, 26 Nov 2020 01:22:10 GMT + ms-cv: PDZijimua0aXNcZburvjWA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 120ms + x-processing-time: 381ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/chat/threads?maxPageSize=1&api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.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 - date: Wed, 02 Dec 2020 23:47:39 GMT - ms-cv: 3rfDKCV2x0GKUdOYfcSPNw.0 + date: Thu, 26 Nov 2020 01:22:11 GMT + ms-cv: r/IuVej42ESHIcmoag/dGg.0 strict-transport-security: max-age=2592000 - x-processing-time: 198ms + x-processing-time: 283ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -163,13 +160,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:41 GMT + - Thu, 26 Nov 2020 01:22:12 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -177,13 +174,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:47:40 GMT + - Thu, 26 Nov 2020 01:22:28 GMT ms-cv: - - vymdAQrEHUuXVyrWXx6l2Q.0 - strict-transport-security: - - max-age=2592000 + - Zo8NCaK/50OTdE0tDA7mDg.0 x-processing-time: - - 1026ms + - 16231ms 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 new file mode 100644 index 000000000000..fdae2aa3db70 --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml @@ -0,0 +1,290 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:22:28 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:22:28 GMT + ms-cv: + - dd+vYARl/0aU1L4LstbDYg.0 + transfer-encoding: + - chunked + x-processing-time: + - 160ms + 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, 26 Nov 2020 01:22:29 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:22:28.3411326+00:00"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:22:28 GMT + ms-cv: + - mFh0TCxslE2XE+AM30ML5w.0 + transfer-encoding: + - chunked + x-processing-time: + - 300ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:22:29 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:22:29 GMT + ms-cv: + - 6P4tYc+Oskis9JocjuFqfQ.0 + transfer-encoding: + - chunked + x-processing-time: + - 146ms + 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:22:29Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a206-a7ef-b274-5a3a0d00011b", + "participants": "sanitized"}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:22:30 GMT + ms-cv: + - VyHZBwcHUkeq1ZBe0z0K4w.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 830ms + status: + code: 201 + message: Created +- request: + body: '{"participants": "sanitized"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '183' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-11-01-preview3 + content-length: + - '0' + date: + - Thu, 26 Nov 2020 01:22:31 GMT + ms-cv: + - 6ovFy1YWXUyzgtTCQ0AuEg.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 913ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:22:31 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:22:47 GMT + ms-cv: + - NghzSFVLlkWYMI9eO/A79g.0 + x-processing-time: + - 16596ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:22:48 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:23:04 GMT + ms-cv: + - XRgg32P31UWn2RQYkEZ09g.0 + x-processing-time: + - 15718ms + 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + date: + - Thu, 26 Nov 2020 01:23:04 GMT + ms-cv: + - jXcUJDKMH0yz1gpWOq5TVQ.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 305ms + status: + code: 204 + message: No Content +version: 1 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 new file mode 100644 index 000000000000..003c8e255415 --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml @@ -0,0 +1,290 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:23:04 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:23:04 GMT + ms-cv: + - HerM2mQmd02OBAdCT3OyXQ.0 + transfer-encoding: + - chunked + x-processing-time: + - 148ms + 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, 26 Nov 2020 01:23:05 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:23:04.4533324+00:00"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:23:04 GMT + ms-cv: + - pn2gx/zkCEKfuOZPXwRTwQ.0 + transfer-encoding: + - chunked + x-processing-time: + - 301ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:23:05 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:23:04 GMT + ms-cv: + - /2+tkc7pLEelGGLEH9kcJw.0 + transfer-encoding: + - chunked + x-processing-time: + - 149ms + 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:23:06Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a207-34f9-b274-5a3a0d00011d", + "participants": "sanitized"}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:23:06 GMT + ms-cv: + - Vmgei+anTEqeebmxZHF4CQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 818ms + status: + code: 201 + message: Created +- request: + body: '{"participants": "sanitized"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '183' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-11-01-preview3 + content-length: + - '0' + date: + - Thu, 26 Nov 2020 01:23:07 GMT + ms-cv: + - +sEVZwQx9kCCFwTfvjBrFg.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 843ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:23:07 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:23:23 GMT + ms-cv: + - NRdn3as36kaQxHnmvueoPg.0 + x-processing-time: + - 15967ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:23:23 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:23:40 GMT + ms-cv: + - PE0+Qm7kaEWHpVkvK1uWcQ.0 + x-processing-time: + - 16637ms + 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + date: + - Thu, 26 Nov 2020 01:23:40 GMT + ms-cv: + - XyxI2gXMv0mcHZAKSMH0yg.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 312ms + status: + code: 204 + message: No Content +version: 1 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 9bac64957ad4..587dc4e95b6a 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:49 GMT + - Thu, 26 Nov 2020 01:23:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:47 GMT + - Thu, 26 Nov 2020 01:23:40 GMT ms-cv: - - 8oKQj4k/jkawyR9Os9ofQQ.0 - strict-transport-security: - - max-age=2592000 + - +FisQ6g8mkuEiGHBt184tA.0 transfer-encoding: - chunked x-processing-time: - - 205ms + - 144ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:47:49 GMT + - Thu, 26 Nov 2020 01:23:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:47:47.7821291+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:23:40.9543611+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:48 GMT + - Thu, 26 Nov 2020 01:23:41 GMT ms-cv: - - afP0kPL660CVSrzdVWsfWg.0 - strict-transport-security: - - max-age=2592000 + - FowW+e67ZkWt5cNBT2x/hg.0 transfer-encoding: - chunked x-processing-time: - - 276ms + - 298ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:50 GMT + - Thu, 26 Nov 2020 01:23:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,20 +102,18 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:48 GMT + - Thu, 26 Nov 2020 01:23:41 GMT ms-cv: - - LBslmmhJlEagI0SPnWx0Fg.0 - strict-transport-security: - - max-age=2592000 + - F5vvIThR+0aETPMo6gJvAw.0 transfer-encoding: - chunked x-processing-time: - - 206ms + - 139ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json @@ -128,33 +122,35 @@ interactions: Connection: - keep-alive Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:23:42Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a207-c397-b274-5a3a0d00011f", + "participants": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:49 GMT + - Thu, 26 Nov 2020 01:23:42 GMT ms-cv: - - xdLGTdiTGEKeYkNbzsP3Rw.0 + - nC7RUoxItUSPZAjGCSYyyA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 274ms + - 832ms status: - code: 207 - message: Multi-Status + code: 201 + message: Created - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -170,9 +166,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -181,15 +177,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:50 GMT + - Thu, 26 Nov 2020 01:23:43 GMT ms-cv: - - GV5O22CtHkSTYlObkXKwdg.0 + - ILiVsd9LVkCkQeOJ/MSVBQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 257ms + - 632ms status: code: 201 message: Created @@ -205,9 +201,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -215,13 +211,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Wed, 02 Dec 2020 23:47:50 GMT + - Thu, 26 Nov 2020 01:23:44 GMT ms-cv: - - 5SfIxLjjwECfVLKSS66aLg.0 + - RTgZ5X8qA0OUsZRVG9lBeQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 163ms + - 395ms status: code: 204 message: No Content @@ -237,13 +233,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:52 GMT + - Thu, 26 Nov 2020 01:23:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -251,13 +247,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:47:51 GMT + - Thu, 26 Nov 2020 01:24:01 GMT ms-cv: - - +BxolgU4sEOsK9DmY6AsWg.0 - strict-transport-security: - - max-age=2592000 + - CRD1a1Uh4kSa7pqIKjPX5g.0 x-processing-time: - - 1243ms + - 16806ms status: code: 204 message: No Content @@ -273,13 +267,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:53 GMT + - Thu, 26 Nov 2020 01:24:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -287,13 +281,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:47:52 GMT + - Thu, 26 Nov 2020 01:24:16 GMT ms-cv: - - /M2pQM5rK0eCi7+UTwVRRA.0 - strict-transport-security: - - max-age=2592000 + - 3KneB3pMBUmzbeKy9rpxiA.0 x-processing-time: - - 901ms + - 15876ms status: code: 204 message: No Content @@ -309,9 +301,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -319,13 +311,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Wed, 02 Dec 2020 23:47:52 GMT + - Thu, 26 Nov 2020 01:24:17 GMT ms-cv: - - 19EqY/+7E0uxsDCqsU9zmw.0 + - XrmTL9T+zE6cRYMnS+mh2w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 142ms + - 292ms 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 a81e92321761..8c8eb60c1efa 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:55 GMT + - Thu, 26 Nov 2020 01:24:17 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:53 GMT + - Thu, 26 Nov 2020 01:24:17 GMT ms-cv: - - fbjmYcKW60ubTWnJTQr0Nw.0 - strict-transport-security: - - max-age=2592000 + - msRYo46MSkyKI84reLo0HA.0 transfer-encoding: - chunked x-processing-time: - - 206ms + - 194ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:47:55 GMT + - Thu, 26 Nov 2020 01:24:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:47:53.5773001+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:24:17.1459685+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:53 GMT + - Thu, 26 Nov 2020 01:24:18 GMT ms-cv: - - XzuuhI3Hlk+cHol4v8bq+Q.0 - strict-transport-security: - - max-age=2592000 + - ME5w3LfU3k6qpGONFQFRGg.0 transfer-encoding: - chunked x-processing-time: - - 282ms + - 814ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:55 GMT + - Thu, 26 Nov 2020 01:24:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,20 +102,18 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:54 GMT + - Thu, 26 Nov 2020 01:24:18 GMT ms-cv: - - D7nTc9qn2ESonYAn7j3xZg.0 - strict-transport-security: - - max-age=2592000 + - IOXvc6LenEGqFVWCmDEvdw.0 transfer-encoding: - chunked x-processing-time: - - 207ms + - 145ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json @@ -128,33 +122,35 @@ interactions: Connection: - keep-alive Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:24:19Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a208-52d1-557d-5a3a0d0000df", + "participants": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:55 GMT + - Thu, 26 Nov 2020 01:24:19 GMT ms-cv: - - OW+DOIdcc0eudoz5uQ/EAg.0 + - EKBi3K6XsE+2Lhsqi5cRhg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 288ms + - 825ms status: - code: 207 - message: Multi-Status + code: 201 + message: Created - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -170,9 +166,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -181,15 +177,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:55 GMT + - Thu, 26 Nov 2020 01:24:20 GMT ms-cv: - - 09MM/wSUmE6L0YD7HVwjfg.0 + - Orn/iKS620SaBNazUpUxiQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 293ms + - 684ms status: code: 201 message: Created @@ -203,12 +199,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1606952876147", - "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-12-02T23:47:56Z", + body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1606353860857", + "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-11-26T01:24:20Z", "senderId": "sanitized"}' headers: api-supported-versions: @@ -216,15 +212,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:47:55 GMT + - Thu, 26 Nov 2020 01:24:20 GMT ms-cv: - - ul+EwLJcrUKGYDVIkJPN6A.0 + - TgVAXmNOVUqQDFtLimeI3g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 54ms + - 262ms status: code: 200 message: OK @@ -240,13 +236,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:57 GMT + - Thu, 26 Nov 2020 01:24:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -254,13 +250,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:47:56 GMT + - Thu, 26 Nov 2020 01:24:38 GMT ms-cv: - - mmIpuZUqqkef3QRYHivU0A.0 - strict-transport-security: - - max-age=2592000 + - 7WkXURdvCUadQaKfM0XUCg.0 x-processing-time: - - 578ms + - 17535ms status: code: 204 message: No Content @@ -276,13 +270,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:47:58 GMT + - Thu, 26 Nov 2020 01:24:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -290,13 +284,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:47:57 GMT + - Thu, 26 Nov 2020 01:24:55 GMT ms-cv: - - 8IzCnBcfDkeQ+vu1RA+arQ.0 - strict-transport-security: - - max-age=2592000 + - 6iwCu22I9kCdX7N0AL23AA.0 x-processing-time: - - 608ms + - 16376ms status: code: 204 message: No Content @@ -312,9 +304,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -322,13 +314,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Wed, 02 Dec 2020 23:47:57 GMT + - Thu, 26 Nov 2020 01:24:55 GMT ms-cv: - - DeNIfD+tokmIsLmG4d3HaA.0 + - aNenUrVPlEqJY0ZCn/jJGw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 152ms + - 323ms 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 d26f14361101..f9440f907da3 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:06 GMT + - Thu, 26 Nov 2020 01:24:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:04 GMT + - Thu, 26 Nov 2020 01:24:56 GMT ms-cv: - - nLvuwJyzCEqOmRlRVwPieQ.0 - strict-transport-security: - - max-age=2592000 + - 804wtj3mZUO4fzi6Z15Q+g.0 transfer-encoding: - chunked x-processing-time: - - 209ms + - 145ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:48:06 GMT + - Thu, 26 Nov 2020 01:24:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:48:04.9878314+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:24:55.8283538+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:05 GMT + - Thu, 26 Nov 2020 01:24:56 GMT ms-cv: - - EJmBjwtQCkC5FORYgjvp2Q.0 - strict-transport-security: - - max-age=2592000 + - YO9czrtDg0yc1yz5Q+dGtA.0 transfer-encoding: - chunked x-processing-time: - - 288ms + - 302ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:07 GMT + - Thu, 26 Nov 2020 01:24:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,20 +102,18 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:05 GMT + - Thu, 26 Nov 2020 01:24:57 GMT ms-cv: - - yV4WHAECv0iFswyl9dvHvw.0 - strict-transport-security: - - max-age=2592000 + - SCM4p2/tX0ikotqp00XisQ.0 transfer-encoding: - chunked x-processing-time: - - 204ms + - 148ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json @@ -128,33 +122,35 @@ interactions: Connection: - keep-alive Content-Length: - - '200' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:24:57Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a208-e816-b274-5a3a0d000121", + "participants": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:06 GMT + - Thu, 26 Nov 2020 01:24:57 GMT ms-cv: - - yeWjKKKUqEiUzs/q2TaxyQ.0 + - zYy8Kz/sKEKeY2vLvJFEvw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 295ms + - 830ms status: - code: 207 - message: Multi-Status + code: 201 + message: Created - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -170,9 +166,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -181,15 +177,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:07 GMT + - Thu, 26 Nov 2020 01:24:58 GMT ms-cv: - - g+U1IMtfwkmfdkcJ/dLXeQ.0 + - 6hVNy/RtuUyr5NI1d6pKYQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 135ms + - 695ms status: code: 201 message: Created @@ -203,9 +199,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -214,15 +210,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:09 GMT + - Thu, 26 Nov 2020 01:25:00 GMT ms-cv: - - 7U27XzEbKkudPC4UTOnGZQ.0 + - ghjd+uaBPE+xWRWajPhGfw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 75ms + - 268ms status: code: 200 message: OK @@ -236,9 +232,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -247,15 +243,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:09 GMT + - Thu, 26 Nov 2020 01:25:01 GMT ms-cv: - - HY0zsn1BukaCd/q94HOnOg.0 + - 2m12bXnZ/U++YwOOw50L4Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 113ms + - 365ms status: code: 200 message: OK @@ -269,9 +265,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -280,15 +276,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:09 GMT + - Thu, 26 Nov 2020 01:25:01 GMT ms-cv: - - TDtUAjvK1kSNW2ivKJMnMQ.0 + - +DvJechO5UqgndvobbF2Xw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 131ms + - 367ms status: code: 200 message: OK @@ -302,9 +298,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -313,15 +309,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:10 GMT + - Thu, 26 Nov 2020 01:25:02 GMT ms-cv: - - LbLy869FFEaMO5P9v3zGLQ.0 + - lIr4DY11dUmOWzkSHJ8mBA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 115ms + - 366ms status: code: 200 message: OK @@ -337,13 +333,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:11 GMT + - Thu, 26 Nov 2020 01:25:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -351,13 +347,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:48:11 GMT + - Thu, 26 Nov 2020 01:25:18 GMT ms-cv: - - GCpgfk1N6USYYyU0gz1PqA.0 - strict-transport-security: - - max-age=2592000 + - rIgTwNjkGkeXkbNXZKnPXQ.0 x-processing-time: - - 1207ms + - 16745ms status: code: 204 message: No Content @@ -373,13 +367,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:13 GMT + - Thu, 26 Nov 2020 01:25:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -387,13 +381,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:48:12 GMT + - Thu, 26 Nov 2020 01:25:34 GMT ms-cv: - - nHhfvU1fn0GDB9OdzjYF5g.0 - strict-transport-security: - - max-age=2592000 + - kgOJ7BrWGkW6e+weZb19Zw.0 x-processing-time: - - 575ms + - 16159ms status: code: 204 message: No Content @@ -409,9 +401,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -419,13 +411,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Wed, 02 Dec 2020 23:48:11 GMT + - Thu, 26 Nov 2020 01:25:35 GMT ms-cv: - - T6RB/qatYU26z+k74U9fsw.0 + - AqDCHeUbjkycBwqCunGccA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 145ms + - 284ms 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 new file mode 100644 index 000000000000..85a09145bc68 --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml @@ -0,0 +1,287 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:25:35 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:25:36 GMT + ms-cv: + - hX/F05n4+UKEOjz3NIZWRQ.0 + transfer-encoding: + - chunked + x-processing-time: + - 179ms + 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, 26 Nov 2020 01:25:36 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:25:35.7750135+00:00"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:25:36 GMT + ms-cv: + - WQ0fCTY9wEaEnGxgj2ontQ.0 + transfer-encoding: + - chunked + x-processing-time: + - 299ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:25:36 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:25:36 GMT + ms-cv: + - DcATocgmY02K03bo5XfKLQ.0 + transfer-encoding: + - chunked + x-processing-time: + - 144ms + 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: + - '205' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:25:37Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a209-8417-b274-5a3a0d000123", + "participants": "sanitized"}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:25:37 GMT + ms-cv: + - jrosRGQh3ECXqftkXzAp9Q.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 815ms + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: + - 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:25:40 GMT + ms-cv: + - laV96dm1/E6ElZcKmLUUaA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 744ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:25:41 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:25:56 GMT + ms-cv: + - 8U13ljcOEUuE4HMKo2PdsA.0 + x-processing-time: + - 16007ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:25:57 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:26:12 GMT + ms-cv: + - yLDPZxhkcEWJb7m8HoJCdg.0 + x-processing-time: + - 16445ms + 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + date: + - Thu, 26 Nov 2020 01:26:13 GMT + ms-cv: + - UZR2pU4w+UmssQdbohylhw.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 289ms + status: + code: 204 + message: No Content +version: 1 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 d3106a1c6c1a..d8285c7a3c99 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:14 GMT + - Thu, 26 Nov 2020 01:26:14 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:13 GMT + - Thu, 26 Nov 2020 01:26:13 GMT ms-cv: - - UXFUbFpZ3Euhv6Wzs2SuOw.0 - strict-transport-security: - - max-age=2592000 + - A/P9P9V6pEadsXcfwqqklg.0 transfer-encoding: - chunked x-processing-time: - - 211ms + - 146ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:48:14 GMT + - Thu, 26 Nov 2020 01:26:14 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:48:12.725889+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:26:14.0829614+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:13 GMT + - Thu, 26 Nov 2020 01:26:14 GMT ms-cv: - - pgJuov9s8ECXEy34ytY0aA.0 - strict-transport-security: - - max-age=2592000 + - JM8r6v+YY0ejA6y0LsKhBw.0 transfer-encoding: - chunked x-processing-time: - - 279ms + - 303ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:15 GMT + - Thu, 26 Nov 2020 01:26:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,20 +102,18 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:13 GMT + - Thu, 26 Nov 2020 01:26:14 GMT ms-cv: - - VEZKAlxdbESfJ3Y0AcG68w.0 - strict-transport-security: - - max-age=2592000 + - 94Efc2Yx6E2gDj+3CbbMAQ.0 transfer-encoding: - chunked x-processing-time: - - 213ms + - 146ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json @@ -128,33 +122,35 @@ interactions: Connection: - keep-alive Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:26:15Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20a-19b6-b274-5a3a0d000125", + "participants": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:13 GMT + - Thu, 26 Nov 2020 01:26:16 GMT ms-cv: - - kTQSGcUDw0iG13E7iuesgw.0 + - OIYYMsHJjUaD5nZhLq7jDQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 173ms + - 821ms status: - code: 207 - message: Multi-Status + code: 201 + message: Created - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -170,9 +166,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -181,15 +177,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:14 GMT + - Thu, 26 Nov 2020 01:26:17 GMT ms-cv: - - M6UhXnur/EWHApSoq9UlAw.0 + - 5pQbwxxB10KHVAyeTNnSjw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 242ms + - 693ms status: code: 201 message: Created @@ -207,9 +203,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readreceipts?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 response: body: string: '' @@ -219,13 +215,13 @@ interactions: content-length: - '0' date: - - Wed, 02 Dec 2020 23:48:14 GMT + - Thu, 26 Nov 2020 01:26:17 GMT ms-cv: - - 4okukMqotEyFs2DnI3j6xg.0 + - JJEHa6GlDECwkZQHkOcX3w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 143ms + - 668ms status: code: 201 message: Created @@ -239,9 +235,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readreceipts?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -250,15 +246,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:16 GMT + - Thu, 26 Nov 2020 01:26:20 GMT ms-cv: - - GLlZDghW0UWaWEVlLLqDLQ.0 + - HFpdZBGKkkS9+HQJ9I4/rQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 53ms + - 249ms status: code: 200 message: OK @@ -274,13 +270,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:19 GMT + - Thu, 26 Nov 2020 01:26:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -288,13 +284,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:48:18 GMT + - Thu, 26 Nov 2020 01:26:36 GMT ms-cv: - - DIZ569QpIUaOw7qNLl09ow.0 - strict-transport-security: - - max-age=2592000 + - wQvnxAp9GEScZluSWlPcKw.0 x-processing-time: - - 784ms + - 16099ms status: code: 204 message: No Content @@ -310,13 +304,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:19 GMT + - Thu, 26 Nov 2020 01:26:36 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -324,13 +318,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:48:19 GMT + - Thu, 26 Nov 2020 01:26:52 GMT ms-cv: - - TJcqiD+FFEmexjNdwAhT6A.0 - strict-transport-security: - - max-age=2592000 + - aIlRF5bFVU+K+7v3C9gN0g.0 x-processing-time: - - 753ms + - 16458ms status: code: 204 message: No Content @@ -346,9 +338,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -356,13 +348,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Wed, 02 Dec 2020 23:48:18 GMT + - Thu, 26 Nov 2020 01:26:53 GMT ms-cv: - - FZsaFCyAQ0CMQT/xeCO0SA.0 + - xZvcQIwoLky0fFKFlkK/9A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 147ms + - 283ms 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 new file mode 100644 index 000000000000..4e79d000bcdd --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml @@ -0,0 +1,322 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:26:53 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:26:53 GMT + ms-cv: + - L3MwZ02q+0KXjA6cPkf3zg.0 + transfer-encoding: + - chunked + x-processing-time: + - 175ms + 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, 26 Nov 2020 01:26:54 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:26:53.8507271+00:00"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:26:54 GMT + ms-cv: + - pQgqab8VE0SZ4Oq9dgY3mg.0 + transfer-encoding: + - chunked + x-processing-time: + - 783ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:26:54 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:26:54 GMT + ms-cv: + - iFqkvLMJxUOQ2LGuHmiWpA.0 + transfer-encoding: + - chunked + x-processing-time: + - 153ms + 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:26:55Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20a-b333-557d-5a3a0d0000e1", + "participants": "sanitized"}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:26:56 GMT + ms-cv: + - 9/n37bfN1k+b5pcZuR6b2Q.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 1340ms + status: + code: 201 + message: Created +- request: + body: '{"participants": "sanitized"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '183' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-11-01-preview3 + content-length: + - '0' + date: + - Thu, 26 Nov 2020 01:26:57 GMT + ms-cv: + - uruLT70rVkaontGqh4BaNA.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 833ms + status: + code: 201 + message: Created +- 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8%3Aacs%3A9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20a-b745-557d-5a3a0d0000e2?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-11-01-preview3 + date: + - Thu, 26 Nov 2020 01:26:57 GMT + ms-cv: + - fTookN+trEy/B7qvkvcVqQ.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 427ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:26:58 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:27:13 GMT + ms-cv: + - x6apGyPKZ0a6QRVVbsMSaQ.0 + x-processing-time: + - 16005ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:27:14 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:27:30 GMT + ms-cv: + - GF97YOCr+UmWjcc9UlpHsg.0 + x-processing-time: + - 16723ms + 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + date: + - Thu, 26 Nov 2020 01:27:31 GMT + ms-cv: + - sMR50s3i+ECIkM0o2e2DzA.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 290ms + status: + code: 204 + message: No Content +version: 1 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 1522c9610320..4b5a12db0945 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:26 GMT + - Thu, 26 Nov 2020 01:27:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:25 GMT + - Thu, 26 Nov 2020 01:27:30 GMT ms-cv: - - AAuokt9JZ06/sHReeOMfqg.0 - strict-transport-security: - - max-age=2592000 + - Rc3uv0zfaUWJiXIDROynSA.0 transfer-encoding: - chunked x-processing-time: - - 215ms + - 145ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:48:26 GMT + - Thu, 26 Nov 2020 01:27:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:48:24.8997922+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:27:31.4138168+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:25 GMT + - Thu, 26 Nov 2020 01:27:31 GMT ms-cv: - - fjzCYbpw3UC08N3mjmThhw.0 - strict-transport-security: - - max-age=2592000 + - wng3+OJem0CbKMTETRRu0A.0 transfer-encoding: - chunked x-processing-time: - - 287ms + - 299ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:27 GMT + - Thu, 26 Nov 2020 01:27:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,20 +102,18 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:25 GMT + - Thu, 26 Nov 2020 01:27:31 GMT ms-cv: - - +vSgDSIZtE20p1mJUy45Yg.0 - strict-transport-security: - - max-age=2592000 + - QZ1WDUG7r0mOH0YPnCeFgw.0 transfer-encoding: - chunked x-processing-time: - - 212ms + - 147ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json @@ -128,33 +122,35 @@ interactions: Connection: - keep-alive Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:27:33Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20b-46e6-557d-5a3a0d0000e3", + "participants": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:26 GMT + - Thu, 26 Nov 2020 01:27:32 GMT ms-cv: - - RbB/1owxZUujMTqzyiuzMQ.0 + - iUhieEkBXUCaR8EQ3kIC0w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 236ms + - 831ms status: - code: 207 - message: Multi-Status + code: 201 + message: Created - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -170,9 +166,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -181,15 +177,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:27 GMT + - Thu, 26 Nov 2020 01:27:33 GMT ms-cv: - - bCiIeO4wR02mtYYjyTl2xA.0 + - X6/bdVsrgkSbcCR6yMDmyQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 122ms + - 651ms status: code: 201 message: Created @@ -205,13 +201,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:28 GMT + - Thu, 26 Nov 2020 01:27:34 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -219,13 +215,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:48:28 GMT + - Thu, 26 Nov 2020 01:27:50 GMT ms-cv: - - lPbfRbdo7UGWENSpTBBjvg.0 - strict-transport-security: - - max-age=2592000 + - CEA1vnH3kkygOS1DiF3fDg.0 x-processing-time: - - 1708ms + - 16279ms status: code: 204 message: No Content @@ -241,13 +235,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:30 GMT + - Thu, 26 Nov 2020 01:27:50 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -255,13 +249,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:48:29 GMT + - Thu, 26 Nov 2020 01:28:06 GMT ms-cv: - - igDoQ4EQxkm1Bk5Oyp2DwA.0 - strict-transport-security: - - max-age=2592000 + - omYum9GtMUeTXF/MKSMo7w.0 x-processing-time: - - 551ms + - 16274ms status: code: 204 message: No Content @@ -277,9 +269,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -287,13 +279,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Wed, 02 Dec 2020 23:48:29 GMT + - Thu, 26 Nov 2020 01:28:06 GMT ms-cv: - - 5y9uh7SEakCypOrjfVL/JQ.0 + - JHijcUlRjUqewdrOZI3dvg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 215ms + - 289ms 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 2f98fdbbacc2..97371cd4df48 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:31 GMT + - Thu, 26 Nov 2020 01:28:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:30 GMT + - Thu, 26 Nov 2020 01:28:07 GMT ms-cv: - - q2ZoI9UyXUCh2YVS1DtFmQ.0 - strict-transport-security: - - max-age=2592000 + - mjHNjmWZI0m8Zn033cNYjA.0 transfer-encoding: - chunked x-processing-time: - - 221ms + - 203ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:48:32 GMT + - Thu, 26 Nov 2020 01:28:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:48:30.3534309+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:28:07.2996862+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:31 GMT + - Thu, 26 Nov 2020 01:28:08 GMT ms-cv: - - RifIfbEX8kuCWKzWt+IFgQ.0 - strict-transport-security: - - max-age=2592000 + - /vvMGot9YEC1Np0vMVWEog.0 transfer-encoding: - chunked x-processing-time: - - 291ms + - 300ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:32 GMT + - Thu, 26 Nov 2020 01:28:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,20 +102,18 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:31 GMT + - Thu, 26 Nov 2020 01:28:08 GMT ms-cv: - - Oj/tnHcRhku6DocRa4L+XA.0 - strict-transport-security: - - max-age=2592000 + - yOgWL6LNX0OHrHfvzcK7Xw.0 transfer-encoding: - chunked x-processing-time: - - 218ms + - 147ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json @@ -128,33 +122,35 @@ interactions: Connection: - keep-alive Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:28:09Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20b-d3fc-b274-5a3a0d000127", + "participants": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:31 GMT + - Thu, 26 Nov 2020 01:28:09 GMT ms-cv: - - MZ9d4amrJ0Wa/g4uWZUWQg.0 + - OuXAccdOwUSuSG8/oat08w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 217ms + - 850ms status: - code: 207 - message: Multi-Status + code: 201 + message: Created - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -170,9 +166,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -181,15 +177,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:32 GMT + - Thu, 26 Nov 2020 01:28:10 GMT ms-cv: - - VoTkSnRdmkC2VEHujr+jYA.0 + - IgSr4GCdoUO1r+XB6M4kcw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 133ms + - 703ms status: code: 201 message: Created @@ -207,9 +203,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readreceipts?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 response: body: string: '' @@ -219,13 +215,13 @@ interactions: content-length: - '0' date: - - Wed, 02 Dec 2020 23:48:32 GMT + - Thu, 26 Nov 2020 01:28:11 GMT ms-cv: - - mT4t4G9eh0qEBCe/j4NIsg.0 + - LthArghR3Eq/5+icvinOrg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 153ms + - 607ms status: code: 201 message: Created @@ -241,13 +237,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:34 GMT + - Thu, 26 Nov 2020 01:28:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -255,13 +251,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:48:34 GMT + - Thu, 26 Nov 2020 01:28:27 GMT ms-cv: - - JsDFx89AZUCwuwcH1j5rGA.0 - strict-transport-security: - - max-age=2592000 + - SgCET7UrQ0SmsaWXZcD5Eg.0 x-processing-time: - - 1568ms + - 16493ms status: code: 204 message: No Content @@ -277,13 +271,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:36 GMT + - Thu, 26 Nov 2020 01:28:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -291,13 +285,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:48:35 GMT + - Thu, 26 Nov 2020 01:28:44 GMT ms-cv: - - PwTmpDMNfkSe6V5nvle0/Q.0 - strict-transport-security: - - max-age=2592000 + - sjICsoC46kG23f8Uv5GKuw.0 x-processing-time: - - 871ms + - 16165ms status: code: 204 message: No Content @@ -313,9 +305,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -323,13 +315,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Wed, 02 Dec 2020 23:48:35 GMT + - Thu, 26 Nov 2020 01:28:43 GMT ms-cv: - - /mD4HYJ2mEKYOdaEunkGIg.0 + - Hj7nFy28eUO/48W0q3cS5A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 140ms + - 294ms 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 44bc880fce17..c8468d5cca21 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:37 GMT + - Thu, 26 Nov 2020 01:28:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:36 GMT + - Thu, 26 Nov 2020 01:28:43 GMT ms-cv: - - PsrtaVmqd0qzBl4SZpw12Q.0 - strict-transport-security: - - max-age=2592000 + - hlqRfaPk0keeVSgIRnHbdQ.0 transfer-encoding: - chunked x-processing-time: - - 217ms + - 149ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:48:38 GMT + - Thu, 26 Nov 2020 01:28:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:48:36.0084687+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:28:44.3074943+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:36 GMT + - Thu, 26 Nov 2020 01:28:44 GMT ms-cv: - - H7EUkVVamUiZnu8ebaxG5w.0 - strict-transport-security: - - max-age=2592000 + - 66khv998k06Heglol7uOJw.0 transfer-encoding: - chunked x-processing-time: - - 282ms + - 305ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:38 GMT + - Thu, 26 Nov 2020 01:28:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,20 +102,18 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:36 GMT + - Thu, 26 Nov 2020 01:28:44 GMT ms-cv: - - kBimdgSPL0KtIu4zpDh+Tw.0 - strict-transport-security: - - max-age=2592000 + - ax7WKHTpUkOWXXVtzKq6yw.0 transfer-encoding: - chunked x-processing-time: - - 216ms + - 145ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json @@ -128,33 +122,35 @@ interactions: Connection: - keep-alive Content-Length: - - '201' + - '205' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:28:46Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20c-6482-557d-5a3a0d0000e5", + "participants": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:37 GMT + - Thu, 26 Nov 2020 01:28:46 GMT ms-cv: - - C3VAO2ifHUCuKqnlnTv5Og.0 + - 0xalPEIS4keKeCFWJpN9iQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 285ms + - 854ms status: - code: 207 - message: Multi-Status + code: 201 + message: Created - request: body: null headers: @@ -167,9 +163,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/typing?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 response: body: string: '' @@ -179,13 +175,13 @@ interactions: content-length: - '0' date: - - Wed, 02 Dec 2020 23:48:38 GMT + - Thu, 26 Nov 2020 01:28:47 GMT ms-cv: - - 4gH9HXNHg0qFCUrbPHeFmw.0 + - bQdJB63V5kemmf3CVQNUeA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 84ms + - 809ms status: code: 200 message: OK @@ -201,13 +197,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:39 GMT + - Thu, 26 Nov 2020 01:28:47 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -215,13 +211,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:48:39 GMT + - Thu, 26 Nov 2020 01:29:03 GMT ms-cv: - - b1sER/4MtEKJGAKhPjs4iQ.0 - strict-transport-security: - - max-age=2592000 + - M4UEQmh3vk2culX9BlK3Tw.0 x-processing-time: - - 1005ms + - 15919ms status: code: 204 message: No Content @@ -237,13 +231,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:41 GMT + - Thu, 26 Nov 2020 01:29:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -251,13 +245,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:48:39 GMT + - Thu, 26 Nov 2020 01:29:19 GMT ms-cv: - - BXR1SfVSkEqcEcBCwnHA+Q.0 - strict-transport-security: - - max-age=2592000 + - 0M7+dJE7n0Ghg4ZhjVGCbQ.0 x-processing-time: - - 612ms + - 16290ms status: code: 204 message: No Content @@ -273,9 +265,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -283,13 +275,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Wed, 02 Dec 2020 23:48:40 GMT + - Thu, 26 Nov 2020 01:29:20 GMT ms-cv: - - ojOXeX3c7EqwanSn/7Wvcw.0 + - IHF2oEx7AEa98F8J92fLew.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 146ms + - 292ms 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 7061988e2ce2..becc48e7400a 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:42 GMT + - Thu, 26 Nov 2020 01:29:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:41 GMT + - Thu, 26 Nov 2020 01:29:20 GMT ms-cv: - - FH4gaqMP5EyoOMXx8y9yGg.0 - strict-transport-security: - - max-age=2592000 + - cJB+MDpBBEqZAq3HqXkWqw.0 transfer-encoding: - chunked x-processing-time: - - 221ms + - 143ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:48:42 GMT + - Thu, 26 Nov 2020 01:29:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:48:40.8988867+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:29:20.9376251+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:41 GMT + - Thu, 26 Nov 2020 01:29:21 GMT ms-cv: - - AHtcUw/WVEq3XSx3W9uNjw.0 - strict-transport-security: - - max-age=2592000 + - +mUydaYWw0y1XyjahACEZw.0 transfer-encoding: - chunked x-processing-time: - - 309ms + - 792ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:43 GMT + - Thu, 26 Nov 2020 01:29:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,20 +102,18 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:42 GMT + - Thu, 26 Nov 2020 01:29:21 GMT ms-cv: - - fllaL37CkU2F/KDAbi8+iA.0 - strict-transport-security: - - max-age=2592000 + - Q+fRrF2xWkaRDCOZrCcTBg.0 transfer-encoding: - chunked x-processing-time: - - 206ms + - 147ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json @@ -128,33 +122,35 @@ interactions: Connection: - keep-alive Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:29:22Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20c-f1be-d67a-5a3a0d0001bc", + "participants": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:42 GMT + - Thu, 26 Nov 2020 01:29:22 GMT ms-cv: - - omxReFSmZEycvq7M/fXJUg.0 + - SVmLwbq/t06tiNSYhFTquA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 264ms + - 861ms status: - code: 207 - message: Multi-Status + code: 201 + message: Created - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -170,9 +166,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -181,15 +177,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:43 GMT + - Thu, 26 Nov 2020 01:29:23 GMT ms-cv: - - BFBjsE51lUWds9d72Rgtbg.0 + - PcQGvGfEt0e7eu8HLPFAfg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 225ms + - 696ms status: code: 201 message: Created @@ -205,30 +201,28 @@ interactions: Content-Length: - '38' Content-Type: - - application/json + - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 - content-length: - - '0' date: - - Wed, 02 Dec 2020 23:48:43 GMT + - Thu, 26 Nov 2020 01:29:24 GMT ms-cv: - - VSaPfNc1EkC5vZAEoh2ZnQ.0 + - 3czilnpjLU+ZoZMuPsezYQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 228ms + - 647ms status: - code: 200 - message: OK + code: 204 + message: No Content - request: body: null headers: @@ -241,13 +235,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:45 GMT + - Thu, 26 Nov 2020 01:29:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -255,13 +249,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:48:45 GMT + - Thu, 26 Nov 2020 01:29:40 GMT ms-cv: - - luNIoqjUskKI7/Lpbw798A.0 - strict-transport-security: - - max-age=2592000 + - gDTG9Rs5fkqnFqivKAR8oA.0 x-processing-time: - - 1584ms + - 15864ms status: code: 204 message: No Content @@ -277,13 +269,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:46 GMT + - Thu, 26 Nov 2020 01:29:40 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -291,13 +283,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:48:46 GMT + - Thu, 26 Nov 2020 01:29:57 GMT ms-cv: - - uIKAA0zsA0OgdKGMwxsE5w.0 - strict-transport-security: - - max-age=2592000 + - r2U9G8TXE0qpYn1Mg/lf5Q.0 x-processing-time: - - 750ms + - 16769ms status: code: 204 message: No Content @@ -313,9 +303,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -323,13 +313,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Wed, 02 Dec 2020 23:48:45 GMT + - Thu, 26 Nov 2020 01:29:57 GMT ms-cv: - - 9gtdU5Wp3UW8iYVOgre2bg.0 + - KMY6wxR01keuFPGjUL0M4A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 142ms + - 342ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml new file mode 100644 index 000000000000..efd13585da1c --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml @@ -0,0 +1,288 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:29:58 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:29:57 GMT + ms-cv: + - 6FvWkQjgmEaa8e3sfjfU0A.0 + transfer-encoding: + - chunked + x-processing-time: + - 147ms + 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, 26 Nov 2020 01:29:58 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:29:58.0124434+00:00"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:29:58 GMT + ms-cv: + - O+wr+Q5eh06Gxc5SCmIotw.0 + transfer-encoding: + - chunked + x-processing-time: + - 303ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:29:59 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:29:58 GMT + ms-cv: + - PSLziG1+B0GFeJ+0dkzvKQ.0 + transfer-encoding: + - chunked + x-processing-time: + - 145ms + 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:29:59Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20d-8471-d67a-5a3a0d0001c0", + "participants": "sanitized"}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:29:59 GMT + ms-cv: + - LGKB+K2LOU2iJwjukuvcXg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 1116ms + status: + code: 201 + message: Created +- request: + body: '{"topic": "update topic"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '25' + Content-Type: + - application/merge-patch+json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://sanitized.dev.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 + date: + - Thu, 26 Nov 2020 01:30:01 GMT + ms-cv: + - 7BSP98ULYk2qUVjneKqs8A.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 386ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:30:01 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:30:17 GMT + ms-cv: + - OcPauDoyr0CcNDEVhh4kUw.0 + x-processing-time: + - 16699ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:30:17 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:30:33 GMT + ms-cv: + - fYvM12YEbUW0FgYUBTdv1Q.0 + x-processing-time: + - 16018ms + 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + date: + - Thu, 26 Nov 2020 01:30:34 GMT + ms-cv: + - TyNx8N9ZwUyIwcq97aPzvA.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 294ms + status: + code: 204 + message: No Content +version: 1 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 new file mode 100644 index 000000000000..d76db2ff4760 --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml @@ -0,0 +1,261 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:30:34 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:30:34 GMT + ms-cv: + - cvnmKZiNuk6BFwK9Nz8r8g.0 + transfer-encoding: + - chunked + x-processing-time: + - 190ms + 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, 26 Nov 2020 01:30:35 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:30:34.8754582+00:00"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:30:34 GMT + ms-cv: + - daiJmDCJH0ebe0tSPhzXKA.0 + transfer-encoding: + - chunked + x-processing-time: + - 757ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:30:35 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:30:36 GMT + ms-cv: + - 0b0GEzY/1ES9yhEGsKYVnQ.0 + transfer-encoding: + - chunked + x-processing-time: + - 148ms + 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:30:36Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20e-12ae-b274-5a3a0d000129", + "participants": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Thu, 26 Nov 2020 01:30:36 GMT + ms-cv: 8RAmsd5Z00eynKICNh6htQ.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 819ms + status: + code: 201 + message: Created + url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 +- request: + body: '{"participants": "sanitized"}' + headers: + Accept: + - application/json + Content-Length: + - '183' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: 2020-11-01-preview3 + content-length: '0' + date: Thu, 26 Nov 2020 01:30:37 GMT + ms-cv: xR3KT//8d0WtEd8OEVKNtw.0 + strict-transport-security: max-age=2592000 + x-processing-time: 860ms + status: + code: 201 + message: Created + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.dev.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 + date: Thu, 26 Nov 2020 01:30:38 GMT + ms-cv: 4IfY5xcLfEimFoVjDa56GQ.0 + strict-transport-security: max-age=2592000 + x-processing-time: 304ms + status: + code: 204 + message: No Content + url: https://sanitized.dev.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, 26 Nov 2020 01:30:38 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:30:54 GMT + ms-cv: + - an+Y7NjiwEGHg1hciwZutA.0 + x-processing-time: + - 16189ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:30:54 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:31:10 GMT + ms-cv: + - QQOQ33KEJ0igmUuz/Ru1nA.0 + x-processing-time: + - 16730ms + status: + code: 204 + message: No Content +version: 1 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 new file mode 100644 index 000000000000..e5ea7794f4e1 --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml @@ -0,0 +1,261 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:31:11 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:31:11 GMT + ms-cv: + - siyNuR1A8Uab0RkHyAlqcQ.0 + transfer-encoding: + - chunked + x-processing-time: + - 198ms + 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, 26 Nov 2020 01:31:12 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:31:11.5151238+00:00"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:31:11 GMT + ms-cv: + - GjXwMs1P+U+a0SDP9bffsw.0 + transfer-encoding: + - chunked + x-processing-time: + - 310ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:31:12 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:31:11 GMT + ms-cv: + - p94jcl5bHECnSv4hq3L0RA.0 + transfer-encoding: + - chunked + x-processing-time: + - 145ms + 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:31:13Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20e-a386-d67a-5a3a0d0001c2", + "participants": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Thu, 26 Nov 2020 01:31:13 GMT + ms-cv: diW0SYWc90WNmugc28HlFQ.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 828ms + status: + code: 201 + message: Created + url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 +- request: + body: '{"participants": "sanitized"}' + headers: + Accept: + - application/json + Content-Length: + - '183' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: 2020-11-01-preview3 + content-length: '0' + date: Thu, 26 Nov 2020 01:31:14 GMT + ms-cv: Ce6UfXXIukG9puEZuIugrQ.0 + strict-transport-security: max-age=2592000 + x-processing-time: 398ms + status: + code: 201 + message: Created + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.dev.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 + date: Thu, 26 Nov 2020 01:31:14 GMT + ms-cv: TDBjboMDyEyEdtD+D/peDw.0 + strict-transport-security: max-age=2592000 + x-processing-time: 340ms + status: + code: 204 + message: No Content + url: https://sanitized.dev.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, 26 Nov 2020 01:31:14 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:31:30 GMT + ms-cv: + - 6lyL+ObKy021r/HPY7P2Jg.0 + x-processing-time: + - 16332ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:31:31 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:31:47 GMT + ms-cv: + - ZxtyVQPb8UWOGIEDTW3VHg.0 + x-processing-time: + - 16620ms + status: + code: 204 + message: No Content +version: 1 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 f68e34af7d18..67ac37685204 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:57 GMT + - Thu, 26 Nov 2020 01:31:47 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:57 GMT + - Thu, 26 Nov 2020 01:31:48 GMT ms-cv: - - wdQV/lSBw0uN0UgYNlTfDg.0 - strict-transport-security: - - max-age=2592000 + - E0kfk2LnzEmIwwqQFf1SAw.0 transfer-encoding: - chunked x-processing-time: - - 219ms + - 315ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:48:58 GMT + - Thu, 26 Nov 2020 01:31:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:48:56.5214356+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:31:47.8855465+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:57 GMT + - Thu, 26 Nov 2020 01:31:48 GMT ms-cv: - - UqFVyAX9YEixkIKP3J7UBQ.0 - strict-transport-security: - - max-age=2592000 + - fPlQdobqJE+2Ghq/o7C3jw.0 transfer-encoding: - chunked x-processing-time: - - 278ms + - 389ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:48:58 GMT + - Thu, 26 Nov 2020 01:31:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,45 +102,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:48:57 GMT + - Thu, 26 Nov 2020 01:31:48 GMT ms-cv: - - mToUTQdVHUec9wq5UD6DbQ.0 - strict-transport-security: - - max-age=2592000 + - Is5VPhK6MUGiOavucGXV1w.0 transfer-encoding: - chunked x-processing-time: - - 214ms + - 145ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:31:49Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20f-3156-ea7c-5a3a0d000126", + "participants": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:48:57 GMT - ms-cv: Pl79ryteckyD7/eIWyoc4g.0 + date: Thu, 26 Nov 2020 01:31:49 GMT + ms-cv: 4EQ2dApNHE+7E/Y0/KnG8w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 181ms + x-processing-time: 1313ms status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + code: 201 + message: Created + url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -156,67 +152,67 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:48:58 GMT - ms-cv: wwXa64V02ESSzUp0S2fHXg.0 + date: Thu, 26 Nov 2020 01:31:51 GMT + ms-cv: Azyo2mbep0G21oRxK4H5Eg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 96ms + x-processing-time: 1021ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Wed, 02 Dec 2020 23:48:58 GMT - ms-cv: UMYGLPAwMk29gF0ekSoXmw.0 + date: Thu, 26 Nov 2020 01:31:52 GMT + ms-cv: BKUM4J/qlkylC4La7rM3xQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 134ms + x-processing-time: 398ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.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 - date: Wed, 02 Dec 2020 23:48:58 GMT - ms-cv: rN4TAfZQX0ShISKaQdPZJg.0 + date: Thu, 26 Nov 2020 01:31:51 GMT + ms-cv: 8mhKaV9jr0ykGTyFuMcQPw.0 strict-transport-security: max-age=2592000 - x-processing-time: 90ms + x-processing-time: 291ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -229,13 +225,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:00 GMT + - Thu, 26 Nov 2020 01:31:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -243,13 +239,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:48:59 GMT + - Thu, 26 Nov 2020 01:32:10 GMT ms-cv: - - mxwbB5MM90GtEIYxR8f26w.0 - strict-transport-security: - - max-age=2592000 + - Fv9AOsu5i0mkgl/fDO83aA.0 x-processing-time: - - 862ms + - 18263ms status: code: 204 message: No Content @@ -265,13 +259,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:01 GMT + - Thu, 26 Nov 2020 01:32:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -279,13 +273,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:00 GMT + - Thu, 26 Nov 2020 01:32:27 GMT ms-cv: - - Ze172zvq1EyndD3zTMN/CQ.0 - strict-transport-security: - - max-age=2592000 + - fHBIc+asxEOQh4qvvrLraA.0 x-processing-time: - - 714ms + - 16723ms 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 485ec7eb93fa..f77315b416c7 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:02 GMT + - Thu, 26 Nov 2020 01:32:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:00 GMT + - Thu, 26 Nov 2020 01:32:27 GMT ms-cv: - - zu48Wl0Kfk6OUBVpQ08CvA.0 - strict-transport-security: - - max-age=2592000 + - KkFL319PQUuyl3g0vdL2UA.0 transfer-encoding: - chunked x-processing-time: - - 210ms + - 137ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:49:03 GMT + - Thu, 26 Nov 2020 01:32:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:49:01.0174082+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:32:27.8098648+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:01 GMT + - Thu, 26 Nov 2020 01:32:28 GMT ms-cv: - - oQpARCnnGE2oAIgjfIAYvw.0 - strict-transport-security: - - max-age=2592000 + - JGeP7DAilUSbxjr9giGQRg.0 transfer-encoding: - chunked x-processing-time: - - 285ms + - 300ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:03 GMT + - Thu, 26 Nov 2020 01:32:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,45 +102,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:01 GMT + - Thu, 26 Nov 2020 01:32:28 GMT ms-cv: - - oanTIy+GDEysCij3YYokYg.0 - strict-transport-security: - - max-age=2592000 + - 2n803HlffkKEUMXpkzoHTA.0 transfer-encoding: - chunked x-processing-time: - - 209ms + - 145ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:32:29Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20f-cd91-8a72-5a3a0d0000de", + "participants": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:02 GMT - ms-cv: QfNhINTJhU6JNCcUnefpkg.0 + date: Thu, 26 Nov 2020 01:32:30 GMT + ms-cv: rHpGfRDitUSORdbQjV5NtQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 177ms + x-processing-time: 830ms status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + code: 201 + message: Created + url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -156,70 +152,70 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:02 GMT - ms-cv: x8RIG2jXd0+gIx3YBG9Jyw.0 + date: Thu, 26 Nov 2020 01:32:30 GMT + ms-cv: 5EL9YGpEKkCqTGgN46+mxA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 90ms + x-processing-time: 747ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1606952943205", - "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-12-02T23:49:03Z", + body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1606354350532", + "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-11-26T01:32:30Z", "senderId": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:03 GMT - ms-cv: LTdlLLaAzE68H1ZoWZR4ow.0 + date: Thu, 26 Nov 2020 01:32:31 GMT + ms-cv: Cd8GfPYrEEOqHZIOSv5tKg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 61ms + x-processing-time: 287ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.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 - date: Wed, 02 Dec 2020 23:49:03 GMT - ms-cv: 0uuyBLyiL0ScdJb6dbO1Cw.0 + date: Thu, 26 Nov 2020 01:32:31 GMT + ms-cv: WwLvD7e6YUSygUuast1GHQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 94ms + x-processing-time: 285ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -232,13 +228,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:05 GMT + - Thu, 26 Nov 2020 01:32:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -246,13 +242,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:04 GMT + - Thu, 26 Nov 2020 01:32:48 GMT ms-cv: - - TvIBxZGLb0CR+b34JWDftQ.0 - strict-transport-security: - - max-age=2592000 + - T2GYRZ5aDk+fs+K10t/JlA.0 x-processing-time: - - 1055ms + - 16657ms status: code: 204 message: No Content @@ -268,13 +262,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:06 GMT + - Thu, 26 Nov 2020 01:32:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -282,13 +276,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:04 GMT + - Thu, 26 Nov 2020 01:33:04 GMT ms-cv: - - fmDKuR5sKU6a8I4amar+bg.0 - strict-transport-security: - - max-age=2592000 + - tTyzwTrLxkOKEVqtIdrLSg.0 x-processing-time: - - 428ms + - 16505ms 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 198baa7162ac..1291eb9c0339 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:11 GMT + - Thu, 26 Nov 2020 01:33:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:10 GMT + - Thu, 26 Nov 2020 01:33:04 GMT ms-cv: - - 7ME8TRAENEKehSjODr/QGw.0 - strict-transport-security: - - max-age=2592000 + - SzMURT8+80Cs/aGlxMbIxA.0 transfer-encoding: - chunked x-processing-time: - - 206ms + - 147ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:49:12 GMT + - Thu, 26 Nov 2020 01:33:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:49:09.9850684+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:33:04.8467433+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:10 GMT + - Thu, 26 Nov 2020 01:33:04 GMT ms-cv: - - c2hgPqShoEWiVOtOQZQB/w.0 - strict-transport-security: - - max-age=2592000 + - nd4GBu+14UyPRR4cjpycrA.0 transfer-encoding: - chunked x-processing-time: - - 274ms + - 342ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:12 GMT + - Thu, 26 Nov 2020 01:33:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,45 +102,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:10 GMT + - Thu, 26 Nov 2020 01:33:05 GMT ms-cv: - - tK3bl6NioU+tADWtID9wGQ.0 - strict-transport-security: - - max-age=2592000 + - L2l2f0QRbk+/WoGUDSce7g.0 transfer-encoding: - chunked x-processing-time: - - 203ms + - 146ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:33:06Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a210-5e28-d67a-5a3a0d0001c6", + "participants": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:10 GMT - ms-cv: enzEf1fxJk+/FJoX29owmg.0 + date: Thu, 26 Nov 2020 01:33:06 GMT + ms-cv: S24MhqU7U0asqkuzdWPndQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 193ms + x-processing-time: 838ms status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + code: 201 + message: Created + url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -156,137 +152,137 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:11 GMT - ms-cv: 1RBSMXu6yUW2PSmfjUfQwg.0 + date: Thu, 26 Nov 2020 01:33:07 GMT + ms-cv: bDGQj7B5A0uLjthqKV2/2Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 102ms + x-processing-time: 729ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:13 GMT - ms-cv: UelsWb9O9kaGCPs6VdkwwQ.0 + date: Thu, 26 Nov 2020 01:33:09 GMT + ms-cv: rlEto5Ze7kGF4N9aex4EEw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 76ms + x-processing-time: 268ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:13 GMT - ms-cv: YWRvY/whUUSNVufFPREvkA.0 + date: Thu, 26 Nov 2020 01:33:10 GMT + ms-cv: S5yCOK+gXUm3nyjyKn1s1g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 112ms + x-processing-time: 357ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:13 GMT - ms-cv: gVVFATwqW0Srp9eIHJnPHQ.0 + date: Thu, 26 Nov 2020 01:33:10 GMT + ms-cv: ICHqAILSYkCDIPoEMP6L5A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 117ms + x-processing-time: 368ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:14 GMT - ms-cv: zig9f/IrUEqkjIy1G7eq7A.0 + date: Thu, 26 Nov 2020 01:33:10 GMT + ms-cv: /zr2u9jn902Xwm4a62xszA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 166ms + x-processing-time: 357ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.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 - date: Wed, 02 Dec 2020 23:49:14 GMT - ms-cv: 2DvNW/CRRUe2Rp7NUGSx/Q.0 + date: Thu, 26 Nov 2020 01:33:11 GMT + ms-cv: SvgyDqrx/kaRAnKxBmIbqg.0 strict-transport-security: max-age=2592000 - x-processing-time: 93ms + x-processing-time: 294ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -299,13 +295,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:16 GMT + - Thu, 26 Nov 2020 01:33:12 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -313,13 +309,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:16 GMT + - Thu, 26 Nov 2020 01:33:28 GMT ms-cv: - - LaLObeySHUKZBW7N1cbvUQ.0 - strict-transport-security: - - max-age=2592000 + - l+qbq/n5N0GBkkLEKNYi9Q.0 x-processing-time: - - 1276ms + - 16209ms status: code: 204 message: No Content @@ -335,13 +329,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:18 GMT + - Thu, 26 Nov 2020 01:33:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -349,13 +343,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:17 GMT + - Thu, 26 Nov 2020 01:33:43 GMT ms-cv: - - KYTPvOKohkWYyAMC1ZQUqA.0 - strict-transport-security: - - max-age=2592000 + - K+9l+OPQUkW1e+3cKQfiFw.0 x-processing-time: - - 622ms + - 16048ms 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 new file mode 100644 index 000000000000..f162f3630d5f --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml @@ -0,0 +1,257 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:33:44 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:33:44 GMT + ms-cv: + - y0vL8iGu9kSISUXgKL1SJQ.0 + transfer-encoding: + - chunked + x-processing-time: + - 146ms + 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, 26 Nov 2020 01:33:44 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:33:44.2419698+00:00"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:33:45 GMT + ms-cv: + - vJ/qIPfn2Eqa4DKO12rVWQ.0 + transfer-encoding: + - chunked + x-processing-time: + - 300ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:33:45 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:33:45 GMT + ms-cv: + - H7rgAX/6NkCh0C+eYIpUwA.0 + transfer-encoding: + - chunked + x-processing-time: + - 145ms + 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:33:45Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a210-f826-557d-5a3a0d0000e7", + "participants": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Thu, 26 Nov 2020 01:33:46 GMT + ms-cv: 8Zq+55ejRUi28uPej8ipFQ.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 838ms + status: + code: 201 + message: Created + url: https://sanitized.dev.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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Thu, 26 Nov 2020 01:33:46 GMT + ms-cv: QsPk8Ayoik2kO6GzEByDsA.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 728ms + status: + code: 200 + message: OK + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.dev.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 + date: Thu, 26 Nov 2020 01:33:47 GMT + ms-cv: WgRInbZhnUOfEkcuwLWyNA.0 + strict-transport-security: max-age=2592000 + x-processing-time: 287ms + status: + code: 204 + message: No Content + url: https://sanitized.dev.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, 26 Nov 2020 01:33:47 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:34:03 GMT + ms-cv: + - aLdr7oRxr0+SNMWVdcNlUA.0 + x-processing-time: + - 16341ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:34:04 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:34:19 GMT + ms-cv: + - DNV9Hc695k2+c1TiUkkboA.0 + x-processing-time: + - 16170ms + status: + code: 204 + message: No Content +version: 1 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 3b62ea31575f..9d39f15c1181 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:18 GMT + - Thu, 26 Nov 2020 01:34:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:17 GMT + - Thu, 26 Nov 2020 01:34:19 GMT ms-cv: - - MFA0fCdWf0WD1s2GiIF6OQ.0 - strict-transport-security: - - max-age=2592000 + - qVG5DfgLr02fVLBrSp2pHA.0 transfer-encoding: - chunked x-processing-time: - - 211ms + - 143ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:49:19 GMT + - Thu, 26 Nov 2020 01:34:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:49:17.5284907+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:34:20.1917523+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:18 GMT + - Thu, 26 Nov 2020 01:34:20 GMT ms-cv: - - KfBFTejYlk+ojRPfQYeMjg.0 - strict-transport-security: - - max-age=2592000 + - HO/kaOsySkaNaxovpPkIAQ.0 transfer-encoding: - chunked x-processing-time: - - 285ms + - 298ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:19 GMT + - Thu, 26 Nov 2020 01:34:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,45 +102,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:18 GMT + - Thu, 26 Nov 2020 01:34:20 GMT ms-cv: - - Baa/47Q1fkybaZbIw/uq0g.0 - strict-transport-security: - - max-age=2592000 + - 0HiCWJ+NJ0G+2SahcNmLlA.0 transfer-encoding: - chunked x-processing-time: - - 209ms + - 150ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:34:21Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a211-8498-557d-5a3a0d0000e9", + "participants": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:18 GMT - ms-cv: o8cJpVWVw0CBJgqRFYClIQ.0 + date: Thu, 26 Nov 2020 01:34:21 GMT + ms-cv: rew/+Eh1NE+0AgM80oNhqg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 234ms + x-processing-time: 830ms status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + code: 201 + message: Created + url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -156,23 +152,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:19 GMT - ms-cv: 8bmNykKMgES/bLDPsFSGlA.0 + date: Thu, 26 Nov 2020 01:34:22 GMT + ms-cv: VSZeo9bdgkGAMCBRF6JuoA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 101ms + x-processing-time: 729ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: '{"chatMessageId": "sanitized"}' headers: @@ -183,68 +179,68 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readreceipts?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Wed, 02 Dec 2020 23:49:19 GMT - ms-cv: YaU2bQAQ2UC+/VO58sZFtg.0 + date: Thu, 26 Nov 2020 01:34:23 GMT + ms-cv: ajcsQu2gVkmlpbvy5kJSxA.0 strict-transport-security: max-age=2592000 - x-processing-time: 102ms + x-processing-time: 673ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/chat/threads/sanitized/readreceipts?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readreceipts?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:22 GMT - ms-cv: qh3bQCWQaEunxY5Ph3rHPg.0 + date: Thu, 26 Nov 2020 01:34:25 GMT + ms-cv: vHRuIcrR00G3VL8egyCwDQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 59ms + x-processing-time: 254ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/chat/threads/sanitized/readreceipts?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.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 - date: Wed, 02 Dec 2020 23:49:21 GMT - ms-cv: FjJ4Aqd2Z0+IQAxk9RRYNQ.0 + date: Thu, 26 Nov 2020 01:34:26 GMT + ms-cv: zc7Jrp5E50qsSlzLpPuNsg.0 strict-transport-security: max-age=2592000 - x-processing-time: 90ms + x-processing-time: 293ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -257,13 +253,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:23 GMT + - Thu, 26 Nov 2020 01:34:26 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -271,13 +267,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:22 GMT + - Thu, 26 Nov 2020 01:34:42 GMT ms-cv: - - efHJEr2PCE63FYv7O+VO0Q.0 - strict-transport-security: - - max-age=2592000 + - XQ8vkqFun0WcYBPV9F++/g.0 x-processing-time: - - 607ms + - 16141ms status: code: 204 message: No Content @@ -293,13 +287,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:24 GMT + - Thu, 26 Nov 2020 01:34:43 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -307,13 +301,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:23 GMT + - Thu, 26 Nov 2020 01:34:58 GMT ms-cv: - - 9B5p6RxxZ0WoMuifWIhtlw.0 - strict-transport-security: - - max-age=2592000 + - KV556O+jUkmHGylV2zWLgQ.0 x-processing-time: - - 730ms + - 16302ms 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 new file mode 100644 index 000000000000..d21134bec2be --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml @@ -0,0 +1,283 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:34:59 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:34:59 GMT + ms-cv: + - oQrZbF4GQEypiqfU08s+9w.0 + transfer-encoding: + - chunked + x-processing-time: + - 142ms + 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, 26 Nov 2020 01:34:59 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:34:58.1634305+00:00"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:34:59 GMT + ms-cv: + - n5c2h2z7Vk+4gzHWj68zxA.0 + transfer-encoding: + - chunked + x-processing-time: + - 310ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:35:00 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:35:00 GMT + ms-cv: + - FQK3oL3EG0GsKEqJWVt5Rw.0 + transfer-encoding: + - chunked + x-processing-time: + - 146ms + 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:35:00Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a212-1ccd-d67a-5a3a0d0001cb", + "participants": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Thu, 26 Nov 2020 01:35:01 GMT + ms-cv: RRYgCrWY1ESu0YFD1duVQQ.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 886ms + status: + code: 201 + message: Created + url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 +- request: + body: '{"participants": "sanitized"}' + headers: + Accept: + - application/json + Content-Length: + - '183' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: 2020-11-01-preview3 + content-length: '0' + date: Thu, 26 Nov 2020 01:35:02 GMT + ms-cv: edYRbuxHsUuOg0JW27TZKQ.0 + strict-transport-security: max-age=2592000 + x-processing-time: 403ms + status: + code: 201 + message: Created + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a212-1f00-d67a-5a3a0d0001cc?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: 2020-11-01-preview3 + date: Thu, 26 Nov 2020 01:35:02 GMT + ms-cv: 0fKc3/555kKjnjYNQmwzRQ.0 + strict-transport-security: max-age=2592000 + x-processing-time: 450ms + status: + code: 204 + message: No Content + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a212-1f00-d67a-5a3a0d0001cc?api-version=2020-11-01-preview3 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.dev.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 + date: Thu, 26 Nov 2020 01:35:02 GMT + ms-cv: m6iUQzJRZEG611S2pDe/2Q.0 + strict-transport-security: max-age=2592000 + x-processing-time: 294ms + status: + code: 204 + message: No Content + url: https://sanitized.dev.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, 26 Nov 2020 01:35:02 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:35:18 GMT + ms-cv: + - ZbmySYRAHU6qAiF6JsWz8Q.0 + x-processing-time: + - 16366ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:35:19 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:35:35 GMT + ms-cv: + - tVMr8+mtWU6LZG7uF/yihA.0 + x-processing-time: + - 15791ms + status: + code: 204 + message: No Content +version: 1 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 eb7f861297b2..ebdeb24bcff2 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:30 GMT + - Thu, 26 Nov 2020 01:35:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:29 GMT + - Thu, 26 Nov 2020 01:35:35 GMT ms-cv: - - +8PaTSWVY06U2QBrO6FkCg.0 - strict-transport-security: - - max-age=2592000 + - J7gqJw6bRkCsHfgyy/oTjA.0 transfer-encoding: - chunked x-processing-time: - - 268ms + - 149ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:49:31 GMT + - Thu, 26 Nov 2020 01:35:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:49:29.121514+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:35:35.1844546+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:29 GMT + - Thu, 26 Nov 2020 01:35:36 GMT ms-cv: - - fBXm7ljQskS+Q2IUa1Secg.0 - strict-transport-security: - - max-age=2592000 + - BZDCih5O9k6HnxFKf68K3g.0 transfer-encoding: - chunked x-processing-time: - - 295ms + - 301ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:31 GMT + - Thu, 26 Nov 2020 01:35:36 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,45 +102,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:30 GMT + - Thu, 26 Nov 2020 01:35:36 GMT ms-cv: - - WynRQVRPt0ec0bBm8M87jA.0 - strict-transport-security: - - max-age=2592000 + - YQNACfJlA0qC3+bhjRWniQ.0 transfer-encoding: - chunked x-processing-time: - - 220ms + - 144ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:35:36Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a212-a997-d67a-5a3a0d0001cd", + "participants": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:30 GMT - ms-cv: bZFdHSIFBEK8vnf8e3xUtA.0 + date: Thu, 26 Nov 2020 01:35:36 GMT + ms-cv: Pc4d/2p2pE+ndamI7Q/yyw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 152ms + x-processing-time: 836ms status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + code: 201 + message: Created + url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -156,45 +152,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:30 GMT - ms-cv: Cn+CKyy59UWPGNXmKkvxsA.0 + date: Thu, 26 Nov 2020 01:35:38 GMT + ms-cv: jesVyMlSfkShPs3vk9dWTw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 93ms + x-processing-time: 713ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.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 - date: Wed, 02 Dec 2020 23:49:31 GMT - ms-cv: e2ldsvxP2kaoVBv+YyBU4Q.0 + date: Thu, 26 Nov 2020 01:35:38 GMT + ms-cv: 2Zyr3xwjbEOSZuQN3pYT2w.0 strict-transport-security: max-age=2592000 - x-processing-time: 88ms + x-processing-time: 291ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -207,13 +203,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:32 GMT + - Thu, 26 Nov 2020 01:35:38 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -221,13 +217,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:32 GMT + - Thu, 26 Nov 2020 01:35:54 GMT ms-cv: - - 4D6dsqY9XE2tDXSwPCkyCQ.0 - strict-transport-security: - - max-age=2592000 + - Xdx00sbXlU+b3aOJ8LxyPQ.0 x-processing-time: - - 1008ms + - 16683ms status: code: 204 message: No Content @@ -243,13 +237,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:33 GMT + - Thu, 26 Nov 2020 01:35:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -257,13 +251,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:32 GMT + - Thu, 26 Nov 2020 01:36:10 GMT ms-cv: - - DK38g/F6nEyTEKhvBQeaMg.0 - strict-transport-security: - - max-age=2592000 + - HjmmS6PM8E2QVUJev7Im7Q.0 x-processing-time: - - 535ms + - 15625ms 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 fb8c7f976b5d..4fd8fb12eac8 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:34 GMT + - Thu, 26 Nov 2020 01:36:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:33 GMT + - Thu, 26 Nov 2020 01:36:10 GMT ms-cv: - - EqUHOOM990aKfceOp0+UNw.0 - strict-transport-security: - - max-age=2592000 + - k2q749trqEqL2UDw50CM0A.0 transfer-encoding: - chunked x-processing-time: - - 210ms + - 144ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:49:35 GMT + - Thu, 26 Nov 2020 01:36:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:49:33.3418379+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:36:10.8133027+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:34 GMT + - Thu, 26 Nov 2020 01:36:11 GMT ms-cv: - - C3qV6vRLPkyZE0CzgYYOsA.0 - strict-transport-security: - - max-age=2592000 + - pZs4QVOs1k6SJgcVZ6AXvw.0 transfer-encoding: - chunked x-processing-time: - - 277ms + - 303ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:35 GMT + - Thu, 26 Nov 2020 01:36:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,45 +102,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:34 GMT + - Thu, 26 Nov 2020 01:36:11 GMT ms-cv: - - g6S/+1jL5kuxzttgUMn3/w.0 - strict-transport-security: - - max-age=2592000 + - 9xvyVE1JsUeIC0/dijFQjA.0 transfer-encoding: - chunked x-processing-time: - - 204ms + - 147ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '200' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:36:12Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a213-34b8-d67a-5a3a0d0001cf", + "participants": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:34 GMT - ms-cv: +aMkagNeI0uz+22koAwIlQ.0 + date: Thu, 26 Nov 2020 01:36:12 GMT + ms-cv: 8kp0E64MxkafYOfwcXKP3Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 184ms + x-processing-time: 823ms status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + code: 201 + message: Created + url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -156,23 +152,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:35 GMT - ms-cv: As/Nx6uGm0ieq9pJB9UCYQ.0 + date: Thu, 26 Nov 2020 01:36:13 GMT + ms-cv: +MnzAI1IZkCAUA7Sw3/RcQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 101ms + x-processing-time: 696ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: '{"chatMessageId": "sanitized"}' headers: @@ -183,45 +179,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readreceipts?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Wed, 02 Dec 2020 23:49:35 GMT - ms-cv: O1vfleRhn06HhPQxFA4BVw.0 + date: Thu, 26 Nov 2020 01:36:14 GMT + ms-cv: np6O1exdTkmdY6jpelGRCQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 132ms + x-processing-time: 1054ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/chat/threads/sanitized/readreceipts?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.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 - date: Wed, 02 Dec 2020 23:49:35 GMT - ms-cv: k/Z5h7zVaEKh02fSxpziuA.0 + date: Thu, 26 Nov 2020 01:36:14 GMT + ms-cv: wVU4WewVYEeim0TbvPteKA.0 strict-transport-security: max-age=2592000 - x-processing-time: 84ms + x-processing-time: 291ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -234,13 +230,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:37 GMT + - Thu, 26 Nov 2020 01:36:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -248,13 +244,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:36 GMT + - Thu, 26 Nov 2020 01:36:31 GMT ms-cv: - - Hx6vyiNcNU+Cvg6fQrfH7Q.0 - strict-transport-security: - - max-age=2592000 + - jGmnRPPi4U2r3B5fI2TvAg.0 x-processing-time: - - 717ms + - 16665ms status: code: 204 message: No Content @@ -270,13 +264,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:38 GMT + - Thu, 26 Nov 2020 01:36:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -284,13 +278,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:37 GMT + - Thu, 26 Nov 2020 01:36:48 GMT ms-cv: - - MahryC6U5EiPJBP/sKQZzw.0 - strict-transport-security: - - max-age=2592000 + - bR3F85hcqEGnM3hyhGekCw.0 x-processing-time: - - 545ms + - 15998ms 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 2d49bce69a03..7bc6460edd8a 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:39 GMT + - Thu, 26 Nov 2020 01:36:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:38 GMT + - Thu, 26 Nov 2020 01:36:48 GMT ms-cv: - - 7Jt2dt5lX0uFPkqrKMCPGQ.0 - strict-transport-security: - - max-age=2592000 + - 5dfd6S68+0ON0FgQKe2BHA.0 transfer-encoding: - chunked x-processing-time: - - 207ms + - 147ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:49:39 GMT + - Thu, 26 Nov 2020 01:36:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:49:37.7069043+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:36:47.9731258+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:38 GMT + - Thu, 26 Nov 2020 01:36:48 GMT ms-cv: - - b07vxOLR7021fMgzSIYZgQ.0 - strict-transport-security: - - max-age=2592000 + - ARI2J6FfUUeacfogHwIBuA.0 transfer-encoding: - chunked x-processing-time: - - 279ms + - 305ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:40 GMT + - Thu, 26 Nov 2020 01:36:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,90 +102,90 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:38 GMT + - Thu, 26 Nov 2020 01:36:48 GMT ms-cv: - - Rklj6F97LU2alkqFPs8RCw.0 - strict-transport-security: - - max-age=2592000 + - gOo1oxdvV0iEEMdquiWLnQ.0 transfer-encoding: - chunked x-processing-time: - - 204ms + - 147ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:36:49Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a213-c5d3-d67a-5a3a0d0001d1", + "participants": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:38 GMT - ms-cv: nHnPDZ9zske5zVqEeo1Rwg.0 + date: Thu, 26 Nov 2020 01:36:49 GMT + ms-cv: hVsPHh2h7UCb4zyTr4V09A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 171ms + x-processing-time: 819ms status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + code: 201 + message: Created + url: https://sanitized.dev.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.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/typing?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Wed, 02 Dec 2020 23:49:38 GMT - ms-cv: g2ibz0Lg70qp85EMy6B76g.0 + date: Thu, 26 Nov 2020 01:36:49 GMT + ms-cv: Ugs6QMBZB0Sa0KjcVdJ/OA.0 strict-transport-security: max-age=2592000 - x-processing-time: 83ms + x-processing-time: 350ms status: code: 200 message: OK - url: https://sanitized.communication.azure.com/chat/threads/sanitized/typing?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.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 - date: Wed, 02 Dec 2020 23:49:39 GMT - ms-cv: T3jidqAjOkOL9Ni1PTjgXQ.0 + date: Thu, 26 Nov 2020 01:36:50 GMT + ms-cv: jfiKGmFYIkKtmUX49ENjWQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 79ms + x-processing-time: 293ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -202,13 +198,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:41 GMT + - Thu, 26 Nov 2020 01:36:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -216,13 +212,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:40 GMT + - Thu, 26 Nov 2020 01:37:06 GMT ms-cv: - - sljkjsu7PEyQDqQfm6CNkQ.0 - strict-transport-security: - - max-age=2592000 + - RZoO3HhFo0OwIv5gA1twZA.0 x-processing-time: - - 717ms + - 16249ms status: code: 204 message: No Content @@ -238,13 +232,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:42 GMT + - Thu, 26 Nov 2020 01:37:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -252,13 +246,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:41 GMT + - Thu, 26 Nov 2020 01:37:22 GMT ms-cv: - - k0P4W17ddEe7ENijf1dIkg.0 - strict-transport-security: - - max-age=2592000 + - HwAld85ROEuFlUgOzhOl8w.0 x-processing-time: - - 703ms + - 15724ms 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 d81271abf4c1..f87e84004dd7 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,13 +11,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:43 GMT + - Thu, 26 Nov 2020 01:37:23 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -26,15 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:41 GMT + - Thu, 26 Nov 2020 01:37:23 GMT ms-cv: - - N73rrWjhBkGSrNEbCrP6dg.0 - strict-transport-security: - - max-age=2592000 + - pr4hJTNfY02Ob3HQWgo0+Q.0 transfer-encoding: - chunked x-processing-time: - - 209ms + - 193ms status: code: 200 message: OK @@ -52,30 +50,28 @@ interactions: Content-Type: - application/json Date: - - Wed, 02 Dec 2020 23:49:43 GMT + - Thu, 26 Nov 2020 01:37:23 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:49:41.6235498+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:37:22.5212159+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:41 GMT + - Thu, 26 Nov 2020 01:37:23 GMT ms-cv: - - f07EHbw410O2qeMWD4ROjg.0 - strict-transport-security: - - max-age=2592000 + - Fx82Mbw6nECeET5we1lTmQ.0 transfer-encoding: - chunked x-processing-time: - - 287ms + - 799ms status: code: 200 message: OK @@ -91,13 +87,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:44 GMT + - Thu, 26 Nov 2020 01:37:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST - uri: https://sanitized.communication.azure.com/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: @@ -106,45 +102,45 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 02 Dec 2020 23:49:42 GMT + - Thu, 26 Nov 2020 01:37:24 GMT ms-cv: - - A+AAztbiYkuydc+P4qGkBQ.0 - strict-transport-security: - - max-age=2592000 + - iZCNwDoNr0aswypDFZtPbw.0 transfer-encoding: - chunked x-processing-time: - - 208ms + - 147ms status: code: 200 message: OK - request: - body: '{"topic": "test topic", "members": "sanitized"}' + body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '201' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"multipleStatus": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:37:25Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a214-4ec4-557d-5a3a0d0000eb", + "participants": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:42 GMT - ms-cv: 5loZ2TqpTEm0pLkv/dqqwg.0 + date: Thu, 26 Nov 2020 01:37:24 GMT + ms-cv: Jx6RuC+vCUGEGH3W1Rd2uw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 181ms + x-processing-time: 824ms status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 + code: 201 + message: Created + url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -156,23 +152,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:42 GMT - ms-cv: chFV9Sahr0Wlk83TRzePYA.0 + date: Thu, 26 Nov 2020 01:37:26 GMT + ms-cv: s5ds7ENduUW3IcrgyAHc2w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 129ms + x-processing-time: 1189ms status: code: 201 message: Created - url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: '{"content": "updated message content"}' headers: @@ -181,47 +177,46 @@ interactions: Content-Length: - '38' Content-Type: - - application/json + - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - content-length: '0' - date: Wed, 02 Dec 2020 23:49:43 GMT - ms-cv: NBx6Y45IU0uLuc8c8lOR0Q.0 + date: Thu, 26 Nov 2020 01:37:27 GMT + ms-cv: ADPtiWXcvUGsA+NIakBLVg.0 strict-transport-security: max-age=2592000 - x-processing-time: 150ms + x-processing-time: 644ms status: - code: 200 - message: OK - url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2020-09-21-preview2 + code: 204 + message: No Content + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + uri: https://sanitized.dev.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 - date: Wed, 02 Dec 2020 23:49:43 GMT - ms-cv: HKK87HnDKkKZg0QNYkB9Ow.0 + date: Thu, 26 Nov 2020 01:37:27 GMT + ms-cv: 89G73Qkbzk2xsrd+NB2pew.0 strict-transport-security: max-age=2592000 - x-processing-time: 83ms + x-processing-time: 297ms status: code: 204 message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -234,13 +229,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:45 GMT + - Thu, 26 Nov 2020 01:37:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -248,13 +243,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:44 GMT + - Thu, 26 Nov 2020 01:37:44 GMT ms-cv: - - o+7XSgI0a0W7uiRuXA2eQw.0 - strict-transport-security: - - max-age=2592000 + - Do0PbPBpokuzAtYTRVnGEQ.0 x-processing-time: - - 977ms + - 16576ms status: code: 204 message: No Content @@ -270,13 +263,13 @@ interactions: Content-Length: - '0' Date: - - Wed, 02 Dec 2020 23:49:46 GMT + - Thu, 26 Nov 2020 01:37:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' @@ -284,13 +277,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Wed, 02 Dec 2020 23:49:45 GMT + - Thu, 26 Nov 2020 01:38:01 GMT ms-cv: - - nNACx7udx0moIlSNnZSOrA.0 - strict-transport-security: - - max-age=2592000 + - 6QuQdG+lOU2AvQ4gESHRCg.0 x-processing-time: - - 819ms + - 16160ms 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 new file mode 100644 index 000000000000..8cbebdb95275 --- /dev/null +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml @@ -0,0 +1,260 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:38:01 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:38:01 GMT + ms-cv: + - xOTsMZpPDE6VSFdb4pUG9g.0 + transfer-encoding: + - chunked + x-processing-time: + - 145ms + 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, 26 Nov 2020 01:38:01 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:38:01.2688559+00:00"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:38:01 GMT + ms-cv: + - xAGb2zCDrk2Ic8aWRhHLPg.0 + transfer-encoding: + - chunked + x-processing-time: + - 307ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:38:02 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: POST + uri: https://sanitized.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 26 Nov 2020 01:38:01 GMT + ms-cv: + - Y/yo9RuBmUOZRSjZTQC0oQ.0 + transfer-encoding: + - chunked + x-processing-time: + - 146ms + 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.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:38:02Z", + "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a214-e42a-557d-5a3a0d0000ed", + "participants": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Thu, 26 Nov 2020 01:38:03 GMT + ms-cv: ikYbvwWd0EeQKe0qSkCWTw.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 835ms + status: + code: 201 + message: Created + url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 +- request: + body: '{"topic": "update topic"}' + headers: + Accept: + - application/json + Content-Length: + - '25' + Content-Type: + - application/merge-patch+json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://sanitized.dev.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 + date: Thu, 26 Nov 2020 01:38:04 GMT + ms-cv: B9zAEHFeoEWGADIp0yKqGQ.0 + strict-transport-security: max-age=2592000 + x-processing-time: 402ms + status: + code: 204 + message: No Content + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: DELETE + uri: https://sanitized.dev.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 + date: Thu, 26 Nov 2020 01:38:04 GMT + ms-cv: cDCCSUJ76kKa8dg8Xs/naA.0 + strict-transport-security: max-age=2592000 + x-processing-time: 297ms + status: + code: 204 + message: No Content + url: https://sanitized.dev.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, 26 Nov 2020 01:38:04 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:38:21 GMT + ms-cv: + - SnhqKrzJHkicq9V0u8C5Dg.0 + x-processing-time: + - 16662ms + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Date: + - Thu, 26 Nov 2020 01:38:21 GMT + User-Agent: + - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + x-ms-return-client-request-id: + - 'true' + method: DELETE + uri: https://sanitized.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + date: + - Thu, 26 Nov 2020 01:38:36 GMT + ms-cv: + - RFQIEh9xhkaGo9n3KT4dmg.0 + x-processing-time: + - 15852ms + status: + code: 204 + message: No Content +version: 1 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 b38c1936aace..6f7d336a9fdc 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client.py @@ -11,7 +11,7 @@ from msrest.serialization import TZ_UTC from azure.communication.chat import ( ChatClient, - ChatThreadMember, + ChatThreadParticipant, CommunicationUserIdentifier, CommunicationTokenCredential ) @@ -37,19 +37,19 @@ def test_create_chat_thread(self): raised = False def mock_send(*_, **__): - return mock_response(status_code=207, json_payload={"multipleStatus": [{"id": thread_id, "statusCode": 201, "type": "Thread"}]}) + return mock_response(status_code=201, json_payload={"id": thread_id}) chat_client = ChatClient("https://endpoint", TestChatClient.credential, transport=Mock(send=mock_send)) topic="test topic" user = CommunicationUserIdentifier("8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041") - members=[ChatThreadMember( + participants=[ChatThreadParticipant( user=user, display_name='name', share_history_time=datetime.utcnow() )] try: - chat_thread_client = chat_client.create_chat_thread(topic, members) + chat_thread_client = chat_client.create_chat_thread(topic, participants) except: raised = True raise @@ -64,13 +64,13 @@ def mock_send(*_, **__): topic="test topic", user = CommunicationUserIdentifier("8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041") - thread_members=[ChatThreadMember( + thread_participants=[ChatThreadParticipant( user=user, display_name='name', share_history_time=datetime.utcnow() )] - self.assertRaises(HttpResponseError, chat_client.create_chat_thread, topic=topic, thread_members=thread_members) + self.assertRaises(HttpResponseError, chat_client.create_chat_thread, topic=topic, thread_participants=thread_participants) def test_delete_chat_thread(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" @@ -95,7 +95,7 @@ def mock_send(*_, **__): return mock_response(status_code=200, json_payload={ "id": thread_id, "created_by": "8:acs:resource_user", - "members": [{"id": "", "display_name": "name", "share_history_time": "1970-01-01T00:00:00Z"}] + "participants": [{"id": "", "display_name": "name", "share_history_time": "1970-01-01T00:00:00Z"}] }) chat_client = ChatClient("https://endpoint", TestChatClient.credential, transport=Mock(send=mock_send)) diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py index 2a409042748f..1892166ee530 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 @@ -6,10 +6,10 @@ from azure.core.credentials import AccessToken from azure.communication.chat.aio import ( ChatClient, - CommunicationTokenCredential + CommunicationUserCredential ) from azure.communication.chat import ( - ChatThreadMember, + ChatThreadParticipant, CommunicationUserIdentifier ) from unittest_helpers import mock_response @@ -32,18 +32,18 @@ async def test_create_chat_thread(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" async def mock_send(*_, **__): - return mock_response(status_code=207, json_payload={"multipleStatus": [{"id": thread_id, "statusCode": 201, "type": "Thread"}]}) + return mock_response(status_code=201, json_payload={"id": thread_id}) chat_client = ChatClient("https://endpoint", credential, transport=Mock(send=mock_send)) topic="test topic" user = CommunicationUserIdentifier("8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041") - members=[ChatThreadMember( + participants=[ChatThreadParticipant( user=user, display_name='name', share_history_time=datetime.utcnow() )] - chat_thread_client = await chat_client.create_chat_thread(topic, members) + chat_thread_client = await chat_client.create_chat_thread(topic, participants) assert chat_thread_client.thread_id == thread_id @pytest.mark.asyncio @@ -54,7 +54,7 @@ async def mock_send(*_, **__): topic="test topic", user = CommunicationUserIdentifier("8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041") - members=[ChatThreadMember( + participants=[ChatThreadParticipant( user=user, display_name='name', share_history_time=datetime.utcnow() @@ -62,7 +62,7 @@ async def mock_send(*_, **__): raised = False try: - await chat_client.create_chat_thread(topic=topic, thread_members=members) + await chat_client.create_chat_thread(topic=topic, thread_participants=participants) except: raised = True @@ -94,7 +94,7 @@ async def mock_send(*_, **__): return mock_response(status_code=200, json_payload={ "id": thread_id, "created_by": "8:acs:resource_user", - "members": [{"id": "", "display_name": "name", "share_history_time": "1970-01-01T00:00:00Z"}] + "participants": [{"id": "", "display_name": "name", "share_history_time": "1970-01-01T00:00:00Z"}] }) chat_client = ChatClient("https://endpoint", credential, transport=Mock(send=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 0036d0b263f4..9ce2168159fa 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 @@ -15,7 +15,7 @@ ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions, - ChatThreadMember + ChatThreadParticipant ) from azure.communication.chat._shared.utils import parse_connection_str @@ -33,7 +33,7 @@ def setUp(self): super(ChatClientTest, self).setUp() self.recording_processors.extend([ - BodyReplacerProcessor(keys=["id", "token", "createdBy", "members", "multipleStatus", "value"]), + BodyReplacerProcessor(keys=["id", "token", "createdBy", "participants", "multipleStatus", "value"]), URIIdentityReplacer(), ChatURIReplacer()]) @@ -65,12 +65,12 @@ def _create_thread(self): topic = "test topic" share_history_time = datetime.utcnow() share_history_time = share_history_time.replace(tzinfo=TZ_UTC) - members = [ChatThreadMember( + participants = [ChatThreadParticipant( user=self.user, display_name='name', share_history_time=share_history_time )] - chat_thread_client = self.chat_client.create_chat_thread(topic, members) + chat_thread_client = self.chat_client.create_chat_thread(topic, participants) self.thread_id = chat_thread_client.thread_id @pytest.mark.live_test_only 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 72f727dcaeec..68b76cc6d5f0 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 @@ -16,7 +16,7 @@ CommunicationTokenRefreshOptions ) from azure.communication.chat import ( - ChatThreadMember + ChatThreadParticipant ) from azure.communication.identity._shared.utils import parse_connection_str from azure_devtools.scenario_tests import RecordingProcessor @@ -31,7 +31,7 @@ def setUp(self): super(ChatClientTestAsync, self).setUp() self.recording_processors.extend([ - BodyReplacerProcessor(keys=["id", "token", "createdBy", "members", "multipleStatus", "value"]), + BodyReplacerProcessor(keys=["id", "token", "createdBy", "participants", "multipleStatus", "value"]), URIIdentityReplacer(), ResponseReplacerProcessor(keys=[self._resource_name]), ChatURIReplacer()]) @@ -62,12 +62,12 @@ async def _create_thread(self): topic = "test topic" share_history_time = datetime.utcnow() share_history_time = share_history_time.replace(tzinfo=TZ_UTC) - members = [ChatThreadMember( + participants = [ChatThreadParticipant( user=self.user, display_name='name', share_history_time=share_history_time )] - chat_thread_client = await self.chat_client.create_chat_thread(topic, members) + chat_thread_client = await self.chat_client.create_chat_thread(topic, participants) self.thread_id = chat_thread_client.thread_id @pytest.mark.live_test_only 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 b3cc8f3b4dfd..14ecd7dc574f 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 @@ -12,7 +12,7 @@ from azure.communication.chat import ( ChatThreadClient, ChatMessagePriority, - ChatThreadMember, + ChatThreadParticipant, CommunicationUserIdentifier, CommunicationTokenCredential ) @@ -30,17 +30,17 @@ def setUpClass(cls, credential): credential.get_token = Mock(return_value=AccessToken("some_token", datetime.now().replace(tzinfo=TZ_UTC))) TestChatThreadClient.credential = credential - def test_update_thread(self): + def test_update_topic(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" raised = False def mock_send(*_, **__): - return mock_response(status_code=200) + return mock_response(status_code=204) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) topic = "update topic" try: - chat_thread_client.update_thread(topic=topic) + chat_thread_client.update_topic(topic=topic) except: raised = True @@ -61,7 +61,7 @@ def mock_send(*_, **__): content='hello world' sender_display_name='sender name' - create_message_result = chat_thread_client.send_message( + create_message_result_id = chat_thread_client.send_message( content, priority=priority, sender_display_name=sender_display_name) @@ -69,7 +69,7 @@ def mock_send(*_, **__): raised = True self.assertFalse(raised, 'Expected is no excpetion raised') - assert create_message_result.id == message_id + assert create_message_result_id == message_id def test_get_message(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" @@ -141,7 +141,7 @@ def test_update_message(self): raised = False def mock_send(*_, **__): - return mock_response(status_code=200) + return mock_response(status_code=204) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) try: @@ -168,52 +168,73 @@ def mock_send(*_, **__): self.assertFalse(raised, 'Expected is no excpetion raised') - def test_list_members(self): + def test_list_participants(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" - member_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" raised = False def mock_send(*_, **__): - return mock_response(status_code=200, json_payload={"value": [{"id": member_id}]}) + return mock_response(status_code=200, json_payload={"value": [{"id": participant_id}]}) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) - chat_thread_members = None + chat_thread_participants = None try: - chat_thread_members = chat_thread_client.list_members() + chat_thread_participants = chat_thread_client.list_participants() except: raised = True self.assertFalse(raised, 'Expected is no excpetion raised') - for chat_thread_member_page in chat_thread_members.by_page(): - l = list(chat_thread_member_page) + for chat_thread_participant_page in chat_thread_participants.by_page(): + l = list(chat_thread_participant_page) assert len(l) == 1 - l[0].user.id = member_id + l[0].user.id = participant_id - def test_add_members(self): + def test_add_participant(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" - new_member_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + new_participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" raised = False def mock_send(*_, **__): - return mock_response(status_code=207) + return mock_response(status_code=201) + chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) + + new_participant = ChatThreadParticipant( + user=CommunicationUser(new_participant_id), + display_name='name', + share_history_time=datetime.utcnow()) + + try: + chat_thread_client.add_participant(new_participant) + except: + raised = True + + self.assertFalse(raised, 'Expected is no excpetion raised') + + def test_add_participants(self): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + new_participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + raised = False + + def mock_send(*_, **__): + return mock_response(status_code=201) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) - new_member = ChatThreadMember( - user=CommunicationUserIdentifier(new_member_id), + new_participant = ChatThreadParticipant( + user=CommunicationUserIdentifier(new_participant_id), display_name='name', share_history_time=datetime.utcnow()) - members = [new_member] + participants = [new_participant] try: - chat_thread_client.add_members(members) + chat_thread_client.add_participants(participants) except: raised = True self.assertFalse(raised, 'Expected is no excpetion raised') - def test_remove_member(self): + def test_remove_participant(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" - member_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" raised = False def mock_send(*_, **__): @@ -221,7 +242,7 @@ def mock_send(*_, **__): chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) try: - chat_thread_client.remove_member(CommunicationUserIdentifier(member_id)) + chat_thread_client.remove_participant(CommunicationUserIdentifier(participant_id)) except: raised = True 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 946cbed5160a..6448b6867059 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 @@ -9,7 +9,7 @@ from azure.communication.chat.aio import ChatThreadClient from azure.communication.chat import ( ChatMessagePriority, - ChatThreadMember, + ChatThreadParticipant, CommunicationUserIdentifier, ) from unittest_helpers import mock_response @@ -26,17 +26,17 @@ credential.get_token = Mock(return_value=AccessToken("some_token", datetime.now().replace(tzinfo=TZ_UTC))) @pytest.mark.asyncio -async def test_update_thread(): +async def test_update_topic(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" raised = False async def mock_send(*_, **__): - return mock_response(status_code=200) + return mock_response(status_code=204) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) topic = "update topic" try: - await chat_thread_client.update_thread(topic=topic) + await chat_thread_client.update_topic(topic=topic) except: raised = True @@ -52,13 +52,13 @@ 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 = None + create_message_result_id = None try: priority=ChatMessagePriority.NORMAL content='hello world' sender_display_name='sender name' - create_message_result = await chat_thread_client.send_message( + create_message_result_id = await chat_thread_client.send_message( content, priority=priority, sender_display_name=sender_display_name) @@ -66,7 +66,7 @@ async def mock_send(*_, **__): raised = True assert raised == False - assert create_message_result.id == message_id + assert create_message_result_id == message_id @pytest.mark.asyncio async def test_get_message(): @@ -149,7 +149,7 @@ async def test_update_message(): raised = False async def mock_send(*_, **__): - return mock_response(status_code=200) + return mock_response(status_code=204) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) try: @@ -178,56 +178,78 @@ async def mock_send(*_, **__): assert raised == False @pytest.mark.asyncio -async def test_list_members(): +async def test_list_participants(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" - member_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" raised = False async def mock_send(*_, **__): - return mock_response(status_code=200, json_payload={"value": [{"id": member_id}]}) + return mock_response(status_code=200, json_payload={"value": [{"id": participant_id}]}) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) - chat_thread_members = None + chat_thread_participants = None try: - chat_thread_members = chat_thread_client.list_members() + chat_thread_participants = chat_thread_client.list_participants() except: raised = True assert raised == False items = [] - async for item in chat_thread_members: + async for item in chat_thread_participants: items.append(item) assert len(items) == 1 @pytest.mark.asyncio -async def test_add_members(): +async def test_add_participant(): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + new_participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + raised = False + + async def mock_send(*_, **__): + return mock_response(status_code=201) + chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) + + new_participant = ChatThreadParticipant( + user=CommunicationUserIdentifier(new_participant_id), + display_name='name', + share_history_time=datetime.utcnow()) + + try: + await chat_thread_client.add_participant(new_participant) + except: + raised = True + + assert raised == False + +@pytest.mark.asyncio +async def test_add_participants(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" - new_member_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + new_participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" raised = False async def mock_send(*_, **__): - return mock_response(status_code=207) + return mock_response(status_code=201) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) - new_member = ChatThreadMember( - user=CommunicationUserIdentifier(new_member_id), + new_participant = ChatThreadParticipant( + user=CommunicationUser(new_participant_id), display_name='name', share_history_time=datetime.utcnow()) - members = [new_member] + participants = [new_participant] try: - await chat_thread_client.add_members(members) + await chat_thread_client.add_participants(participants) except: raised = True assert raised == False @pytest.mark.asyncio -async def test_remove_member(): +async def test_remove_participant(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" - member_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" raised = False async def mock_send(*_, **__): @@ -235,7 +257,7 @@ async def mock_send(*_, **__): chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) try: - await chat_thread_client.remove_member(CommunicationUserIdentifier(member_id)) + await chat_thread_client.remove_participant(CommunicationUserIdentifier(participant_id)) except: raised = True 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 eadf9f8114ab..503825bb9dcd 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, CommunicationTokenCredential, CommunicationTokenRefreshOptions, - ChatThreadMember, + ChatThreadParticipant, ChatMessagePriority ) from azure.communication.chat._shared.utils import parse_connection_str @@ -33,7 +33,7 @@ class ChatThreadClientTest(CommunicationTestCase): def setUp(self): super(ChatThreadClientTest, self).setUp() self.recording_processors.extend([ - BodyReplacerProcessor(keys=["id", "token", "senderId", "chatMessageId", "nextLink", "members", "multipleStatus", "value"]), + BodyReplacerProcessor(keys=["id", "token", "senderId", "chatMessageId", "nextLink", "participants", "multipleStatus", "value"]), URIIdentityReplacer(), ChatURIReplacer()]) @@ -69,12 +69,12 @@ def _create_thread(self): topic = "test topic" share_history_time = datetime.utcnow() share_history_time = share_history_time.replace(tzinfo=TZ_UTC) - members = [ChatThreadMember( + participants = [ChatThreadParticipant( user=self.user, display_name='name', share_history_time=share_history_time )] - self.chat_thread_client = self.chat_client.create_chat_thread(topic, members) + self.chat_thread_client = self.chat_client.create_chat_thread(topic, participants) self.thread_id = self.chat_thread_client.thread_id @pytest.mark.live_test_only @@ -83,17 +83,17 @@ def _send_message(self): priority = ChatMessagePriority.NORMAL content = 'hello world' sender_display_name = 'sender name' - create_message_result = self.chat_thread_client.send_message( + create_message_result_id = self.chat_thread_client.send_message( content, priority=priority, sender_display_name=sender_display_name) - self.message_id = create_message_result.id + self.message_id = create_message_result_id @pytest.mark.live_test_only - def test_update_thread(self): + def test_update_topic(self): self._create_thread() topic = "update topic" - self.chat_thread_client.update_thread(topic=topic) + self.chat_thread_client.update_topic(topic=topic) @pytest.mark.live_test_only def test_send_message(self): @@ -103,12 +103,12 @@ def test_send_message(self): content = 'hello world' sender_display_name = 'sender name' - create_message_result = self.chat_thread_client.send_message( + 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 + assert create_message_result_id is not None @pytest.mark.live_test_only def test_get_message(self): @@ -146,49 +146,62 @@ def test_delete_message(self): self.chat_thread_client.delete_message(self.message_id) @pytest.mark.live_test_only - def test_list_members(self): + def test_list_participants(self): self._create_thread() if self.is_live: time.sleep(2) - chat_thread_members = self.chat_thread_client.list_members() + chat_thread_participants = self.chat_thread_client.list_participants() - for chat_thread_member_page in chat_thread_members.by_page(): - li = list(chat_thread_member_page) + for chat_thread_participant_page in chat_thread_participants.by_page(): + li = list(chat_thread_participant_page) assert len(li) == 1 li[0].user.id = self.user.identifier @pytest.mark.live_test_only - def test_add_members(self): + def test_add_participant(self): self._create_thread() share_history_time = datetime.utcnow() share_history_time = share_history_time.replace(tzinfo=TZ_UTC) - new_member = ChatThreadMember( + new_participant = ChatThreadParticipant( + user=self.new_user, + display_name='name', + share_history_time=share_history_time) + + self.chat_thread_client.add_participant(new_participant) + + @pytest.mark.live_test_only + def test_add_participants(self): + self._create_thread() + + share_history_time = datetime.utcnow() + share_history_time = share_history_time.replace(tzinfo=TZ_UTC) + new_participant = ChatThreadParticipant( user=self.new_user, display_name='name', share_history_time=share_history_time) - members = [new_member] + participants = [new_participant] - self.chat_thread_client.add_members(members) + self.chat_thread_client.add_participants(participants) @pytest.mark.live_test_only - def test_remove_member(self): + def test_remove_participant(self): self._create_thread() - # add member first + # add participant first share_history_time = datetime.utcnow() share_history_time = share_history_time.replace(tzinfo=TZ_UTC) - new_member = ChatThreadMember( + new_participant = ChatThreadParticipant( user=self.new_user, display_name='name', share_history_time=share_history_time) - members = [new_member] + participants = [new_participant] - self.chat_thread_client.add_members(members) + self.chat_thread_client.add_participants(participants) - # test remove member - self.chat_thread_client.remove_member(self.new_user) + # test remove participant + self.chat_thread_client.remove_participant(self.new_user) @pytest.mark.live_test_only def test_send_typing_notification(self): @@ -196,3 +209,27 @@ def test_send_typing_notification(self): self.chat_thread_client.send_typing_notification() + @pytest.mark.live_test_only + def test_send_read_receipt(self): + self._create_thread() + self._send_message() + + self.chat_thread_client.send_read_receipt(self.message_id) + + @pytest.mark.live_test_only + def test_list_read_receipts(self): + self._create_thread() + self._send_message() + + # send read receipts first + self.chat_thread_client.send_read_receipt(self.message_id) + if self.is_live: + time.sleep(2) + + # list read receipts + read_receipts = self.chat_thread_client.list_read_receipts() + + items = [] + for item in read_receipts: + items.append(item) + assert len(items) > 0 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 e3deffa02236..25eaef996e96 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 @@ CommunicationTokenRefreshOptions ) from azure.communication.chat import ( - ChatThreadMember, + ChatThreadParticipant, ChatMessagePriority ) from azure.communication.identity._shared.utils import parse_connection_str @@ -32,7 +32,7 @@ def setUp(self): super(ChatThreadClientTestAsync, self).setUp() self.recording_processors.extend([ - BodyReplacerProcessor(keys=["id", "token", "senderId", "chatMessageId", "nextLink", "members", "multipleStatus", "value"]), + BodyReplacerProcessor(keys=["id", "token", "senderId", "chatMessageId", "nextLink", "participants", "multipleStatus", "value"]), URIIdentityReplacer(), ResponseReplacerProcessor(keys=[self._resource_name]), ChatURIReplacer()]) @@ -67,12 +67,12 @@ async def _create_thread(self): topic = "test topic" share_history_time = datetime.utcnow() share_history_time = share_history_time.replace(tzinfo=TZ_UTC) - members = [ChatThreadMember( + participants = [ChatThreadParticipant( user=self.user, display_name='name', share_history_time=share_history_time )] - self.chat_thread_client = await self.chat_client.create_chat_thread(topic, members) + self.chat_thread_client = await self.chat_client.create_chat_thread(topic, participants) self.thread_id = self.chat_thread_client.thread_id async def _send_message(self): @@ -80,21 +80,21 @@ async def _send_message(self): priority = ChatMessagePriority.NORMAL content = 'hello world' sender_display_name = 'sender name' - create_message_result = await self.chat_thread_client.send_message( + create_message_result_id = await self.chat_thread_client.send_message( content, priority=priority, sender_display_name=sender_display_name) - self.message_id = create_message_result.id + self.message_id = create_message_result_id @pytest.mark.live_test_only @AsyncCommunicationTestCase.await_prepared_test - async def test_update_thread(self): + async def test_update_topic(self): async with self.chat_client: await self._create_thread() topic = "update topic" async with self.chat_thread_client: - await self.chat_thread_client.update_thread(topic=topic) + await self.chat_thread_client.update_topic(topic=topic) # delete chat threads if not self.is_playback(): @@ -111,12 +111,12 @@ async def test_send_message(self): content = 'hello world' sender_display_name = 'sender name' - create_message_result = await self.chat_thread_client.send_message( + 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) + self.assertTrue(create_message_result_id) # delete chat threads if not self.is_playback(): @@ -193,15 +193,15 @@ async def test_delete_message(self): @pytest.mark.live_test_only @AsyncCommunicationTestCase.await_prepared_test - async def test_list_members(self): + async def test_list_participants(self): async with self.chat_client: await self._create_thread() async with self.chat_thread_client: - chat_thread_members = self.chat_thread_client.list_members() + chat_thread_participants = self.chat_thread_client.list_participants() items = [] - async for item in chat_thread_members: + async for item in chat_thread_participants: items.append(item) assert len(items) == 1 @@ -212,44 +212,63 @@ async def test_list_members(self): @pytest.mark.live_test_only @AsyncCommunicationTestCase.await_prepared_test - async def test_add_members(self): + async def test_add_participant(self): async with self.chat_client: await self._create_thread() async with self.chat_thread_client: share_history_time = datetime.utcnow() share_history_time = share_history_time.replace(tzinfo=TZ_UTC) - new_member = ChatThreadMember( + new_participant = ChatThreadParticipant( + user=self.new_user, + display_name='name', + share_history_time=share_history_time) + + await self.chat_thread_client.add_participant(new_participant) + + 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_add_participants(self): + async with self.chat_client: + await self._create_thread() + + async with self.chat_thread_client: + share_history_time = datetime.utcnow() + share_history_time = share_history_time.replace(tzinfo=TZ_UTC) + new_participant = ChatThreadParticipant( user=self.new_user, display_name='name', share_history_time=share_history_time) - members = [new_member] + participants = [new_participant] - await self.chat_thread_client.add_members(members) + await self.chat_thread_client.add_participants(participants) 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_remove_member(self): + async def test_remove_participant(self): async with self.chat_client: await self._create_thread() async with self.chat_thread_client: - # add member first + # add participant first share_history_time = datetime.utcnow() share_history_time = share_history_time.replace(tzinfo=TZ_UTC) - new_member = ChatThreadMember( + new_participant = ChatThreadParticipant( user=self.new_user, display_name='name', share_history_time=share_history_time) - members = [new_member] + participants = [new_participant] - await self.chat_thread_client.add_members(members) + await self.chat_thread_client.add_participants(participants) - # test remove member - await self.chat_thread_client.remove_member(self.new_user) + # test remove participant + await self.chat_thread_client.remove_participant(self.new_user) if not self.is_playback(): await self.chat_client.delete_chat_thread(self.thread_id) From 6a7818855be83687f49dbfbc399fea3b4fa577ee Mon Sep 17 00:00:00 2001 From: "Jixing (Leo) Li" Date: Fri, 4 Dec 2020 12:41:12 -0800 Subject: [PATCH 2/6] Update ACS Chat Python SDK align with swagger changes (#15640) - Seperate AzureCommunicationChatServiceOperationsMixin into ChatOperations and ChatThreadOperations - Move invalid participants into errors object in reponse body Co-authored-by: Leo Li --- .../azure/communication/chat/_chat_client.py | 38 +- .../communication/chat/_chat_thread_client.py | 29 +- .../_azure_communication_chat_service.py | 13 +- .../aio/_azure_communication_chat_service.py | 13 +- .../_generated/aio/operations/__init__.py | 6 +- .../aio/operations/_chat_operations.py | 324 ++++++++++++++++ ...erations.py => _chat_thread_operations.py} | 343 +++-------------- .../chat/_generated/models/__init__.py | 12 + .../chat/_generated/models/_models.py | 139 +++++-- .../chat/_generated/models/_models_py3.py | 145 ++++++-- .../chat/_generated/operations/__init__.py | 6 +- .../_generated/operations/_chat_operations.py | 332 +++++++++++++++++ ...erations.py => _chat_thread_operations.py} | 347 +++--------------- .../chat/aio/_chat_client_async.py | 38 +- .../chat/aio/_chat_thread_client_async.py | 30 +- ...at_client_e2e.test_create_chat_thread.yaml | 52 +-- ...at_client_e2e.test_delete_chat_thread.yaml | 60 +-- ..._chat_client_e2e.test_get_chat_thread.yaml | 62 ++-- ...hat_client_e2e.test_get_thread_client.yaml | 52 +-- ...hat_client_e2e.test_list_chat_threads.yaml | 60 +-- ...e_async.test_create_chat_thread_async.yaml | 52 +-- ...ent_e2e_async.test_delete_chat_thread.yaml | 60 +-- ...client_e2e_async.test_get_chat_thread.yaml | 64 ++-- ...ient_e2e_async.test_get_thread_client.yaml | 52 +-- ...ient_e2e_async.test_list_chat_threads.yaml | 62 ++-- ...hread_client_e2e.test_add_participant.yaml | 90 ++--- ...read_client_e2e.test_add_participants.yaml | 90 ++--- ...thread_client_e2e.test_delete_message.yaml | 89 +++-- ...at_thread_client_e2e.test_get_message.yaml | 93 +++-- ..._thread_client_e2e.test_list_messages.yaml | 121 +++--- ...ead_client_e2e.test_list_participants.yaml | 83 +++-- ...ad_client_e2e.test_list_read_receipts.yaml | 101 +++-- ...ad_client_e2e.test_remove_participant.yaml | 100 ++--- ...t_thread_client_e2e.test_send_message.yaml | 81 ++-- ...ead_client_e2e.test_send_read_receipt.yaml | 91 +++-- ...ent_e2e.test_send_typing_notification.yaml | 83 +++-- ...thread_client_e2e.test_update_message.yaml | 89 +++-- ...t_thread_client_e2e.test_update_topic.yaml | 81 ++-- ...client_e2e_async.test_add_participant.yaml | 87 +++-- ...lient_e2e_async.test_add_participants.yaml | 87 +++-- ..._client_e2e_async.test_delete_message.yaml | 89 +++-- ...ead_client_e2e_async.test_get_message.yaml | 93 +++-- ...d_client_e2e_async.test_list_messages.yaml | 131 ++++--- ...ient_e2e_async.test_list_participants.yaml | 79 ++-- ...ent_e2e_async.test_list_read_receipts.yaml | 105 +++--- ...ent_e2e_async.test_remove_participant.yaml | 99 +++-- ...ad_client_e2e_async.test_send_message.yaml | 81 ++-- ...ient_e2e_async.test_send_read_receipt.yaml | 93 +++-- ...e_async.test_send_typing_notification.yaml | 83 +++-- ..._client_e2e_async.test_update_message.yaml | 89 +++-- ...ad_client_e2e_async.test_update_topic.yaml | 81 ++-- .../tests/test_chat_client.py | 9 +- .../tests/test_chat_client_async.py | 9 +- 53 files changed, 2600 insertions(+), 2198 deletions(-) create mode 100644 sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_operations.py rename sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/{_azure_communication_chat_service_operations.py => _chat_thread_operations.py} (75%) create mode 100644 sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_operations.py rename sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/{_azure_communication_chat_service_operations.py => _chat_thread_operations.py} (75%) 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 ae1d991fb8c1..5b360e34db41 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 @@ -149,25 +149,25 @@ def create_chat_thread( raise ValueError("List of ChatThreadParticipant cannot be None.") participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access - create_thread_request = CreateChatThreadRequest(topic=topic, participants=participants) - - response, create_chat_thread_result = self._client.create_chat_thread( - create_thread_request, cls=return_response, **kwargs) - if response is not None: - response_header = response.http_response.headers - if ('Azure-Acs-InvalidParticipants' in response_header.keys() and - response_header['Azure-Acs-InvalidParticipants'] is not None): - invalid_participant_and_reason_list = response_header['Azure-Acs-InvalidParticipants'].split('|') - errors = [] - for invalid_participant_and_reason in invalid_participant_and_reason_list: - participant, reason = invalid_participant_and_reason.split(',', 1) - errors.append('participant ' + participant + ' failed to join thread ' - + create_chat_thread_result.id + ' return statue code ' + reason) - raise ValueError(errors) + create_thread_request = \ + CreateChatThreadRequest(topic=topic, participants=participants) + + create_chat_thread_result = self._client.chat.create_chat_thread( + create_thread_request, **kwargs) + if hasattr(create_chat_thread_result, 'errors') and \ + create_chat_thread_result.errors is not None: + participants = \ + create_chat_thread_result.errors.invalid_participants + errors = [] + for participant in participants: + errors.append('participant ' + participant.target + + ' failed to join thread due to: ' + participant.message) + raise RuntimeError(errors) + thread_id = create_chat_thread_result.chat_thread.id return ChatThreadClient( endpoint=self._endpoint, credential=self._credential, - thread_id=create_chat_thread_result.id, + thread_id=thread_id, **kwargs ) @@ -198,7 +198,7 @@ def get_chat_thread( if not thread_id: raise ValueError("thread_id cannot be None.") - chat_thread = self._client.get_chat_thread(thread_id, **kwargs) + chat_thread = self._client.chat.get_chat_thread(thread_id, **kwargs) return ChatThread._from_generated(chat_thread) # pylint:disable=protected-access @distributed_trace @@ -228,7 +228,7 @@ def list_chat_threads( results_per_page = kwargs.pop("results_per_page", None) start_time = kwargs.pop("start_time", None) - return self._client.list_chat_threads( + return self._client.chat.list_chat_threads( max_page_size=results_per_page, start_time=start_time, **kwargs) @@ -261,7 +261,7 @@ def delete_chat_thread( if not thread_id: raise ValueError("thread_id cannot be None.") - return self._client.delete_chat_thread(thread_id, **kwargs) + return self._client.chat.delete_chat_thread(thread_id, **kwargs) def close(self): # type: () -> None diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py index 20edd8a02554..538bf019115b 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_chat_thread_client.py @@ -140,7 +140,7 @@ def update_topic( """ update_topic_request = UpdateChatThreadRequest(topic=topic) - return self._client.update_chat_thread( + return self._client.chat_thread.update_chat_thread( chat_thread_id=self._thread_id, update_chat_thread_request=update_topic_request, **kwargs) @@ -174,7 +174,7 @@ def send_read_receipt( raise ValueError("message_id cannot be None.") post_read_receipt_request = SendReadReceiptRequest(chat_message_id=message_id) - return self._client.send_chat_read_receipt( + return self._client.chat_thread.send_chat_read_receipt( self._thread_id, send_read_receipt_request=post_read_receipt_request, **kwargs) @@ -201,7 +201,7 @@ def list_read_receipts( :dedent: 8 :caption: Listing read receipts. """ - return self._client.list_chat_read_receipts( + return self._client.chat_thread.list_chat_read_receipts( self._thread_id, cls=lambda objs: [ChatMessageReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -228,7 +228,7 @@ def send_typing_notification( :dedent: 8 :caption: Sending typing notification. """ - return self._client.send_typing_notification(self._thread_id, **kwargs) + return self._client.chat_thread.send_typing_notification(self._thread_id, **kwargs) @distributed_trace def send_message( @@ -271,7 +271,7 @@ def send_message( sender_display_name=sender_display_name ) - send_chat_message_result = self._client.send_chat_message( + send_chat_message_result = self._client.chat_thread.send_chat_message( chat_thread_id=self._thread_id, send_chat_message_request=create_message_request, **kwargs) @@ -305,7 +305,7 @@ def get_message( if not message_id: raise ValueError("message_id cannot be None.") - chat_message = self._client.get_chat_message(self._thread_id, message_id, **kwargs) + chat_message = self._client.chat_thread.get_chat_message(self._thread_id, message_id, **kwargs) return ChatMessage._from_generated(chat_message) # pylint:disable=protected-access @distributed_trace @@ -335,12 +335,13 @@ def list_messages( results_per_page = kwargs.pop("results_per_page", None) start_time = kwargs.pop("start_time", None) - return self._client.list_chat_messages( + a = self._client.chat_thread.list_chat_messages( self._thread_id, - max_page_size=results_per_page, + maxpagesize=results_per_page, start_time=start_time, cls=lambda objs: [ChatMessage._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) + return a @distributed_trace def update_message( @@ -375,7 +376,7 @@ def update_message( update_message_request = UpdateChatMessageRequest(content=content, priority=None) - return self._client.update_chat_message( + return self._client.chat_thread.update_chat_message( chat_thread_id=self._thread_id, chat_message_id=message_id, update_chat_message_request=update_message_request, @@ -409,7 +410,7 @@ def delete_message( if not message_id: raise ValueError("message_id cannot be None.") - return self._client.delete_chat_message( + return self._client.chat_thread.delete_chat_message( chat_thread_id=self._thread_id, chat_message_id=message_id, **kwargs) @@ -437,7 +438,7 @@ def list_participants( :caption: Listing participants of chat thread. """ - return self._client.list_chat_participants( + return self._client.chat_thread.list_chat_participants( self._thread_id, cls=lambda objs: [ChatThreadParticipant._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -473,7 +474,7 @@ def add_participant( participants = [thread_participant._to_generated()] # pylint:disable=protected-access add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - return self._client.add_chat_participants( + return self._client.chat_thread.add_chat_participants( chat_thread_id=self._thread_id, add_chat_participants_request=add_thread_participants_request, **kwargs) @@ -509,7 +510,7 @@ def add_participants( participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - return self._client.add_chat_participants( + return self._client.chat_thread.add_chat_participants( chat_thread_id=self._thread_id, add_chat_participants_request=add_thread_participants_request, **kwargs) @@ -542,7 +543,7 @@ def remove_participant( if not user: raise ValueError("user cannot be None.") - return self._client.remove_chat_participant( + return self._client.chat_thread.remove_chat_participant( chat_thread_id=self._thread_id, chat_participant_id=user.identifier, **kwargs) diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_azure_communication_chat_service.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_azure_communication_chat_service.py index 386507ece71d..e49f027055f2 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_azure_communication_chat_service.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/_azure_communication_chat_service.py @@ -16,13 +16,18 @@ from typing import Any from ._configuration import AzureCommunicationChatServiceConfiguration -from .operations import AzureCommunicationChatServiceOperationsMixin +from .operations import ChatThreadOperations +from .operations import ChatOperations from . import models -class AzureCommunicationChatService(AzureCommunicationChatServiceOperationsMixin): +class AzureCommunicationChatService(object): """Azure Communication Chat Service. + :ivar chat_thread: ChatThreadOperations operations + :vartype chat_thread: azure.communication.chat.operations.ChatThreadOperations + :ivar chat: ChatOperations operations + :vartype chat: azure.communication.chat.operations.ChatOperations :param endpoint: The endpoint of the Azure Communication resource. :type endpoint: str """ @@ -42,6 +47,10 @@ def __init__( self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) + self.chat_thread = ChatThreadOperations( + self._client, self._config, self._serialize, self._deserialize) + self.chat = ChatOperations( + self._client, self._config, self._serialize, self._deserialize) def close(self): # type: () -> None diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_azure_communication_chat_service.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_azure_communication_chat_service.py index 0b37b0a92e70..0abf7bcfd572 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_azure_communication_chat_service.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/_azure_communication_chat_service.py @@ -12,13 +12,18 @@ from msrest import Deserializer, Serializer from ._configuration import AzureCommunicationChatServiceConfiguration -from .operations import AzureCommunicationChatServiceOperationsMixin +from .operations import ChatThreadOperations +from .operations import ChatOperations from .. import models -class AzureCommunicationChatService(AzureCommunicationChatServiceOperationsMixin): +class AzureCommunicationChatService(object): """Azure Communication Chat Service. + :ivar chat_thread: ChatThreadOperations operations + :vartype chat_thread: azure.communication.chat.aio.operations.ChatThreadOperations + :ivar chat: ChatOperations operations + :vartype chat: azure.communication.chat.aio.operations.ChatOperations :param endpoint: The endpoint of the Azure Communication resource. :type endpoint: str """ @@ -37,6 +42,10 @@ def __init__( self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) + self.chat_thread = ChatThreadOperations( + self._client, self._config, self._serialize, self._deserialize) + self.chat = ChatOperations( + self._client, self._config, self._serialize, self._deserialize) async def close(self) -> None: await self._client.close() diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/__init__.py index fbcbeea166ae..ca0d822356d7 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/__init__.py @@ -6,8 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._azure_communication_chat_service_operations import AzureCommunicationChatServiceOperationsMixin +from ._chat_thread_operations import ChatThreadOperations +from ._chat_operations import ChatOperations __all__ = [ - 'AzureCommunicationChatServiceOperationsMixin', + 'ChatThreadOperations', + 'ChatOperations', ] diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_operations.py new file mode 100644 index 000000000000..7245e4ad5ebd --- /dev/null +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_operations.py @@ -0,0 +1,324 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import datetime +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ChatOperations: + """ChatOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.communication.chat.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def create_chat_thread( + self, + create_chat_thread_request: "_models.CreateChatThreadRequest", + repeatability_request_id: Optional[str] = None, + **kwargs + ) -> "_models.CreateChatThreadResult": + """Creates a chat thread. + + Creates a chat thread. + + :param create_chat_thread_request: Request payload for creating a chat thread. + :type create_chat_thread_request: ~azure.communication.chat.models.CreateChatThreadRequest + :param repeatability_request_id: If specified, the client directs that the request is + repeatable; that is, that the client can make the request multiple times with the same + Repeatability-Request-ID and get back an appropriate response without the server executing the + request multiple times. The value of the Repeatability-Request-ID is an opaque string + representing a client-generated, globally unique for all time, identifier for the request. It + is recommended to use version 4 (random) UUIDs. + :type repeatability_request_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CreateChatThreadResult, or the result of cls(response) + :rtype: ~azure.communication.chat.models.CreateChatThreadResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CreateChatThreadResult"] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_chat_thread.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + if repeatability_request_id is not None: + header_parameters['repeatability-Request-ID'] = self._serialize.header("repeatability_request_id", repeatability_request_id, 'str') + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(create_chat_thread_request, 'CreateChatThreadRequest') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + deserialized = self._deserialize('CreateChatThreadResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_chat_thread.metadata = {'url': '/chat/threads'} # type: ignore + + def list_chat_threads( + self, + max_page_size: Optional[int] = None, + start_time: Optional[datetime.datetime] = None, + **kwargs + ) -> AsyncIterable["_models.ChatThreadsInfoCollection"]: + """Gets the list of chat threads of a user. + + Gets the list of chat threads of a user. + + :param max_page_size: The maximum number of chat threads returned per page. + :type max_page_size: int + :param start_time: The earliest point in time to get chat threads up to. The timestamp should + be in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type start_time: ~datetime.datetime + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ChatThreadsInfoCollection or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ChatThreadsInfoCollection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadsInfoCollection"] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_chat_threads.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') + if start_time is not None: + query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ChatThreadsInfoCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_chat_threads.metadata = {'url': '/chat/threads'} # type: ignore + + async def get_chat_thread( + self, + chat_thread_id: str, + **kwargs + ) -> "_models.ChatThread": + """Gets a chat thread. + + Gets a chat thread. + + :param chat_thread_id: Id of the thread. + :type chat_thread_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ChatThread, or the result of cls(response) + :rtype: ~azure.communication.chat.models.ChatThread + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + accept = "application/json" + + # Construct URL + url = self.get_chat_thread.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + deserialized = self._deserialize('ChatThread', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore + + async def delete_chat_thread( + self, + chat_thread_id: str, + **kwargs + ) -> None: + """Deletes a thread. + + Deletes a thread. + + :param chat_thread_id: Id of the thread to be deleted. + :type chat_thread_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + accept = "application/json" + + # Construct URL + url = self.delete_chat_thread.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if cls: + return cls(pipeline_response, None, {}) + + delete_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_azure_communication_chat_service_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py similarity index 75% rename from sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_azure_communication_chat_service_operations.py rename to sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py index 8153823a07ec..479fd2e3ba59 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_azure_communication_chat_service_operations.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/aio/operations/_chat_thread_operations.py @@ -19,11 +19,33 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class AzureCommunicationChatServiceOperationsMixin: +class ChatThreadOperations: + """ChatThreadOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.communication.chat.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config def list_chat_read_receipts( self, chat_thread_id: str, + maxpagesize: Optional[int] = None, + skip: Optional[int] = None, **kwargs ) -> AsyncIterable["_models.ChatMessageReadReceiptsCollection"]: """Gets chat message read receipts for a thread. @@ -32,6 +54,10 @@ def list_chat_read_receipts( :param chat_thread_id: Thread id to get the chat message read receipts for. :type chat_thread_id: str + :param maxpagesize: The maximum number of chat message read receipts to be returned per page. + :type maxpagesize: int + :param skip: Skips chat message read receipts up to a specified position in response. + :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ChatMessageReadReceiptsCollection or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ChatMessageReadReceiptsCollection] @@ -65,6 +91,10 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] + if maxpagesize is not None: + query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) @@ -101,7 +131,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_chat_read_receipts.metadata = {'url': '/chat/threads/{chatThreadId}/readreceipts'} # type: ignore + list_chat_read_receipts.metadata = {'url': '/chat/threads/{chatThreadId}/readReceipts'} # type: ignore async def send_chat_read_receipt( self, @@ -167,7 +197,7 @@ async def send_chat_read_receipt( if cls: return cls(pipeline_response, None, {}) - send_chat_read_receipt.metadata = {'url': '/chat/threads/{chatThreadId}/readreceipts'} # type: ignore + send_chat_read_receipt.metadata = {'url': '/chat/threads/{chatThreadId}/readReceipts'} # type: ignore async def send_chat_message( self, @@ -241,7 +271,7 @@ async def send_chat_message( def list_chat_messages( self, chat_thread_id: str, - max_page_size: Optional[int] = None, + maxpagesize: Optional[int] = None, start_time: Optional[datetime.datetime] = None, **kwargs ) -> AsyncIterable["_models.ChatMessagesCollection"]: @@ -251,10 +281,10 @@ def list_chat_messages( :param chat_thread_id: The thread id of the message. :type chat_thread_id: str - :param max_page_size: The maximum number of messages to be returned per page. - :type max_page_size: int + :param maxpagesize: The maximum number of messages to be returned per page. + :type maxpagesize: int :param start_time: The earliest point in time to get messages up to. The timestamp should be in - ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type start_time: ~datetime.datetime :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ChatMessagesCollection or the result of cls(response) @@ -289,8 +319,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if max_page_size is not None: - query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') + if maxpagesize is not None: + query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') if start_time is not None: query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -589,6 +619,8 @@ async def send_typing_notification( def list_chat_participants( self, chat_thread_id: str, + maxpagesize: Optional[int] = None, + skip: Optional[int] = None, **kwargs ) -> AsyncIterable["_models.ChatParticipantsCollection"]: """Gets the participants of a thread. @@ -597,6 +629,10 @@ def list_chat_participants( :param chat_thread_id: Thread id to get participants for. :type chat_thread_id: str + :param maxpagesize: The maximum number of participants to be returned per page. + :type maxpagesize: int + :param skip: Skips participants up to a specified position in response. + :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ChatParticipantsCollection or the result of cls(response) :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ChatParticipantsCollection] @@ -630,6 +666,10 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] + if maxpagesize is not None: + query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) @@ -673,7 +713,7 @@ async def add_chat_participants( chat_thread_id: str, add_chat_participants_request: "_models.AddChatParticipantsRequest", **kwargs - ) -> None: + ) -> "_models.AddChatParticipantsResult": """Adds thread participants to a thread. If participants already exist, no change occurs. Adds thread participants to a thread. If participants already exist, no change occurs. @@ -683,11 +723,11 @@ async def add_chat_participants( :param add_chat_participants_request: Thread participants to be added to the thread. :type add_chat_participants_request: ~azure.communication.chat.models.AddChatParticipantsRequest :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None + :return: AddChatParticipantsResult, or the result of cls(response) + :rtype: ~azure.communication.chat.models.AddChatParticipantsResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AddChatParticipantsResult"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -729,9 +769,12 @@ async def add_chat_participants( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) + deserialized = self._deserialize('AddChatParticipantsResult', pipeline_response) + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, deserialized, {}) + return deserialized add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore async def remove_chat_participant( @@ -796,159 +839,6 @@ async def remove_chat_participant( remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore - async def create_chat_thread( - self, - create_chat_thread_request: "_models.CreateChatThreadRequest", - **kwargs - ) -> "_models.ChatThread": - """Creates a chat thread. - - Creates a chat thread. - - :param create_chat_thread_request: Request payload for creating a chat thread. - :type create_chat_thread_request: ~azure.communication.chat.models.CreateChatThreadRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ChatThread, or the result of cls(response) - :rtype: ~azure.communication.chat.models.ChatThread - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_chat_thread.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(create_chat_thread_request, 'CreateChatThreadRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize('ChatThread', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_chat_thread.metadata = {'url': '/chat/threads'} # type: ignore - - def list_chat_threads( - self, - max_page_size: Optional[int] = None, - start_time: Optional[datetime.datetime] = None, - **kwargs - ) -> AsyncIterable["_models.ChatThreadsInfoCollection"]: - """Gets the list of chat threads of a user. - - Gets the list of chat threads of a user. - - :param max_page_size: The maximum number of chat threads returned per page. - :type max_page_size: int - :param start_time: The earliest point in time to get chat threads up to. The timestamp should - be in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. - :type start_time: ~datetime.datetime - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ChatThreadsInfoCollection or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ChatThreadsInfoCollection] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadsInfoCollection"] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_chat_threads.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if max_page_size is not None: - query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') - if start_time is not None: - query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('ChatThreadsInfoCollection', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_chat_threads.metadata = {'url': '/chat/threads'} # type: ignore - async def update_chat_thread( self, chat_thread_id: str, @@ -1014,122 +904,3 @@ async def update_chat_thread( return cls(pipeline_response, None, {}) update_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore - - async def get_chat_thread( - self, - chat_thread_id: str, - **kwargs - ) -> "_models.ChatThread": - """Gets a chat thread. - - Gets a chat thread. - - :param chat_thread_id: Thread id to get. - :type chat_thread_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ChatThread, or the result of cls(response) - :rtype: ~azure.communication.chat.models.ChatThread - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - accept = "application/json" - - # Construct URL - url = self.get_chat_thread.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize('ChatThread', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore - - async def delete_chat_thread( - self, - chat_thread_id: str, - **kwargs - ) -> None: - """Deletes a thread. - - Deletes a thread. - - :param chat_thread_id: Thread id to delete. - :type chat_thread_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - accept = "application/json" - - # Construct URL - url = self.delete_chat_thread.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - delete_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/__init__.py index 6e86967f52b8..d8cdbe52dd58 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/__init__.py @@ -7,7 +7,9 @@ # -------------------------------------------------------------------------- try: + from ._models_py3 import AddChatParticipantsErrors from ._models_py3 import AddChatParticipantsRequest + from ._models_py3 import AddChatParticipantsResult from ._models_py3 import ChatMessage from ._models_py3 import ChatMessageReadReceipt from ._models_py3 import ChatMessageReadReceiptsCollection @@ -17,7 +19,9 @@ from ._models_py3 import ChatThread from ._models_py3 import ChatThreadInfo from ._models_py3 import ChatThreadsInfoCollection + from ._models_py3 import CreateChatThreadErrors from ._models_py3 import CreateChatThreadRequest + from ._models_py3 import CreateChatThreadResult from ._models_py3 import Error from ._models_py3 import SendChatMessageRequest from ._models_py3 import SendChatMessageResult @@ -25,7 +29,9 @@ from ._models_py3 import UpdateChatMessageRequest from ._models_py3 import UpdateChatThreadRequest except (SyntaxError, ImportError): + from ._models import AddChatParticipantsErrors # type: ignore from ._models import AddChatParticipantsRequest # type: ignore + from ._models import AddChatParticipantsResult # type: ignore from ._models import ChatMessage # type: ignore from ._models import ChatMessageReadReceipt # type: ignore from ._models import ChatMessageReadReceiptsCollection # type: ignore @@ -35,7 +41,9 @@ from ._models import ChatThread # type: ignore from ._models import ChatThreadInfo # type: ignore from ._models import ChatThreadsInfoCollection # type: ignore + from ._models import CreateChatThreadErrors # type: ignore from ._models import CreateChatThreadRequest # type: ignore + from ._models import CreateChatThreadResult # type: ignore from ._models import Error # type: ignore from ._models import SendChatMessageRequest # type: ignore from ._models import SendChatMessageResult # type: ignore @@ -48,7 +56,9 @@ ) __all__ = [ + 'AddChatParticipantsErrors', 'AddChatParticipantsRequest', + 'AddChatParticipantsResult', 'ChatMessage', 'ChatMessageReadReceipt', 'ChatMessageReadReceiptsCollection', @@ -58,7 +68,9 @@ 'ChatThread', 'ChatThreadInfo', 'ChatThreadsInfoCollection', + 'CreateChatThreadErrors', 'CreateChatThreadRequest', + 'CreateChatThreadResult', 'Error', 'SendChatMessageRequest', 'SendChatMessageResult', diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py index 9598cb18db1f..484f928d4a45 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models.py @@ -10,6 +10,31 @@ import msrest.serialization +class AddChatParticipantsErrors(msrest.serialization.Model): + """Errors encountered during the addition of the chat participant to the chat thread. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar invalid_participants: The participants that failed to be added to the chat thread. + :vartype invalid_participants: list[~azure.communication.chat.models.Error] + """ + + _validation = { + 'invalid_participants': {'readonly': True}, + } + + _attribute_map = { + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[Error]'}, + } + + def __init__( + self, + **kwargs + ): + super(AddChatParticipantsErrors, self).__init__(**kwargs) + self.invalid_participants = None + + class AddChatParticipantsRequest(msrest.serialization.Model): """Participants to be added to the thread. @@ -35,8 +60,28 @@ def __init__( self.participants = kwargs['participants'] +class AddChatParticipantsResult(msrest.serialization.Model): + """Result of the add chat participants operation. + + :param errors: Errors encountered during the addition of the chat participant to the chat + thread. + :type errors: ~azure.communication.chat.models.AddChatParticipantsErrors + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': 'AddChatParticipantsErrors'}, + } + + def __init__( + self, + **kwargs + ): + super(AddChatParticipantsResult, self).__init__(**kwargs) + self.errors = kwargs.get('errors', None) + + class ChatMessage(msrest.serialization.Model): - """ChatMessage. + """Chat message. Variables are only populated by the server, and will be ignored when sending a request. @@ -63,15 +108,15 @@ class ChatMessage(msrest.serialization.Model): to populate sender name for push notifications. :type sender_display_name: str :ivar created_on: The timestamp when the chat message arrived at the server. The timestamp is - in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :vartype created_on: ~datetime.datetime :ivar sender_id: The id of the chat message sender. :vartype sender_id: str - :param deleted_on: The timestamp when the chat message was deleted. The timestamp is in ISO8601 - format: ``yyyy-MM-ddTHH:mm:ssZ``. + :param deleted_on: The timestamp (if applicable) when the message was deleted. The timestamp is + in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime - :param edited_on: The timestamp when the chat message was edited. The timestamp is in ISO8601 - format: ``yyyy-MM-ddTHH:mm:ssZ``. + :param edited_on: The last timestamp (if applicable) when the message was edited. The timestamp + is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type edited_on: ~datetime.datetime """ @@ -117,13 +162,13 @@ class ChatMessageReadReceipt(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar sender_id: Chat message read receipt sender id. + :ivar sender_id: Id of the participant who read the message. :vartype sender_id: str - :ivar chat_message_id: Id for the chat message that has been read. This id is generated by the + :ivar chat_message_id: Id of the chat message that has been read. This id is generated by the server. :vartype chat_message_id: str - :ivar read_on: Chat message read receipt timestamp. The timestamp is in ISO8601 format: ``yyyy- - MM-ddTHH:mm:ssZ``. + :ivar read_on: The time at which the message was read. The timestamp is in RFC3339 format: + ``yyyy-MM-ddTHH:mm:ssZ``. :vartype read_on: ~datetime.datetime """ @@ -150,7 +195,7 @@ def __init__( class ChatMessageReadReceiptsCollection(msrest.serialization.Model): - """ChatMessageReadReceiptsCollection. + """A paged collection of chat message read receipts. Variables are only populated by the server, and will be ignored when sending a request. @@ -221,7 +266,7 @@ class ChatParticipant(msrest.serialization.Model): :param display_name: Display name for the chat participant. :type display_name: str :param share_history_time: Time from which the chat history is shared with the participant. The - timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type share_history_time: ~datetime.datetime """ @@ -276,7 +321,7 @@ def __init__( class ChatThread(msrest.serialization.Model): - """ChatThread. + """Chat thread. Variables are only populated by the server, and will be ignored when sending a request. @@ -284,16 +329,14 @@ class ChatThread(msrest.serialization.Model): :vartype id: str :param topic: Chat thread topic. :type topic: str - :ivar created_on: The timestamp when the chat thread was created. The timestamp is in ISO8601 + :ivar created_on: The timestamp when the chat thread was created. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :vartype created_on: ~datetime.datetime :ivar created_by: Id of the chat thread owner. :vartype created_by: str - :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in ISO8601 + :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime - :param participants: Chat participants. - :type participants: list[~azure.communication.chat.models.ChatParticipant] """ _validation = { @@ -308,7 +351,6 @@ class ChatThread(msrest.serialization.Model): 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'created_by': {'key': 'createdBy', 'type': 'str'}, 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, - 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, } def __init__( @@ -321,11 +363,10 @@ def __init__( self.created_on = None self.created_by = None self.deleted_on = kwargs.get('deleted_on', None) - self.participants = kwargs.get('participants', None) class ChatThreadInfo(msrest.serialization.Model): - """ChatThreadInfo. + """Summary information of a chat thread. Variables are only populated by the server, and will be ignored when sending a request. @@ -333,11 +374,11 @@ class ChatThreadInfo(msrest.serialization.Model): :vartype id: str :param topic: Chat thread topic. :type topic: str - :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in ISO8601 + :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime :ivar last_message_received_on: The timestamp when the last message arrived at the server. The - timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :vartype last_message_received_on: ~datetime.datetime """ @@ -395,6 +436,31 @@ def __init__( self.next_link = None +class CreateChatThreadErrors(msrest.serialization.Model): + """Errors encountered during the creation of the chat thread. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar invalid_participants: The participants that failed to be added to the chat thread. + :vartype invalid_participants: list[~azure.communication.chat.models.Error] + """ + + _validation = { + 'invalid_participants': {'readonly': True}, + } + + _attribute_map = { + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[Error]'}, + } + + def __init__( + self, + **kwargs + ): + super(CreateChatThreadErrors, self).__init__(**kwargs) + self.invalid_participants = None + + class CreateChatThreadRequest(msrest.serialization.Model): """Request payload for creating a chat thread. @@ -425,8 +491,31 @@ def __init__( self.participants = kwargs['participants'] +class CreateChatThreadResult(msrest.serialization.Model): + """Result of the create chat thread operation. + + :param chat_thread: Chat thread. + :type chat_thread: ~azure.communication.chat.models.ChatThread + :param errors: Errors encountered during the creation of the chat thread. + :type errors: ~azure.communication.chat.models.CreateChatThreadErrors + """ + + _attribute_map = { + 'chat_thread': {'key': 'chatThread', 'type': 'ChatThread'}, + 'errors': {'key': 'errors', 'type': 'CreateChatThreadErrors'}, + } + + def __init__( + self, + **kwargs + ): + super(CreateChatThreadResult, self).__init__(**kwargs) + self.chat_thread = kwargs.get('chat_thread', None) + self.errors = kwargs.get('errors', None) + + class Error(msrest.serialization.Model): - """Error. + """Error encountered while performing an operation. Variables are only populated by the server, and will be ignored when sending a request. @@ -551,7 +640,7 @@ def __init__( class UpdateChatMessageRequest(msrest.serialization.Model): - """UpdateChatMessageRequest. + """Request payload for updating a chat message. :param content: Chat message content. :type content: str @@ -574,7 +663,7 @@ def __init__( class UpdateChatThreadRequest(msrest.serialization.Model): - """UpdateChatThreadRequest. + """Request payload for updating a chat thread. :param topic: Chat thread topic. :type topic: str diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py index 2ace184240fa..4d743ed71c48 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/models/_models_py3.py @@ -15,6 +15,31 @@ from ._azure_communication_chat_service_enums import * +class AddChatParticipantsErrors(msrest.serialization.Model): + """Errors encountered during the addition of the chat participant to the chat thread. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar invalid_participants: The participants that failed to be added to the chat thread. + :vartype invalid_participants: list[~azure.communication.chat.models.Error] + """ + + _validation = { + 'invalid_participants': {'readonly': True}, + } + + _attribute_map = { + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[Error]'}, + } + + def __init__( + self, + **kwargs + ): + super(AddChatParticipantsErrors, self).__init__(**kwargs) + self.invalid_participants = None + + class AddChatParticipantsRequest(msrest.serialization.Model): """Participants to be added to the thread. @@ -42,8 +67,30 @@ def __init__( self.participants = participants +class AddChatParticipantsResult(msrest.serialization.Model): + """Result of the add chat participants operation. + + :param errors: Errors encountered during the addition of the chat participant to the chat + thread. + :type errors: ~azure.communication.chat.models.AddChatParticipantsErrors + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': 'AddChatParticipantsErrors'}, + } + + def __init__( + self, + *, + errors: Optional["AddChatParticipantsErrors"] = None, + **kwargs + ): + super(AddChatParticipantsResult, self).__init__(**kwargs) + self.errors = errors + + class ChatMessage(msrest.serialization.Model): - """ChatMessage. + """Chat message. Variables are only populated by the server, and will be ignored when sending a request. @@ -70,15 +117,15 @@ class ChatMessage(msrest.serialization.Model): to populate sender name for push notifications. :type sender_display_name: str :ivar created_on: The timestamp when the chat message arrived at the server. The timestamp is - in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :vartype created_on: ~datetime.datetime :ivar sender_id: The id of the chat message sender. :vartype sender_id: str - :param deleted_on: The timestamp when the chat message was deleted. The timestamp is in ISO8601 - format: ``yyyy-MM-ddTHH:mm:ssZ``. + :param deleted_on: The timestamp (if applicable) when the message was deleted. The timestamp is + in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime - :param edited_on: The timestamp when the chat message was edited. The timestamp is in ISO8601 - format: ``yyyy-MM-ddTHH:mm:ssZ``. + :param edited_on: The last timestamp (if applicable) when the message was edited. The timestamp + is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type edited_on: ~datetime.datetime """ @@ -131,13 +178,13 @@ class ChatMessageReadReceipt(msrest.serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar sender_id: Chat message read receipt sender id. + :ivar sender_id: Id of the participant who read the message. :vartype sender_id: str - :ivar chat_message_id: Id for the chat message that has been read. This id is generated by the + :ivar chat_message_id: Id of the chat message that has been read. This id is generated by the server. :vartype chat_message_id: str - :ivar read_on: Chat message read receipt timestamp. The timestamp is in ISO8601 format: ``yyyy- - MM-ddTHH:mm:ssZ``. + :ivar read_on: The time at which the message was read. The timestamp is in RFC3339 format: + ``yyyy-MM-ddTHH:mm:ssZ``. :vartype read_on: ~datetime.datetime """ @@ -164,7 +211,7 @@ def __init__( class ChatMessageReadReceiptsCollection(msrest.serialization.Model): - """ChatMessageReadReceiptsCollection. + """A paged collection of chat message read receipts. Variables are only populated by the server, and will be ignored when sending a request. @@ -235,7 +282,7 @@ class ChatParticipant(msrest.serialization.Model): :param display_name: Display name for the chat participant. :type display_name: str :param share_history_time: Time from which the chat history is shared with the participant. The - timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type share_history_time: ~datetime.datetime """ @@ -296,7 +343,7 @@ def __init__( class ChatThread(msrest.serialization.Model): - """ChatThread. + """Chat thread. Variables are only populated by the server, and will be ignored when sending a request. @@ -304,16 +351,14 @@ class ChatThread(msrest.serialization.Model): :vartype id: str :param topic: Chat thread topic. :type topic: str - :ivar created_on: The timestamp when the chat thread was created. The timestamp is in ISO8601 + :ivar created_on: The timestamp when the chat thread was created. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :vartype created_on: ~datetime.datetime :ivar created_by: Id of the chat thread owner. :vartype created_by: str - :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in ISO8601 + :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime - :param participants: Chat participants. - :type participants: list[~azure.communication.chat.models.ChatParticipant] """ _validation = { @@ -328,7 +373,6 @@ class ChatThread(msrest.serialization.Model): 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, 'created_by': {'key': 'createdBy', 'type': 'str'}, 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, - 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, } def __init__( @@ -336,7 +380,6 @@ def __init__( *, topic: Optional[str] = None, deleted_on: Optional[datetime.datetime] = None, - participants: Optional[List["ChatParticipant"]] = None, **kwargs ): super(ChatThread, self).__init__(**kwargs) @@ -345,11 +388,10 @@ def __init__( self.created_on = None self.created_by = None self.deleted_on = deleted_on - self.participants = participants class ChatThreadInfo(msrest.serialization.Model): - """ChatThreadInfo. + """Summary information of a chat thread. Variables are only populated by the server, and will be ignored when sending a request. @@ -357,11 +399,11 @@ class ChatThreadInfo(msrest.serialization.Model): :vartype id: str :param topic: Chat thread topic. :type topic: str - :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in ISO8601 + :param deleted_on: The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type deleted_on: ~datetime.datetime :ivar last_message_received_on: The timestamp when the last message arrived at the server. The - timestamp is in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + timestamp is in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :vartype last_message_received_on: ~datetime.datetime """ @@ -422,6 +464,31 @@ def __init__( self.next_link = None +class CreateChatThreadErrors(msrest.serialization.Model): + """Errors encountered during the creation of the chat thread. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar invalid_participants: The participants that failed to be added to the chat thread. + :vartype invalid_participants: list[~azure.communication.chat.models.Error] + """ + + _validation = { + 'invalid_participants': {'readonly': True}, + } + + _attribute_map = { + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[Error]'}, + } + + def __init__( + self, + **kwargs + ): + super(CreateChatThreadErrors, self).__init__(**kwargs) + self.invalid_participants = None + + class CreateChatThreadRequest(msrest.serialization.Model): """Request payload for creating a chat thread. @@ -455,8 +522,34 @@ def __init__( self.participants = participants +class CreateChatThreadResult(msrest.serialization.Model): + """Result of the create chat thread operation. + + :param chat_thread: Chat thread. + :type chat_thread: ~azure.communication.chat.models.ChatThread + :param errors: Errors encountered during the creation of the chat thread. + :type errors: ~azure.communication.chat.models.CreateChatThreadErrors + """ + + _attribute_map = { + 'chat_thread': {'key': 'chatThread', 'type': 'ChatThread'}, + 'errors': {'key': 'errors', 'type': 'CreateChatThreadErrors'}, + } + + def __init__( + self, + *, + chat_thread: Optional["ChatThread"] = None, + errors: Optional["CreateChatThreadErrors"] = None, + **kwargs + ): + super(CreateChatThreadResult, self).__init__(**kwargs) + self.chat_thread = chat_thread + self.errors = errors + + class Error(msrest.serialization.Model): - """Error. + """Error encountered while performing an operation. Variables are only populated by the server, and will be ignored when sending a request. @@ -587,7 +680,7 @@ def __init__( class UpdateChatMessageRequest(msrest.serialization.Model): - """UpdateChatMessageRequest. + """Request payload for updating a chat message. :param content: Chat message content. :type content: str @@ -613,7 +706,7 @@ def __init__( class UpdateChatThreadRequest(msrest.serialization.Model): - """UpdateChatThreadRequest. + """Request payload for updating a chat thread. :param topic: Chat thread topic. :type topic: str diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/__init__.py index fbcbeea166ae..ca0d822356d7 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/__init__.py @@ -6,8 +6,10 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._azure_communication_chat_service_operations import AzureCommunicationChatServiceOperationsMixin +from ._chat_thread_operations import ChatThreadOperations +from ._chat_operations import ChatOperations __all__ = [ - 'AzureCommunicationChatServiceOperationsMixin', + 'ChatThreadOperations', + 'ChatOperations', ] diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_operations.py new file mode 100644 index 000000000000..b32a8156c43b --- /dev/null +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_operations.py @@ -0,0 +1,332 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +import datetime +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ChatOperations(object): + """ChatOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.communication.chat.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def create_chat_thread( + self, + create_chat_thread_request, # type: "_models.CreateChatThreadRequest" + repeatability_request_id=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.CreateChatThreadResult" + """Creates a chat thread. + + Creates a chat thread. + + :param create_chat_thread_request: Request payload for creating a chat thread. + :type create_chat_thread_request: ~azure.communication.chat.models.CreateChatThreadRequest + :param repeatability_request_id: If specified, the client directs that the request is + repeatable; that is, that the client can make the request multiple times with the same + Repeatability-Request-ID and get back an appropriate response without the server executing the + request multiple times. The value of the Repeatability-Request-ID is an opaque string + representing a client-generated, globally unique for all time, identifier for the request. It + is recommended to use version 4 (random) UUIDs. + :type repeatability_request_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CreateChatThreadResult, or the result of cls(response) + :rtype: ~azure.communication.chat.models.CreateChatThreadResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.CreateChatThreadResult"] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_chat_thread.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + if repeatability_request_id is not None: + header_parameters['repeatability-Request-ID'] = self._serialize.header("repeatability_request_id", repeatability_request_id, 'str') + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(create_chat_thread_request, 'CreateChatThreadRequest') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + deserialized = self._deserialize('CreateChatThreadResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_chat_thread.metadata = {'url': '/chat/threads'} # type: ignore + + def list_chat_threads( + self, + max_page_size=None, # type: Optional[int] + start_time=None, # type: Optional[datetime.datetime] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ChatThreadsInfoCollection"] + """Gets the list of chat threads of a user. + + Gets the list of chat threads of a user. + + :param max_page_size: The maximum number of chat threads returned per page. + :type max_page_size: int + :param start_time: The earliest point in time to get chat threads up to. The timestamp should + be in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type start_time: ~datetime.datetime + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ChatThreadsInfoCollection or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ChatThreadsInfoCollection] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadsInfoCollection"] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_chat_threads.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') + if start_time is not None: + query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ChatThreadsInfoCollection', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_chat_threads.metadata = {'url': '/chat/threads'} # type: ignore + + def get_chat_thread( + self, + chat_thread_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.ChatThread" + """Gets a chat thread. + + Gets a chat thread. + + :param chat_thread_id: Id of the thread. + :type chat_thread_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ChatThread, or the result of cls(response) + :rtype: ~azure.communication.chat.models.ChatThread + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + accept = "application/json" + + # Construct URL + url = self.get_chat_thread.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + deserialized = self._deserialize('ChatThread', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore + + def delete_chat_thread( + self, + chat_thread_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Deletes a thread. + + Deletes a thread. + + :param chat_thread_id: Id of the thread to be deleted. + :type chat_thread_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), + 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2020-11-01-preview3" + accept = "application/json" + + # Construct URL + url = self.delete_chat_thread.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response) + + if cls: + return cls(pipeline_response, None, {}) + + delete_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_azure_communication_chat_service_operations.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py similarity index 75% rename from sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_azure_communication_chat_service_operations.py rename to sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py index 5bd7ed00d62f..ce8ccd28b95b 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_azure_communication_chat_service_operations.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_generated/operations/_chat_thread_operations.py @@ -23,11 +23,33 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] -class AzureCommunicationChatServiceOperationsMixin(object): +class ChatThreadOperations(object): + """ChatThreadOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.communication.chat.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config def list_chat_read_receipts( self, chat_thread_id, # type: str + maxpagesize=None, # type: Optional[int] + skip=None, # type: Optional[int] **kwargs # type: Any ): # type: (...) -> Iterable["_models.ChatMessageReadReceiptsCollection"] @@ -37,6 +59,10 @@ def list_chat_read_receipts( :param chat_thread_id: Thread id to get the chat message read receipts for. :type chat_thread_id: str + :param maxpagesize: The maximum number of chat message read receipts to be returned per page. + :type maxpagesize: int + :param skip: Skips chat message read receipts up to a specified position in response. + :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ChatMessageReadReceiptsCollection or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ChatMessageReadReceiptsCollection] @@ -70,6 +96,10 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] + if maxpagesize is not None: + query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) @@ -106,7 +136,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_chat_read_receipts.metadata = {'url': '/chat/threads/{chatThreadId}/readreceipts'} # type: ignore + list_chat_read_receipts.metadata = {'url': '/chat/threads/{chatThreadId}/readReceipts'} # type: ignore def send_chat_read_receipt( self, @@ -173,7 +203,7 @@ def send_chat_read_receipt( if cls: return cls(pipeline_response, None, {}) - send_chat_read_receipt.metadata = {'url': '/chat/threads/{chatThreadId}/readreceipts'} # type: ignore + send_chat_read_receipt.metadata = {'url': '/chat/threads/{chatThreadId}/readReceipts'} # type: ignore def send_chat_message( self, @@ -248,7 +278,7 @@ def send_chat_message( def list_chat_messages( self, chat_thread_id, # type: str - max_page_size=None, # type: Optional[int] + maxpagesize=None, # type: Optional[int] start_time=None, # type: Optional[datetime.datetime] **kwargs # type: Any ): @@ -259,10 +289,10 @@ def list_chat_messages( :param chat_thread_id: The thread id of the message. :type chat_thread_id: str - :param max_page_size: The maximum number of messages to be returned per page. - :type max_page_size: int + :param maxpagesize: The maximum number of messages to be returned per page. + :type maxpagesize: int :param start_time: The earliest point in time to get messages up to. The timestamp should be in - ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. + RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type start_time: ~datetime.datetime :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ChatMessagesCollection or the result of cls(response) @@ -297,8 +327,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if max_page_size is not None: - query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') + if maxpagesize is not None: + query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') if start_time is not None: query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -601,6 +631,8 @@ def send_typing_notification( def list_chat_participants( self, chat_thread_id, # type: str + maxpagesize=None, # type: Optional[int] + skip=None, # type: Optional[int] **kwargs # type: Any ): # type: (...) -> Iterable["_models.ChatParticipantsCollection"] @@ -610,6 +642,10 @@ def list_chat_participants( :param chat_thread_id: Thread id to get participants for. :type chat_thread_id: str + :param maxpagesize: The maximum number of participants to be returned per page. + :type maxpagesize: int + :param skip: Skips participants up to a specified position in response. + :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ChatParticipantsCollection or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ChatParticipantsCollection] @@ -643,6 +679,10 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] + if maxpagesize is not None: + query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if skip is not None: + query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') request = self._client.get(url, query_parameters, header_parameters) @@ -687,7 +727,7 @@ def add_chat_participants( add_chat_participants_request, # type: "_models.AddChatParticipantsRequest" **kwargs # type: Any ): - # type: (...) -> None + # type: (...) -> "_models.AddChatParticipantsResult" """Adds thread participants to a thread. If participants already exist, no change occurs. Adds thread participants to a thread. If participants already exist, no change occurs. @@ -697,11 +737,11 @@ def add_chat_participants( :param add_chat_participants_request: Thread participants to be added to the thread. :type add_chat_participants_request: ~azure.communication.chat.models.AddChatParticipantsRequest :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None + :return: AddChatParticipantsResult, or the result of cls(response) + :rtype: ~azure.communication.chat.models.AddChatParticipantsResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AddChatParticipantsResult"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -743,9 +783,12 @@ def add_chat_participants( map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) + deserialized = self._deserialize('AddChatParticipantsResult', pipeline_response) + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, deserialized, {}) + return deserialized add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore def remove_chat_participant( @@ -811,161 +854,6 @@ def remove_chat_participant( remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore - def create_chat_thread( - self, - create_chat_thread_request, # type: "_models.CreateChatThreadRequest" - **kwargs # type: Any - ): - # type: (...) -> "_models.ChatThread" - """Creates a chat thread. - - Creates a chat thread. - - :param create_chat_thread_request: Request payload for creating a chat thread. - :type create_chat_thread_request: ~azure.communication.chat.models.CreateChatThreadRequest - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ChatThread, or the result of cls(response) - :rtype: ~azure.communication.chat.models.ChatThread - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.create_chat_thread.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(create_chat_thread_request, 'CreateChatThreadRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [201]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize('ChatThread', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - create_chat_thread.metadata = {'url': '/chat/threads'} # type: ignore - - def list_chat_threads( - self, - max_page_size=None, # type: Optional[int] - start_time=None, # type: Optional[datetime.datetime] - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.ChatThreadsInfoCollection"] - """Gets the list of chat threads of a user. - - Gets the list of chat threads of a user. - - :param max_page_size: The maximum number of chat threads returned per page. - :type max_page_size: int - :param start_time: The earliest point in time to get chat threads up to. The timestamp should - be in ISO8601 format: ``yyyy-MM-ddTHH:mm:ssZ``. - :type start_time: ~datetime.datetime - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ChatThreadsInfoCollection or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ChatThreadsInfoCollection] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadsInfoCollection"] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_chat_threads.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - if max_page_size is not None: - query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') - if start_time is not None: - query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - } - url = self._client.format_url(url, **path_format_arguments) - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('ChatThreadsInfoCollection', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_chat_threads.metadata = {'url': '/chat/threads'} # type: ignore - def update_chat_thread( self, chat_thread_id, # type: str @@ -1032,124 +920,3 @@ def update_chat_thread( return cls(pipeline_response, None, {}) update_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore - - def get_chat_thread( - self, - chat_thread_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.ChatThread" - """Gets a chat thread. - - Gets a chat thread. - - :param chat_thread_id: Thread id to get. - :type chat_thread_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ChatThread, or the result of cls(response) - :rtype: ~azure.communication.chat.models.ChatThread - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThread"] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - accept = "application/json" - - # Construct URL - url = self.get_chat_thread.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - deserialized = self._deserialize('ChatThread', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore - - def delete_chat_thread( - self, - chat_thread_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - """Deletes a thread. - - Deletes a thread. - - :param chat_thread_id: Thread id to delete. - :type chat_thread_id: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 401: lambda response: ClientAuthenticationError(response=response, model=self._deserialize(_models.Error, response)), - 403: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 429: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.Error, response)), - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-01-preview3" - accept = "application/json" - - # Construct URL - url = self.delete_chat_thread.metadata['url'] # type: ignore - path_format_arguments = { - 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), - 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.delete(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [204]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) - - if cls: - return cls(pipeline_response, None, {}) - - delete_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py index e90a459fdb60..c3771d66ccfa 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_client_async.py @@ -146,25 +146,25 @@ async def create_chat_thread( raise ValueError("List of ThreadParticipant cannot be None.") participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access - create_thread_request = CreateChatThreadRequest(topic=topic, participants=participants) - - response, create_chat_thread_result = await self._client.create_chat_thread( - create_thread_request, cls=return_response, **kwargs) - if response is not None: - response_header = response.http_response.headers - if ('Azure-Acs-InvalidParticipants' in response_header.keys() and - response_header['Azure-Acs-InvalidParticipants'] is not None): - invalid_participant_and_reason_list = response_header['Azure-Acs-InvalidParticipants'].split('|') - errors = [] - for invalid_participant_and_reason in invalid_participant_and_reason_list: - participant, reason = invalid_participant_and_reason.split(',', 1) - errors.append('participant ' + participant + ' failed to join thread ' - + create_chat_thread_result.id + ' return statue code ' + reason) - raise ValueError(errors) + create_thread_request = \ + CreateChatThreadRequest(topic=topic, participants=participants) + + create_chat_thread_result = await self._client.chat.create_chat_thread( + create_thread_request, **kwargs) + if hasattr(create_chat_thread_result, 'errors') \ + and create_chat_thread_result.errors is not None: + participants = \ + create_chat_thread_result.errors.invalid_participants + errors = [] + for participant in participants: + errors.append('participant ' + participant.target + + ' failed to join thread due to: ' + participant.message) + raise RuntimeError(errors) + thread_id = create_chat_thread_result.chat_thread.id return ChatThreadClient( endpoint=self._endpoint, credential=self._credential, - thread_id=create_chat_thread_result.id, + thread_id=thread_id, **kwargs ) @@ -194,7 +194,7 @@ async def get_chat_thread( if not thread_id: raise ValueError("thread_id cannot be None.") - chat_thread = await self._client.get_chat_thread(thread_id, **kwargs) + chat_thread = await self._client.chat.get_chat_thread(thread_id, **kwargs) return ChatThread._from_generated(chat_thread) # pylint:disable=protected-access @distributed_trace @@ -223,7 +223,7 @@ def list_chat_threads( results_per_page = kwargs.pop("results_per_page", None) start_time = kwargs.pop("start_time", None) - return self._client.list_chat_threads( + return self._client.chat.list_chat_threads( max_page_size=results_per_page, start_time=start_time, **kwargs) @@ -255,7 +255,7 @@ async def delete_chat_thread( if not thread_id: raise ValueError("thread_id cannot be None.") - return await self._client.delete_chat_thread(thread_id, **kwargs) + return await self._client.chat.delete_chat_thread(thread_id, **kwargs) async def close(self) -> None: await self._client.close() diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/_chat_thread_client_async.py index 808fe1da17cf..70d8aa4c6a7e 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 @@ -137,8 +137,8 @@ async def update_topic( :caption: Updating chat thread. """ - update_thread_request = UpdateChatThreadRequest(topic=topic) - return await self._client.update_chat_thread( + update_topic_request = UpdateChatThreadRequest(topic=topic) + return await self._client.chat_thread.update_chat_thread( chat_thread_id=self._thread_id, update_chat_thread_request=update_topic_request, **kwargs) @@ -171,7 +171,7 @@ async def send_read_receipt( raise ValueError("message_id cannot be None.") post_read_receipt_request = SendReadReceiptRequest(chat_message_id=message_id) - return await self._client.send_chat_read_receipt( + return await self._client.chat_thread.send_chat_read_receipt( self._thread_id, send_read_receipt_request=post_read_receipt_request, **kwargs) @@ -197,7 +197,7 @@ def list_read_receipts( :dedent: 12 :caption: Listing read receipts. """ - return self._client.list_chat_read_receipts( + return self._client.chat_thread.list_chat_read_receipts( self._thread_id, cls=lambda objs: [ChatMessageReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -223,7 +223,7 @@ async def send_typing_notification( :dedent: 12 :caption: Sending typing notification. """ - return await self._client.send_typing_notification(self._thread_id, **kwargs) + return await self._client.chat_thread.send_typing_notification(self._thread_id, **kwargs) @distributed_trace_async async def send_message( @@ -264,7 +264,7 @@ async def send_message( priority=priority, sender_display_name=sender_display_name ) - send_chat_message_result = await self._client.send_chat_message( + send_chat_message_result = await self._client.chat_thread.send_chat_message( chat_thread_id=self._thread_id, send_chat_message_request=create_message_request, **kwargs) @@ -298,7 +298,7 @@ async def get_message( if not message_id: raise ValueError("message_id cannot be None.") - chat_message = await self._client.get_chat_message(self._thread_id, message_id, **kwargs) + chat_message = await self._client.chat_thread.get_chat_message(self._thread_id, message_id, **kwargs) return ChatMessage._from_generated(chat_message) # pylint:disable=protected-access @distributed_trace @@ -327,9 +327,9 @@ def list_messages( results_per_page = kwargs.pop("results_per_page", None) start_time = kwargs.pop("start_time", None) - return self._client.list_chat_messages( + return self._client.chat_thread.list_chat_messages( self._thread_id, - max_page_size=results_per_page, + maxpagesize=results_per_page, start_time=start_time, cls=lambda objs: [ChatMessage._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -367,7 +367,7 @@ async def update_message( update_message_request = UpdateChatMessageRequest(content=content, priority=None) - return await self._client.update_chat_message( + return await self._client.chat_thread.update_chat_message( chat_thread_id=self._thread_id, chat_message_id=message_id, update_chat_message_request=update_message_request, @@ -400,7 +400,7 @@ async def delete_message( if not message_id: raise ValueError("message_id cannot be None.") - return await self._client.delete_chat_message( + return await self._client.chat_thread.delete_chat_message( chat_thread_id=self._thread_id, chat_message_id=message_id, **kwargs) @@ -426,7 +426,7 @@ def list_participants( :dedent: 12 :caption: Listing participants of chat thread. """ - return self._client.list_chat_participants( + return self._client.chat_thread.list_chat_participants( self._thread_id, cls=lambda objs: [ChatThreadParticipant._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -461,7 +461,7 @@ async def add_participant( participants = [thread_participant._to_generated()] # pylint:disable=protected-access add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - return await self._client.add_chat_participants( + return await self._client.chat_thread.add_chat_participants( chat_thread_id=self._thread_id, add_chat_participants_request=add_thread_participants_request, **kwargs) @@ -496,7 +496,7 @@ async def add_participants( participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - return await self._client.add_chat_participants( + return await self._client.chat_thread.add_chat_participants( chat_thread_id=self._thread_id, add_chat_participants_request=add_thread_participants_request, **kwargs) @@ -528,7 +528,7 @@ async def remove_participant( if not user: raise ValueError("user cannot be None.") - return await self._client.remove_chat_participant( + return await self._client.chat_thread.remove_chat_participant( chat_thread_id=self._thread_id, chat_participant_id=user.identifier, **kwargs) diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml index 7bef7ec7773e..c4fc01de4e8e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:19:09 GMT + - Fri, 04 Dec 2020 19:10:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:09 GMT + - Fri, 04 Dec 2020 19:10:08 GMT ms-cv: - - lhCdaxUwWUCal3LpTU2/gQ.0 + - ZLeyMdfjlUiaA7hFCaNAhQ.0 transfer-encoding: - chunked x-processing-time: - - 161ms + - 163ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:19:09 GMT + - Fri, 04 Dec 2020 19:10:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:19:09.280025+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:10:08.5963912+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:10 GMT + - Fri, 04 Dec 2020 19:10:09 GMT ms-cv: - - 9zBM01rBnkSnsXIF6pGg8w.0 + - ohVmGH8Y+kyPbqLNnXnMZA.0 transfer-encoding: - chunked x-processing-time: - - 318ms + - 319ms status: code: 200 message: OK @@ -89,27 +89,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:19:11Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:0ce5d13557174151846884a72a66f024@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:10:10Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0b-033a-ea7c-5a3a0d0003b7"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:11 GMT + - Fri, 04 Dec 2020 19:10:17 GMT ms-cv: - - wLPXVZlkIk+EvcDCV57y1w.0 + - Nlmt8PvUqk2FdWmxSsNyOQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1351ms + - 8296ms status: code: 201 message: Created @@ -125,9 +125,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:19:11 GMT + - Fri, 04 Dec 2020 19:10:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -139,11 +139,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:19:28 GMT + - Fri, 04 Dec 2020 19:10:33 GMT ms-cv: - - l/47be0coky6GSohoG6/uA.0 + - QfXR2/jGJ0ySXUq0ZuP0Ug.0 x-processing-time: - - 17271ms + - 16204ms status: code: 204 message: No Content @@ -159,7 +159,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -169,13 +169,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:19:29 GMT + - Fri, 04 Dec 2020 19:10:33 GMT ms-cv: - - HzqDDsO2CE+cpW9xSamN4w.0 + - Rl3SteqAb0uPhIqQDd7MZQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 323ms + - 330ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml index bac0ab889a78..6a7a77d3eb5c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:19:29 GMT + - Fri, 04 Dec 2020 19:10:34 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:29 GMT + - Fri, 04 Dec 2020 19:10:34 GMT ms-cv: - - SN6y0S8TH0KORnzRByGoUg.0 + - mF7CdbwyVE6FC8BBQo8NIQ.0 transfer-encoding: - chunked x-processing-time: - - 148ms + - 163ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:19:30 GMT + - Fri, 04 Dec 2020 19:10:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:19:29.5716996+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:10:34.7059512+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:29 GMT + - Fri, 04 Dec 2020 19:10:34 GMT ms-cv: - - uWqIQAyWREKBinbwxtNxyQ.0 + - 4rsH2sIQ1UWcvUl3NR2nvA.0 transfer-encoding: - chunked x-processing-time: - - 297ms + - 317ms status: code: 200 message: OK @@ -89,27 +89,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:19:31Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:c01d0c1aee764caba5df437ce44484be@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:10:36Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0b-6931-557d-5a3a0d00045d"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:31 GMT + - Fri, 04 Dec 2020 19:10:36 GMT ms-cv: - - oscR5GX7Vky40MLMHjeT5Q.0 + - DR9MRSFZZk2c2dzg2VnNCA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1341ms + - 908ms status: code: 201 message: Created @@ -125,7 +125,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -135,13 +135,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:19:32 GMT + - Fri, 04 Dec 2020 19:10:37 GMT ms-cv: - - HTHqkbsQBE24n1uuWzevlA.0 + - zCVlSJ/1MkKeoYuphyntXg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 327ms + - 324ms status: code: 204 message: No Content @@ -157,9 +157,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:19:32 GMT + - Fri, 04 Dec 2020 19:10:37 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -171,11 +171,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:19:49 GMT + - Fri, 04 Dec 2020 19:10:53 GMT ms-cv: - - q+P4L9UaAEuPRZqgxVFYNw.0 + - Jqb0IpezM0WltLJf/1aJ+A.0 x-processing-time: - - 16592ms + - 16388ms status: code: 204 message: No Content @@ -191,7 +191,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -201,13 +201,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:19:48 GMT + - Fri, 04 Dec 2020 19:10:53 GMT ms-cv: - - CwOn2xpCeEG4Vi66SNyTZA.0 + - RBxKrvVGbkiC0zkbgG+2uw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 251ms + - 269ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml index 0431e7809c53..c0040d70542d 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:19:49 GMT + - Fri, 04 Dec 2020 19:10:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:49 GMT + - Fri, 04 Dec 2020 19:10:54 GMT ms-cv: - - H+q0Jj4I9EaBypbStNPULg.0 + - BcEYMxZoM02u+cI9k4rsdw.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 211ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:19:49 GMT + - Fri, 04 Dec 2020 19:10:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:19:49.2596204+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:10:54.4658058+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:49 GMT + - Fri, 04 Dec 2020 19:10:55 GMT ms-cv: - - gHerHEpe9Um9mBStpqCpsw.0 + - 42U+LulfrUuD/FTi1AQZ9g.0 transfer-encoding: - chunked x-processing-time: - - 312ms + - 603ms status: code: 200 message: OK @@ -89,27 +89,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:19:50Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:25b5342f4ba3456d8cbd7a7f4a996ee4@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:10:55Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0b-b54e-b274-5a3a0d000303"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:50 GMT + - Fri, 04 Dec 2020 19:10:56 GMT ms-cv: - - UyVjv8vg2U27HwevNccVXA.0 + - BxE1rtrWgUSpgt16P580cQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 845ms + - 904ms status: code: 201 message: Created @@ -123,21 +123,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:19:50Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-12-04T19:10:55Z", + "createdBy": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:19:50 GMT + - Fri, 04 Dec 2020 19:10:56 GMT ms-cv: - - HIanX4hnMEqzk47JpFUnQg.0 + - wpn+hMZxF0+uIAAoD5A+wg.0 strict-transport-security: - max-age=2592000 transfer-encoding: @@ -159,9 +159,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:19:51 GMT + - Fri, 04 Dec 2020 19:10:57 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -173,11 +173,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:20:08 GMT + - Fri, 04 Dec 2020 19:11:12 GMT ms-cv: - - oPT6/1XsDUGqdhZpf8CPOw.0 + - 3efjdp87U02aDWvTSyzPzw.0 x-processing-time: - - 16545ms + - 16185ms status: code: 204 message: No Content @@ -193,7 +193,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -203,13 +203,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:20:07 GMT + - Fri, 04 Dec 2020 19:11:12 GMT ms-cv: - - mkFqRld8t02SdjqpytZVrA.0 + - ItVSpeOI9UuXAAHwHNmY2A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 304ms + - 330ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml index b5402ba74014..f4c9ac3a8493 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:20:09 GMT + - Fri, 04 Dec 2020 19:11:13 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:09 GMT + - Fri, 04 Dec 2020 19:11:13 GMT ms-cv: - - rA5btKsFg06XGStisyHugg.0 + - Ri68986tg0uW2yqd60Zatw.0 transfer-encoding: - chunked x-processing-time: - - 195ms + - 160ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:20:10 GMT + - Fri, 04 Dec 2020 19:11:14 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:20:09.3532462+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:11:13.459095+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:09 GMT + - Fri, 04 Dec 2020 19:11:14 GMT ms-cv: - - 4JRdsjYW+Um6vcKNiBKDJQ.0 + - YsqUGwBNzESmeJiRMVAZew.0 transfer-encoding: - chunked x-processing-time: - - 304ms + - 308ms status: code: 200 message: OK @@ -89,27 +89,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:20:10Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:baca4f223e664fe890c62445e9caeba1@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:11:15Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-0042-557d-5a3a0d00045e"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:11 GMT + - Fri, 04 Dec 2020 19:11:15 GMT ms-cv: - - OpFYOFiYMkWagptd3pV0tQ.0 + - HpM4vU0JqUCw9FwUOhRWRQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 836ms + - 1350ms status: code: 201 message: Created @@ -125,9 +125,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:20:11 GMT + - Fri, 04 Dec 2020 19:11:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -139,11 +139,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:20:27 GMT + - Fri, 04 Dec 2020 19:11:31 GMT ms-cv: - - mYTFkzkVmE6Q3Fhz5tgBuQ.0 + - +V+ZWmuPzkmb35aY9aU/pA.0 x-processing-time: - - 16069ms + - 16221ms status: code: 204 message: No Content @@ -159,7 +159,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -169,13 +169,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:20:27 GMT + - Fri, 04 Dec 2020 19:11:32 GMT ms-cv: - - dgIk5vEohk+XZCi2a+lKkA.0 + - xEUBZiB2rEq4Xir2J1CpGw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 295ms + - 335ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml index c3b0626fc745..766d2e5ece57 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:20:27 GMT + - Fri, 04 Dec 2020 19:11:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:27 GMT + - Fri, 04 Dec 2020 19:11:32 GMT ms-cv: - - ZtOl01ckpUGH/4TRzuEdLw.0 + - 8HhZXLWew0aAc6MXt0Hj6Q.0 transfer-encoding: - chunked x-processing-time: - - 151ms + - 159ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:20:28 GMT + - Fri, 04 Dec 2020 19:11:33 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:20:27.8080382+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:11:32.6326234+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:28 GMT + - Fri, 04 Dec 2020 19:11:33 GMT ms-cv: - - anDmDF3Q8kyP3C2nC7TxUQ.0 + - 3Gjeqgdf60i8etSM4zm/GQ.0 transfer-encoding: - chunked x-processing-time: - - 301ms + - 318ms status: code: 200 message: OK @@ -89,27 +89,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:20:29Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:a799d7fcae454760b6c0c28c9d085c71@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:11:34Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-4b7e-557d-5a3a0d00045f"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:29 GMT + - Fri, 04 Dec 2020 19:11:34 GMT ms-cv: - - mqvLyVJrq0i2gWVOshq+hw.0 + - iwK3xwsPHEuG7Wxr3mITdQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 836ms + - 908ms status: code: 201 message: Created @@ -123,7 +123,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 response: @@ -134,15 +134,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:31 GMT + - Fri, 04 Dec 2020 19:11:36 GMT ms-cv: - - csVt83Uuw0Su49XZjCJSkA.0 + - VmfcvV6KOEm9LEIqlTQBHQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 412ms + - 448ms status: code: 200 message: OK @@ -158,9 +158,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:20:32 GMT + - Fri, 04 Dec 2020 19:11:37 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -172,11 +172,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:20:48 GMT + - Fri, 04 Dec 2020 19:11:53 GMT ms-cv: - - +bY5lxNVIkC85eE9KeRMgg.0 + - 5hWo7vJS0EiqkbLLbVInHw.0 x-processing-time: - - 16912ms + - 16834ms status: code: 204 message: No Content @@ -192,7 +192,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -202,13 +202,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:20:49 GMT + - Fri, 04 Dec 2020 19:11:53 GMT ms-cv: - - 6lzh61ChDU2JPa7gROzRzw.0 + - 9THbCS2SPEys/98LWQe16w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 405ms + - 328ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml index 33d75f4cd399..8e55167b8747 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:20:50 GMT + - Fri, 04 Dec 2020 19:11:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:49 GMT + - Fri, 04 Dec 2020 19:11:54 GMT ms-cv: - - 7LNIlmsgVUKLclt9NmrIdg.0 + - CxHoI5d/nUSieUsdJoKX0w.0 transfer-encoding: - chunked x-processing-time: - - 191ms + - 163ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:20:50 GMT + - Fri, 04 Dec 2020 19:11:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:20:49.1938339+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:11:54.8081004+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:20:50 GMT + - Fri, 04 Dec 2020 19:11:54 GMT ms-cv: - - pdnzelD87EG6AddYOK4FuA.0 + - gXPPdkyS7UOhz1IUrXZOLQ.0 transfer-encoding: - chunked x-processing-time: - - 597ms + - 662ms status: code: 200 message: OK @@ -85,20 +85,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:20:51Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:92e0acd9303f420e91fb3aab147a4766@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:11:56Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-a0ba-8a72-5a3a0d00034c"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:20:51 GMT - ms-cv: qT9nZ+YTzEWXC+i4ToeZOQ.0 + date: Fri, 04 Dec 2020 19:11:56 GMT + ms-cv: fxMSCOM7FkCc2KGrjItV+A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1179ms + x-processing-time: 907ms status: code: 201 message: Created @@ -109,7 +109,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -117,10 +117,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:20:52 GMT - ms-cv: tF1t6AUKb0WV2J9oK1uNeg.0 + date: Fri, 04 Dec 2020 19:11:57 GMT + ms-cv: WJoyqTwFU0CKzf1GPju1/w.0 strict-transport-security: max-age=2592000 - x-processing-time: 298ms + x-processing-time: 328ms status: code: 204 message: No Content @@ -137,9 +137,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:20:52 GMT + - Fri, 04 Dec 2020 19:11:57 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -151,11 +151,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:21:10 GMT + - Fri, 04 Dec 2020 19:12:13 GMT ms-cv: - - DCjC30JvEEGcibXtzydfQQ.0 + - wSF4aNKkEk6aUJz6MwD5Tg.0 x-processing-time: - - 17288ms + - 16387ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml index b052f61217aa..110b7f750b88 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:21:10 GMT + - Fri, 04 Dec 2020 19:12:13 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:21:10 GMT + - Fri, 04 Dec 2020 19:12:14 GMT ms-cv: - - wq7cVApy4kqd6SYbx3fpcQ.0 + - BC9z1BJcZUW3yD7d5+FGAA.0 transfer-encoding: - chunked x-processing-time: - - 143ms + - 150ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:21:10 GMT + - Fri, 04 Dec 2020 19:12:14 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:21:10.0726718+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:12:13.5682068+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:21:10 GMT + - Fri, 04 Dec 2020 19:12:14 GMT ms-cv: - - o2X2iQrwf0WAzigZf5n2TA.0 + - f4CckEXxGEGG9RSQGRWRbQ.0 transfer-encoding: - chunked x-processing-time: - - 299ms + - 320ms status: code: 200 message: OK @@ -85,20 +85,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:21:11Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:3e4f7f02fc7c4d848ffc8174217b04b9@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:12:15Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-eb65-8a72-5a3a0d00034d"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:21:11 GMT - ms-cv: aUwac+kdn0Sx2po45PYNyQ.0 + date: Fri, 04 Dec 2020 19:12:15 GMT + ms-cv: 4Rd+PNE5H0qjPzYUiNTe3A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 845ms + x-processing-time: 893ms status: code: 201 message: Created @@ -109,7 +109,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -117,10 +117,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:21:11 GMT - ms-cv: 7MyJLIjrCU2H24DKADVQPg.0 + date: Fri, 04 Dec 2020 19:12:15 GMT + ms-cv: /oy07bczM0OUuelRThSWoA.0 strict-transport-security: max-age=2592000 - x-processing-time: 284ms + x-processing-time: 334ms status: code: 204 message: No Content @@ -131,7 +131,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -139,10 +139,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:21:11 GMT - ms-cv: mq02YsmKVkC0uCqh2FcEeg.0 + date: Fri, 04 Dec 2020 19:12:15 GMT + ms-cv: eY/meUaW3ku71kdlog87yA.0 strict-transport-security: max-age=2592000 - x-processing-time: 245ms + x-processing-time: 269ms status: code: 204 message: No Content @@ -159,9 +159,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:21:12 GMT + - Fri, 04 Dec 2020 19:12:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -173,11 +173,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:21:28 GMT + - Fri, 04 Dec 2020 19:12:32 GMT ms-cv: - - Y94mNlSzdUyoLHiR+Ba/2g.0 + - LbY5liNdGE+0uC/TLJWWtw.0 x-processing-time: - - 16505ms + - 16338ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml index 6a188ddad020..ef48cd8e2864 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:21:29 GMT + - Fri, 04 Dec 2020 19:12:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:21:29 GMT + - Fri, 04 Dec 2020 19:12:33 GMT ms-cv: - - zaLjG0NY1UaFlb37HqCSoA.0 + - 7HJUgoqEY0+tMZj1LHMLXA.0 transfer-encoding: - chunked x-processing-time: - - 144ms + - 149ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:21:29 GMT + - Fri, 04 Dec 2020 19:12:33 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:21:29.3965216+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:12:32.6909335+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:21:30 GMT + - Fri, 04 Dec 2020 19:12:33 GMT ms-cv: - - cbQRTe8Aek+UNzyPsIOY9Q.0 + - p+rktYsA+kuFz/9yWOVPEA.0 transfer-encoding: - chunked x-processing-time: - - 299ms + - 302ms status: code: 200 message: OK @@ -85,20 +85,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:21:30Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:4c1fe998f91149eb8633785e068a5631@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:12:34Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0d-361b-ea7c-5a3a0d0003ba"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:21:31 GMT - ms-cv: l2HmSTYrbE27CkF0SDA+Aw.0 + date: Fri, 04 Dec 2020 19:12:34 GMT + ms-cv: 4qusa0VscESH1xeBLiFVog.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 979ms + x-processing-time: 893ms status: code: 201 message: Created @@ -109,20 +109,20 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:21:30Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-12-04T19:12:34Z", + "createdBy": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:21:31 GMT - ms-cv: 48rJVl5XQEGV7MMbLQuY2Q.0 + date: Fri, 04 Dec 2020 19:12:34 GMT + ms-cv: z6wYzZ8u0ESCKP2S+F7/Ig.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 252ms + x-processing-time: 262ms status: code: 200 message: OK @@ -133,7 +133,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -141,10 +141,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:21:32 GMT - ms-cv: xBuagQl1ZUq9XQpOoTP2kQ.0 + date: Fri, 04 Dec 2020 19:12:35 GMT + ms-cv: +PzgPuRsh02CGevSpzIY6Q.0 strict-transport-security: max-age=2592000 - x-processing-time: 360ms + x-processing-time: 338ms status: code: 204 message: No Content @@ -161,9 +161,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:21:32 GMT + - Fri, 04 Dec 2020 19:12:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -175,11 +175,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:21:47 GMT + - Fri, 04 Dec 2020 19:12:51 GMT ms-cv: - - +tRng5OY0EShIZ+U7tvKtg.0 + - 6+d84SqH7k6lschaPQeALQ.0 x-processing-time: - - 16050ms + - 16524ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml index d69b3a04edb2..30d7554fc94e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:21:48 GMT + - Fri, 04 Dec 2020 19:12:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:21:48 GMT + - Fri, 04 Dec 2020 19:12:51 GMT ms-cv: - - uer+Ea5JKk618XcX2aUYjA.0 + - v0EW/9SY7kuve9HcIDEwaw.0 transfer-encoding: - chunked x-processing-time: - - 144ms + - 254ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:21:48 GMT + - Fri, 04 Dec 2020 19:12:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:21:48.2262131+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:12:52.0754754+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:21:48 GMT + - Fri, 04 Dec 2020 19:12:52 GMT ms-cv: - - sa3ESOR4OEmriuLdfNHomQ.0 + - zGJBbUNCrEuvK63pHVjseA.0 transfer-encoding: - chunked x-processing-time: - - 297ms + - 314ms status: code: 200 message: OK @@ -85,20 +85,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:21:49Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:da28cac25aab45e8bf89ef720b43a6bf@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:12:53Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0d-81cf-ea7c-5a3a0d0003bb"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:21:50 GMT - ms-cv: ya0Ghl3QsEiAC+8XL/RmXQ.0 + date: Fri, 04 Dec 2020 19:12:54 GMT + ms-cv: QKVSvwPzv0qXwIWDsNc6/A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 838ms + x-processing-time: 891ms status: code: 201 message: Created @@ -109,7 +109,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -117,10 +117,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:21:50 GMT - ms-cv: pdps7Mhv+kKCLyJnFbZcwQ.0 + date: Fri, 04 Dec 2020 19:12:54 GMT + ms-cv: DffsqGfBnUWYl370pIEKHw.0 strict-transport-security: max-age=2592000 - x-processing-time: 293ms + x-processing-time: 323ms status: code: 204 message: No Content @@ -137,9 +137,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:21:50 GMT + - Fri, 04 Dec 2020 19:12:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -151,11 +151,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:22:06 GMT + - Fri, 04 Dec 2020 19:13:10 GMT ms-cv: - - hh/fQapqO0+qU9rHgve42w.0 + - yjKTr3a6s0amd6k1VbgwHA.0 x-processing-time: - - 16894ms + - 16288ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml index c0de98e51194..16720bd0fb34 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:22:07 GMT + - Fri, 04 Dec 2020 19:13:10 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:22:07 GMT + - Fri, 04 Dec 2020 19:13:10 GMT ms-cv: - - abSdviEBLUyqxoosse0XjQ.0 + - 187AYzPatk2wYu28j4wx5g.0 transfer-encoding: - chunked x-processing-time: - - 143ms + - 203ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:22:08 GMT + - Fri, 04 Dec 2020 19:13:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:22:07.3610587+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:13:10.6881288+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:22:07 GMT + - Fri, 04 Dec 2020 19:13:10 GMT ms-cv: - - t9nhLIXhQUO5LmSKQIwh0Q.0 + - ZG/QmqBSWUyXYi7mlMcHbQ.0 transfer-encoding: - chunked x-processing-time: - - 298ms + - 299ms status: code: 200 message: OK @@ -81,24 +81,24 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '205' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:22:08Z", - "createdBy": "sanitized", "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:0b66405c8f2c4b39aa3a8d2196994bf1@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:13:12Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0d-ca8b-557d-5a3a0d000460"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:22:08 GMT - ms-cv: p0gwIWsmHkWyCUYRDGsFdA.0 + date: Fri, 04 Dec 2020 19:13:12 GMT + ms-cv: ozyc6vEKgkewN02Vl31xMg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 821ms + x-processing-time: 891ms status: code: 201 message: Created @@ -109,7 +109,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 response: @@ -117,11 +117,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:22:10 GMT - ms-cv: PDZijimua0aXNcZburvjWA.0 + date: Fri, 04 Dec 2020 19:13:14 GMT + ms-cv: VHGrLByFTUijbFrNwesOgA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 381ms + x-processing-time: 384ms status: code: 200 message: OK @@ -132,7 +132,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -140,10 +140,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:22:11 GMT - ms-cv: r/IuVej42ESHIcmoag/dGg.0 + date: Fri, 04 Dec 2020 19:13:15 GMT + ms-cv: Fj+XXuooM0qS2LkmB50IDQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 283ms + x-processing-time: 328ms status: code: 204 message: No Content @@ -160,9 +160,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:22:12 GMT + - Fri, 04 Dec 2020 19:13:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -174,11 +174,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:22:28 GMT + - Fri, 04 Dec 2020 19:13:31 GMT ms-cv: - - Zo8NCaK/50OTdE0tDA7mDg.0 + - sym6uodMakSuKLaG4eBS4g.0 x-processing-time: - - 16231ms + - 17019ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml index fdae2aa3db70..133a9a783629 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:22:28 GMT + - Fri, 04 Dec 2020 19:13:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:22:28 GMT + - Fri, 04 Dec 2020 19:13:32 GMT ms-cv: - - dd+vYARl/0aU1L4LstbDYg.0 + - 66nTBSY+Okii5WsarUmmDg.0 transfer-encoding: - chunked x-processing-time: - - 160ms + - 147ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:22:29 GMT + - Fri, 04 Dec 2020 19:13:33 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:22:28.3411326+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:13:32.650274+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:22:28 GMT + - Fri, 04 Dec 2020 19:13:33 GMT ms-cv: - - mFh0TCxslE2XE+AM30ML5w.0 + - KzKzL1twJ0WwWKDyYl5J/g.0 transfer-encoding: - chunked x-processing-time: - - 300ms + - 301ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:22:29 GMT + - Fri, 04 Dec 2020 19:13:33 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,9 +102,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:22:29 GMT + - Fri, 04 Dec 2020 19:13:33 GMT ms-cv: - - 6P4tYc+Oskis9JocjuFqfQ.0 + - WZczyhAvAkajNH4/21t5tw.0 transfer-encoding: - chunked x-processing-time: @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:22:29Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a206-a7ef-b274-5a3a0d00011b", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:359bb36a2bca4db4bdd5d3a3c8b57583@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:13:34Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0e-2056-557d-5a3a0d000461"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:22:30 GMT + - Fri, 04 Dec 2020 19:13:34 GMT ms-cv: - - VyHZBwcHUkeq1ZBe0z0K4w.0 + - OydZhnmPGUGCoTahFLS3eA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 830ms + - 936ms status: code: 201 message: Created @@ -161,29 +160,30 @@ interactions: Connection: - keep-alive Content-Length: - - '183' + - '182' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: - body: - string: '' + body: '{}' headers: api-supported-versions: - 2020-11-01-preview3 - content-length: - - '0' + content-type: + - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:22:31 GMT + - Fri, 04 Dec 2020 19:13:35 GMT ms-cv: - - 6ovFy1YWXUyzgtTCQ0AuEg.0 + - RvgxhlL+j0CEbX1hnOFAcg.0 strict-transport-security: - max-age=2592000 + transfer-encoding: + - chunked x-processing-time: - - 913ms + - 885ms status: code: 201 message: Created @@ -199,9 +199,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:22:31 GMT + - Fri, 04 Dec 2020 19:13:36 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -213,11 +213,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:22:47 GMT + - Fri, 04 Dec 2020 19:13:52 GMT ms-cv: - - NghzSFVLlkWYMI9eO/A79g.0 + - 2G5FZKmerkOTQOcSVMpLgA.0 x-processing-time: - - 16596ms + - 16515ms status: code: 204 message: No Content @@ -233,9 +233,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:22:48 GMT + - Fri, 04 Dec 2020 19:13:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -247,11 +247,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:23:04 GMT + - Fri, 04 Dec 2020 19:14:08 GMT ms-cv: - - XRgg32P31UWn2RQYkEZ09g.0 + - RBA0k5mEu0+cUTaRTV2QTg.0 x-processing-time: - - 15718ms + - 16038ms status: code: 204 message: No Content @@ -267,7 +267,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -277,13 +277,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:23:04 GMT + - Fri, 04 Dec 2020 19:14:08 GMT ms-cv: - - jXcUJDKMH0yz1gpWOq5TVQ.0 + - fpb0UMnnYUeZuvjw43iCzA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 305ms + - 340ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml index 003c8e255415..e7e43143dab2 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:23:04 GMT + - Fri, 04 Dec 2020 19:14:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:04 GMT + - Fri, 04 Dec 2020 19:14:09 GMT ms-cv: - - HerM2mQmd02OBAdCT3OyXQ.0 + - GzCnrCvImEaHW5E+51dNyg.0 transfer-encoding: - chunked x-processing-time: - - 148ms + - 145ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:23:05 GMT + - Fri, 04 Dec 2020 19:14:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:23:04.4533324+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:14:08.0923235+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:04 GMT + - Fri, 04 Dec 2020 19:14:09 GMT ms-cv: - - pn2gx/zkCEKfuOZPXwRTwQ.0 + - CcJoTLfoOECVSoogJIrecA.0 transfer-encoding: - chunked x-processing-time: - - 301ms + - 296ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:23:05 GMT + - Fri, 04 Dec 2020 19:14:10 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:04 GMT + - Fri, 04 Dec 2020 19:14:10 GMT ms-cv: - - /2+tkc7pLEelGGLEH9kcJw.0 + - 8NnEy4VOhECDEeAVvJDSEw.0 transfer-encoding: - chunked x-processing-time: - - 149ms + - 144ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:23:06Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a207-34f9-b274-5a3a0d00011d", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:0986da17e18842748f206bad3224ec3b@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:14:10Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0e-aeaf-557d-5a3a0d000463"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:06 GMT + - Fri, 04 Dec 2020 19:14:11 GMT ms-cv: - - Vmgei+anTEqeebmxZHF4CQ.0 + - 1Kn8y//W20iUTNW/gAULxQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 818ms + - 933ms status: code: 201 message: Created @@ -165,25 +164,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: - body: - string: '' + body: '{}' headers: api-supported-versions: - 2020-11-01-preview3 - content-length: - - '0' + content-type: + - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:07 GMT + - Fri, 04 Dec 2020 19:14:12 GMT ms-cv: - - +sEVZwQx9kCCFwTfvjBrFg.0 + - kuLzHjpkVkOHwHcv4iYdkQ.0 strict-transport-security: - max-age=2592000 + transfer-encoding: + - chunked x-processing-time: - - 843ms + - 894ms status: code: 201 message: Created @@ -199,9 +199,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:23:07 GMT + - Fri, 04 Dec 2020 19:14:12 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -213,11 +213,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:23:23 GMT + - Fri, 04 Dec 2020 19:14:28 GMT ms-cv: - - NRdn3as36kaQxHnmvueoPg.0 + - TCh/T9s1PkGPW61WEJIADw.0 x-processing-time: - - 15967ms + - 15993ms status: code: 204 message: No Content @@ -233,9 +233,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:23:23 GMT + - Fri, 04 Dec 2020 19:14:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -247,11 +247,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:23:40 GMT + - Fri, 04 Dec 2020 19:14:44 GMT ms-cv: - - PE0+Qm7kaEWHpVkvK1uWcQ.0 + - 23ejVnv6O0yOu90P1eN+RQ.0 x-processing-time: - - 16637ms + - 16028ms status: code: 204 message: No Content @@ -267,7 +267,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -277,13 +277,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:23:40 GMT + - Fri, 04 Dec 2020 19:14:44 GMT ms-cv: - - XyxI2gXMv0mcHZAKSMH0yg.0 + - IInBSeWpqESdqTAPVYhKRQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 312ms + - 338ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml index 587dc4e95b6a..f37fb7df8870 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:23:41 GMT + - Fri, 04 Dec 2020 19:14:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:40 GMT + - Fri, 04 Dec 2020 19:14:44 GMT ms-cv: - - +FisQ6g8mkuEiGHBt184tA.0 + - I1XTgQn8fEaERd7bA2XcSA.0 transfer-encoding: - chunked x-processing-time: - - 144ms + - 147ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:23:41 GMT + - Fri, 04 Dec 2020 19:14:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:23:40.9543611+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:14:45.0818798+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:41 GMT + - Fri, 04 Dec 2020 19:14:45 GMT ms-cv: - - FowW+e67ZkWt5cNBT2x/hg.0 + - osUMHo8HNUmqum6uNNUpEA.0 transfer-encoding: - chunked x-processing-time: - - 298ms + - 300ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:23:41 GMT + - Fri, 04 Dec 2020 19:14:46 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:41 GMT + - Fri, 04 Dec 2020 19:14:45 GMT ms-cv: - - F5vvIThR+0aETPMo6gJvAw.0 + - 4HJK7dzhgkeOvWHAB7lOYg.0 transfer-encoding: - chunked x-processing-time: - - 139ms + - 156ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:23:42Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a207-c397-b274-5a3a0d00011f", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:ff503ee6c8594e28b67823c26844e110@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:14:46Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0f-3b50-ea7c-5a3a0d0003c0"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:42 GMT + - Fri, 04 Dec 2020 19:14:46 GMT ms-cv: - - nC7RUoxItUSPZAjGCSYyyA.0 + - 9zh/cwC2Q0qP7JoPsLcufQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 832ms + - 916ms status: code: 201 message: Created @@ -166,7 +165,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -177,15 +176,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:23:43 GMT + - Fri, 04 Dec 2020 19:14:47 GMT ms-cv: - - ILiVsd9LVkCkQeOJ/MSVBQ.0 + - CHnUwQeLMUeD1tcUVcOGYA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 632ms + - 972ms status: code: 201 message: Created @@ -201,7 +200,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: @@ -211,13 +210,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:23:44 GMT + - Fri, 04 Dec 2020 19:14:48 GMT ms-cv: - - RTgZ5X8qA0OUsZRVG9lBeQ.0 + - uQNd0JCCkUCZ/yUN2OezLA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 395ms + - 438ms status: code: 204 message: No Content @@ -233,9 +232,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:23:44 GMT + - Fri, 04 Dec 2020 19:14:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -247,11 +246,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:24:01 GMT + - Fri, 04 Dec 2020 19:15:05 GMT ms-cv: - - CRD1a1Uh4kSa7pqIKjPX5g.0 + - CwEP7775VEaSZ7bdoAmdAg.0 x-processing-time: - - 16806ms + - 16464ms status: code: 204 message: No Content @@ -267,9 +266,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:24:01 GMT + - Fri, 04 Dec 2020 19:15:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -281,11 +280,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:24:16 GMT + - Fri, 04 Dec 2020 19:15:21 GMT ms-cv: - - 3KneB3pMBUmzbeKy9rpxiA.0 + - X89yE3T/B0S+EybBRMKGBA.0 x-processing-time: - - 15876ms + - 15938ms status: code: 204 message: No Content @@ -301,7 +300,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -311,13 +310,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:24:17 GMT + - Fri, 04 Dec 2020 19:15:22 GMT ms-cv: - - XrmTL9T+zE6cRYMnS+mh2w.0 + - UHEqR0IiRUu3FOw/OBltlw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 292ms + - 319ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml index 8c8eb60c1efa..cc6458f02a09 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:24:17 GMT + - Fri, 04 Dec 2020 19:15:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:17 GMT + - Fri, 04 Dec 2020 19:15:22 GMT ms-cv: - - msRYo46MSkyKI84reLo0HA.0 + - TeHiskrrk0Sz+x3dUaejwg.0 transfer-encoding: - chunked x-processing-time: - - 194ms + - 163ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:24:18 GMT + - Fri, 04 Dec 2020 19:15:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:24:17.1459685+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:15:21.1504317+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:18 GMT + - Fri, 04 Dec 2020 19:15:22 GMT ms-cv: - - ME5w3LfU3k6qpGONFQFRGg.0 + - JlcRF/VHg02YiMeqTb7ZDQ.0 transfer-encoding: - chunked x-processing-time: - - 814ms + - 304ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:24:19 GMT + - Fri, 04 Dec 2020 19:15:23 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:18 GMT + - Fri, 04 Dec 2020 19:15:23 GMT ms-cv: - - IOXvc6LenEGqFVWCmDEvdw.0 + - 1VUNCQ0aZUOyHEUoG+nwDA.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 156ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:24:19Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a208-52d1-557d-5a3a0d0000df", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:6b91ae6ba6cb4ae68173dd61b86cb059@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:15:24Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0f-cc06-ea7c-5a3a0d0003c2"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:19 GMT + - Fri, 04 Dec 2020 19:15:24 GMT ms-cv: - - EKBi3K6XsE+2Lhsqi5cRhg.0 + - ujfAJwQus0KsuP9nVpb9Kg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 825ms + - 1371ms status: code: 201 message: Created @@ -166,7 +165,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -177,15 +176,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:20 GMT + - Fri, 04 Dec 2020 19:15:25 GMT ms-cv: - - Orn/iKS620SaBNazUpUxiQ.0 + - bqF+aMTF50KO7mot7QSieQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 684ms + - 633ms status: code: 201 message: Created @@ -199,12 +198,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1606353860857", - "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-11-26T01:24:20Z", + body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1607109325492", + "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-12-04T19:15:25Z", "senderId": "sanitized"}' headers: api-supported-versions: @@ -212,15 +211,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:20 GMT + - Fri, 04 Dec 2020 19:15:25 GMT ms-cv: - - TgVAXmNOVUqQDFtLimeI3g.0 + - /58MZ5FKWE2jU6pN1v8+0w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 262ms + - 268ms status: code: 200 message: OK @@ -236,9 +235,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:24:21 GMT + - Fri, 04 Dec 2020 19:15:26 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -250,11 +249,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:24:38 GMT + - Fri, 04 Dec 2020 19:15:42 GMT ms-cv: - - 7WkXURdvCUadQaKfM0XUCg.0 + - DNome154JkqG75Xc14hXpw.0 x-processing-time: - - 17535ms + - 16646ms status: code: 204 message: No Content @@ -270,9 +269,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:24:39 GMT + - Fri, 04 Dec 2020 19:15:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -284,11 +283,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:24:55 GMT + - Fri, 04 Dec 2020 19:15:59 GMT ms-cv: - - 6iwCu22I9kCdX7N0AL23AA.0 + - 2+iM10qwgEqYqzy89vZZiQ.0 x-processing-time: - - 16376ms + - 16653ms status: code: 204 message: No Content @@ -304,7 +303,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -314,13 +313,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:24:55 GMT + - Fri, 04 Dec 2020 19:15:59 GMT ms-cv: - - aNenUrVPlEqJY0ZCn/jJGw.0 + - hL3pKmy150S7qGSzF2YGZw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 323ms + - 328ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml index f9440f907da3..3e21f6fc822c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:24:56 GMT + - Fri, 04 Dec 2020 19:16:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:56 GMT + - Fri, 04 Dec 2020 19:16:00 GMT ms-cv: - - 804wtj3mZUO4fzi6Z15Q+g.0 + - B5DZN3xiXkqoOoSfkesxPQ.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 155ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:24:56 GMT + - Fri, 04 Dec 2020 19:16:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:24:55.8283538+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:15:59.9494375+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:56 GMT + - Fri, 04 Dec 2020 19:16:00 GMT ms-cv: - - YO9czrtDg0yc1yz5Q+dGtA.0 + - Wl+H+wwwtkCy4Mh29Lcn9Q.0 transfer-encoding: - chunked x-processing-time: - - 302ms + - 311ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:24:56 GMT + - Fri, 04 Dec 2020 19:16:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:57 GMT + - Fri, 04 Dec 2020 19:16:00 GMT ms-cv: - - SCM4p2/tX0ikotqp00XisQ.0 + - ixXvh6V1kU+5r8N9dnFLFA.0 transfer-encoding: - chunked x-processing-time: - - 148ms + - 157ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:24:57Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a208-e816-b274-5a3a0d000121", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:e841d6d0e14b4af09279e8e971c22d61@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:16:02Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf10-5fbb-ea7c-5a3a0d0003c4"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:57 GMT + - Fri, 04 Dec 2020 19:16:02 GMT ms-cv: - - zYy8Kz/sKEKeY2vLvJFEvw.0 + - WRXHBIB+dUedWWB7oGKMoA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 830ms + - 1375ms status: code: 201 message: Created @@ -166,7 +165,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -177,15 +176,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:24:58 GMT + - Fri, 04 Dec 2020 19:16:03 GMT ms-cv: - - 6hVNy/RtuUyr5NI1d6pKYQ.0 + - t0V2QXV8J0CcHnSlv6JYVg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 695ms + - 698ms status: code: 201 message: Created @@ -199,9 +198,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -210,15 +209,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:00 GMT + - Fri, 04 Dec 2020 19:16:05 GMT ms-cv: - - ghjd+uaBPE+xWRWajPhGfw.0 + - 2yzw1m4AZ0SEHdkx3tzgPQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 268ms + - 283ms status: code: 200 message: OK @@ -232,9 +231,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -243,15 +242,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:01 GMT + - Fri, 04 Dec 2020 19:16:06 GMT ms-cv: - - 2m12bXnZ/U++YwOOw50L4Q.0 + - Cnxq7R6BRUmRVki3OcGhmw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 365ms + - 358ms status: code: 200 message: OK @@ -265,9 +264,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -276,15 +275,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:01 GMT + - Fri, 04 Dec 2020 19:16:06 GMT ms-cv: - - +DvJechO5UqgndvobbF2Xw.0 + - M28vXivcv0u8fbbpV37AAQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 367ms + - 350ms status: code: 200 message: OK @@ -298,9 +297,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -309,15 +308,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:02 GMT + - Fri, 04 Dec 2020 19:16:07 GMT ms-cv: - - lIr4DY11dUmOWzkSHJ8mBA.0 + - +EfVJuIMCUqXrfZAYBwXxA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 366ms + - 361ms status: code: 200 message: OK @@ -333,9 +332,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:25:02 GMT + - Fri, 04 Dec 2020 19:16:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -347,11 +346,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:25:18 GMT + - Fri, 04 Dec 2020 19:16:24 GMT ms-cv: - - rIgTwNjkGkeXkbNXZKnPXQ.0 + - KcmKBuUdTUCtgooQYhrquQ.0 x-processing-time: - - 16745ms + - 17041ms status: code: 204 message: No Content @@ -367,9 +366,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:25:19 GMT + - Fri, 04 Dec 2020 19:16:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -381,11 +380,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:25:34 GMT + - Fri, 04 Dec 2020 19:16:40 GMT ms-cv: - - kgOJ7BrWGkW6e+weZb19Zw.0 + - JD9RCbq3b0iNcH9u/ay65Q.0 x-processing-time: - - 16159ms + - 16121ms status: code: 204 message: No Content @@ -401,7 +400,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -411,13 +410,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:25:35 GMT + - Fri, 04 Dec 2020 19:16:40 GMT ms-cv: - - AqDCHeUbjkycBwqCunGccA.0 + - g0JnDl0+r02hUgbV8ws98g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 284ms + - 337ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml index 85a09145bc68..2551bed9e37b 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:25:35 GMT + - Fri, 04 Dec 2020 19:16:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:36 GMT + - Fri, 04 Dec 2020 19:16:41 GMT ms-cv: - - hX/F05n4+UKEOjz3NIZWRQ.0 + - nO8pu1egoEqqv8dH+gISKw.0 transfer-encoding: - chunked x-processing-time: - - 179ms + - 177ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:25:36 GMT + - Fri, 04 Dec 2020 19:16:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:25:35.7750135+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:16:41.6855087+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:36 GMT + - Fri, 04 Dec 2020 19:16:42 GMT ms-cv: - - WQ0fCTY9wEaEnGxgj2ontQ.0 + - 6zrrKPD94k2WqW3dc+YpKQ.0 transfer-encoding: - chunked x-processing-time: - - 299ms + - 692ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:25:36 GMT + - Fri, 04 Dec 2020 19:16:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:36 GMT + - Fri, 04 Dec 2020 19:16:42 GMT ms-cv: - - DcATocgmY02K03bo5XfKLQ.0 + - 5q5EhgpRNUaM6EcVLJdvng.0 transfer-encoding: - chunked x-processing-time: - - 144ms + - 171ms status: code: 200 message: OK @@ -122,32 +122,31 @@ interactions: Connection: - keep-alive Content-Length: - - '205' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:25:37Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a209-8417-b274-5a3a0d000123", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:d499e180c13f4066aacaf7d0fe3c24fb@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:16:43Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf11-0133-8a72-5a3a0d00034e"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:37 GMT + - Fri, 04 Dec 2020 19:16:43 GMT ms-cv: - - jrosRGQh3ECXqftkXzAp9Q.0 + - WAg3UltJL0Gc1twzjSkMzA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 815ms + - 881ms status: code: 201 message: Created @@ -161,7 +160,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: @@ -172,15 +171,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:25:40 GMT + - Fri, 04 Dec 2020 19:16:46 GMT ms-cv: - - laV96dm1/E6ElZcKmLUUaA.0 + - 02zCDsS1T0KWqcfYynbtIw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 744ms + - 254ms status: code: 200 message: OK @@ -196,9 +195,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:25:41 GMT + - Fri, 04 Dec 2020 19:16:46 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -210,11 +209,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:25:56 GMT + - Fri, 04 Dec 2020 19:17:02 GMT ms-cv: - - 8U13ljcOEUuE4HMKo2PdsA.0 + - UtzQEybrkEqMBVSxZFW/sQ.0 x-processing-time: - - 16007ms + - 16069ms status: code: 204 message: No Content @@ -230,9 +229,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:25:57 GMT + - Fri, 04 Dec 2020 19:17:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -244,11 +243,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:26:12 GMT + - Fri, 04 Dec 2020 19:17:18 GMT ms-cv: - - yLDPZxhkcEWJb7m8HoJCdg.0 + - rDK9fH5K30ywZKK8eWhfRw.0 x-processing-time: - - 16445ms + - 16353ms status: code: 204 message: No Content @@ -264,7 +263,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -274,13 +273,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:26:13 GMT + - Fri, 04 Dec 2020 19:17:18 GMT ms-cv: - - UZR2pU4w+UmssQdbohylhw.0 + - +jLVieBu6E6QNZ9Z+bVNGg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 289ms + - 330ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml index d8285c7a3c99..0d0b93840a13 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:26:14 GMT + - Fri, 04 Dec 2020 19:17:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:13 GMT + - Fri, 04 Dec 2020 19:17:19 GMT ms-cv: - - A/P9P9V6pEadsXcfwqqklg.0 + - Dltg9sSjFk66pNR2joGILg.0 transfer-encoding: - chunked x-processing-time: - - 146ms + - 166ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:26:14 GMT + - Fri, 04 Dec 2020 19:17:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:26:14.0829614+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:17:19.4713905+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:14 GMT + - Fri, 04 Dec 2020 19:17:19 GMT ms-cv: - - JM8r6v+YY0ejA6y0LsKhBw.0 + - ZiU/1rWYvEKfxTOK8LLu2g.0 transfer-encoding: - chunked x-processing-time: - - 303ms + - 315ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:26:15 GMT + - Fri, 04 Dec 2020 19:17:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:14 GMT + - Fri, 04 Dec 2020 19:17:19 GMT ms-cv: - - 94Efc2Yx6E2gDj+3CbbMAQ.0 + - mvzFcukGTUqeZ2asuDJJ/g.0 transfer-encoding: - chunked x-processing-time: - - 146ms + - 152ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:26:15Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20a-19b6-b274-5a3a0d000125", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:8605832276104f699e1751ba0a5ad0c7@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:17:21Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf11-964c-d67a-5a3a0d000305"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:16 GMT + - Fri, 04 Dec 2020 19:17:22 GMT ms-cv: - - OIYYMsHJjUaD5nZhLq7jDQ.0 + - t+ezdL/y5kmczFWlGTD00g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 821ms + - 1440ms status: code: 201 message: Created @@ -166,7 +165,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -177,15 +176,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:17 GMT + - Fri, 04 Dec 2020 19:17:23 GMT ms-cv: - - 5pQbwxxB10KHVAyeTNnSjw.0 + - NmpU5sDtYkiuvJBVQohbxA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 693ms + - 1186ms status: code: 201 message: Created @@ -203,9 +202,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' @@ -215,13 +214,13 @@ interactions: content-length: - '0' date: - - Thu, 26 Nov 2020 01:26:17 GMT + - Fri, 04 Dec 2020 19:17:24 GMT ms-cv: - - JJEHa6GlDECwkZQHkOcX3w.0 + - teoJraafMUWmKOtE4O8BzA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 668ms + - 933ms status: code: 201 message: Created @@ -235,9 +234,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -246,15 +245,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:20 GMT + - Fri, 04 Dec 2020 19:17:27 GMT ms-cv: - - HFpdZBGKkkS9+HQJ9I4/rQ.0 + - oeBb+22AP0W0FCJ1quRigw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 249ms + - 270ms status: code: 200 message: OK @@ -270,9 +269,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:26:20 GMT + - Fri, 04 Dec 2020 19:17:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -284,11 +283,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:26:36 GMT + - Fri, 04 Dec 2020 19:17:43 GMT ms-cv: - - wQvnxAp9GEScZluSWlPcKw.0 + - ki7CEeQ/mU2VOiFnC67i+Q.0 x-processing-time: - - 16099ms + - 16397ms status: code: 204 message: No Content @@ -304,9 +303,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:26:36 GMT + - Fri, 04 Dec 2020 19:17:43 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -318,11 +317,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:26:52 GMT + - Fri, 04 Dec 2020 19:17:59 GMT ms-cv: - - aIlRF5bFVU+K+7v3C9gN0g.0 + - mQUUZH1EGU29zkFvzoG/SQ.0 x-processing-time: - - 16458ms + - 16120ms status: code: 204 message: No Content @@ -338,7 +337,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -348,13 +347,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:26:53 GMT + - Fri, 04 Dec 2020 19:17:59 GMT ms-cv: - - xZvcQIwoLky0fFKFlkK/9A.0 + - 5NZgTuAEOUWUgjq9q+aXEA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 283ms + - 358ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml index 4e79d000bcdd..de911e80a176 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:26:53 GMT + - Fri, 04 Dec 2020 19:18:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:53 GMT + - Fri, 04 Dec 2020 19:18:00 GMT ms-cv: - - L3MwZ02q+0KXjA6cPkf3zg.0 + - 3NJR2sd9aUmJvkZybvSGxg.0 transfer-encoding: - chunked x-processing-time: - - 175ms + - 165ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:26:54 GMT + - Fri, 04 Dec 2020 19:18:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:26:53.8507271+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:18:00.1956214+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:54 GMT + - Fri, 04 Dec 2020 19:18:01 GMT ms-cv: - - pQgqab8VE0SZ4Oq9dgY3mg.0 + - fD8vRzaJhE6fwnXRvZHHdA.0 transfer-encoding: - chunked x-processing-time: - - 783ms + - 314ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:26:54 GMT + - Fri, 04 Dec 2020 19:18:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:54 GMT + - Fri, 04 Dec 2020 19:18:01 GMT ms-cv: - - iFqkvLMJxUOQ2LGuHmiWpA.0 + - JhA44KN83UuoS7EraJw/ng.0 transfer-encoding: - chunked x-processing-time: - - 153ms + - 163ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:26:55Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20a-b333-557d-5a3a0d0000e1", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:456de853bd9846abbda594b6ec8bf5bb@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:18:01Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf12-3568-8a72-5a3a0d000350"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:56 GMT + - Fri, 04 Dec 2020 19:18:01 GMT ms-cv: - - 9/n37bfN1k+b5pcZuR6b2Q.0 + - WG90OvISUEaDg4I4IYgwvA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1340ms + - 918ms status: code: 201 message: Created @@ -165,25 +164,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: - body: - string: '' + body: '{}' headers: api-supported-versions: - 2020-11-01-preview3 - content-length: - - '0' + content-type: + - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:26:57 GMT + - Fri, 04 Dec 2020 19:18:02 GMT ms-cv: - - uruLT70rVkaontGqh4BaNA.0 + - Qg983hI0SEGykqR8zvMGpw.0 strict-transport-security: - max-age=2592000 + transfer-encoding: + - chunked x-processing-time: - - 833ms + - 606ms status: code: 201 message: Created @@ -199,9 +199,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8%3Aacs%3A9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20a-b745-557d-5a3a0d0000e2?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8%3Aacs%3A9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf12-37d1-8a72-5a3a0d000351?api-version=2020-11-01-preview3 response: body: string: '' @@ -209,13 +209,13 @@ interactions: api-supported-versions: - 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:26:57 GMT + - Fri, 04 Dec 2020 19:18:03 GMT ms-cv: - - fTookN+trEy/B7qvkvcVqQ.0 + - 4QRltxC+2EKp4tnv6nMXHw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 427ms + - 620ms status: code: 204 message: No Content @@ -231,9 +231,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:26:58 GMT + - Fri, 04 Dec 2020 19:18:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -245,11 +245,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:27:13 GMT + - Fri, 04 Dec 2020 19:18:21 GMT ms-cv: - - x6apGyPKZ0a6QRVVbsMSaQ.0 + - YTL+kNrhNECQZWAVnUbSvg.0 x-processing-time: - - 16005ms + - 17669ms status: code: 204 message: No Content @@ -265,9 +265,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:27:14 GMT + - Fri, 04 Dec 2020 19:18:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -279,11 +279,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:27:30 GMT + - Fri, 04 Dec 2020 19:18:37 GMT ms-cv: - - GF97YOCr+UmWjcc9UlpHsg.0 + - 1E6UA74F/EGzteH/pg2pkA.0 x-processing-time: - - 16723ms + - 15656ms status: code: 204 message: No Content @@ -299,7 +299,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -309,13 +309,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:27:31 GMT + - Fri, 04 Dec 2020 19:18:38 GMT ms-cv: - - sMR50s3i+ECIkM0o2e2DzA.0 + - mVyjUksZckqEk4AHu/DAyA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 290ms + - 341ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml index 4b5a12db0945..345d5f8af275 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:27:31 GMT + - Fri, 04 Dec 2020 19:18:38 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:27:30 GMT + - Fri, 04 Dec 2020 19:18:37 GMT ms-cv: - - Rc3uv0zfaUWJiXIDROynSA.0 + - jymPZjk2R0yoSKr6pph0Jw.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 171ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:27:31 GMT + - Fri, 04 Dec 2020 19:18:38 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:27:31.4138168+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:18:37.6471134+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:27:31 GMT + - Fri, 04 Dec 2020 19:18:38 GMT ms-cv: - - wng3+OJem0CbKMTETRRu0A.0 + - DouD4iKmpEekqG5PXmercQ.0 transfer-encoding: - chunked x-processing-time: - - 299ms + - 829ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:27:32 GMT + - Fri, 04 Dec 2020 19:18:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:27:31 GMT + - Fri, 04 Dec 2020 19:18:38 GMT ms-cv: - - QZ1WDUG7r0mOH0YPnCeFgw.0 + - OtZ2Wovbd06XnG5lOy5oWw.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 148ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:27:33Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20b-46e6-557d-5a3a0d0000e3", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:bc468cd1db24417292bacc90ef943098@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:18:40Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf12-c997-557d-5a3a0d000465"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:27:32 GMT + - Fri, 04 Dec 2020 19:18:40 GMT ms-cv: - - iUhieEkBXUCaR8EQ3kIC0w.0 + - DbdRGxIK9kCWiI+sFgI3zg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 831ms + - 907ms status: code: 201 message: Created @@ -166,7 +165,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -177,15 +176,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:27:33 GMT + - Fri, 04 Dec 2020 19:18:41 GMT ms-cv: - - X6/bdVsrgkSbcCR6yMDmyQ.0 + - Aj/RzW1RQEC+CqJOqtWPNA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 651ms + - 965ms status: code: 201 message: Created @@ -201,9 +200,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:27:34 GMT + - Fri, 04 Dec 2020 19:18:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -215,11 +214,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:27:50 GMT + - Fri, 04 Dec 2020 19:18:59 GMT ms-cv: - - CEA1vnH3kkygOS1DiF3fDg.0 + - IG02kA6SKkCwvYUHDvR3WA.0 x-processing-time: - - 16279ms + - 16938ms status: code: 204 message: No Content @@ -235,9 +234,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:27:50 GMT + - Fri, 04 Dec 2020 19:18:59 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -249,11 +248,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:28:06 GMT + - Fri, 04 Dec 2020 19:19:14 GMT ms-cv: - - omYum9GtMUeTXF/MKSMo7w.0 + - Rate8STPsk+PIG99Q1RfYw.0 x-processing-time: - - 16274ms + - 15845ms status: code: 204 message: No Content @@ -269,7 +268,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -279,13 +278,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:28:06 GMT + - Fri, 04 Dec 2020 19:19:15 GMT ms-cv: - - JHijcUlRjUqewdrOZI3dvg.0 + - p11exrl62EqCRIxg31Wd3w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 289ms + - 334ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml index 97371cd4df48..909d2d62a2ed 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:28:07 GMT + - Fri, 04 Dec 2020 19:19:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:07 GMT + - Fri, 04 Dec 2020 19:19:15 GMT ms-cv: - - mjHNjmWZI0m8Zn033cNYjA.0 + - 9B13Qh1lnEqkB65BipStJg.0 transfer-encoding: - chunked x-processing-time: - - 203ms + - 151ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:28:07 GMT + - Fri, 04 Dec 2020 19:19:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:28:07.2996862+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:19:15.2380845+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:08 GMT + - Fri, 04 Dec 2020 19:19:16 GMT ms-cv: - - /vvMGot9YEC1Np0vMVWEog.0 + - TPu/2q0sMEaO07zgZ6O8rg.0 transfer-encoding: - chunked x-processing-time: - - 300ms + - 314ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:28:08 GMT + - Fri, 04 Dec 2020 19:19:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:08 GMT + - Fri, 04 Dec 2020 19:19:16 GMT ms-cv: - - yOgWL6LNX0OHrHfvzcK7Xw.0 + - +Edu0TFU+Ual3sffZzplJA.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 156ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:28:09Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20b-d3fc-b274-5a3a0d000127", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:5056a79325b042a89696c0b982630460@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:19:16Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf13-5a8f-557d-5a3a0d000467"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:09 GMT + - Fri, 04 Dec 2020 19:19:17 GMT ms-cv: - - OuXAccdOwUSuSG8/oat08w.0 + - vebmpTDNkkeTVU1+sAH6Dw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 850ms + - 902ms status: code: 201 message: Created @@ -166,7 +165,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -177,15 +176,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:10 GMT + - Fri, 04 Dec 2020 19:19:18 GMT ms-cv: - - IgSr4GCdoUO1r+XB6M4kcw.0 + - cJX+3btc/kKrmHAibbdfVA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 703ms + - 1097ms status: code: 201 message: Created @@ -203,9 +202,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' @@ -215,13 +214,13 @@ interactions: content-length: - '0' date: - - Thu, 26 Nov 2020 01:28:11 GMT + - Fri, 04 Dec 2020 19:19:19 GMT ms-cv: - - LthArghR3Eq/5+icvinOrg.0 + - Rkg9AqRNkkiH+Nyfes5bRw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 607ms + - 927ms status: code: 201 message: Created @@ -237,9 +236,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:28:11 GMT + - Fri, 04 Dec 2020 19:19:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -251,11 +250,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:28:27 GMT + - Fri, 04 Dec 2020 19:19:35 GMT ms-cv: - - SgCET7UrQ0SmsaWXZcD5Eg.0 + - 7k0PBGQzeEu/gkxKkHijcA.0 x-processing-time: - - 16493ms + - 15787ms status: code: 204 message: No Content @@ -271,9 +270,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:28:27 GMT + - Fri, 04 Dec 2020 19:19:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -285,11 +284,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:28:44 GMT + - Fri, 04 Dec 2020 19:19:51 GMT ms-cv: - - sjICsoC46kG23f8Uv5GKuw.0 + - wQukQED0R0SMWiOLR/Ie1Q.0 x-processing-time: - - 16165ms + - 16167ms status: code: 204 message: No Content @@ -305,7 +304,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -315,13 +314,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:28:43 GMT + - Fri, 04 Dec 2020 19:19:52 GMT ms-cv: - - Hj7nFy28eUO/48W0q3cS5A.0 + - 9gB5foCYLE+jgzmvodL4EQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 294ms + - 331ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml index c8468d5cca21..8da013878468 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:28:44 GMT + - Fri, 04 Dec 2020 19:19:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:43 GMT + - Fri, 04 Dec 2020 19:19:52 GMT ms-cv: - - hlqRfaPk0keeVSgIRnHbdQ.0 + - Ixvn7DAg0ki714t/bxmmIw.0 transfer-encoding: - chunked x-processing-time: - - 149ms + - 148ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:28:44 GMT + - Fri, 04 Dec 2020 19:19:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:28:44.3074943+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:19:52.3144675+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:44 GMT + - Fri, 04 Dec 2020 19:19:52 GMT ms-cv: - - 66khv998k06Heglol7uOJw.0 + - ETytSSl0XUWX3kC5aBl/Kg.0 transfer-encoding: - chunked x-processing-time: - - 305ms + - 303ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:28:45 GMT + - Fri, 04 Dec 2020 19:19:53 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:44 GMT + - Fri, 04 Dec 2020 19:19:53 GMT ms-cv: - - ax7WKHTpUkOWXXVtzKq6yw.0 + - D00mowhZ6Uu8m9iiUoU7Ig.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 147ms status: code: 200 message: OK @@ -122,32 +122,31 @@ interactions: Connection: - keep-alive Content-Length: - - '205' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:28:46Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20c-6482-557d-5a3a0d0000e5", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:ca80a79c25404732b3ca2a073c7087ac@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:19:53Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf13-eb6c-ea7c-5a3a0d0003c8"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:28:46 GMT + - Fri, 04 Dec 2020 19:19:53 GMT ms-cv: - - 0xalPEIS4keKeCFWJpN9iQ.0 + - u7z0tSrr7kutmQSCvLlpeg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 854ms + - 891ms status: code: 201 message: Created @@ -163,7 +162,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 response: @@ -175,13 +174,13 @@ interactions: content-length: - '0' date: - - Thu, 26 Nov 2020 01:28:47 GMT + - Fri, 04 Dec 2020 19:19:54 GMT ms-cv: - - bQdJB63V5kemmf3CVQNUeA.0 + - CRrCY2CJ9UC3esFTkJe7XA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 809ms + - 368ms status: code: 200 message: OK @@ -197,9 +196,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:28:47 GMT + - Fri, 04 Dec 2020 19:19:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -211,11 +210,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:29:03 GMT + - Fri, 04 Dec 2020 19:20:11 GMT ms-cv: - - M4UEQmh3vk2culX9BlK3Tw.0 + - ylscA12t7E2HXBY9KbHEuw.0 x-processing-time: - - 15919ms + - 16848ms status: code: 204 message: No Content @@ -231,9 +230,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:29:03 GMT + - Fri, 04 Dec 2020 19:20:12 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -245,11 +244,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:29:19 GMT + - Fri, 04 Dec 2020 19:20:27 GMT ms-cv: - - 0M7+dJE7n0Ghg4ZhjVGCbQ.0 + - eB23wF+kVkiscyLYF2YQLg.0 x-processing-time: - - 16290ms + - 16005ms status: code: 204 message: No Content @@ -265,7 +264,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -275,13 +274,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:29:20 GMT + - Fri, 04 Dec 2020 19:20:28 GMT ms-cv: - - IHF2oEx7AEa98F8J92fLew.0 + - qfc70u4p3ECVjw+iGml7LA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 292ms + - 325ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml index becc48e7400a..76a2a229fc73 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:29:20 GMT + - Fri, 04 Dec 2020 19:20:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:20 GMT + - Fri, 04 Dec 2020 19:20:28 GMT ms-cv: - - cJB+MDpBBEqZAq3HqXkWqw.0 + - St3ER/ccE0GYZWciUEPdEg.0 transfer-encoding: - chunked x-processing-time: - - 143ms + - 145ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:29:21 GMT + - Fri, 04 Dec 2020 19:20:29 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:29:20.9376251+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:20:28.3872364+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:21 GMT + - Fri, 04 Dec 2020 19:20:29 GMT ms-cv: - - +mUydaYWw0y1XyjahACEZw.0 + - NbyFufDzz0SxWrHiAOLGFQ.0 transfer-encoding: - chunked x-processing-time: - - 792ms + - 301ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:29:21 GMT + - Fri, 04 Dec 2020 19:20:29 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:21 GMT + - Fri, 04 Dec 2020 19:20:29 GMT ms-cv: - - Q+fRrF2xWkaRDCOZrCcTBg.0 + - 2Mw1g8HA2UKAtGCcJNi24g.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 149ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:29:22Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20c-f1be-d67a-5a3a0d0001bc", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:463e8703c52f4c039b7148b0bde0fb30@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:20:29Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf14-785a-ea7c-5a3a0d0003ca"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:22 GMT + - Fri, 04 Dec 2020 19:20:29 GMT ms-cv: - - SVmLwbq/t06tiNSYhFTquA.0 + - IWSivLR7gUGGdyWnJaYR6w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 861ms + - 909ms status: code: 201 message: Created @@ -166,7 +165,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -177,15 +176,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:23 GMT + - Fri, 04 Dec 2020 19:20:32 GMT ms-cv: - - PcQGvGfEt0e7eu8HLPFAfg.0 + - bREu3gFgE0eSSBdgIyQUjA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 696ms + - 1116ms status: code: 201 message: Created @@ -203,7 +202,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: @@ -213,13 +212,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:29:24 GMT + - Fri, 04 Dec 2020 19:20:32 GMT ms-cv: - - 3czilnpjLU+ZoZMuPsezYQ.0 + - Fn/to4n7ZEenSrRp+koBGA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 647ms + - 706ms status: code: 204 message: No Content @@ -235,9 +234,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:29:24 GMT + - Fri, 04 Dec 2020 19:20:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -249,11 +248,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:29:40 GMT + - Fri, 04 Dec 2020 19:20:48 GMT ms-cv: - - gDTG9Rs5fkqnFqivKAR8oA.0 + - cVa9baZuVUm0hSDQMjvxJQ.0 x-processing-time: - - 15864ms + - 16375ms status: code: 204 message: No Content @@ -269,9 +268,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:29:40 GMT + - Fri, 04 Dec 2020 19:20:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -283,11 +282,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:29:57 GMT + - Fri, 04 Dec 2020 19:21:04 GMT ms-cv: - - r2U9G8TXE0qpYn1Mg/lf5Q.0 + - EB2WsHfqIkGAnIR8iZALkA.0 x-processing-time: - - 16769ms + - 15844ms status: code: 204 message: No Content @@ -303,7 +302,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -313,13 +312,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:29:57 GMT + - Fri, 04 Dec 2020 19:21:05 GMT ms-cv: - - KMY6wxR01keuFPGjUL0M4A.0 + - JcCxOBzqvk+l4soVKD+SSQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 342ms + - 325ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml index efd13585da1c..27a15ce95f2d 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:29:58 GMT + - Fri, 04 Dec 2020 19:21:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:57 GMT + - Fri, 04 Dec 2020 19:21:05 GMT ms-cv: - - 6FvWkQjgmEaa8e3sfjfU0A.0 + - QuQ1x/oiR0mJtbiEdtIoVA.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 153ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:29:58 GMT + - Fri, 04 Dec 2020 19:21:06 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:29:58.0124434+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:21:05.4107581+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:58 GMT + - Fri, 04 Dec 2020 19:21:05 GMT ms-cv: - - O+wr+Q5eh06Gxc5SCmIotw.0 + - v6Zui51lh0CfBx2/w8enZQ.0 transfer-encoding: - chunked x-processing-time: - - 303ms + - 302ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:29:59 GMT + - Fri, 04 Dec 2020 19:21:06 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:58 GMT + - Fri, 04 Dec 2020 19:21:05 GMT ms-cv: - - PSLziG1+B0GFeJ+0dkzvKQ.0 + - ZP2h/eMfrU6mmgBIefnkcA.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 155ms status: code: 200 message: OK @@ -126,28 +126,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:29:59Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20d-8471-d67a-5a3a0d0001c0", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:f18ea01c15a140e2bdcb907dd02d17bc@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:21:07Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf15-08ee-d67a-5a3a0d00030d"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:29:59 GMT + - Fri, 04 Dec 2020 19:21:07 GMT ms-cv: - - LGKB+K2LOU2iJwjukuvcXg.0 + - P+cuV0L6AU6zXEB22eej+w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1116ms + - 1196ms status: code: 201 message: Created @@ -165,7 +164,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -175,13 +174,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:30:01 GMT + - Fri, 04 Dec 2020 19:21:07 GMT ms-cv: - - 7BSP98ULYk2qUVjneKqs8A.0 + - pkZAPfwy+ESXElSzF+7nMA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 386ms + - 435ms status: code: 204 message: No Content @@ -197,9 +196,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:30:01 GMT + - Fri, 04 Dec 2020 19:21:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -211,11 +210,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:30:17 GMT + - Fri, 04 Dec 2020 19:21:24 GMT ms-cv: - - OcPauDoyr0CcNDEVhh4kUw.0 + - Ca7rxXzdCUGI73zXqpTAsQ.0 x-processing-time: - - 16699ms + - 16034ms status: code: 204 message: No Content @@ -231,9 +230,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:30:17 GMT + - Fri, 04 Dec 2020 19:21:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -245,11 +244,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:30:33 GMT + - Fri, 04 Dec 2020 19:21:40 GMT ms-cv: - - fYvM12YEbUW0FgYUBTdv1Q.0 + - X+RRVeJ1SEO5d05a96JhZA.0 x-processing-time: - - 16018ms + - 15949ms status: code: 204 message: No Content @@ -265,7 +264,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -275,13 +274,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Thu, 26 Nov 2020 01:30:34 GMT + - Fri, 04 Dec 2020 19:21:40 GMT ms-cv: - - TyNx8N9ZwUyIwcq97aPzvA.0 + - 9gvg5Bb6KEaPFOoT2w8FxA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 294ms + - 549ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml index d76db2ff4760..81fac87bb393 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:30:34 GMT + - Fri, 04 Dec 2020 19:21:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:30:34 GMT + - Fri, 04 Dec 2020 19:21:41 GMT ms-cv: - - cvnmKZiNuk6BFwK9Nz8r8g.0 + - 2LorrreVVE2CPWLquj9yQA.0 transfer-encoding: - chunked x-processing-time: - - 190ms + - 227ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:30:35 GMT + - Fri, 04 Dec 2020 19:21:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:30:34.8754582+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:21:41.755253+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:30:34 GMT + - Fri, 04 Dec 2020 19:21:42 GMT ms-cv: - - daiJmDCJH0ebe0tSPhzXKA.0 + - CCBXNXMRF0KzkrCmTk/k0g.0 transfer-encoding: - chunked x-processing-time: - - 757ms + - 610ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:30:35 GMT + - Fri, 04 Dec 2020 19:21:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:30:36 GMT + - Fri, 04 Dec 2020 19:21:42 GMT ms-cv: - - 0b0GEzY/1ES9yhEGsKYVnQ.0 + - lw9pC3bmQEm6MxFLL1nw1Q.0 transfer-encoding: - chunked x-processing-time: - - 148ms + - 146ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:30:36Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20e-12ae-b274-5a3a0d000129", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:f58d0ab0c88941a092c22271aad09852@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:21:43Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf15-958c-b274-5a3a0d00030a"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:30:36 GMT - ms-cv: 8RAmsd5Z00eynKICNh6htQ.0 + date: Fri, 04 Dec 2020 19:21:43 GMT + ms-cv: izfainGH9UultFKJlJtcKQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 819ms + x-processing-time: 881ms status: code: 201 message: Created @@ -151,19 +150,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: - body: - string: '' + body: '{}' headers: api-supported-versions: 2020-11-01-preview3 - content-length: '0' - date: Thu, 26 Nov 2020 01:30:37 GMT - ms-cv: xR3KT//8d0WtEd8OEVKNtw.0 + content-type: application/json; charset=utf-8 + date: Fri, 04 Dec 2020 19:21:44 GMT + ms-cv: c7AfQKgibUSTJwojfLjZNg.0 strict-transport-security: max-age=2592000 - x-processing-time: 860ms + transfer-encoding: chunked + x-processing-time: 422ms status: code: 201 message: Created @@ -174,7 +173,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -182,10 +181,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:30:38 GMT - ms-cv: 4IfY5xcLfEimFoVjDa56GQ.0 + date: Fri, 04 Dec 2020 19:21:45 GMT + ms-cv: /hoy1W/onUiMQgMnhUYA6A.0 strict-transport-security: max-age=2592000 - x-processing-time: 304ms + x-processing-time: 846ms status: code: 204 message: No Content @@ -202,9 +201,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:30:38 GMT + - Fri, 04 Dec 2020 19:21:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -216,11 +215,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:30:54 GMT + - Fri, 04 Dec 2020 19:22:02 GMT ms-cv: - - an+Y7NjiwEGHg1hciwZutA.0 + - VI1U3CC7bkqInLyODx/afQ.0 x-processing-time: - - 16189ms + - 17077ms status: code: 204 message: No Content @@ -236,9 +235,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:30:54 GMT + - Fri, 04 Dec 2020 19:22:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -250,11 +249,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:31:10 GMT + - Fri, 04 Dec 2020 19:22:18 GMT ms-cv: - - QQOQ33KEJ0igmUuz/Ru1nA.0 + - x7BQE3LbpkiYqQWc5q1dMA.0 x-processing-time: - - 16730ms + - 15836ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml index e5ea7794f4e1..0f90a14f4057 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:31:11 GMT + - Fri, 04 Dec 2020 19:22:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:31:11 GMT + - Fri, 04 Dec 2020 19:22:18 GMT ms-cv: - - siyNuR1A8Uab0RkHyAlqcQ.0 + - i3AuTmSmn0q9WnGX9fA1QQ.0 transfer-encoding: - chunked x-processing-time: - - 198ms + - 199ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:31:12 GMT + - Fri, 04 Dec 2020 19:22:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:31:11.5151238+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:22:18.1425741+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:31:11 GMT + - Fri, 04 Dec 2020 19:22:19 GMT ms-cv: - - GjXwMs1P+U+a0SDP9bffsw.0 + - 9wdv++LAH0mgaXrr/tDozg.0 transfer-encoding: - chunked x-processing-time: - - 310ms + - 613ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:31:12 GMT + - Fri, 04 Dec 2020 19:22:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:31:11 GMT + - Fri, 04 Dec 2020 19:22:19 GMT ms-cv: - - p94jcl5bHECnSv4hq3L0RA.0 + - kTMO2CNqkUiKg9bc1qz4jQ.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 157ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:31:13Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20e-a386-d67a-5a3a0d0001c2", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:45d4d6be07cc439fb70bdaf9b905e520@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:22:20Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf16-27c8-557d-5a3a0d000469"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:31:13 GMT - ms-cv: diW0SYWc90WNmugc28HlFQ.0 + date: Fri, 04 Dec 2020 19:22:21 GMT + ms-cv: dQx9iniFREG9KCyLYteV9Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 828ms + x-processing-time: 886ms status: code: 201 message: Created @@ -151,19 +150,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: - body: - string: '' + body: '{}' headers: api-supported-versions: 2020-11-01-preview3 - content-length: '0' - date: Thu, 26 Nov 2020 01:31:14 GMT - ms-cv: Ce6UfXXIukG9puEZuIugrQ.0 + content-type: application/json; charset=utf-8 + date: Fri, 04 Dec 2020 19:22:21 GMT + ms-cv: NeVYJ4578E6+7UVCqHdtSg.0 strict-transport-security: max-age=2592000 - x-processing-time: 398ms + transfer-encoding: chunked + x-processing-time: 473ms status: code: 201 message: Created @@ -174,7 +173,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -182,10 +181,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:31:14 GMT - ms-cv: TDBjboMDyEyEdtD+D/peDw.0 + date: Fri, 04 Dec 2020 19:22:22 GMT + ms-cv: SHC7D0cDJk6ib6AndpvSEA.0 strict-transport-security: max-age=2592000 - x-processing-time: 340ms + x-processing-time: 339ms status: code: 204 message: No Content @@ -202,9 +201,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:31:14 GMT + - Fri, 04 Dec 2020 19:22:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -216,11 +215,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:31:30 GMT + - Fri, 04 Dec 2020 19:22:38 GMT ms-cv: - - 6lyL+ObKy021r/HPY7P2Jg.0 + - yvUsum1HDUu5YOBMVanEIw.0 x-processing-time: - - 16332ms + - 16329ms status: code: 204 message: No Content @@ -236,9 +235,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:31:31 GMT + - Fri, 04 Dec 2020 19:22:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -250,11 +249,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:31:47 GMT + - Fri, 04 Dec 2020 19:22:54 GMT ms-cv: - - ZxtyVQPb8UWOGIEDTW3VHg.0 + - HOhu3r71oEKl3jGZ8i9xTw.0 x-processing-time: - - 16620ms + - 16424ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml index 67ac37685204..474328f1a21e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:31:47 GMT + - Fri, 04 Dec 2020 19:22:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:31:48 GMT + - Fri, 04 Dec 2020 19:22:55 GMT ms-cv: - - E0kfk2LnzEmIwwqQFf1SAw.0 + - OjbRiE/LhEODqGDqFA+rCw.0 transfer-encoding: - chunked x-processing-time: - - 315ms + - 147ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:31:48 GMT + - Fri, 04 Dec 2020 19:22:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:31:47.8855465+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:22:55.4453735+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:31:48 GMT + - Fri, 04 Dec 2020 19:22:55 GMT ms-cv: - - fPlQdobqJE+2Ghq/o7C3jw.0 + - Op65QnqN4USY/umg4JWxJw.0 transfer-encoding: - chunked x-processing-time: - - 389ms + - 307ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:31:48 GMT + - Fri, 04 Dec 2020 19:22:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:31:48 GMT + - Fri, 04 Dec 2020 19:22:56 GMT ms-cv: - - Is5VPhK6MUGiOavucGXV1w.0 + - 4DVqr9m4OUmb2cyfXNmQkw.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 157ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:31:49Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20f-3156-ea7c-5a3a0d000126", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:75d97b8804224f23b1c22ad659ebb7ed@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:22:57Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf16-b6c2-8a72-5a3a0d000353"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:31:49 GMT - ms-cv: 4EQ2dApNHE+7E/Y0/KnG8w.0 + date: Fri, 04 Dec 2020 19:22:56 GMT + ms-cv: 2BCjv5Bkek6RycAYy1oApw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1313ms + x-processing-time: 894ms status: code: 201 message: Created @@ -152,7 +151,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -160,11 +159,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:31:51 GMT - ms-cv: Azyo2mbep0G21oRxK4H5Eg.0 + date: Fri, 04 Dec 2020 19:22:58 GMT + ms-cv: G3kCbuUfc0GHAeHbro/GTA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1021ms + x-processing-time: 1154ms status: code: 201 message: Created @@ -175,7 +174,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: @@ -183,10 +182,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:31:52 GMT - ms-cv: BKUM4J/qlkylC4La7rM3xQ.0 + date: Fri, 04 Dec 2020 19:22:59 GMT + ms-cv: PYDanOAcJki/iH1OU/BNTQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 398ms + x-processing-time: 433ms status: code: 204 message: No Content @@ -197,7 +196,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -205,10 +204,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:31:51 GMT - ms-cv: 8mhKaV9jr0ykGTyFuMcQPw.0 + date: Fri, 04 Dec 2020 19:22:59 GMT + ms-cv: r5AjMI0V10eTwkmPL5RVRQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 291ms + x-processing-time: 341ms status: code: 204 message: No Content @@ -225,9 +224,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:31:52 GMT + - Fri, 04 Dec 2020 19:23:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -239,11 +238,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:32:10 GMT + - Fri, 04 Dec 2020 19:23:16 GMT ms-cv: - - Fv9AOsu5i0mkgl/fDO83aA.0 + - 47M/SEVXPEaTGr2NQ5sLxg.0 x-processing-time: - - 18263ms + - 16177ms status: code: 204 message: No Content @@ -259,9 +258,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:32:11 GMT + - Fri, 04 Dec 2020 19:23:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -273,11 +272,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:32:27 GMT + - Fri, 04 Dec 2020 19:23:31 GMT ms-cv: - - fHBIc+asxEOQh4qvvrLraA.0 + - jzTTrYkt1UOaLYVR+RNW8A.0 x-processing-time: - - 16723ms + - 15941ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml index f77315b416c7..4040ae078763 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:32:27 GMT + - Fri, 04 Dec 2020 19:23:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:32:27 GMT + - Fri, 04 Dec 2020 19:23:32 GMT ms-cv: - - KkFL319PQUuyl3g0vdL2UA.0 + - StJ2O77s9ECuQCOCCIeYQw.0 transfer-encoding: - chunked x-processing-time: - - 137ms + - 204ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:32:28 GMT + - Fri, 04 Dec 2020 19:23:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:32:27.8098648+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:23:32.2067497+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:32:28 GMT + - Fri, 04 Dec 2020 19:23:33 GMT ms-cv: - - JGeP7DAilUSbxjr9giGQRg.0 + - w6RWnFRD6Emlw0rCwVCsLA.0 transfer-encoding: - chunked x-processing-time: - - 300ms + - 312ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:32:28 GMT + - Fri, 04 Dec 2020 19:23:33 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:32:28 GMT + - Fri, 04 Dec 2020 19:23:33 GMT ms-cv: - - 2n803HlffkKEUMXpkzoHTA.0 + - b9EAP1/PmUSnx4z+JfKJWg.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 152ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:32:29Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a20f-cd91-8a72-5a3a0d0000de", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:ba21b6b0572c4ac3a929a2cc9f859eae@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:23:33Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf17-464f-8a72-5a3a0d000355"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:32:30 GMT - ms-cv: rHpGfRDitUSORdbQjV5NtQ.0 + date: Fri, 04 Dec 2020 19:23:33 GMT + ms-cv: sHAWzqSkIUCB7X46in4thA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 830ms + x-processing-time: 891ms status: code: 201 message: Created @@ -152,7 +151,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -160,11 +159,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:32:30 GMT - ms-cv: 5EL9YGpEKkCqTGgN46+mxA.0 + date: Fri, 04 Dec 2020 19:23:35 GMT + ms-cv: 4DHRla+JP063fmFfGhKzuQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 747ms + x-processing-time: 691ms status: code: 201 message: Created @@ -175,21 +174,21 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1606354350532", - "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-11-26T01:32:30Z", + body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1607109814877", + "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-12-04T19:23:34Z", "senderId": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:32:31 GMT - ms-cv: Cd8GfPYrEEOqHZIOSv5tKg.0 + date: Fri, 04 Dec 2020 19:23:35 GMT + ms-cv: 9FCYEV6oUkOqUA8jWrbz6g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 287ms + x-processing-time: 264ms status: code: 200 message: OK @@ -200,7 +199,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -208,10 +207,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:32:31 GMT - ms-cv: WwLvD7e6YUSygUuast1GHQ.0 + date: Fri, 04 Dec 2020 19:23:35 GMT + ms-cv: AI3FuuNdjkiZziCVbffCmg.0 strict-transport-security: max-age=2592000 - x-processing-time: 285ms + x-processing-time: 328ms status: code: 204 message: No Content @@ -228,9 +227,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:32:31 GMT + - Fri, 04 Dec 2020 19:23:36 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -242,11 +241,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:32:48 GMT + - Fri, 04 Dec 2020 19:23:52 GMT ms-cv: - - T2GYRZ5aDk+fs+K10t/JlA.0 + - 3MqGz2FCMUafp1C5q4NhOg.0 x-processing-time: - - 16657ms + - 16347ms status: code: 204 message: No Content @@ -262,9 +261,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:32:48 GMT + - Fri, 04 Dec 2020 19:23:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -276,11 +275,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:33:04 GMT + - Fri, 04 Dec 2020 19:24:08 GMT ms-cv: - - tTyzwTrLxkOKEVqtIdrLSg.0 + - MPRsw0n63UCNlGY5+fhrMw.0 x-processing-time: - - 16505ms + - 16432ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml index 1291eb9c0339..08b15623a406 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:33:05 GMT + - Fri, 04 Dec 2020 19:24:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:33:04 GMT + - Fri, 04 Dec 2020 19:24:08 GMT ms-cv: - - SzMURT8+80Cs/aGlxMbIxA.0 + - aHfL2y5OmUS88T26MLAWfw.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 150ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:33:05 GMT + - Fri, 04 Dec 2020 19:24:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:33:04.8467433+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:24:08.949685+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:33:04 GMT + - Fri, 04 Dec 2020 19:24:09 GMT ms-cv: - - nd4GBu+14UyPRR4cjpycrA.0 + - TmlRwrN9Y0mT6dfZflon+g.0 transfer-encoding: - chunked x-processing-time: - - 342ms + - 303ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:33:05 GMT + - Fri, 04 Dec 2020 19:24:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:33:05 GMT + - Fri, 04 Dec 2020 19:24:09 GMT ms-cv: - - L2l2f0QRbk+/WoGUDSce7g.0 + - obi74jvLPkisWVivhsFl4g.0 transfer-encoding: - chunked x-processing-time: - - 146ms + - 152ms status: code: 200 message: OK @@ -118,25 +118,24 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '205' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:33:06Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a210-5e28-d67a-5a3a0d0001c6", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:9af3d307649347cd98b07121b2cc78a3@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:24:10Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf17-d5f0-ea7c-5a3a0d0003cc"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:06 GMT - ms-cv: S24MhqU7U0asqkuzdWPndQ.0 + date: Fri, 04 Dec 2020 19:24:10 GMT + ms-cv: xctmjTmTnUmhw/zAM0tUlw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 838ms + x-processing-time: 887ms status: code: 201 message: Created @@ -152,7 +151,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -160,11 +159,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:07 GMT - ms-cv: bDGQj7B5A0uLjthqKV2/2Q.0 + date: Fri, 04 Dec 2020 19:24:11 GMT + ms-cv: +yxteLB7b0yLRxfyEd3yRQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 729ms + x-processing-time: 666ms status: code: 201 message: Created @@ -175,99 +174,99 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:09 GMT - ms-cv: rlEto5Ze7kGF4N9aex4EEw.0 + date: Fri, 04 Dec 2020 19:24:13 GMT + ms-cv: 2J8kUBHwXkeZPTCF2CfXeQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 268ms + x-processing-time: 262ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?$maxpagesize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:10 GMT - ms-cv: S5yCOK+gXUm3nyjyKn1s1g.0 + date: Fri, 04 Dec 2020 19:24:13 GMT + ms-cv: MnpbfSaSVkSW9batJVDbGg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 357ms + x-processing-time: 364ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:10 GMT - ms-cv: ICHqAILSYkCDIPoEMP6L5A.0 + date: Fri, 04 Dec 2020 19:24:14 GMT + ms-cv: gKTRy9qJmkeSZ+7agERCvQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 368ms + x-processing-time: 358ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:10 GMT - ms-cv: /zr2u9jn902Xwm4a62xszA.0 + date: Fri, 04 Dec 2020 19:24:14 GMT + ms-cv: HsoLTOjDTUmJW/OyccpTYA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 357ms + x-processing-time: 355ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -275,10 +274,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:33:11 GMT - ms-cv: SvgyDqrx/kaRAnKxBmIbqg.0 + date: Fri, 04 Dec 2020 19:24:15 GMT + ms-cv: 0ZJQy433EE64ze1d8X0Oow.0 strict-transport-security: max-age=2592000 - x-processing-time: 294ms + x-processing-time: 325ms status: code: 204 message: No Content @@ -295,9 +294,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:33:12 GMT + - Fri, 04 Dec 2020 19:24:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -309,11 +308,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:33:28 GMT + - Fri, 04 Dec 2020 19:24:31 GMT ms-cv: - - l+qbq/n5N0GBkkLEKNYi9Q.0 + - 8AjS8w4q/0OQdRpYnRoceQ.0 x-processing-time: - - 16209ms + - 16408ms status: code: 204 message: No Content @@ -329,9 +328,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:33:28 GMT + - Fri, 04 Dec 2020 19:24:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -343,11 +342,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:33:43 GMT + - Fri, 04 Dec 2020 19:24:48 GMT ms-cv: - - K+9l+OPQUkW1e+3cKQfiFw.0 + - gX6lMPjOL0S+sZ+RnaJg8w.0 x-processing-time: - - 16048ms + - 15845ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml index f162f3630d5f..c769a6dc288e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:33:44 GMT + - Fri, 04 Dec 2020 19:24:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:33:44 GMT + - Fri, 04 Dec 2020 19:24:48 GMT ms-cv: - - y0vL8iGu9kSISUXgKL1SJQ.0 + - PSId7cm0rE2ik6M198zOUQ.0 transfer-encoding: - chunked x-processing-time: - - 146ms + - 144ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:33:44 GMT + - Fri, 04 Dec 2020 19:24:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:33:44.2419698+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:24:48.7841888+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:33:45 GMT + - Fri, 04 Dec 2020 19:24:49 GMT ms-cv: - - vJ/qIPfn2Eqa4DKO12rVWQ.0 + - ljsg/8LD9E+O5nrcD/aguw.0 transfer-encoding: - chunked x-processing-time: - - 300ms + - 798ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:33:45 GMT + - Fri, 04 Dec 2020 19:24:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,9 +102,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:33:45 GMT + - Fri, 04 Dec 2020 19:24:49 GMT ms-cv: - - H7rgAX/6NkCh0C+eYIpUwA.0 + - Kd7UYBRhK0aMj3+9elVOIg.0 transfer-encoding: - chunked x-processing-time: @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:33:45Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a210-f826-557d-5a3a0d0000e7", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:bcca59cb518a4a78a7d9b06bdb8c3d60@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:24:50Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf18-6f96-b274-5a3a0d00030f"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:46 GMT - ms-cv: 8Zq+55ejRUi28uPej8ipFQ.0 + date: Fri, 04 Dec 2020 19:24:50 GMT + ms-cv: sFAGJpIJOUqJx49W9KuLag.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 838ms + x-processing-time: 883ms status: code: 201 message: Created @@ -147,7 +146,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: @@ -155,11 +154,11 @@ interactions: headers: api-supported-versions: 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:33:46 GMT - ms-cv: QsPk8Ayoik2kO6GzEByDsA.0 + date: Fri, 04 Dec 2020 19:24:50 GMT + ms-cv: TU8IpbjMrUOfTH+7DQXSCg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 728ms + x-processing-time: 270ms status: code: 200 message: OK @@ -170,7 +169,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -178,10 +177,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:33:47 GMT - ms-cv: WgRInbZhnUOfEkcuwLWyNA.0 + date: Fri, 04 Dec 2020 19:24:51 GMT + ms-cv: HGgkycA/q0exPtN7DLbpZw.0 strict-transport-security: max-age=2592000 - x-processing-time: 287ms + x-processing-time: 321ms status: code: 204 message: No Content @@ -198,9 +197,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:33:47 GMT + - Fri, 04 Dec 2020 19:24:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -212,11 +211,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:34:03 GMT + - Fri, 04 Dec 2020 19:25:07 GMT ms-cv: - - aLdr7oRxr0+SNMWVdcNlUA.0 + - 3+Q62LYrDEicM7fzscVa/w.0 x-processing-time: - - 16341ms + - 16255ms status: code: 204 message: No Content @@ -232,9 +231,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:34:04 GMT + - Fri, 04 Dec 2020 19:25:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -246,11 +245,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:34:19 GMT + - Fri, 04 Dec 2020 19:25:23 GMT ms-cv: - - DNV9Hc695k2+c1TiUkkboA.0 + - P+cmC1KbUUuWkV9pZU11mw.0 x-processing-time: - - 16170ms + - 15938ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml index 9d39f15c1181..05cf5793ba27 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:34:20 GMT + - Fri, 04 Dec 2020 19:25:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:34:19 GMT + - Fri, 04 Dec 2020 19:25:24 GMT ms-cv: - - qVG5DfgLr02fVLBrSp2pHA.0 + - LlD8ja16g0KbfO8ukVHr4A.0 transfer-encoding: - chunked x-processing-time: - - 143ms + - 149ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:34:20 GMT + - Fri, 04 Dec 2020 19:25:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:34:20.1917523+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:25:24.2319596+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:34:20 GMT + - Fri, 04 Dec 2020 19:25:24 GMT ms-cv: - - HO/kaOsySkaNaxovpPkIAQ.0 + - UD93ffCE7UWOco7Ubk+Q+w.0 transfer-encoding: - chunked x-processing-time: - - 298ms + - 311ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:34:21 GMT + - Fri, 04 Dec 2020 19:25:25 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:34:20 GMT + - Fri, 04 Dec 2020 19:25:25 GMT ms-cv: - - 0HiCWJ+NJ0G+2SahcNmLlA.0 + - SzQ1yuUZsUangzl8LV3TDw.0 transfer-encoding: - chunked x-processing-time: - - 150ms + - 154ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:34:21Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a211-8498-557d-5a3a0d0000e9", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:1cd4d2571f7e4a6c9ad4291334ed33e7@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:25:25Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf18-fbe9-ea7c-5a3a0d0003ce"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:34:21 GMT - ms-cv: rew/+Eh1NE+0AgM80oNhqg.0 + date: Fri, 04 Dec 2020 19:25:26 GMT + ms-cv: wuDbu2YwRECy5MreIUO6pQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 830ms + x-processing-time: 894ms status: code: 201 message: Created @@ -152,7 +151,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -160,11 +159,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:34:22 GMT - ms-cv: VSZeo9bdgkGAMCBRF6JuoA.0 + date: Fri, 04 Dec 2020 19:25:26 GMT + ms-cv: jERglIIS20SILNh0hz0mxA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 729ms + x-processing-time: 1056ms status: code: 201 message: Created @@ -179,53 +178,53 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Thu, 26 Nov 2020 01:34:23 GMT - ms-cv: ajcsQu2gVkmlpbvy5kJSxA.0 + date: Fri, 04 Dec 2020 19:25:28 GMT + ms-cv: rrMpMrnkMkqWz0494etB/g.0 strict-transport-security: max-age=2592000 - x-processing-time: 673ms + x-processing-time: 1064ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:34:25 GMT - ms-cv: vHRuIcrR00G3VL8egyCwDQ.0 + date: Fri, 04 Dec 2020 19:25:30 GMT + ms-cv: ZDbkB4nGlk2xb6aFCGdqaA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 254ms + x-processing-time: 259ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -233,10 +232,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:34:26 GMT - ms-cv: zc7Jrp5E50qsSlzLpPuNsg.0 + date: Fri, 04 Dec 2020 19:25:31 GMT + ms-cv: bwau2l2CAkarkyGspUOgZQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 293ms + x-processing-time: 333ms status: code: 204 message: No Content @@ -253,9 +252,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:34:26 GMT + - Fri, 04 Dec 2020 19:25:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -267,11 +266,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:34:42 GMT + - Fri, 04 Dec 2020 19:25:47 GMT ms-cv: - - XQ8vkqFun0WcYBPV9F++/g.0 + - +BcctCYB/kak5Jvnu0b2Dw.0 x-processing-time: - - 16141ms + - 16517ms status: code: 204 message: No Content @@ -287,9 +286,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:34:43 GMT + - Fri, 04 Dec 2020 19:25:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -301,11 +300,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:34:58 GMT + - Fri, 04 Dec 2020 19:26:04 GMT ms-cv: - - KV556O+jUkmHGylV2zWLgQ.0 + - a95dFsS+JUCzOS+LYdnFEw.0 x-processing-time: - - 16302ms + - 15983ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml index d21134bec2be..8cfa91362e0a 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:34:59 GMT + - Fri, 04 Dec 2020 19:26:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:34:59 GMT + - Fri, 04 Dec 2020 19:26:04 GMT ms-cv: - - oQrZbF4GQEypiqfU08s+9w.0 + - fE/lvcKa8029Of1xN7re0Q.0 transfer-encoding: - chunked x-processing-time: - - 142ms + - 159ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:34:59 GMT + - Fri, 04 Dec 2020 19:26:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:34:58.1634305+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:26:04.2129269+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:34:59 GMT + - Fri, 04 Dec 2020 19:26:04 GMT ms-cv: - - n5c2h2z7Vk+4gzHWj68zxA.0 + - ZB6N27gWpE6HT9a80yJGZA.0 transfer-encoding: - chunked x-processing-time: - - 310ms + - 307ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:35:00 GMT + - Fri, 04 Dec 2020 19:26:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:35:00 GMT + - Fri, 04 Dec 2020 19:26:04 GMT ms-cv: - - FQK3oL3EG0GsKEqJWVt5Rw.0 + - G20Y+0kt20SVPifcklb85g.0 transfer-encoding: - chunked x-processing-time: - - 146ms + - 149ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:35:00Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a212-1ccd-d67a-5a3a0d0001cb", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:7c78cb5b9ecd471b8adc8cb455aa6de3@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:26:05Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf19-9829-557d-5a3a0d00046d"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:35:01 GMT - ms-cv: RRYgCrWY1ESu0YFD1duVQQ.0 + date: Fri, 04 Dec 2020 19:26:05 GMT + ms-cv: gYBS7Q0yhka1j1temIJssw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 886ms + x-processing-time: 895ms status: code: 201 message: Created @@ -151,19 +150,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 response: - body: - string: '' + body: '{}' headers: api-supported-versions: 2020-11-01-preview3 - content-length: '0' - date: Thu, 26 Nov 2020 01:35:02 GMT - ms-cv: edYRbuxHsUuOg0JW27TZKQ.0 + content-type: application/json; charset=utf-8 + date: Fri, 04 Dec 2020 19:26:07 GMT + ms-cv: TT+sl9OYlkOlXIIOQki5kw.0 strict-transport-security: max-age=2592000 - x-processing-time: 403ms + transfer-encoding: chunked + x-processing-time: 938ms status: code: 201 message: Created @@ -174,29 +173,29 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a212-1f00-d67a-5a3a0d0001cc?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf19-9a6b-557d-5a3a0d00046e?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:35:02 GMT - ms-cv: 0fKc3/555kKjnjYNQmwzRQ.0 + date: Fri, 04 Dec 2020 19:26:07 GMT + ms-cv: uLsygXAqeE+Tn7JfRoTU0g.0 strict-transport-security: max-age=2592000 - x-processing-time: 450ms + x-processing-time: 526ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a212-1f00-d67a-5a3a0d0001cc?api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf19-9a6b-557d-5a3a0d00046e?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -204,10 +203,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:35:02 GMT - ms-cv: m6iUQzJRZEG611S2pDe/2Q.0 + date: Fri, 04 Dec 2020 19:26:07 GMT + ms-cv: NUAEQKuZfE+3RaGlNzrQVg.0 strict-transport-security: max-age=2592000 - x-processing-time: 294ms + x-processing-time: 326ms status: code: 204 message: No Content @@ -224,9 +223,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:35:02 GMT + - Fri, 04 Dec 2020 19:26:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -238,11 +237,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:35:18 GMT + - Fri, 04 Dec 2020 19:26:25 GMT ms-cv: - - ZbmySYRAHU6qAiF6JsWz8Q.0 + - RLGu939N30yTQq3b8brghQ.0 x-processing-time: - - 16366ms + - 16824ms status: code: 204 message: No Content @@ -258,9 +257,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:35:19 GMT + - Fri, 04 Dec 2020 19:26:25 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -272,11 +271,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:35:35 GMT + - Fri, 04 Dec 2020 19:26:40 GMT ms-cv: - - tVMr8+mtWU6LZG7uF/yihA.0 + - PeGnnZ0idUeivWvkYojpHw.0 x-processing-time: - - 15791ms + - 15683ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml index ebdeb24bcff2..c07cfe27547b 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:35:35 GMT + - Fri, 04 Dec 2020 19:26:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:35:35 GMT + - Fri, 04 Dec 2020 19:26:40 GMT ms-cv: - - J7gqJw6bRkCsHfgyy/oTjA.0 + - PYeCyIKn2E2hina5ocVIQQ.0 transfer-encoding: - chunked x-processing-time: - - 149ms + - 206ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:35:35 GMT + - Fri, 04 Dec 2020 19:26:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:35:35.1844546+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:26:41.0655577+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:35:36 GMT + - Fri, 04 Dec 2020 19:26:41 GMT ms-cv: - - BZDCih5O9k6HnxFKf68K3g.0 + - zHXXYAN5u0Ge5CIUxUWpAw.0 transfer-encoding: - chunked x-processing-time: - - 301ms + - 310ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:35:36 GMT + - Fri, 04 Dec 2020 19:26:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:35:36 GMT + - Fri, 04 Dec 2020 19:26:41 GMT ms-cv: - - YQNACfJlA0qC3+bhjRWniQ.0 + - 168b4s8ORE+eiblctoiaAA.0 transfer-encoding: - chunked x-processing-time: - - 144ms + - 153ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:35:36Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a212-a997-d67a-5a3a0d0001cd", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:5f195147edd54595b99d20fe513f316b@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:26:42Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1a-2818-b274-5a3a0d000313"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:35:36 GMT - ms-cv: Pc4d/2p2pE+ndamI7Q/yyw.0 + date: Fri, 04 Dec 2020 19:26:42 GMT + ms-cv: biVPWSsF70+maGUz00AMKA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 836ms + x-processing-time: 896ms status: code: 201 message: Created @@ -152,7 +151,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -160,11 +159,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:35:38 GMT - ms-cv: jesVyMlSfkShPs3vk9dWTw.0 + date: Fri, 04 Dec 2020 19:26:44 GMT + ms-cv: c3GuNnniAE2GQfMvcWSUng.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 713ms + x-processing-time: 1123ms status: code: 201 message: Created @@ -175,7 +174,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -183,10 +182,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:35:38 GMT - ms-cv: 2Zyr3xwjbEOSZuQN3pYT2w.0 + date: Fri, 04 Dec 2020 19:26:44 GMT + ms-cv: W3SzP9YC/kuSupXIDbyqfw.0 strict-transport-security: max-age=2592000 - x-processing-time: 291ms + x-processing-time: 334ms status: code: 204 message: No Content @@ -203,9 +202,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:35:38 GMT + - Fri, 04 Dec 2020 19:26:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -217,11 +216,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:35:54 GMT + - Fri, 04 Dec 2020 19:27:00 GMT ms-cv: - - Xdx00sbXlU+b3aOJ8LxyPQ.0 + - adbwYTn3qUmz22bJgefhYQ.0 x-processing-time: - - 16683ms + - 16226ms status: code: 204 message: No Content @@ -237,9 +236,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:35:55 GMT + - Fri, 04 Dec 2020 19:27:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -251,11 +250,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:36:10 GMT + - Fri, 04 Dec 2020 19:27:16 GMT ms-cv: - - HjmmS6PM8E2QVUJev7Im7Q.0 + - q5Eou+B2uEeNsPxtEEr9uQ.0 x-processing-time: - - 15625ms + - 15680ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml index 4fd8fb12eac8..9730e381caeb 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:36:11 GMT + - Fri, 04 Dec 2020 19:27:17 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:36:10 GMT + - Fri, 04 Dec 2020 19:27:17 GMT ms-cv: - - k2q749trqEqL2UDw50CM0A.0 + - 7cg1bKxqlEWlR3kuMTAexw.0 transfer-encoding: - chunked x-processing-time: - - 144ms + - 154ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:36:11 GMT + - Fri, 04 Dec 2020 19:27:17 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:36:10.8133027+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:27:17.0879498+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:36:11 GMT + - Fri, 04 Dec 2020 19:27:18 GMT ms-cv: - - pZs4QVOs1k6SJgcVZ6AXvw.0 + - 4C5k+3aumUuEz7Sc/uZnpA.0 transfer-encoding: - chunked x-processing-time: - - 303ms + - 300ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:36:11 GMT + - Fri, 04 Dec 2020 19:27:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:36:11 GMT + - Fri, 04 Dec 2020 19:27:18 GMT ms-cv: - - 9xvyVE1JsUeIC0/dijFQjA.0 + - kPOAqNrdxkeIFQ0fN9072g.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 149ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:36:12Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a213-34b8-d67a-5a3a0d0001cf", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:bdc8bc04b7cc4d4481e89eae56d4fc39@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:27:19Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1a-b4ce-d67a-5a3a0d000313"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:36:12 GMT - ms-cv: 8kp0E64MxkafYOfwcXKP3Q.0 + date: Fri, 04 Dec 2020 19:27:18 GMT + ms-cv: D+kbytRIG0yHnSyo8rC/EQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 823ms + x-processing-time: 1392ms status: code: 201 message: Created @@ -152,7 +151,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -160,11 +159,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:36:13 GMT - ms-cv: +MnzAI1IZkCAUA7Sw3/RcQ.0 + date: Fri, 04 Dec 2020 19:27:20 GMT + ms-cv: udKnnVGlVkuKbxtKnjk2Ag.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 696ms + x-processing-time: 659ms status: code: 201 message: Created @@ -179,30 +178,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Thu, 26 Nov 2020 01:36:14 GMT - ms-cv: np6O1exdTkmdY6jpelGRCQ.0 + date: Fri, 04 Dec 2020 19:27:21 GMT + ms-cv: /wO2/FiPzkKWRGdgqeq7GQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 1054ms + x-processing-time: 1128ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readreceipts?api-version=2020-11-01-preview3 + url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -210,10 +209,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:36:14 GMT - ms-cv: wVU4WewVYEeim0TbvPteKA.0 + date: Fri, 04 Dec 2020 19:27:22 GMT + ms-cv: odtpEV8inUCy7GUewQwfDQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 291ms + x-processing-time: 332ms status: code: 204 message: No Content @@ -230,9 +229,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:36:15 GMT + - Fri, 04 Dec 2020 19:27:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -244,11 +243,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:36:31 GMT + - Fri, 04 Dec 2020 19:27:38 GMT ms-cv: - - jGmnRPPi4U2r3B5fI2TvAg.0 + - EmF1Leuv7Ue86IvGvRg4ig.0 x-processing-time: - - 16665ms + - 16836ms status: code: 204 message: No Content @@ -264,9 +263,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:36:32 GMT + - Fri, 04 Dec 2020 19:27:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -278,11 +277,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:36:48 GMT + - Fri, 04 Dec 2020 19:27:54 GMT ms-cv: - - bR3F85hcqEGnM3hyhGekCw.0 + - 0ENlv64nvU+eUlg8QioGdw.0 x-processing-time: - - 15998ms + - 16043ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml index 7bc6460edd8a..e9026ca1bb59 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:36:48 GMT + - Fri, 04 Dec 2020 19:27:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:36:48 GMT + - Fri, 04 Dec 2020 19:27:55 GMT ms-cv: - - 5dfd6S68+0ON0FgQKe2BHA.0 + - DCodSNZYW0GwNKj0Bx/MvA.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 149ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:36:48 GMT + - Fri, 04 Dec 2020 19:27:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:36:47.9731258+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:27:55.1655435+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:36:48 GMT + - Fri, 04 Dec 2020 19:27:55 GMT ms-cv: - - ARI2J6FfUUeacfogHwIBuA.0 + - Gm8W8zLf9kawSPfDnBvnhQ.0 transfer-encoding: - chunked x-processing-time: - - 305ms + - 314ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:36:49 GMT + - Fri, 04 Dec 2020 19:27:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:36:48 GMT + - Fri, 04 Dec 2020 19:27:55 GMT ms-cv: - - gOo1oxdvV0iEEMdquiWLnQ.0 + - FceFKQMBHUiy00NAlzYdfw.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 149ms status: code: 200 message: OK @@ -118,25 +118,24 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '205' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:36:49Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a213-c5d3-d67a-5a3a0d0001d1", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:9005bf1c069b4c5695c899e741f73167@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:27:56Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1b-4986-557d-5a3a0d000471"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:36:49 GMT - ms-cv: hVsPHh2h7UCb4zyTr4V09A.0 + date: Fri, 04 Dec 2020 19:27:57 GMT + ms-cv: FqY4XgvXFUK8ae6TBWp15Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 819ms + x-processing-time: 899ms status: code: 201 message: Created @@ -147,7 +146,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 response: @@ -156,10 +155,10 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Thu, 26 Nov 2020 01:36:49 GMT - ms-cv: Ugs6QMBZB0Sa0KjcVdJ/OA.0 + date: Fri, 04 Dec 2020 19:27:57 GMT + ms-cv: vxuW3uLw/kSm1GeYaflboQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 350ms + x-processing-time: 372ms status: code: 200 message: OK @@ -170,7 +169,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -178,10 +177,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:36:50 GMT - ms-cv: jfiKGmFYIkKtmUX49ENjWQ.0 + date: Fri, 04 Dec 2020 19:27:58 GMT + ms-cv: +oNVhhl67EGt6JEAkkcqtQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 293ms + x-processing-time: 326ms status: code: 204 message: No Content @@ -198,9 +197,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:36:51 GMT + - Fri, 04 Dec 2020 19:27:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -212,11 +211,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:37:06 GMT + - Fri, 04 Dec 2020 19:28:14 GMT ms-cv: - - RZoO3HhFo0OwIv5gA1twZA.0 + - D25bmlUbfkiPPFM5QMCmcw.0 x-processing-time: - - 16249ms + - 16838ms status: code: 204 message: No Content @@ -232,9 +231,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:37:07 GMT + - Fri, 04 Dec 2020 19:28:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -246,11 +245,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:37:22 GMT + - Fri, 04 Dec 2020 19:28:31 GMT ms-cv: - - HwAld85ROEuFlUgOzhOl8w.0 + - KM2BeNR6FEyOWTPqQrMUUw.0 x-processing-time: - - 15724ms + - 16017ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml index f87e84004dd7..62221467e485 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:37:23 GMT + - Fri, 04 Dec 2020 19:28:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:37:23 GMT + - Fri, 04 Dec 2020 19:28:31 GMT ms-cv: - - pr4hJTNfY02Ob3HQWgo0+Q.0 + - T9TbWpW1rka8OMAVlaVNkw.0 transfer-encoding: - chunked x-processing-time: - - 193ms + - 154ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:37:23 GMT + - Fri, 04 Dec 2020 19:28:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:37:22.5212159+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:28:31.1868847+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:37:23 GMT + - Fri, 04 Dec 2020 19:28:31 GMT ms-cv: - - Fx82Mbw6nECeET5we1lTmQ.0 + - erjGQPYsxkid0mm/elrD9g.0 transfer-encoding: - chunked x-processing-time: - - 799ms + - 328ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:37:24 GMT + - Fri, 04 Dec 2020 19:28:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:37:24 GMT + - Fri, 04 Dec 2020 19:28:32 GMT ms-cv: - - iZCNwDoNr0aswypDFZtPbw.0 + - aN+2i40YcEuJtTrhNbn3jQ.0 transfer-encoding: - chunked x-processing-time: - - 147ms + - 154ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:37:25Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a214-4ec4-557d-5a3a0d0000eb", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:eb17e263799b41e0bdf7af2fec46e31a@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:28:32Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1b-d627-b274-5a3a0d000317"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:37:24 GMT - ms-cv: Jx6RuC+vCUGEGH3W1Rd2uw.0 + date: Fri, 04 Dec 2020 19:28:33 GMT + ms-cv: pzY+7Kl+Ok2m8ZCW8U06iQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 824ms + x-processing-time: 888ms status: code: 201 message: Created @@ -152,7 +151,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -160,11 +159,11 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:37:26 GMT - ms-cv: s5ds7ENduUW3IcrgyAHc2w.0 + date: Fri, 04 Dec 2020 19:28:33 GMT + ms-cv: IVx5Bu8VqEWgONkw/3y/dQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1189ms + x-processing-time: 918ms status: code: 201 message: Created @@ -179,7 +178,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: @@ -187,10 +186,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:37:27 GMT - ms-cv: ADPtiWXcvUGsA+NIakBLVg.0 + date: Fri, 04 Dec 2020 19:28:34 GMT + ms-cv: 9xhiF+eBykqMdP2L65Ggkg.0 strict-transport-security: max-age=2592000 - x-processing-time: 644ms + x-processing-time: 717ms status: code: 204 message: No Content @@ -201,7 +200,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -209,10 +208,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:37:27 GMT - ms-cv: 89G73Qkbzk2xsrd+NB2pew.0 + date: Fri, 04 Dec 2020 19:28:35 GMT + ms-cv: o/D6W6TaMkmf4U+5V1yeqA.0 strict-transport-security: max-age=2592000 - x-processing-time: 297ms + x-processing-time: 336ms status: code: 204 message: No Content @@ -229,9 +228,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:37:28 GMT + - Fri, 04 Dec 2020 19:28:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -243,11 +242,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:37:44 GMT + - Fri, 04 Dec 2020 19:28:51 GMT ms-cv: - - Do0PbPBpokuzAtYTRVnGEQ.0 + - YcciaYSaIUyK2N16L/defA.0 x-processing-time: - - 16576ms + - 16352ms status: code: 204 message: No Content @@ -263,9 +262,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:37:45 GMT + - Fri, 04 Dec 2020 19:28:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -277,11 +276,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:38:01 GMT + - Fri, 04 Dec 2020 19:29:08 GMT ms-cv: - - 6QuQdG+lOU2AvQ4gESHRCg.0 + - WBSYv1o+QEyYkAgMku+DbA.0 x-processing-time: - - 16160ms + - 16137ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml index 8cbebdb95275..daf500d9214c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:38:01 GMT + - Fri, 04 Dec 2020 19:29:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,13 +26,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:38:01 GMT + - Fri, 04 Dec 2020 19:29:08 GMT ms-cv: - - xOTsMZpPDE6VSFdb4pUG9g.0 + - b2nic6Wtk0q5CwAVNlfdIw.0 transfer-encoding: - chunked x-processing-time: - - 145ms + - 150ms status: code: 200 message: OK @@ -50,28 +50,28 @@ interactions: Content-Type: - application/json Date: - - Thu, 26 Nov 2020 01:38:01 GMT + - Fri, 04 Dec 2020 19:29:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-11-27T01:38:01.2688559+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:29:08.3205817+00:00"}' headers: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:38:01 GMT + - Fri, 04 Dec 2020 19:29:08 GMT ms-cv: - - xAGb2zCDrk2Ic8aWRhHLPg.0 + - 1Hk70V+tskOg9LYEnWteoQ.0 transfer-encoding: - chunked x-processing-time: - - 307ms + - 310ms status: code: 200 message: OK @@ -87,9 +87,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:38:02 GMT + - Fri, 04 Dec 2020 19:29:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -102,13 +102,13 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 01:38:01 GMT + - Fri, 04 Dec 2020 19:29:08 GMT ms-cv: - - Y/yo9RuBmUOZRSjZTQC0oQ.0 + - xYPwAXX090yPgjbeW4ONWQ.0 transfer-encoding: - chunked x-processing-time: - - 146ms + - 148ms status: code: 200 message: OK @@ -122,21 +122,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-11-26T01:38:02Z", - "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-a214-e42a-557d-5a3a0d0000ed", - "participants": "sanitized"}' + body: '{"chatThread": {"id": "19:3fe1fb4fc91e4cc1b4e21946f8f3bee2@thread.v2", + "topic": "test topic", "createdOn": "2020-12-04T19:29:09Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1c-6709-b274-5a3a0d00031b"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Thu, 26 Nov 2020 01:38:03 GMT - ms-cv: ikYbvwWd0EeQKe0qSkCWTw.0 + date: Fri, 04 Dec 2020 19:29:10 GMT + ms-cv: u/519dWn5EyzwvBMmD5rig.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 835ms + x-processing-time: 885ms status: code: 201 message: Created @@ -151,7 +150,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -159,10 +158,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:38:04 GMT - ms-cv: B9zAEHFeoEWGADIp0yKqGQ.0 + date: Fri, 04 Dec 2020 19:29:10 GMT + ms-cv: PDrzeVC4h0amWoO4eQUEeA.0 strict-transport-security: max-age=2592000 - x-processing-time: 402ms + x-processing-time: 446ms status: code: 204 message: No Content @@ -173,7 +172,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -181,10 +180,10 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Thu, 26 Nov 2020 01:38:04 GMT - ms-cv: cDCCSUJ76kKa8dg8Xs/naA.0 + date: Fri, 04 Dec 2020 19:29:11 GMT + ms-cv: VD0pHpC0JUiRT0MY7Dst2g.0 strict-transport-security: max-age=2592000 - x-processing-time: 297ms + x-processing-time: 340ms status: code: 204 message: No Content @@ -201,9 +200,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:38:04 GMT + - Fri, 04 Dec 2020 19:29:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -215,11 +214,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:38:21 GMT + - Fri, 04 Dec 2020 19:29:28 GMT ms-cv: - - SnhqKrzJHkicq9V0u8C5Dg.0 + - 00UWv5a9eEiDsveb2EZFmA.0 x-processing-time: - - 16662ms + - 16805ms status: code: 204 message: No Content @@ -235,9 +234,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 26 Nov 2020 01:38:21 GMT + - Fri, 04 Dec 2020 19:29:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b2 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -249,11 +248,11 @@ interactions: api-supported-versions: - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 date: - - Thu, 26 Nov 2020 01:38:36 GMT + - Fri, 04 Dec 2020 19:29:44 GMT ms-cv: - - RFQIEh9xhkaGo9n3KT4dmg.0 + - WclIsNxHUUKLObrFPabXHA.0 x-processing-time: - - 15852ms + - 15941ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client.py b/sdk/communication/azure-communication-chat/tests/test_chat_client.py index 6f7d336a9fdc..4117a5f6c81c 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client.py @@ -37,7 +37,14 @@ def test_create_chat_thread(self): raised = False def mock_send(*_, **__): - return mock_response(status_code=201, json_payload={"id": thread_id}) + return mock_response(status_code=201, json_payload={ + "chatThread": { + "id": thread_id, + "topic": "test topic", + "createdOn": "2020-12-03T21:09:17Z", + "createdBy": "8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + } + }) chat_client = ChatClient("https://endpoint", TestChatClient.credential, transport=Mock(send=mock_send)) diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py index 1892166ee530..1ee7ce44d89a 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client_async.py @@ -32,7 +32,14 @@ async def test_create_chat_thread(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" async def mock_send(*_, **__): - return mock_response(status_code=201, json_payload={"id": thread_id}) + return mock_response(status_code=201, json_payload={ + "chatThread": { + "id": thread_id, + "topic": "test topic", + "createdOn": "2020-12-03T21:09:17Z", + "createdBy": "8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" + } + }) chat_client = ChatClient("https://endpoint", credential, transport=Mock(send=mock_send)) From 3c947d3ec66ee6daff5358aa9b21886d4f85c925 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Mon, 25 Jan 2021 11:25:44 -0800 Subject: [PATCH 3/6] Communication chat - paginated results for participants and readreceipts (#15682) * Failed participant check + single member add * Add failed participant check in response header for create_thread method * New convention method add_participant(thread_participant: ChatThreadParticipant) - sync and async * Add empty line at the end of files * Enable pagination for list participants * Enable pagination for read receipts * conflicts resolved after merge with upstream * update README.md * e2e test fix * bkp commit * updated e2e tests * adding test recording Co-authored-by: Leo Li --- .../azure-communication-chat/README.md | 4 +- .../communication/chat/_chat_thread_client.py | 16 +- .../aio/operations/_chat_thread_operations.py | 114 ++--- .../operations/_chat_thread_operations.py | 114 ++--- .../chat/aio/_chat_thread_client_async.py | 18 +- ...at_client_e2e.test_create_chat_thread.yaml | 74 +-- ...at_client_e2e.test_delete_chat_thread.yaml | 84 ++-- ..._chat_client_e2e.test_get_chat_thread.yaml | 86 ++-- ...hat_client_e2e.test_get_thread_client.yaml | 74 +-- ...hat_client_e2e.test_list_chat_threads.yaml | 84 ++-- ...e_async.test_create_chat_thread_async.yaml | 78 ++-- ...ent_e2e_async.test_delete_chat_thread.yaml | 90 ++-- ...client_e2e_async.test_get_chat_thread.yaml | 92 ++-- ...ient_e2e_async.test_get_thread_client.yaml | 78 ++-- ...ient_e2e_async.test_list_chat_threads.yaml | 90 ++-- ...hread_client_e2e.test_add_participant.yaml | 159 ++++--- ...read_client_e2e.test_add_participants.yaml | 157 ++++--- ...thread_client_e2e.test_delete_message.yaml | 167 ++++--- ...at_thread_client_e2e.test_get_message.yaml | 173 ++++--- ..._thread_client_e2e.test_list_messages.yaml | 197 +++++--- ...ead_client_e2e.test_list_participants.yaml | 194 +++++--- ...ad_client_e2e.test_list_read_receipts.yaml | 425 +++++++++++++++--- ...ad_client_e2e.test_remove_participant.yaml | 167 ++++--- ...t_thread_client_e2e.test_send_message.yaml | 157 ++++--- ...ead_client_e2e.test_send_read_receipt.yaml | 171 ++++--- ...ent_e2e.test_send_typing_notification.yaml | 157 ++++--- ...thread_client_e2e.test_update_message.yaml | 167 ++++--- ...t_thread_client_e2e.test_update_topic.yaml | 157 ++++--- ...client_e2e_async.test_add_participant.yaml | 163 ++++--- ...lient_e2e_async.test_add_participants.yaml | 163 ++++--- ..._client_e2e_async.test_delete_message.yaml | 175 +++++--- ...ead_client_e2e_async.test_get_message.yaml | 181 +++++--- ...d_client_e2e_async.test_list_messages.yaml | 213 +++++---- ...ient_e2e_async.test_list_participants.yaml | 190 +++++--- ...ent_e2e_async.test_list_read_receipts.yaml | 367 ++++++++++++--- ...ent_e2e_async.test_remove_participant.yaml | 175 +++++--- ...ad_client_e2e_async.test_send_message.yaml | 161 ++++--- ...ient_e2e_async.test_send_read_receipt.yaml | 179 +++++--- ...e_async.test_send_typing_notification.yaml | 165 ++++--- ..._client_e2e_async.test_update_message.yaml | 175 +++++--- ...ad_client_e2e_async.test_update_topic.yaml | 163 ++++--- .../tests/test_chat_thread_client.py | 54 ++- .../tests/test_chat_thread_client_async.py | 88 +++- .../tests/test_chat_thread_client_e2e.py | 133 ++++-- .../test_chat_thread_client_e2e_async.py | 144 +++++- 45 files changed, 4335 insertions(+), 2098 deletions(-) diff --git a/sdk/communication/azure-communication-chat/README.md b/sdk/communication/azure-communication-chat/README.md index 73a15aa1b285..9cdec1f18a3e 100644 --- a/sdk/communication/azure-communication-chat/README.md +++ b/sdk/communication/azure-communication-chat/README.md @@ -291,7 +291,7 @@ Use `list_participants` to retrieve the participants of the thread. An iterator of `[ChatThreadParticipant]` is the response returned from listing participants ```python -chat_thread_participants = chat_thread_client.list_participants() +chat_thread_participants = chat_thread_client.list_participants(results_per_page=5, skip=5) for chat_thread_participant in chat_thread_participants: print(chat_thread_participant) ``` @@ -353,7 +353,7 @@ chat_thread_client.send_read_receipt(message_id) An iterator of `[ChatMessageReadReceipt]` is the response returned from listing read receipts ```python -read_receipts = chat_thread_client.list_read_receipts() +read_receipts = chat_thread_client.list_read_receipts(results_per_page=5, skip=5) for read_receipt in read_receipts: print(read_receipt) print(read_receipt.sender) 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 538bf019115b..ccafc2bd02bf 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 @@ -187,6 +187,8 @@ def list_read_receipts( # type: (...) -> ItemPaged[ChatMessageReadReceipt] """Gets read receipts for a thread. + :keyword int results_per_page: The maximum number of chat message read receipts to be returned per page. + :keyword int skip: Skips chat message read receipts up to a specified position in response. :keyword callable cls: A custom type or function that will be passed the direct response :return: ItemPaged[:class:`~azure.communication.chat.ChatMessageReadReceipt`] :rtype: ~azure.core.paging.ItemPaged @@ -201,8 +203,13 @@ def list_read_receipts( :dedent: 8 :caption: Listing read receipts. """ + results_per_page = kwargs.pop("results_per_page", None) + skip = kwargs.pop("skip", None) + return self._client.chat_thread.list_chat_read_receipts( self._thread_id, + max_page_size=results_per_page, + skip=skip, cls=lambda objs: [ChatMessageReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -337,7 +344,7 @@ def list_messages( a = self._client.chat_thread.list_chat_messages( self._thread_id, - maxpagesize=results_per_page, + max_page_size=results_per_page, start_time=start_time, cls=lambda objs: [ChatMessage._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -423,6 +430,8 @@ def list_participants( # type: (...) -> ItemPaged[ChatThreadParticipant] """Gets the participants of a thread. + :keyword int results_per_page: The maximum number of participants to be returned per page. + :keyword int skip: Skips participants up to a specified position in response. :keyword callable cls: A custom type or function that will be passed the direct response :return: ItemPaged[:class:`~azure.communication.chat.ChatThreadParticipant`] :rtype: ~azure.core.paging.ItemPaged @@ -438,8 +447,13 @@ def list_participants( :caption: Listing participants of chat thread. """ + results_per_page = kwargs.pop("results_per_page", None) + skip = kwargs.pop("skip", None) + return self._client.chat_thread.list_chat_participants( self._thread_id, + max_page_size=results_per_page, + skip=skip, cls=lambda objs: [ChatThreadParticipant._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) 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 479fd2e3ba59..66b2939dd730 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 @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_chat_read_receipts( self, chat_thread_id: str, - maxpagesize: Optional[int] = None, + max_page_size: Optional[int] = None, skip: Optional[int] = None, **kwargs ) -> AsyncIterable["_models.ChatMessageReadReceiptsCollection"]: @@ -54,8 +54,8 @@ def list_chat_read_receipts( :param chat_thread_id: Thread id to get the chat message read receipts for. :type chat_thread_id: str - :param maxpagesize: The maximum number of chat message read receipts to be returned per page. - :type maxpagesize: int + :param max_page_size: The maximum number of chat message read receipts to be returned per page. + :type max_page_size: int :param skip: Skips chat message read receipts up to a specified position in response. :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response @@ -91,8 +91,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if maxpagesize is not None: - query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') if skip is not None: query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -190,7 +190,7 @@ async def send_chat_read_receipt( pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [201]: + if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) @@ -271,7 +271,7 @@ async def send_chat_message( def list_chat_messages( self, chat_thread_id: str, - maxpagesize: Optional[int] = None, + max_page_size: Optional[int] = None, start_time: Optional[datetime.datetime] = None, **kwargs ) -> AsyncIterable["_models.ChatMessagesCollection"]: @@ -281,8 +281,8 @@ def list_chat_messages( :param chat_thread_id: The thread id of the message. :type chat_thread_id: str - :param maxpagesize: The maximum number of messages to be returned per page. - :type maxpagesize: int + :param max_page_size: The maximum number of messages to be returned per page. + :type max_page_size: int :param start_time: The earliest point in time to get messages up to. The timestamp should be in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type start_time: ~datetime.datetime @@ -319,8 +319,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if maxpagesize is not None: - query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') if start_time is not None: query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -619,7 +619,7 @@ async def send_typing_notification( def list_chat_participants( self, chat_thread_id: str, - maxpagesize: Optional[int] = None, + max_page_size: Optional[int] = None, skip: Optional[int] = None, **kwargs ) -> AsyncIterable["_models.ChatParticipantsCollection"]: @@ -629,8 +629,8 @@ def list_chat_participants( :param chat_thread_id: Thread id to get participants for. :type chat_thread_id: str - :param maxpagesize: The maximum number of participants to be returned per page. - :type maxpagesize: int + :param max_page_size: The maximum number of participants to be returned per page. + :type max_page_size: int :param skip: Skips participants up to a specified position in response. :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response @@ -666,8 +666,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if maxpagesize is not None: - query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') if skip is not None: query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -708,26 +708,26 @@ async def get_next(next_link=None): ) list_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore - async def add_chat_participants( + async def remove_chat_participant( self, chat_thread_id: str, - add_chat_participants_request: "_models.AddChatParticipantsRequest", + chat_participant_id: str, **kwargs - ) -> "_models.AddChatParticipantsResult": - """Adds thread participants to a thread. If participants already exist, no change occurs. + ) -> None: + """Remove a participant from a thread. - Adds thread participants to a thread. If participants already exist, no change occurs. + Remove a participant from a thread. - :param chat_thread_id: Id of the thread to add participants to. + :param chat_thread_id: Thread id to remove the participant from. :type chat_thread_id: str - :param add_chat_participants_request: Thread participants to be added to the thread. - :type add_chat_participants_request: ~azure.communication.chat.models.AddChatParticipantsRequest + :param chat_participant_id: Id of the thread participant to remove from the thread. + :type chat_participant_id: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: AddChatParticipantsResult, or the result of cls(response) - :rtype: ~azure.communication.chat.models.AddChatParticipantsResult + :return: None, or the result of cls(response) + :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AddChatParticipantsResult"] + cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -738,14 +738,14 @@ async def add_chat_participants( } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" - content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self.add_chat_participants.metadata['url'] # type: ignore + url = self.remove_chat_participant.metadata['url'] # type: ignore path_format_arguments = { 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), + 'chatParticipantId': self._serialize.url("chat_participant_id", chat_participant_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -755,48 +755,41 @@ async def add_chat_participants( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(add_chat_participants_request, 'AddChatParticipantsRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [201]: + if response.status_code not in [204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) - deserialized = self._deserialize('AddChatParticipantsResult', pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, None, {}) - return deserialized - add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore + remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore - async def remove_chat_participant( + async def add_chat_participants( self, chat_thread_id: str, - chat_participant_id: str, + add_chat_participants_request: "_models.AddChatParticipantsRequest", **kwargs - ) -> None: - """Remove a participant from a thread. + ) -> "_models.AddChatParticipantsResult": + """Adds thread participants to a thread. If participants already exist, no change occurs. - Remove a participant from a thread. + Adds thread participants to a thread. If participants already exist, no change occurs. - :param chat_thread_id: Thread id to remove the participant from. + :param chat_thread_id: Id of the thread to add participants to. :type chat_thread_id: str - :param chat_participant_id: Id of the thread participant to remove from the thread. - :type chat_participant_id: str + :param add_chat_participants_request: Thread participants to be added to the thread. + :type add_chat_participants_request: ~azure.communication.chat.models.AddChatParticipantsRequest :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None + :return: AddChatParticipantsResult, or the result of cls(response) + :rtype: ~azure.communication.chat.models.AddChatParticipantsResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AddChatParticipantsResult"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -807,14 +800,14 @@ async def remove_chat_participant( } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" + content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self.remove_chat_participant.metadata['url'] # type: ignore + url = self.add_chat_participants.metadata['url'] # type: ignore path_format_arguments = { 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), - 'chatParticipantId': self._serialize.url("chat_participant_id", chat_participant_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -824,20 +817,27 @@ async def remove_chat_participant( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - request = self._client.delete(url, query_parameters, header_parameters) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(add_chat_participants_request, 'AddChatParticipantsRequest') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [204]: + if response.status_code not in [201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) + deserialized = self._deserialize('AddChatParticipantsResult', pipeline_response) + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, deserialized, {}) - remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore + return deserialized + add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants/:add'} # type: ignore async def update_chat_thread( self, 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 ce8ccd28b95b..ed6ae68f7cb9 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 @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer): def list_chat_read_receipts( self, chat_thread_id, # type: str - maxpagesize=None, # type: Optional[int] + max_page_size=None, # type: Optional[int] skip=None, # type: Optional[int] **kwargs # type: Any ): @@ -59,8 +59,8 @@ def list_chat_read_receipts( :param chat_thread_id: Thread id to get the chat message read receipts for. :type chat_thread_id: str - :param maxpagesize: The maximum number of chat message read receipts to be returned per page. - :type maxpagesize: int + :param max_page_size: The maximum number of chat message read receipts to be returned per page. + :type max_page_size: int :param skip: Skips chat message read receipts up to a specified position in response. :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response @@ -96,8 +96,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if maxpagesize is not None: - query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') if skip is not None: query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -196,7 +196,7 @@ def send_chat_read_receipt( pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [201]: + if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) @@ -278,7 +278,7 @@ def send_chat_message( def list_chat_messages( self, chat_thread_id, # type: str - maxpagesize=None, # type: Optional[int] + max_page_size=None, # type: Optional[int] start_time=None, # type: Optional[datetime.datetime] **kwargs # type: Any ): @@ -289,8 +289,8 @@ def list_chat_messages( :param chat_thread_id: The thread id of the message. :type chat_thread_id: str - :param maxpagesize: The maximum number of messages to be returned per page. - :type maxpagesize: int + :param max_page_size: The maximum number of messages to be returned per page. + :type max_page_size: int :param start_time: The earliest point in time to get messages up to. The timestamp should be in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. :type start_time: ~datetime.datetime @@ -327,8 +327,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if maxpagesize is not None: - query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') if start_time is not None: query_parameters['startTime'] = self._serialize.query("start_time", start_time, 'iso-8601') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -631,7 +631,7 @@ def send_typing_notification( def list_chat_participants( self, chat_thread_id, # type: str - maxpagesize=None, # type: Optional[int] + max_page_size=None, # type: Optional[int] skip=None, # type: Optional[int] **kwargs # type: Any ): @@ -642,8 +642,8 @@ def list_chat_participants( :param chat_thread_id: Thread id to get participants for. :type chat_thread_id: str - :param maxpagesize: The maximum number of participants to be returned per page. - :type maxpagesize: int + :param max_page_size: The maximum number of participants to be returned per page. + :type max_page_size: int :param skip: Skips participants up to a specified position in response. :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response @@ -679,8 +679,8 @@ def prepare_request(next_link=None): url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} # type: Dict[str, Any] - if maxpagesize is not None: - query_parameters['$maxpagesize'] = self._serialize.query("maxpagesize", maxpagesize, 'int') + if max_page_size is not None: + query_parameters['maxPageSize'] = self._serialize.query("max_page_size", max_page_size, 'int') if skip is not None: query_parameters['skip'] = self._serialize.query("skip", skip, 'int') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') @@ -721,27 +721,27 @@ def get_next(next_link=None): ) list_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore - def add_chat_participants( + def remove_chat_participant( self, chat_thread_id, # type: str - add_chat_participants_request, # type: "_models.AddChatParticipantsRequest" + chat_participant_id, # type: str **kwargs # type: Any ): - # type: (...) -> "_models.AddChatParticipantsResult" - """Adds thread participants to a thread. If participants already exist, no change occurs. + # type: (...) -> None + """Remove a participant from a thread. - Adds thread participants to a thread. If participants already exist, no change occurs. + Remove a participant from a thread. - :param chat_thread_id: Id of the thread to add participants to. + :param chat_thread_id: Thread id to remove the participant from. :type chat_thread_id: str - :param add_chat_participants_request: Thread participants to be added to the thread. - :type add_chat_participants_request: ~azure.communication.chat.models.AddChatParticipantsRequest + :param chat_participant_id: Id of the thread participant to remove from the thread. + :type chat_participant_id: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: AddChatParticipantsResult, or the result of cls(response) - :rtype: ~azure.communication.chat.models.AddChatParticipantsResult + :return: None, or the result of cls(response) + :rtype: None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AddChatParticipantsResult"] + cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -752,14 +752,14 @@ def add_chat_participants( } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" - content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self.add_chat_participants.metadata['url'] # type: ignore + url = self.remove_chat_participant.metadata['url'] # type: ignore path_format_arguments = { 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), + 'chatParticipantId': self._serialize.url("chat_participant_id", chat_participant_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -769,49 +769,42 @@ def add_chat_participants( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(add_chat_participants_request, 'AddChatParticipantsRequest') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [201]: + if response.status_code not in [204]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) - deserialized = self._deserialize('AddChatParticipantsResult', pipeline_response) - if cls: - return cls(pipeline_response, deserialized, {}) + return cls(pipeline_response, None, {}) - return deserialized - add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants'} # type: ignore + remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore - def remove_chat_participant( + def add_chat_participants( self, chat_thread_id, # type: str - chat_participant_id, # type: str + add_chat_participants_request, # type: "_models.AddChatParticipantsRequest" **kwargs # type: Any ): - # type: (...) -> None - """Remove a participant from a thread. + # type: (...) -> "_models.AddChatParticipantsResult" + """Adds thread participants to a thread. If participants already exist, no change occurs. - Remove a participant from a thread. + Adds thread participants to a thread. If participants already exist, no change occurs. - :param chat_thread_id: Thread id to remove the participant from. + :param chat_thread_id: Id of the thread to add participants to. :type chat_thread_id: str - :param chat_participant_id: Id of the thread participant to remove from the thread. - :type chat_participant_id: str + :param add_chat_participants_request: Thread participants to be added to the thread. + :type add_chat_participants_request: ~azure.communication.chat.models.AddChatParticipantsRequest :keyword callable cls: A custom type or function that will be passed the direct response - :return: None, or the result of cls(response) - :rtype: None + :return: AddChatParticipantsResult, or the result of cls(response) + :rtype: ~azure.communication.chat.models.AddChatParticipantsResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[None] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AddChatParticipantsResult"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -822,14 +815,14 @@ def remove_chat_participant( } error_map.update(kwargs.pop('error_map', {})) api_version = "2020-11-01-preview3" + content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self.remove_chat_participant.metadata['url'] # type: ignore + url = self.add_chat_participants.metadata['url'] # type: ignore path_format_arguments = { 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), 'chatThreadId': self._serialize.url("chat_thread_id", chat_thread_id, 'str'), - 'chatParticipantId': self._serialize.url("chat_participant_id", chat_participant_id, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -839,20 +832,27 @@ def remove_chat_participant( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - request = self._client.delete(url, query_parameters, header_parameters) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(add_chat_participants_request, 'AddChatParticipantsRequest') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response - if response.status_code not in [204]: + if response.status_code not in [201]: map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response) + deserialized = self._deserialize('AddChatParticipantsResult', pipeline_response) + if cls: - return cls(pipeline_response, None, {}) + return cls(pipeline_response, deserialized, {}) - remove_chat_participant.metadata = {'url': '/chat/threads/{chatThreadId}/participants/{chatParticipantId}'} # type: ignore + return deserialized + add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants/:add'} # type: ignore def update_chat_thread( self, 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 70d8aa4c6a7e..fcd8efca2375 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 @@ -183,7 +183,8 @@ def list_read_receipts( ) -> AsyncItemPaged[ChatMessageReadReceipt]: """Gets read receipts for a thread. - :keyword callable cls: A custom type or function that will be passed the direct response + :keyword int results_per_page: The maximum number of chat message read receipts to be returned per page. + :keyword int skip: Skips chat message read receipts up to a specified position in response. :return: AsyncItemPaged[:class:`~azure.communication.chat.ChatMessageReadReceipt`] :rtype: ~azure.core.async_paging.AsyncItemPaged :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -197,8 +198,13 @@ def list_read_receipts( :dedent: 12 :caption: Listing read receipts. """ + results_per_page = kwargs.pop("results_per_page", None) + skip = kwargs.pop("skip", None) + return self._client.chat_thread.list_chat_read_receipts( self._thread_id, + max_page_size=results_per_page, + skip=skip, cls=lambda objs: [ChatMessageReadReceipt._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -329,7 +335,7 @@ def list_messages( return self._client.chat_thread.list_chat_messages( self._thread_id, - maxpagesize=results_per_page, + max_page_size=results_per_page, start_time=start_time, cls=lambda objs: [ChatMessage._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) @@ -412,6 +418,8 @@ def list_participants( ) -> AsyncItemPaged[ChatThreadParticipant]: """Gets the participants of a thread. + :keyword int results_per_page: The maximum number of participants to be returned per page. + :keyword int skip: Skips participants up to a specified position in response. :keyword callable cls: A custom type or function that will be passed the direct response :return: AsyncItemPaged[:class:`~azure.communication.chat.ChatThreadParticipant`] :rtype: ~azure.core.async_paging.AsyncItemPaged @@ -426,8 +434,14 @@ def list_participants( :dedent: 12 :caption: Listing participants of chat thread. """ + + results_per_page = kwargs.pop("results_per_page", None) + skip = kwargs.pop("skip", None) + return self._client.chat_thread.list_chat_participants( self._thread_id, + max_page_size=results_per_page, + skip=skip, cls=lambda objs: [ChatThreadParticipant._from_generated(x) for x in objs], # pylint:disable=protected-access **kwargs) diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml index c4fc01de4e8e..f36b4fb477dc 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:10:08 GMT + - Mon, 25 Jan 2021 17:47:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:08 GMT + - Mon, 25 Jan 2021 17:47:09 GMT ms-cv: - - ZLeyMdfjlUiaA7hFCaNAhQ.0 + - kgdYNPOdy02C1uA2NBza3w.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 163ms + - 43ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:10:09 GMT + - Mon, 25 Jan 2021 17:47:23 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:10:08.5963912+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:47:08.26655+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:09 GMT + - Mon, 25 Jan 2021 17:47:09 GMT ms-cv: - - ohVmGH8Y+kyPbqLNnXnMZA.0 + - kdtzCxgkHE+7GeoJohHJRQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 319ms + - 351ms status: code: 200 message: OK @@ -89,27 +93,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:0ce5d13557174151846884a72a66f024@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:10:10Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0b-033a-ea7c-5a3a0d0003b7"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:17 GMT + - Mon, 25 Jan 2021 17:47:11 GMT ms-cv: - - Nlmt8PvUqk2FdWmxSsNyOQ.0 + - ZuICXreYz0GxucVSP2qfIA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 8296ms + - 878ms status: code: 201 message: Created @@ -125,25 +129,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:10:18 GMT + - Mon, 25 Jan 2021 17:47:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:10:33 GMT + - Mon, 25 Jan 2021 17:47:27 GMT ms-cv: - - QfXR2/jGJ0ySXUq0ZuP0Ug.0 + - TJoAqESAikaMaa+XuD5BSw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16204ms + - 16641ms status: code: 204 message: No Content @@ -159,9 +165,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -169,13 +175,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:10:33 GMT + - Mon, 25 Jan 2021 17:47:27 GMT ms-cv: - - Rl3SteqAb0uPhIqQDd7MZQ.0 + - ElM8ymKj+02Gi/u6MD3ygQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 330ms + - 300ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml index 6a7a77d3eb5c..3234874f8f70 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:10:34 GMT + - Mon, 25 Jan 2021 17:47:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:34 GMT + - Mon, 25 Jan 2021 17:47:28 GMT ms-cv: - - mF7CdbwyVE6FC8BBQo8NIQ.0 + - g8o+UYZYX0mpxZhC9yKMXg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 163ms + - 72ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:10:35 GMT + - Mon, 25 Jan 2021 17:47:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:10:34.7059512+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:47:27.9077124+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:34 GMT + - Mon, 25 Jan 2021 17:47:28 GMT ms-cv: - - 4rsH2sIQ1UWcvUl3NR2nvA.0 + - 5KGDjpJUl0C3zdEyZKqC3w.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 317ms + - 107ms status: code: 200 message: OK @@ -89,27 +93,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:c01d0c1aee764caba5df437ce44484be@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:10:36Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0b-6931-557d-5a3a0d00045d"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:36 GMT + - Mon, 25 Jan 2021 17:47:29 GMT ms-cv: - - DR9MRSFZZk2c2dzg2VnNCA.0 + - u/2IZjucOUCiaAj9OhbrTw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 908ms + - 854ms status: code: 201 message: Created @@ -125,9 +129,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -135,13 +139,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:10:37 GMT + - Mon, 25 Jan 2021 17:47:30 GMT ms-cv: - - zCVlSJ/1MkKeoYuphyntXg.0 + - hkl4/aC1dkWel0KDIA7kHw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 324ms + - 307ms status: code: 204 message: No Content @@ -157,25 +161,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:10:37 GMT + - Mon, 25 Jan 2021 17:47:43 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:10:53 GMT + - Mon, 25 Jan 2021 17:47:47 GMT ms-cv: - - Jqb0IpezM0WltLJf/1aJ+A.0 + - fsyq6ouEIUWA6w5Q4Kv1eQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16388ms + - 17205ms status: code: 204 message: No Content @@ -191,9 +197,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -201,13 +207,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:10:53 GMT + - Mon, 25 Jan 2021 17:47:48 GMT ms-cv: - - RBxKrvVGbkiC0zkbgG+2uw.0 + - Xs5/2WvTgkiLLvcpX3aojA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 269ms + - 739ms 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 c0040d70542d..a858cf06c5e9 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:10:54 GMT + - Mon, 25 Jan 2021 17:48:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:54 GMT + - Mon, 25 Jan 2021 17:47:48 GMT ms-cv: - - BcEYMxZoM02u+cI9k4rsdw.0 + - PN/KbdZzP0evxZs7M4IzTw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 211ms + - 19ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:10:54 GMT + - Mon, 25 Jan 2021 17:48:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:10:54.4658058+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:47:47.8499306+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:55 GMT + - Mon, 25 Jan 2021 17:47:48 GMT ms-cv: - - 42U+LulfrUuD/FTi1AQZ9g.0 + - kWzin0cMY0esWHjqAXy2mA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 603ms + - 87ms status: code: 200 message: OK @@ -89,27 +93,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:25b5342f4ba3456d8cbd7a7f4a996ee4@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:10:55Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0b-b54e-b274-5a3a0d000303"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:56 GMT + - Mon, 25 Jan 2021 17:47:49 GMT ms-cv: - - BxE1rtrWgUSpgt16P580cQ.0 + - 08PQtsol8Uqylt9HD16EFw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 904ms + - 1405ms status: code: 201 message: Created @@ -123,11 +127,11 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-12-04T19:10:55Z", + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-01-25T17:47:49Z", "createdBy": "sanitized"}' headers: api-supported-versions: @@ -135,15 +139,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:10:56 GMT + - Mon, 25 Jan 2021 17:47:49 GMT ms-cv: - - wpn+hMZxF0+uIAAoD5A+wg.0 + - 1bf6+syxyUOkVgNsrBOrXA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 268ms + - 278ms status: code: 200 message: OK @@ -159,25 +163,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:10:57 GMT + - Mon, 25 Jan 2021 17:48:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:11:12 GMT + - Mon, 25 Jan 2021 17:48:06 GMT ms-cv: - - 3efjdp87U02aDWvTSyzPzw.0 + - Q9Vx5Gs0CUq2pAVz6hv94Q.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16185ms + - 16225ms status: code: 204 message: No Content @@ -193,9 +199,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -203,13 +209,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:11:12 GMT + - Mon, 25 Jan 2021 17:48:07 GMT ms-cv: - - ItVSpeOI9UuXAAHwHNmY2A.0 + - miah0VvSHE6+nxpb7Q3JRw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 330ms + - 473ms 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 f4c9ac3a8493..09989a756bb4 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:11:13 GMT + - Mon, 25 Jan 2021 17:48:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:13 GMT + - Mon, 25 Jan 2021 17:48:07 GMT ms-cv: - - Ri68986tg0uW2yqd60Zatw.0 + - Qt+hMsZ0SUeWbBjqOVT5oQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 160ms + - 17ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:11:14 GMT + - Mon, 25 Jan 2021 17:48:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:11:13.459095+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:48:07.144614+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:14 GMT + - Mon, 25 Jan 2021 17:48:07 GMT ms-cv: - - YsqUGwBNzESmeJiRMVAZew.0 + - 7jnSvnCEU06zOJ9y3r3GRA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 308ms + - 89ms status: code: 200 message: OK @@ -89,27 +93,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:baca4f223e664fe890c62445e9caeba1@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:11:15Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-0042-557d-5a3a0d00045e"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:15 GMT + - Mon, 25 Jan 2021 17:48:08 GMT ms-cv: - - HpM4vU0JqUCw9FwUOhRWRQ.0 + - 0MiTXLitokaWeSX2SiO1Ng.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1350ms + - 896ms status: code: 201 message: Created @@ -125,25 +129,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:11:16 GMT + - Mon, 25 Jan 2021 17:48:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:11:31 GMT + - Mon, 25 Jan 2021 17:48:25 GMT ms-cv: - - +V+ZWmuPzkmb35aY9aU/pA.0 + - 8g/S0JsofE2iuKBQbLr25w.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16221ms + - 16550ms status: code: 204 message: No Content @@ -159,9 +165,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -169,13 +175,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:11:32 GMT + - Mon, 25 Jan 2021 17:48:25 GMT ms-cv: - - xEUBZiB2rEq4Xir2J1CpGw.0 + - KSO679H6l0W7deoQpb1Jxg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 335ms + - 302ms 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 766d2e5ece57..f3039b109ea4 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:11:32 GMT + - Mon, 25 Jan 2021 17:48:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:32 GMT + - Mon, 25 Jan 2021 17:48:25 GMT ms-cv: - - 8HhZXLWew0aAc6MXt0Hj6Q.0 + - rYSY/wje90K4OOIC8moh6w.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 159ms + - 21ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:11:33 GMT + - Mon, 25 Jan 2021 17:48:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:11:32.6326234+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:48:25.5162705+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:33 GMT + - Mon, 25 Jan 2021 17:48:25 GMT ms-cv: - - 3Gjeqgdf60i8etSM4zm/GQ.0 + - oNEWXTcUSEeTJA7rS2OAhg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 318ms + - 93ms status: code: 200 message: OK @@ -89,27 +93,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:a799d7fcae454760b6c0c28c9d085c71@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:11:34Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-4b7e-557d-5a3a0d00045f"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:34 GMT + - Mon, 25 Jan 2021 17:48:27 GMT ms-cv: - - iwK3xwsPHEuG7Wxr3mITdQ.0 + - 2yMh19/WIUun8ywzgA2mOw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 908ms + - 1173ms status: code: 201 message: Created @@ -123,9 +127,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -134,15 +138,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:36 GMT + - Mon, 25 Jan 2021 17:48:29 GMT ms-cv: - - VmfcvV6KOEm9LEIqlTQBHQ.0 + - VirqTs34gU2vEHPGN7EgEA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 448ms + - 321ms status: code: 200 message: OK @@ -158,25 +162,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:11:37 GMT + - Mon, 25 Jan 2021 17:48:43 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:11:53 GMT + - Mon, 25 Jan 2021 17:48:46 GMT ms-cv: - - 5hWo7vJS0EiqkbLLbVInHw.0 + - YQwYD/M6kEObut/qJon8zA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16834ms + - 16304ms status: code: 204 message: No Content @@ -192,9 +198,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -202,13 +208,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:11:53 GMT + - Mon, 25 Jan 2021 17:48:46 GMT ms-cv: - - 9THbCS2SPEys/98LWQe16w.0 + - 3odFWv6dVU2/bi5fZgwODg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 328ms + - 297ms 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 8e55167b8747..060f09238aa2 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:11:54 GMT + - Mon, 25 Jan 2021 17:49:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:54 GMT + - Mon, 25 Jan 2021 17:48:47 GMT ms-cv: - - CxHoI5d/nUSieUsdJoKX0w.0 + - BVIRAQIW7kuQRq/88BCj8A.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 163ms + - 21ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:11:55 GMT + - Mon, 25 Jan 2021 17:49:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:11:54.8081004+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:48:46.4503998+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:11:54 GMT + - Mon, 25 Jan 2021 17:48:47 GMT ms-cv: - - gXPPdkyS7UOhz1IUrXZOLQ.0 + - cKGQvzv/skyuZgEPbsBfQw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 662ms + - 115ms status: code: 200 message: OK @@ -85,46 +89,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:92e0acd9303f420e91fb3aab147a4766@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:11:56Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-a0ba-8a72-5a3a0d00034c"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:11:56 GMT - ms-cv: fxMSCOM7FkCc2KGrjItV+A.0 + date: Mon, 25 Jan 2021 17:48:48 GMT + ms-cv: T1kL5ifVSECg3upWveP7ug.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 907ms + x-processing-time: 878ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + 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.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:11:57 GMT - ms-cv: WJoyqTwFU0CKzf1GPju1/w.0 + date: Mon, 25 Jan 2021 17:48:48 GMT + ms-cv: WDgG+UEYqEuYZU3M7i3gIg.0 strict-transport-security: max-age=2592000 - x-processing-time: 328ms + x-processing-time: 305ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -137,25 +141,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:11:57 GMT + - Mon, 25 Jan 2021 17:49:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:12:13 GMT + - Mon, 25 Jan 2021 17:49:04 GMT ms-cv: - - wSF4aNKkEk6aUJz6MwD5Tg.0 + - T2WJ5d79iUWRnOBSsYbcpQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16387ms + - 16204ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml index 110b7f750b88..17ef431486ed 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:12:13 GMT + - Mon, 25 Jan 2021 17:49:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:12:14 GMT + - Mon, 25 Jan 2021 17:49:05 GMT ms-cv: - - BC9z1BJcZUW3yD7d5+FGAA.0 + - RVrIyUzajEiGXbPEhg+6XA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 150ms + - 45ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:12:14 GMT + - Mon, 25 Jan 2021 17:49:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:12:13.5682068+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:49:04.6480313+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:12:14 GMT + - Mon, 25 Jan 2021 17:49:05 GMT ms-cv: - - f4CckEXxGEGG9RSQGRWRbQ.0 + - V/V5xZgop0eh7cCdTe3wIw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 320ms + - 93ms status: code: 200 message: OK @@ -85,68 +89,68 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:3e4f7f02fc7c4d848ffc8174217b04b9@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:12:15Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0c-eb65-8a72-5a3a0d00034d"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:12:15 GMT - ms-cv: 4Rd+PNE5H0qjPzYUiNTe3A.0 + date: Mon, 25 Jan 2021 17:49:07 GMT + ms-cv: mwbttry9FkuDj6ANZO6XOQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 893ms + x-processing-time: 850ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + 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.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:12:15 GMT - ms-cv: /oy07bczM0OUuelRThSWoA.0 + date: Mon, 25 Jan 2021 17:49:07 GMT + ms-cv: VBefqR2rbkqVQoaK6LJxfA.0 strict-transport-security: max-age=2592000 - x-processing-time: 334ms + x-processing-time: 293ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:12:15 GMT - ms-cv: eY/meUaW3ku71kdlog87yA.0 + date: Mon, 25 Jan 2021 17:49:07 GMT + ms-cv: fgY4wvqpFkaEgCd4fr/A8A.0 strict-transport-security: max-age=2592000 - x-processing-time: 269ms + x-processing-time: 257ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -159,25 +163,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:12:16 GMT + - Mon, 25 Jan 2021 17:49:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:12:32 GMT + - Mon, 25 Jan 2021 17:49:23 GMT ms-cv: - - LbY5liNdGE+0uC/TLJWWtw.0 + - oI34Crr2rUyyMo+h8KVXvg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16338ms + - 16089ms 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 ef48cd8e2864..49a0cc5a2dc9 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:12:32 GMT + - Mon, 25 Jan 2021 17:49:37 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:12:33 GMT + - Mon, 25 Jan 2021 17:49:24 GMT ms-cv: - - 7HJUgoqEY0+tMZj1LHMLXA.0 + - wEyH0YIoVEaJYqd4cCtWRQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 149ms + - 18ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:12:33 GMT + - Mon, 25 Jan 2021 17:49:38 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:12:32.6909335+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:49:23.8373762+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:12:33 GMT + - Mon, 25 Jan 2021 17:49:24 GMT ms-cv: - - p+rktYsA+kuFz/9yWOVPEA.0 + - EK6RBGx/kUifI0FRxN7XpA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 302ms + - 85ms status: code: 200 message: OK @@ -85,70 +89,70 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:4c1fe998f91149eb8633785e068a5631@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:12:34Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0d-361b-ea7c-5a3a0d0003ba"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:12:34 GMT - ms-cv: 4qusa0VscESH1xeBLiFVog.0 + date: Mon, 25 Jan 2021 17:49:25 GMT + ms-cv: ZpJm2YSpMEWhKuZJRPlomA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 893ms + x-processing-time: 857ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + 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.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2020-12-04T19:12:34Z", + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-01-25T17:49:25Z", "createdBy": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:12:34 GMT - ms-cv: z6wYzZ8u0ESCKP2S+F7/Ig.0 + date: Mon, 25 Jan 2021 17:49:25 GMT + ms-cv: HlbdcVYqKkmNGomDFpDFwQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 262ms + x-processing-time: 258ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:12:35 GMT - ms-cv: +PzgPuRsh02CGevSpzIY6Q.0 + date: Mon, 25 Jan 2021 17:49:25 GMT + ms-cv: sqH5Iu3F3USpM0IKHyfa3w.0 strict-transport-security: max-age=2592000 - x-processing-time: 338ms + x-processing-time: 301ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -161,25 +165,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:12:35 GMT + - Mon, 25 Jan 2021 17:49:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:12:51 GMT + - Mon, 25 Jan 2021 17:49:42 GMT ms-cv: - - 6+d84SqH7k6lschaPQeALQ.0 + - c1H6lZWItUu4maIiIiHqVA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16524ms + - 16231ms 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 30d7554fc94e..aaa113d87b8d 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:12:52 GMT + - Mon, 25 Jan 2021 17:49:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:12:51 GMT + - Mon, 25 Jan 2021 17:49:43 GMT ms-cv: - - v0EW/9SY7kuve9HcIDEwaw.0 + - i421D7R/XEK6vANt6iooxw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 254ms + - 20ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:12:52 GMT + - Mon, 25 Jan 2021 17:49:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:12:52.0754754+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:49:42.1805472+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:12:52 GMT + - Mon, 25 Jan 2021 17:49:43 GMT ms-cv: - - zGJBbUNCrEuvK63pHVjseA.0 + - clTWLXF66UWxMYad2LTFiQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 314ms + - 123ms status: code: 200 message: OK @@ -85,46 +89,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:da28cac25aab45e8bf89ef720b43a6bf@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:12:53Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0d-81cf-ea7c-5a3a0d0003bb"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:12:54 GMT - ms-cv: QKVSvwPzv0qXwIWDsNc6/A.0 + date: Mon, 25 Jan 2021 17:49:43 GMT + ms-cv: p+z1na/BJ0Cmifj5okN3BA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 891ms + x-processing-time: 868ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + 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.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:12:54 GMT - ms-cv: DffsqGfBnUWYl370pIEKHw.0 + date: Mon, 25 Jan 2021 17:49:43 GMT + ms-cv: h6St3wtw4kG4FvpZaS0gbw.0 strict-transport-security: max-age=2592000 - x-processing-time: 323ms + x-processing-time: 295ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -137,25 +141,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:12:54 GMT + - Mon, 25 Jan 2021 17:49:57 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:13:10 GMT + - Mon, 25 Jan 2021 17:50:00 GMT ms-cv: - - yjKTr3a6s0amd6k1VbgwHA.0 + - Vc5ZCGLGMUW/uXqcABzFow.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16288ms + - 16560ms 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 16720bd0fb34..60952805c5c8 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:13:10 GMT + - Mon, 25 Jan 2021 17:50:14 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:13:10 GMT + - Mon, 25 Jan 2021 17:50:00 GMT ms-cv: - - 187AYzPatk2wYu28j4wx5g.0 + - Qk0HvRQqPk2J7r9gfDrPew.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 203ms + - 20ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:13:11 GMT + - Mon, 25 Jan 2021 17:50:14 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:13:10.6881288+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:50:00.6505801+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:13:10 GMT + - Mon, 25 Jan 2021 17:50:00 GMT ms-cv: - - ZG/QmqBSWUyXYi7mlMcHbQ.0 + - BamiJIwrykybfvYuXJSZAA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 299ms + - 92ms status: code: 200 message: OK @@ -85,69 +89,69 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:0b66405c8f2c4b39aa3a8d2196994bf1@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:13:12Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0d-ca8b-557d-5a3a0d000460"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:13:12 GMT - ms-cv: ozyc6vEKgkewN02Vl31xMg.0 + date: Mon, 25 Jan 2021 17:50:01 GMT + ms-cv: ooc73IhRREWsypKw81pY9w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 891ms + x-processing-time: 845ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + 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.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:13:14 GMT - ms-cv: VHGrLByFTUijbFrNwesOgA.0 + date: Mon, 25 Jan 2021 17:50:04 GMT + ms-cv: 0tjprqjYqE+UvBF57b60hw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 384ms + x-processing-time: 316ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:13:15 GMT - ms-cv: Fj+XXuooM0qS2LkmB50IDQ.0 + date: Mon, 25 Jan 2021 17:50:04 GMT + ms-cv: f7ZM9fdmk06yesQhq8V1lg.0 strict-transport-security: max-age=2592000 - x-processing-time: 328ms + x-processing-time: 295ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -160,25 +164,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:13:15 GMT + - Mon, 25 Jan 2021 17:50:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:13:31 GMT + - Mon, 25 Jan 2021 17:50:21 GMT ms-cv: - - sym6uodMakSuKLaG4eBS4g.0 + - 5I/T5tjsxU+S1gX75sAyJg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 17019ms + - 16136ms 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 133a9a783629..3ea21d2b450f 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:13:32 GMT + - Mon, 25 Jan 2021 18:43:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:13:32 GMT + - Mon, 25 Jan 2021 18:43:27 GMT ms-cv: - - 66nTBSY+Okii5WsarUmmDg.0 + - oKRx4zh+QkaN0EcDBrWLTg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 147ms + - 76ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:13:33 GMT + - Mon, 25 Jan 2021 18:43:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:13:32.650274+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:43:27.5398235+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:13:33 GMT + - Mon, 25 Jan 2021 18:43:27 GMT ms-cv: - - KzKzL1twJ0WwWKDyYl5J/g.0 + - gGgUG9cHAUid9CwRhrCt+g.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 301ms + - 92ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:13:33 GMT + - Mon, 25 Jan 2021 18:43:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:13:33 GMT + - Mon, 25 Jan 2021 18:43:27 GMT ms-cv: - - WZczyhAvAkajNH4/21t5tw.0 + - wq0vSfYE+k2kKi8sh1203Q.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 146ms + - 16ms + 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: + - Mon, 25 Jan 2021 18:43:42 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-26T18:43:27.7341497+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 + ms-cv: + - faDmhVQz+0KTIkx/VNBefA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 88ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:359bb36a2bca4db4bdd5d3a3c8b57583@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:13:34Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0e-2056-557d-5a3a0d000461"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:13:34 GMT + - Mon, 25 Jan 2021 18:43:29 GMT ms-cv: - - OydZhnmPGUGCoTahFLS3eA.0 + - WJsRBrQqZE2iI9ZiUMTSgQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 936ms + - 879ms status: code: 201 message: Created @@ -160,13 +207,13 @@ interactions: Connection: - keep-alive Content-Length: - - '182' + - '183' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: body: '{}' headers: @@ -175,15 +222,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:13:35 GMT + - Mon, 25 Jan 2021 18:43:30 GMT ms-cv: - - RvgxhlL+j0CEbX1hnOFAcg.0 + - I4AD08sPQkGV3X4vcBKv6w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 885ms + - 408ms status: code: 201 message: Created @@ -199,25 +246,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:13:36 GMT + - Mon, 25 Jan 2021 18:43:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:13:52 GMT + - Mon, 25 Jan 2021 18:43:46 GMT ms-cv: - - 2G5FZKmerkOTQOcSVMpLgA.0 + - iOwJb897x0G8KkpKf5Efmg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16515ms + - 16109ms status: code: 204 message: No Content @@ -233,25 +282,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:13:52 GMT + - Mon, 25 Jan 2021 18:44:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:14:08 GMT + - Mon, 25 Jan 2021 18:44:02 GMT ms-cv: - - RBA0k5mEu0+cUTaRTV2QTg.0 + - S6D8jA+Tv0KvQjFNJprXpw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16038ms + - 16057ms status: code: 204 message: No Content @@ -267,9 +318,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -277,13 +328,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:14:08 GMT + - Mon, 25 Jan 2021 18:44:02 GMT ms-cv: - - fpb0UMnnYUeZuvjw43iCzA.0 + - VxGMJuxHQ0OWPoPm7SVKtA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 340ms + - 313ms 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 e7e43143dab2..29c034352320 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:14:09 GMT + - Mon, 25 Jan 2021 18:44:17 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:09 GMT + - Mon, 25 Jan 2021 18:44:03 GMT ms-cv: - - GzCnrCvImEaHW5E+51dNyg.0 + - EC3zzJpZZUaK/irAzezSZw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 145ms + - 20ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:14:09 GMT + - Mon, 25 Jan 2021 18:44:17 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:14:08.0923235+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:44:02.6489909+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:09 GMT + - Mon, 25 Jan 2021 18:44:03 GMT ms-cv: - - CcJoTLfoOECVSoogJIrecA.0 + - J9NQ172wPkeNzs1XTskP2A.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 296ms + - 90ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:14:10 GMT + - Mon, 25 Jan 2021 18:44:17 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:10 GMT + - Mon, 25 Jan 2021 18:44:03 GMT ms-cv: - - 8NnEy4VOhECDEeAVvJDSEw.0 + - /eNzY1NtRU++ZQ+1OiSjyg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 144ms + - 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: + - Mon, 25 Jan 2021 18:44: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: + - '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-26T18:44:02.8464121+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 + ms-cv: + - FX25cHsYP06xo1HHTIqfhA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 94ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:0986da17e18842748f206bad3224ec3b@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:14:10Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0e-aeaf-557d-5a3a0d000463"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:11 GMT + - Mon, 25 Jan 2021 18:44:04 GMT ms-cv: - - 1Kn8y//W20iUTNW/gAULxQ.0 + - crpNg8/LG0yRASi6w51Vxg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 933ms + - 864ms status: code: 201 message: Created @@ -164,9 +211,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: body: '{}' headers: @@ -175,15 +222,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:12 GMT + - Mon, 25 Jan 2021 18:44:04 GMT ms-cv: - - kuLzHjpkVkOHwHcv4iYdkQ.0 + - t1/a7+QqR0mljL2EzVyLlg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 894ms + - 404ms status: code: 201 message: Created @@ -199,25 +246,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:14:12 GMT + - Mon, 25 Jan 2021 18:44:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:14:28 GMT + - Mon, 25 Jan 2021 18:44:20 GMT ms-cv: - - TCh/T9s1PkGPW61WEJIADw.0 + - ogZg48W5Pkin//L7WZ8dwg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15993ms + - 15902ms status: code: 204 message: No Content @@ -233,25 +282,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:14:28 GMT + - Mon, 25 Jan 2021 18:44:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:14:44 GMT + - Mon, 25 Jan 2021 18:44:36 GMT ms-cv: - - 23ejVnv6O0yOu90P1eN+RQ.0 + - lGW2AwMWZE+nSyGQmw1W+w.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16028ms + - 15985ms status: code: 204 message: No Content @@ -267,9 +318,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -277,13 +328,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:14:44 GMT + - Mon, 25 Jan 2021 18:44:37 GMT ms-cv: - - IInBSeWpqESdqTAPVYhKRQ.0 + - X2vRWTp/8kK/LX+rpTDWhw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 338ms + - 322ms 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 f37fb7df8870..bdf5c67f901c 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:14:45 GMT + - Mon, 25 Jan 2021 18:44:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:44 GMT + - Mon, 25 Jan 2021 18:44:38 GMT ms-cv: - - I1XTgQn8fEaERd7bA2XcSA.0 + - pP4N+j5G/EyszxIeVPhjtA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 147ms + - 65ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:14:45 GMT + - Mon, 25 Jan 2021 18:44:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:14:45.0818798+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:44:37.7047435+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:45 GMT + - Mon, 25 Jan 2021 18:44:38 GMT ms-cv: - - osUMHo8HNUmqum6uNNUpEA.0 + - dKDAxuWQ8U+sSEVqAdb5lQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 300ms + - 87ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:14:46 GMT + - Mon, 25 Jan 2021 18:44:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:45 GMT + - Mon, 25 Jan 2021 18:44:38 GMT ms-cv: - - 4HJK7dzhgkeOvWHAB7lOYg.0 + - b8ZKJznCekOUyVDg21ueLA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 156ms + - 46ms + 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: + - Mon, 25 Jan 2021 18:44:52 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-26T18:44:37.9540654+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 + ms-cv: + - NvHp6Ofuj0mNEc5LiZ3W5A.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 91ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:ff503ee6c8594e28b67823c26844e110@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:14:46Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0f-3b50-ea7c-5a3a0d0003c0"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:46 GMT + - Mon, 25 Jan 2021 18:44:39 GMT ms-cv: - - 9zh/cwC2Q0qP7JoPsLcufQ.0 + - JPk94FunaEOLDxXJo/Er4Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 916ms + - 847ms status: code: 201 message: Created @@ -165,9 +212,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -176,15 +223,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:14:47 GMT + - Mon, 25 Jan 2021 18:44:40 GMT ms-cv: - - CHnUwQeLMUeD1tcUVcOGYA.0 + - pKEUet1MvUSJPpX3CzzV2A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 972ms + - 834ms status: code: 201 message: Created @@ -200,9 +247,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -210,13 +257,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:14:48 GMT + - Mon, 25 Jan 2021 18:44:41 GMT ms-cv: - - uQNd0JCCkUCZ/yUN2OezLA.0 + - FnrADCL5ukWrri0XsSrNHg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 438ms + - 400ms status: code: 204 message: No Content @@ -232,25 +279,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:14:49 GMT + - Mon, 25 Jan 2021 18:44:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:15:05 GMT + - Mon, 25 Jan 2021 18:44:56 GMT ms-cv: - - CwEP7775VEaSZ7bdoAmdAg.0 + - yAZHb7sH8kqk+953gRifKA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16464ms + - 16221ms status: code: 204 message: No Content @@ -266,25 +315,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:15:05 GMT + - Mon, 25 Jan 2021 18:45:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:15:21 GMT + - Mon, 25 Jan 2021 18:45:13 GMT ms-cv: - - X89yE3T/B0S+EybBRMKGBA.0 + - c2wSYaKuuUOZa+i+oVwVqw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15938ms + - 15598ms status: code: 204 message: No Content @@ -300,9 +351,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -310,13 +361,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:15:22 GMT + - Mon, 25 Jan 2021 18:45:13 GMT ms-cv: - - UHEqR0IiRUu3FOw/OBltlw.0 + - gNlvnW/roEGP9KhoVLAmXw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 319ms + - 341ms 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 cc6458f02a09..34d5ef071562 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:15:22 GMT + - Mon, 25 Jan 2021 18:45:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:15:22 GMT + - Mon, 25 Jan 2021 18:45:13 GMT ms-cv: - - TeHiskrrk0Sz+x3dUaejwg.0 + - 0ZFBvIj7f028BsNyzbE55w.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 163ms + - 24ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:15:22 GMT + - Mon, 25 Jan 2021 18:45:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:15:21.1504317+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:45:13.2602928+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:15:22 GMT + - Mon, 25 Jan 2021 18:45:13 GMT ms-cv: - - JlcRF/VHg02YiMeqTb7ZDQ.0 + - Dpfw4A/Py06l1S6VHGWKoA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 304ms + - 88ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:15:23 GMT + - Mon, 25 Jan 2021 18:45:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:15:23 GMT + - Mon, 25 Jan 2021 18:45:13 GMT ms-cv: - - 1VUNCQ0aZUOyHEUoG+nwDA.0 + - inlBIKKwbkW/xg9m8FPIHw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 156ms + - 17ms + 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: + - Mon, 25 Jan 2021 18:45: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: + - '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-26T18:45:13.4429851+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 + ms-cv: + - yNNUaxMf1EG9hP1IvSLU+g.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 84ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:6b91ae6ba6cb4ae68173dd61b86cb059@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:15:24Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf0f-cc06-ea7c-5a3a0d0003c2"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:15:24 GMT + - Mon, 25 Jan 2021 18:45:15 GMT ms-cv: - - ujfAJwQus0KsuP9nVpb9Kg.0 + - b7XjO9YJ3Umt8+7HWKXBPg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1371ms + - 917ms status: code: 201 message: Created @@ -165,9 +212,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -176,15 +223,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:15:25 GMT + - Mon, 25 Jan 2021 18:45:15 GMT ms-cv: - - bqF+aMTF50KO7mot7QSieQ.0 + - Mh4OKIRPSkm+lIA6ogrsnA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 633ms + - 404ms status: code: 201 message: Created @@ -198,28 +245,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1607109325492", - "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-12-04T19:15:25Z", - "senderId": "sanitized"}' + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1611600315871", + "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": + "2021-01-25T18:45:15Z", "senderId": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:15:25 GMT + - Mon, 25 Jan 2021 18:45:15 GMT ms-cv: - - /58MZ5FKWE2jU6pN1v8+0w.0 + - RASQqexRcUy1Nyfc/xTe1g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 268ms + - 258ms status: code: 200 message: OK @@ -235,25 +282,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:15:26 GMT + - Mon, 25 Jan 2021 18:45:30 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:15:42 GMT + - Mon, 25 Jan 2021 18:45:32 GMT ms-cv: - - DNome154JkqG75Xc14hXpw.0 + - PLScvFqsBEiDs7+JKKsILA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16646ms + - 16309ms status: code: 204 message: No Content @@ -269,25 +318,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:15:42 GMT + - Mon, 25 Jan 2021 18:45:46 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:15:59 GMT + - Mon, 25 Jan 2021 18:45:49 GMT ms-cv: - - 2+iM10qwgEqYqzy89vZZiQ.0 + - L4ZeN4YwM0+3RHrTzHdQKw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16653ms + - 17062ms status: code: 204 message: No Content @@ -303,9 +354,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -313,13 +364,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:15:59 GMT + - Mon, 25 Jan 2021 18:45:49 GMT ms-cv: - - hL3pKmy150S7qGSzF2YGZw.0 + - LAb34vFSBUyVfz7q6sl1MA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 328ms + - 300ms 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 3e21f6fc822c..a7e61178404f 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:16:00 GMT + - Mon, 25 Jan 2021 18:46:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:00 GMT + - Mon, 25 Jan 2021 18:45:49 GMT ms-cv: - - B5DZN3xiXkqoOoSfkesxPQ.0 + - unagzh5SdUWK3NwBE1yL/A.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 155ms + - 20ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:16:00 GMT + - Mon, 25 Jan 2021 18:46:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:15:59.9494375+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:45:49.6938238+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:00 GMT + - Mon, 25 Jan 2021 18:45:49 GMT ms-cv: - - Wl+H+wwwtkCy4Mh29Lcn9Q.0 + - 9ODd3u+FOUm/vsOggAHx7g.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 311ms + - 90ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:16:00 GMT + - Mon, 25 Jan 2021 18:46:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:00 GMT + - Mon, 25 Jan 2021 18:45:50 GMT ms-cv: - - ixXvh6V1kU+5r8N9dnFLFA.0 + - oiinWEDTNUGDX074oij4VA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 157ms + - 39ms + 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: + - Mon, 25 Jan 2021 18:46: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: + - '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-26T18:45:49.9706876+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 + ms-cv: + - 01nDKwhwV0O5pdnS6AHlIw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 139ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:e841d6d0e14b4af09279e8e971c22d61@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:16:02Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf10-5fbb-ea7c-5a3a0d0003c4"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:02 GMT + - Mon, 25 Jan 2021 18:45:52 GMT ms-cv: - - WRXHBIB+dUedWWB7oGKMoA.0 + - Dhg0lbDoZEOVRTonjcUCsw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1375ms + - 867ms status: code: 201 message: Created @@ -165,9 +212,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -176,15 +223,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:03 GMT + - Mon, 25 Jan 2021 18:45:52 GMT ms-cv: - - t0V2QXV8J0CcHnSlv6JYVg.0 + - H1leZtlFuU6wSNRJxLtTIg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 698ms + - 381ms status: code: 201 message: Created @@ -198,9 +245,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -209,15 +256,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:05 GMT + - Mon, 25 Jan 2021 18:45:52 GMT ms-cv: - - 2yzw1m4AZ0SEHdkx3tzgPQ.0 + - dyYYQH20WUmTucn9zxXrog.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 283ms + - 273ms status: code: 200 message: OK @@ -231,9 +278,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -242,15 +289,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:06 GMT + - Mon, 25 Jan 2021 18:45:53 GMT ms-cv: - - Cnxq7R6BRUmRVki3OcGhmw.0 + - erlDOQjoo0Cv/HB9j6spsg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 358ms + - 373ms status: code: 200 message: OK @@ -264,9 +311,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -275,15 +322,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:06 GMT + - Mon, 25 Jan 2021 18:45:53 GMT ms-cv: - - M28vXivcv0u8fbbpV37AAQ.0 + - 04qxqyiO20KVsF57tWUDQQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 350ms + - 373ms status: code: 200 message: OK @@ -297,9 +344,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -308,15 +355,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:07 GMT + - Mon, 25 Jan 2021 18:45:54 GMT ms-cv: - - +EfVJuIMCUqXrfZAYBwXxA.0 + - 87ngpgE1mES390iTfyKx/w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 361ms + - 370ms status: code: 200 message: OK @@ -332,25 +379,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:16:07 GMT + - Mon, 25 Jan 2021 18:46:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:16:24 GMT + - Mon, 25 Jan 2021 18:46:11 GMT ms-cv: - - KcmKBuUdTUCtgooQYhrquQ.0 + - mC7CyMdqqkG4tPyB2CwseQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 17041ms + - 17446ms status: code: 204 message: No Content @@ -366,25 +415,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:16:24 GMT + - Mon, 25 Jan 2021 18:46:25 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:16:40 GMT + - Mon, 25 Jan 2021 18:46:27 GMT ms-cv: - - JD9RCbq3b0iNcH9u/ay65Q.0 + - 50WMfvrMEkCkQV0A0mKJVw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16121ms + - 15840ms status: code: 204 message: No Content @@ -400,9 +451,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -410,13 +461,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:16:40 GMT + - Mon, 25 Jan 2021 18:46:27 GMT ms-cv: - - g0JnDl0+r02hUgbV8ws98g.0 + - FuDzf6sAmkWFF5ElUpmNmQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 337ms + - 336ms 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 2551bed9e37b..221f514b0ad8 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:16:41 GMT + - Mon, 25 Jan 2021 18:46:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:41 GMT + - Mon, 25 Jan 2021 18:46:27 GMT ms-cv: - - nO8pu1egoEqqv8dH+gISKw.0 + - A5pPuFL+jke0+zWXUGLVfg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 177ms + - 23ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:16:41 GMT + - Mon, 25 Jan 2021 18:46:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:16:41.6855087+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:46:27.3419406+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:42 GMT + - Mon, 25 Jan 2021 18:46:27 GMT ms-cv: - - 6zrrKPD94k2WqW3dc+YpKQ.0 + - jOQ6al5nIkCa1b1wRg/ncg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 692ms + - 102ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:16:42 GMT + - Mon, 25 Jan 2021 18:46:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:46:27 GMT + ms-cv: + - /T+IygIyY0e5hC1gNzsawA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 22ms + 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: + - Mon, 25 Jan 2021 18:46:42 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-26T18:46:27.5691461+00:00"}' + headers: + api-supported-versions: + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:42 GMT + - Mon, 25 Jan 2021 18:46:27 GMT ms-cv: - - 5q5EhgpRNUaM6EcVLJdvng.0 + - KUCRC91QakGemTcUH9vSDA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 171ms + - 103ms status: code: 200 message: OK @@ -126,27 +173,64 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:d499e180c13f4066aacaf7d0fe3c24fb@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:16:43Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf11-0133-8a72-5a3a0d00034e"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:43 GMT + - Mon, 25 Jan 2021 18:46:29 GMT + ms-cv: + - f/AJ3Z5SFU6zDL8JRjUcDw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 865ms + status: + code: 201 + message: Created +- request: + body: '{"participants": "sanitized"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '183' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 + response: + body: '{}' + headers: + api-supported-versions: + - 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:46:30 GMT ms-cv: - - WAg3UltJL0Gc1twzjSkMzA.0 + - sB0o36MSsEa5SAczOyG6Gg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 881ms + - 420ms status: code: 201 message: Created @@ -160,9 +244,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -171,15 +255,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:16:46 GMT + - Mon, 25 Jan 2021 18:46:30 GMT ms-cv: - - 02zCDsS1T0KWqcfYynbtIw.0 + - lpA+Ry8mskmpmVZfdv9w2A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 254ms + - 269ms status: code: 200 message: OK @@ -195,25 +279,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:16:46 GMT + - Mon, 25 Jan 2021 18:46:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:17:02 GMT + - Mon, 25 Jan 2021 18:46:46 GMT ms-cv: - - UtzQEybrkEqMBVSxZFW/sQ.0 + - 1KdvNjFZykWrHIt7M1SdJA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16069ms + - 17056ms status: code: 204 message: No Content @@ -229,25 +315,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:17:02 GMT + - Mon, 25 Jan 2021 18:47:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:17:18 GMT + - Mon, 25 Jan 2021 18:47:03 GMT ms-cv: - - rDK9fH5K30ywZKK8eWhfRw.0 + - uCZMYGRArUqybun05SEiXw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16353ms + - 15838ms status: code: 204 message: No Content @@ -263,9 +351,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -273,13 +361,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:17:18 GMT + - Mon, 25 Jan 2021 18:47:03 GMT ms-cv: - - +jLVieBu6E6QNZ9Z+bVNGg.0 + - K79YHhB3H02KxQKZUOJnUQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 330ms + - 340ms 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 0d0b93840a13..ddfafe727530 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:17:19 GMT + - Mon, 25 Jan 2021 18:47:17 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:17:19 GMT + - Mon, 25 Jan 2021 18:47:03 GMT ms-cv: - - Dltg9sSjFk66pNR2joGILg.0 + - KmArPD0DlkSqMJdz9GRcUg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 166ms + - 73ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:17:20 GMT + - Mon, 25 Jan 2021 18:47:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:17:19.4713905+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:47:03.4279193+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:17:19 GMT + - Mon, 25 Jan 2021 18:47:03 GMT ms-cv: - - ZiU/1rWYvEKfxTOK8LLu2g.0 + - tsh0ScLFLkya9RmdOTewxQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 315ms + - 88ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:17:20 GMT + - Mon, 25 Jan 2021 18:47:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:17:19 GMT + - Mon, 25 Jan 2021 18:47:03 GMT ms-cv: - - mvzFcukGTUqeZ2asuDJJ/g.0 + - 5lagXms0TECdqtX2vLo/aw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 152ms + - 20ms + 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: + - Mon, 25 Jan 2021 18:47: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: + - '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-26T18:47:03.6776787+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 + ms-cv: + - 8NGPvPCdfEOSE6QcA7Szxg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 137ms status: code: 200 message: OK @@ -122,34 +169,141 @@ interactions: Connection: - keep-alive Content-Length: - - '206' + - '371' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + 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"}}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:47:05 GMT + ms-cv: + - j5GIecWHXUiW5S1RIQLKPg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 909ms + status: + code: 201 + message: Created +- request: + body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender + name"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '84' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:8605832276104f699e1751ba0a5ad0c7@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:17:21Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf11-964c-d67a-5a3a0d000305"}}' + body: '{"id": "sanitized"}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:17:22 GMT + - Mon, 25 Jan 2021 18:47:05 GMT ms-cv: - - t+ezdL/y5kmczFWlGTD00g.0 + - OlL0PRQ/fkO+yDmKgEuRvw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1440ms + - 397ms status: code: 201 message: Created +- request: + body: '{"chatMessageId": "sanitized"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '34' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-length: + - '0' + date: + - Mon, 25 Jan 2021 18:47:06 GMT + ms-cv: + - 05YTSTjukU2ZSs5wc+MRQA.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 919ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:47:06 GMT + ms-cv: + - FXpjg45T3U6FN7yxw4SpQg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 283ms + status: + code: 200 + message: OK - request: body: '{"priority": "Normal", "content": "hello world", "senderDisplayName": "sender name"}' @@ -165,9 +319,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -176,15 +330,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:17:23 GMT + - Mon, 25 Jan 2021 18:47:07 GMT ms-cv: - - NmpU5sDtYkiuvJBVQohbxA.0 + - Zlr909DLs0m4XczUd4zTpw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1186ms + - 403ms status: code: 201 message: Created @@ -202,9 +356,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' @@ -214,16 +368,122 @@ interactions: content-length: - '0' date: - - Fri, 04 Dec 2020 19:17:24 GMT + - Mon, 25 Jan 2021 18:47:08 GMT + ms-cv: + - rd4UCH52yke6ef8kuyVSrQ.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 457ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:47:09 GMT ms-cv: - - teoJraafMUWmKOtE4O8BzA.0 + - n2oTYPeq8kS0bGVZI/yQbg.0 strict-transport-security: - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 627ms + status: + code: 200 + message: OK +- request: + body: '{"priority": "Normal", "content": "content", "senderDisplayName": "sender_display_name"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '88' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:47:08 GMT + ms-cv: + - GjfH+plNL0adiE91Kog0iQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked x-processing-time: - - 933ms + - 395ms status: code: 201 message: Created +- request: + body: '{"chatMessageId": "sanitized"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '34' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-length: + - '0' + date: + - Mon, 25 Jan 2021 18:47:09 GMT + ms-cv: + - G9IEzgiEMUC1OPvOnbJB9w.0 + strict-transport-security: + - max-age=2592000 + x-processing-time: + - 464ms + status: + code: 200 + message: OK - request: body: null headers: @@ -234,9 +494,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: @@ -245,15 +505,48 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:17:27 GMT + - Mon, 25 Jan 2021 18:47:10 GMT ms-cv: - - oeBb+22AP0W0FCJ1quRigw.0 + - qAI8O1oZPkaFrXwZVb7LKA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 270ms + - 259ms + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2020-11-01-preview3 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 25 Jan 2021 18:47:10 GMT + ms-cv: + - 2lCXU/5yNkKfAs/2NJJB5A.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 285ms status: code: 200 message: OK @@ -269,25 +562,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:17:27 GMT + - Mon, 25 Jan 2021 18:47:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:17:43 GMT + - Mon, 25 Jan 2021 18:47:27 GMT ms-cv: - - ki7CEeQ/mU2VOiFnC67i+Q.0 + - d5pEL95LqEyR71OXWI337Q.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16397ms + - 16456ms status: code: 204 message: No Content @@ -303,25 +598,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:17:43 GMT + - Mon, 25 Jan 2021 18:47:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:17:59 GMT + - Mon, 25 Jan 2021 18:47:43 GMT ms-cv: - - mQUUZH1EGU29zkFvzoG/SQ.0 + - PJQsOqBJK0GFzRA9795CQw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16120ms + - 16382ms status: code: 204 message: No Content @@ -337,9 +634,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -347,13 +644,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:17:59 GMT + - Mon, 25 Jan 2021 18:47:43 GMT ms-cv: - - 5NZgTuAEOUWUgjq9q+aXEA.0 + - nRKtD26MrkOm57r8GFmoGg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 358ms + - 335ms 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 de911e80a176..160928e2a56c 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:00 GMT + - Mon, 25 Jan 2021 18:47:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:00 GMT + - Mon, 25 Jan 2021 18:47:44 GMT ms-cv: - - 3NJR2sd9aUmJvkZybvSGxg.0 + - hAFX3HtLFk2WrpJilExuqQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 165ms + - 26ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:18:00 GMT + - Mon, 25 Jan 2021 18:47:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:18:00.1956214+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:47:44.1891435+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:01 GMT + - Mon, 25 Jan 2021 18:47:44 GMT ms-cv: - - fD8vRzaJhE6fwnXRvZHHdA.0 + - r1ZraHVUc0Kk+R7srEeZ4w.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 314ms + - 100ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:01 GMT + - Mon, 25 Jan 2021 18:47:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:01 GMT + - Mon, 25 Jan 2021 18:47:44 GMT ms-cv: - - JhA44KN83UuoS7EraJw/ng.0 + - dWXqia6WT0CREMlt9Oi2mQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 163ms + - 59ms + 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: + - Mon, 25 Jan 2021 18:47: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: + - '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-26T18:47:44.4376621+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 + ms-cv: + - mp99H3mJ7Uutem2HkGa79A.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 108ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:456de853bd9846abbda594b6ec8bf5bb@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:18:01Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf12-3568-8a72-5a3a0d000350"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:01 GMT + - Mon, 25 Jan 2021 18:47:46 GMT ms-cv: - - WG90OvISUEaDg4I4IYgwvA.0 + - n2JccLiM1U+bdABv199L+g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 918ms + - 909ms status: code: 201 message: Created @@ -164,9 +211,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: body: '{}' headers: @@ -175,15 +222,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:02 GMT + - Mon, 25 Jan 2021 18:47:46 GMT ms-cv: - - Qg983hI0SEGykqR8zvMGpw.0 + - efjYFuOHQUOmsO3MXjJfKA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 606ms + - 915ms status: code: 201 message: Created @@ -199,9 +246,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8%3Aacs%3A9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf12-37d1-8a72-5a3a0d000351?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-dac1-3181-dbb7-3a3a0d0029f7?api-version=2020-11-01-preview3 response: body: string: '' @@ -209,13 +256,13 @@ interactions: api-supported-versions: - 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:18:03 GMT + - Mon, 25 Jan 2021 18:47:48 GMT ms-cv: - - 4QRltxC+2EKp4tnv6nMXHw.0 + - eW8hJl5XoE2dYlA2YzZ4/w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 620ms + - 492ms status: code: 204 message: No Content @@ -231,25 +278,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:04 GMT + - Mon, 25 Jan 2021 18:48:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:18:21 GMT + - Mon, 25 Jan 2021 18:48:04 GMT ms-cv: - - YTL+kNrhNECQZWAVnUbSvg.0 + - MzFRvSwdxkmOlpNRiuCGiw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 17669ms + - 16344ms status: code: 204 message: No Content @@ -265,25 +314,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:22 GMT + - Mon, 25 Jan 2021 18:48:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:18:37 GMT + - Mon, 25 Jan 2021 18:48:20 GMT ms-cv: - - 1E6UA74F/EGzteH/pg2pkA.0 + - 87XO2Wx1q0K8EtqGfZxdfA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15656ms + - 16831ms status: code: 204 message: No Content @@ -299,9 +350,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -309,13 +360,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:18:38 GMT + - Mon, 25 Jan 2021 18:48:21 GMT ms-cv: - - mVyjUksZckqEk4AHu/DAyA.0 + - YjDxumxdJ0qX354pHiqEzw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 341ms + - 340ms 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 345d5f8af275..d82848b3f9df 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:38 GMT + - Mon, 25 Jan 2021 18:48:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:37 GMT + - Mon, 25 Jan 2021 18:48:21 GMT ms-cv: - - jymPZjk2R0yoSKr6pph0Jw.0 + - 0buIK9u2NUqTbFGXXTpOIA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 171ms + - 34ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:18:38 GMT + - Mon, 25 Jan 2021 18:48:36 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:18:37.6471134+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:48:21.5117801+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:38 GMT + - Mon, 25 Jan 2021 18:48:21 GMT ms-cv: - - DouD4iKmpEekqG5PXmercQ.0 + - TgBPHnIBdUyro+jBhGWe9Q.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 829ms + - 91ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:39 GMT + - Mon, 25 Jan 2021 18:48:36 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:38 GMT + - Mon, 25 Jan 2021 18:48:21 GMT ms-cv: - - OtZ2Wovbd06XnG5lOy5oWw.0 + - 3ek5D1jHy06GmrsihIP9Bw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 148ms + - 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: + - Mon, 25 Jan 2021 18:48: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: + - '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-26T18:48:21.8301583+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 + ms-cv: + - WvDb/QJhGUadJsBcmo6i3Q.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 186ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:bc468cd1db24417292bacc90ef943098@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:18:40Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf12-c997-557d-5a3a0d000465"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:40 GMT + - Mon, 25 Jan 2021 18:48:24 GMT ms-cv: - - DbdRGxIK9kCWiI+sFgI3zg.0 + - Osv9RxGhDU2PccuTgZW+3g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 907ms + - 1363ms status: code: 201 message: Created @@ -165,9 +212,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -176,15 +223,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:18:41 GMT + - Mon, 25 Jan 2021 18:48:24 GMT ms-cv: - - Aj/RzW1RQEC+CqJOqtWPNA.0 + - NtYIc4WqmU2JPtTI+YeSwQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 965ms + - 839ms status: code: 201 message: Created @@ -200,25 +247,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:42 GMT + - Mon, 25 Jan 2021 18:48:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:18:59 GMT + - Mon, 25 Jan 2021 18:48:41 GMT ms-cv: - - IG02kA6SKkCwvYUHDvR3WA.0 + - Lsiaa67PjU+nVOrT8m9P9Q.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16938ms + - 16239ms status: code: 204 message: No Content @@ -234,25 +283,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:18:59 GMT + - Mon, 25 Jan 2021 18:48:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:19:14 GMT + - Mon, 25 Jan 2021 18:48:58 GMT ms-cv: - - Rate8STPsk+PIG99Q1RfYw.0 + - MbkBhrsinE+QD84NbZCrQg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15845ms + - 16919ms status: code: 204 message: No Content @@ -268,9 +319,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -278,13 +329,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:19:15 GMT + - Mon, 25 Jan 2021 18:48:59 GMT ms-cv: - - p11exrl62EqCRIxg31Wd3w.0 + - BVi6oPe+5UG6e6S9QNnTSQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 334ms + - 827ms 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 909d2d62a2ed..6ab5bd36e1dc 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:19:15 GMT + - Mon, 25 Jan 2021 18:49:13 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:15 GMT + - Mon, 25 Jan 2021 18:48:59 GMT ms-cv: - - 9B13Qh1lnEqkB65BipStJg.0 + - XZkHwo6/W0+Bzq6dyeeCCg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 151ms + - 18ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:19:15 GMT + - Mon, 25 Jan 2021 18:49:13 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:19:15.2380845+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:48:59.0835653+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:16 GMT + - Mon, 25 Jan 2021 18:48:59 GMT ms-cv: - - TPu/2q0sMEaO07zgZ6O8rg.0 + - JdJTa+oRTkSSakDBz9pZsQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 314ms + - 85ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:19:16 GMT + - Mon, 25 Jan 2021 18:49:13 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:16 GMT + - Mon, 25 Jan 2021 18:48:59 GMT ms-cv: - - +Edu0TFU+Ual3sffZzplJA.0 + - QpGJuM3UvU+se/Wlcb1lDw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 156ms + - 17ms + 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: + - Mon, 25 Jan 2021 18:49: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: + - '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-26T18:48:59.2906129+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 + ms-cv: + - F/hqdesaVkCg4fHMmnczCg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 87ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:5056a79325b042a89696c0b982630460@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:19:16Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf13-5a8f-557d-5a3a0d000467"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:17 GMT + - Mon, 25 Jan 2021 18:49:01 GMT ms-cv: - - vebmpTDNkkeTVU1+sAH6Dw.0 + - 1Xt0uc4zJUy1xojMrIWMpQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 902ms + - 951ms status: code: 201 message: Created @@ -165,9 +212,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -176,15 +223,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:18 GMT + - Mon, 25 Jan 2021 18:49:01 GMT ms-cv: - - cJX+3btc/kKrmHAibbdfVA.0 + - VKdathFUekG+gUTSDk70GA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1097ms + - 400ms status: code: 201 message: Created @@ -202,9 +249,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' @@ -214,16 +261,16 @@ interactions: content-length: - '0' date: - - Fri, 04 Dec 2020 19:19:19 GMT + - Mon, 25 Jan 2021 18:49:02 GMT ms-cv: - - Rkg9AqRNkkiH+Nyfes5bRw.0 + - 3Zd6k86hREOyYHcowhlpKQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 927ms + - 467ms status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -236,25 +283,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:19:20 GMT + - Mon, 25 Jan 2021 18:49:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:19:35 GMT + - Mon, 25 Jan 2021 18:49:18 GMT ms-cv: - - 7k0PBGQzeEu/gkxKkHijcA.0 + - Ld9pEcW3SEawJ1z7NQN6bQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15787ms + - 16189ms status: code: 204 message: No Content @@ -270,25 +319,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:19:35 GMT + - Mon, 25 Jan 2021 18:49:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:19:51 GMT + - Mon, 25 Jan 2021 18:49:33 GMT ms-cv: - - wQukQED0R0SMWiOLR/Ie1Q.0 + - Ukahzq6KT0OEQNQ0jZ5tnA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16167ms + - 15882ms status: code: 204 message: No Content @@ -304,9 +355,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -314,13 +365,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:19:52 GMT + - Mon, 25 Jan 2021 18:49:34 GMT ms-cv: - - 9gB5foCYLE+jgzmvodL4EQ.0 + - TfGXCeZ4kEmWlC+gh2QlVA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 331ms + - 351ms 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 8da013878468..d3c23240f3f9 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:19:52 GMT + - Mon, 25 Jan 2021 18:49:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:52 GMT + - Mon, 25 Jan 2021 18:49:34 GMT ms-cv: - - Ixvn7DAg0ki714t/bxmmIw.0 + - u5Dn9rZgQESUT6j2WwioAQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 148ms + - 60ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:19:52 GMT + - Mon, 25 Jan 2021 18:49:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:19:52.3144675+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:49:34.5573468+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:52 GMT + - Mon, 25 Jan 2021 18:49:34 GMT ms-cv: - - ETytSSl0XUWX3kC5aBl/Kg.0 + - BnOwBi5KOUmxVJ059Kk6QQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 303ms + - 92ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:19:53 GMT + - Mon, 25 Jan 2021 18:49:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:53 GMT + - Mon, 25 Jan 2021 18:49:34 GMT ms-cv: - - D00mowhZ6Uu8m9iiUoU7Ig.0 + - p87XfAaEGkaV5KsADgDrDw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 147ms + - 56ms + 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: + - Mon, 25 Jan 2021 18:49: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: + - '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-26T18:49:34.8839082+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 + ms-cv: + - 8PhH5px9UEeVJehOZaki4Q.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 164ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:ca80a79c25404732b3ca2a073c7087ac@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:19:53Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf13-eb6c-ea7c-5a3a0d0003c8"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:19:53 GMT + - Mon, 25 Jan 2021 18:49:36 GMT ms-cv: - - u7z0tSrr7kutmQSCvLlpeg.0 + - Ru4iLb6HF0KNJccrScRUzA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 891ms + - 925ms status: code: 201 message: Created @@ -162,9 +209,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 response: body: string: '' @@ -174,13 +221,13 @@ interactions: content-length: - '0' date: - - Fri, 04 Dec 2020 19:19:54 GMT + - Mon, 25 Jan 2021 18:49:37 GMT ms-cv: - - CRrCY2CJ9UC3esFTkJe7XA.0 + - ahnrKHShU0GYrYdsT/63yw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 368ms + - 366ms status: code: 200 message: OK @@ -196,25 +243,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:19:55 GMT + - Mon, 25 Jan 2021 18:49:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:20:11 GMT + - Mon, 25 Jan 2021 18:49:53 GMT ms-cv: - - ylscA12t7E2HXBY9KbHEuw.0 + - dA1Pe/Mc8UyoGzSBJdW2QA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16848ms + - 16107ms status: code: 204 message: No Content @@ -230,25 +279,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:20:12 GMT + - Mon, 25 Jan 2021 18:50:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:20:27 GMT + - Mon, 25 Jan 2021 18:50:09 GMT ms-cv: - - eB23wF+kVkiscyLYF2YQLg.0 + - Ccwx02p830y2G5dwqBDFxw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16005ms + - 16324ms status: code: 204 message: No Content @@ -264,9 +315,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -274,13 +325,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:20:28 GMT + - Mon, 25 Jan 2021 18:50:10 GMT ms-cv: - - qfc70u4p3ECVjw+iGml7LA.0 + - eEeTfvC/80qvd3dZd5FXpA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 325ms + - 340ms 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 76a2a229fc73..66298f31d28e 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:20:28 GMT + - Mon, 25 Jan 2021 18:50:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:20:28 GMT + - Mon, 25 Jan 2021 18:50:10 GMT ms-cv: - - St3ER/ccE0GYZWciUEPdEg.0 + - ER6ZwojbRU25lC/jQBHJHQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 145ms + - 155ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:20:29 GMT + - Mon, 25 Jan 2021 18:50:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:20:28.3872364+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:50:10.1475336+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:20:29 GMT + - Mon, 25 Jan 2021 18:50:10 GMT ms-cv: - - NbyFufDzz0SxWrHiAOLGFQ.0 + - VrXqjRTrX0O68qRzVeyMVA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 301ms + - 204ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:20:29 GMT + - Mon, 25 Jan 2021 18:50:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:20:29 GMT + - Mon, 25 Jan 2021 18:50:10 GMT ms-cv: - - 2Mw1g8HA2UKAtGCcJNi24g.0 + - Qu4QHRGJZ0+hIC/xGj7pMw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 149ms + - 70ms + 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: + - Mon, 25 Jan 2021 18:50: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: + - '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-26T18:50:10.4345651+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 + ms-cv: + - T5zZPCnrlEOUmF7oaRRo/A.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 96ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:463e8703c52f4c039b7148b0bde0fb30@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:20:29Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf14-785a-ea7c-5a3a0d0003ca"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:20:29 GMT + - Mon, 25 Jan 2021 18:50:12 GMT ms-cv: - - IWSivLR7gUGGdyWnJaYR6w.0 + - nOzVAvnhe0S4zsvCVQrTaQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 909ms + - 898ms status: code: 201 message: Created @@ -165,9 +212,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: @@ -176,15 +223,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:20:32 GMT + - Mon, 25 Jan 2021 18:50:12 GMT ms-cv: - - bREu3gFgE0eSSBdgIyQUjA.0 + - 15OjgifpRUCAdnLl9Bikkw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1116ms + - 375ms status: code: 201 message: Created @@ -202,9 +249,9 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -212,13 +259,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:20:32 GMT + - Mon, 25 Jan 2021 18:50:13 GMT ms-cv: - - Fn/to4n7ZEenSrRp+koBGA.0 + - 3jh3XvNRC02YgZwuzxizmA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 706ms + - 663ms status: code: 204 message: No Content @@ -234,25 +281,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:20:32 GMT + - Mon, 25 Jan 2021 18:50:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:20:48 GMT + - Mon, 25 Jan 2021 18:50:30 GMT ms-cv: - - cVa9baZuVUm0hSDQMjvxJQ.0 + - cvGjpS5GREmlk3rW36pinQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16375ms + - 16604ms status: code: 204 message: No Content @@ -268,25 +317,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:20:49 GMT + - Mon, 25 Jan 2021 18:50:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:21:04 GMT + - Mon, 25 Jan 2021 18:50:47 GMT ms-cv: - - EB2WsHfqIkGAnIR8iZALkA.0 + - D9w5mNqoU0KT6e/jxpK2EQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15844ms + - 17032ms status: code: 204 message: No Content @@ -302,9 +353,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -312,13 +363,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:21:05 GMT + - Mon, 25 Jan 2021 18:50:47 GMT ms-cv: - - JcCxOBzqvk+l4soVKD+SSQ.0 + - RFAWXEc+5ky4lOHY03f5Fg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 325ms + - 297ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml index 27a15ce95f2d..25f25e5740f6 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:21:05 GMT + - Mon, 25 Jan 2021 18:51:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:21:05 GMT + - Mon, 25 Jan 2021 18:50:48 GMT ms-cv: - - QuQ1x/oiR0mJtbiEdtIoVA.0 + - lazOoGt+00eZICg9LY242Q.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 153ms + - 24ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:21:06 GMT + - Mon, 25 Jan 2021 18:51:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:21:05.4107581+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:50:47.4757428+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:21:05 GMT + - Mon, 25 Jan 2021 18:50:48 GMT ms-cv: - - v6Zui51lh0CfBx2/w8enZQ.0 + - Eoy8SCZD7k2c9yeOi36ymw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 302ms + - 90ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:21:06 GMT + - Mon, 25 Jan 2021 18:51:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:21:05 GMT + - Mon, 25 Jan 2021 18:50:48 GMT ms-cv: - - ZP2h/eMfrU6mmgBIefnkcA.0 + - WDCShi1UKkeQ6MdSRdSX2g.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 155ms + - 18ms + 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: + - Mon, 25 Jan 2021 18:51: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: + - '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-26T18:50:47.7167105+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 + ms-cv: + - DYZzpFoh2k+Hxnq+eEm83Q.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 121ms status: code: 200 message: OK @@ -126,27 +173,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:f18ea01c15a140e2bdcb907dd02d17bc@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:21:07Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf15-08ee-d67a-5a3a0d00030d"}}' + 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"}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:21:07 GMT + - Mon, 25 Jan 2021 18:50:49 GMT ms-cv: - - P+cuV0L6AU6zXEB22eej+w.0 + - VenWef+PtUu1tAPQoFRHqQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1196ms + - 858ms status: code: 201 message: Created @@ -164,9 +211,9 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -174,13 +221,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:21:07 GMT + - Mon, 25 Jan 2021 18:50:49 GMT ms-cv: - - pkZAPfwy+ESXElSzF+7nMA.0 + - /3EVg5YMgE6cJJdl/Jh5sg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 435ms + - 442ms status: code: 204 message: No Content @@ -196,25 +243,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:21:08 GMT + - Mon, 25 Jan 2021 18:51:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:21:24 GMT + - Mon, 25 Jan 2021 18:51:06 GMT ms-cv: - - Ca7rxXzdCUGI73zXqpTAsQ.0 + - lZtD/xEgfEuzY7JM3QeAKw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16034ms + - 16153ms status: code: 204 message: No Content @@ -230,25 +279,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:21:24 GMT + - Mon, 25 Jan 2021 18:51:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:21:40 GMT + - Mon, 25 Jan 2021 18:51:22 GMT ms-cv: - - X+RRVeJ1SEO5d05a96JhZA.0 + - m6sFATiAeki2ocseITIcKw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15949ms + - 16511ms status: code: 204 message: No Content @@ -264,9 +315,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: body: string: '' @@ -274,13 +325,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3 date: - - Fri, 04 Dec 2020 19:21:40 GMT + - Mon, 25 Jan 2021 18:51:23 GMT ms-cv: - - 9gvg5Bb6KEaPFOoT2w8FxA.0 + - qnaIze33CkuhOBH//Puv9w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 549ms + - 518ms 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 81fac87bb393..22fe09caa173 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:21:41 GMT + - Mon, 25 Jan 2021 17:58:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:21:41 GMT + - Mon, 25 Jan 2021 17:58:18 GMT ms-cv: - - 2LorrreVVE2CPWLquj9yQA.0 + - rHgeoGFlLku33mpgfw5gMw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 227ms + - 68ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:21:42 GMT + - Mon, 25 Jan 2021 17:58:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:21:41.755253+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:58:17.9433567+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:21:42 GMT + - Mon, 25 Jan 2021 17:58:18 GMT ms-cv: - - CCBXNXMRF0KzkrCmTk/k0g.0 + - o9fwip3y9UqdkzbZvw9CRg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 610ms + - 316ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:21:42 GMT + - Mon, 25 Jan 2021 17:58:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:21:42 GMT + - Mon, 25 Jan 2021 17:58:19 GMT ms-cv: - - lw9pC3bmQEm6MxFLL1nw1Q.0 + - wVPrEUfCqk2+JjM1+ZSxeQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 146ms + - 27ms + 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: + - Mon, 25 Jan 2021 17:58: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: + - '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-26T17:58:18.1641302+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 + ms-cv: + - bXzSDngez0OHHmrQMYRMeQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 88ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:f58d0ab0c88941a092c22271aad09852@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:21:43Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf15-958c-b274-5a3a0d00030a"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:21:43 GMT - ms-cv: izfainGH9UultFKJlJtcKQ.0 + date: Mon, 25 Jan 2021 17:58:19 GMT + ms-cv: 0wBX30Zdyk+xA/ypWZQhBw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 881ms + x-processing-time: 947ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"participants": "sanitized"}' headers: @@ -150,45 +197,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:21:44 GMT - ms-cv: c7AfQKgibUSTJwojfLjZNg.0 + date: Mon, 25 Jan 2021 17:58:20 GMT + ms-cv: qTX9ZATdVUyAR56i2zfGkQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 422ms + x-processing-time: 921ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:21:45 GMT - ms-cv: /hoy1W/onUiMQgMnhUYA6A.0 + date: Mon, 25 Jan 2021 17:58:21 GMT + ms-cv: 8tvnVNJDmUClr6pfmuSljw.0 strict-transport-security: max-age=2592000 - x-processing-time: 846ms + x-processing-time: 364ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -201,25 +248,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:21:45 GMT + - Mon, 25 Jan 2021 17:58:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:22:02 GMT + - Mon, 25 Jan 2021 17:58:38 GMT ms-cv: - - VI1U3CC7bkqInLyODx/afQ.0 + - MGUP/uCoj0eIUpLHi/fFWw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 17077ms + - 16730ms status: code: 204 message: No Content @@ -235,25 +284,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:22:03 GMT + - Mon, 25 Jan 2021 17:58:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:22:18 GMT + - Mon, 25 Jan 2021 17:58:55 GMT ms-cv: - - x7BQE3LbpkiYqQWc5q1dMA.0 + - IgKTJsIZeEmCNftLo2QP/w.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15836ms + - 16961ms 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 0f90a14f4057..8fc5e138ec43 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:22:18 GMT + - Mon, 25 Jan 2021 17:59:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:22:18 GMT + - Mon, 25 Jan 2021 17:58:56 GMT ms-cv: - - i3AuTmSmn0q9WnGX9fA1QQ.0 + - RtwVoY1XgUGqclR603WFkA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 199ms + - 56ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:22:19 GMT + - Mon, 25 Jan 2021 17:59:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:22:18.1425741+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:58:55.2938238+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:22:19 GMT + - Mon, 25 Jan 2021 17:58:56 GMT ms-cv: - - 9wdv++LAH0mgaXrr/tDozg.0 + - iPvMUhYgcU+Uf3cVoJ+gnA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 613ms + - 107ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:22:20 GMT + - Mon, 25 Jan 2021 17:59:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:22:19 GMT + - Mon, 25 Jan 2021 17:58:56 GMT ms-cv: - - kTMO2CNqkUiKg9bc1qz4jQ.0 + - 5HI9z2QMfk6yX6bQHtEgUw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 157ms + - 24ms + 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: + - Mon, 25 Jan 2021 17:59: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: + - '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-26T17:58:55.5097637+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 + ms-cv: + - HHzuI4NqrUKuPKPdw2D/3w.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 95ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:45d4d6be07cc439fb70bdaf9b905e520@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:22:20Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf16-27c8-557d-5a3a0d000469"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:22:21 GMT - ms-cv: dQx9iniFREG9KCyLYteV9Q.0 + date: Mon, 25 Jan 2021 17:58:56 GMT + ms-cv: MR7T714tNkOnLK8gHMmW5Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 886ms + x-processing-time: 948ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"participants": "sanitized"}' headers: @@ -150,45 +197,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:22:21 GMT - ms-cv: NeVYJ4578E6+7UVCqHdtSg.0 + date: Mon, 25 Jan 2021 17:58:57 GMT + ms-cv: Ej8jZYw0M0+p2Kvv9ku6uw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 473ms + x-processing-time: 412ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:22:22 GMT - ms-cv: SHC7D0cDJk6ib6AndpvSEA.0 + date: Mon, 25 Jan 2021 17:58:57 GMT + ms-cv: X0Jpzfy7Q0O4hSdT6xAh5g.0 strict-transport-security: max-age=2592000 - x-processing-time: 339ms + x-processing-time: 317ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -201,25 +248,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:22:22 GMT + - Mon, 25 Jan 2021 17:59:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:22:38 GMT + - Mon, 25 Jan 2021 17:59:14 GMT ms-cv: - - yvUsum1HDUu5YOBMVanEIw.0 + - zEGbG+bbyUuDYhPtU5WYAg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16329ms + - 16262ms status: code: 204 message: No Content @@ -235,25 +284,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:22:39 GMT + - Mon, 25 Jan 2021 17:59:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:22:54 GMT + - Mon, 25 Jan 2021 17:59:31 GMT ms-cv: - - HOhu3r71oEKl3jGZ8i9xTw.0 + - nUoB65v6Y0SnIhabxkhsAQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16424ms + - 17012ms 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 474328f1a21e..d9efe800f3ab 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:22:55 GMT + - Mon, 25 Jan 2021 17:59:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:22:55 GMT + - Mon, 25 Jan 2021 17:59:31 GMT ms-cv: - - OjbRiE/LhEODqGDqFA+rCw.0 + - SUCjwSCRF0+F71LFULiu4g.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 147ms + - 91ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:22:56 GMT + - Mon, 25 Jan 2021 17:59:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:22:55.4453735+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T17:59:31.4792589+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:22:55 GMT + - Mon, 25 Jan 2021 17:59:32 GMT ms-cv: - - Op65QnqN4USY/umg4JWxJw.0 + - NkVybVFFxkyK01zh+y4bCw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 307ms + - 93ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:22:56 GMT + - Mon, 25 Jan 2021 17:59:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:22:56 GMT + - Mon, 25 Jan 2021 17:59:32 GMT ms-cv: - - 4DVqr9m4OUmb2cyfXNmQkw.0 + - Sbtv2HhWbUC6Mxlj2Qnvxg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 157ms + - 33ms + 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: + - Mon, 25 Jan 2021 17:59: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: + - '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-26T17:59:31.7005393+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 + ms-cv: + - L8BSYWijCkW8H3TaaQhmjw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 95ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:75d97b8804224f23b1c22ad659ebb7ed@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:22:57Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf16-b6c2-8a72-5a3a0d000353"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:22:56 GMT - ms-cv: 2BCjv5Bkek6RycAYy1oApw.0 + date: Mon, 25 Jan 2021 17:59:33 GMT + ms-cv: lPEPcWmUCUuAUi9PXtupFQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 894ms + x-processing-time: 928ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + 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"}' @@ -151,67 +198,67 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:22:58 GMT - ms-cv: G3kCbuUfc0GHAeHbro/GTA.0 + date: Mon, 25 Jan 2021 17:59:34 GMT + ms-cv: C4K03M212USOp79bN00yXg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1154ms + x-processing-time: 407ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:22:59 GMT - ms-cv: PYDanOAcJki/iH1OU/BNTQ.0 + date: Mon, 25 Jan 2021 17:59:34 GMT + ms-cv: g6s2vHkpukm89xleWxrHjQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 433ms + x-processing-time: 456ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:22:59 GMT - ms-cv: r5AjMI0V10eTwkmPL5RVRQ.0 + date: Mon, 25 Jan 2021 17:59:34 GMT + ms-cv: kL02ZjFZ5UiF2ztCmIT1Ow.0 strict-transport-security: max-age=2592000 - x-processing-time: 341ms + x-processing-time: 340ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -224,25 +271,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:23:00 GMT + - Mon, 25 Jan 2021 17:59:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:23:16 GMT + - Mon, 25 Jan 2021 17:59:51 GMT ms-cv: - - 47M/SEVXPEaTGr2NQ5sLxg.0 + - xCHUmXbCDEeb/siTdlkcsw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16177ms + - 16524ms status: code: 204 message: No Content @@ -258,25 +307,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:23:16 GMT + - Mon, 25 Jan 2021 18:00:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:23:31 GMT + - Mon, 25 Jan 2021 18:00:07 GMT ms-cv: - - jzTTrYkt1UOaLYVR+RNW8A.0 + - flWCwVje/0C+fRQqo8x/DA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15941ms + - 16874ms 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 4040ae078763..34b2e7274af9 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:23:32 GMT + - Mon, 25 Jan 2021 18:00:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:23:32 GMT + - Mon, 25 Jan 2021 18:00:08 GMT ms-cv: - - StJ2O77s9ECuQCOCCIeYQw.0 + - tQxleHmHkEuyxpWel1ulQA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 204ms + - 23ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:23:32 GMT + - Mon, 25 Jan 2021 18:00:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:23:32.2067497+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:00:08.2281789+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:23:33 GMT + - Mon, 25 Jan 2021 18:00:08 GMT ms-cv: - - w6RWnFRD6Emlw0rCwVCsLA.0 + - YEPqapzrWUWEe9vSfNvgAw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 312ms + - 91ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:23:33 GMT + - Mon, 25 Jan 2021 18:00:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:23:33 GMT + - Mon, 25 Jan 2021 18:00:08 GMT ms-cv: - - b9EAP1/PmUSnx4z+JfKJWg.0 + - eMgvY98I4kSo81U4pS1uOw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 152ms + - 21ms + 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: + - Mon, 25 Jan 2021 18:00:22 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-26T18:00:08.437144+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 + ms-cv: + - +Ho0NAb/gEy0yRrD2MLnww.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 101ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:ba21b6b0572c4ac3a929a2cc9f859eae@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:23:33Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf17-464f-8a72-5a3a0d000355"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:23:33 GMT - ms-cv: sHAWzqSkIUCB7X46in4thA.0 + date: Mon, 25 Jan 2021 18:00:09 GMT + ms-cv: zgnxALMi9EemXZ7FnakVnA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 891ms + x-processing-time: 943ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + 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"}' @@ -151,70 +198,70 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:23:35 GMT - ms-cv: 4DHRla+JP063fmFfGhKzuQ.0 + date: Mon, 25 Jan 2021 18:00:11 GMT + ms-cv: APHJNLJyp0GBk9cfVQT1IQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 691ms + x-processing-time: 409ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: - body: '{"id": "sanitized", "type": "Text", "priority": "Normal", "version": "1607109814877", - "content": "hello world", "senderDisplayName": "sender name", "createdOn": "2020-12-04T19:23:34Z", - "senderId": "sanitized"}' + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1611597610872", + "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": + "2021-01-25T18:00:10Z", "senderId": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:23:35 GMT - ms-cv: 9FCYEV6oUkOqUA8jWrbz6g.0 + date: Mon, 25 Jan 2021 18:00:11 GMT + ms-cv: luXG3Onm+0GC6t6US/hudQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 264ms + x-processing-time: 281ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:23:35 GMT - ms-cv: AI3FuuNdjkiZziCVbffCmg.0 + date: Mon, 25 Jan 2021 18:00:11 GMT + ms-cv: u5PZNfUjj0WoCI+EsVOBRw.0 strict-transport-security: max-age=2592000 - x-processing-time: 328ms + x-processing-time: 349ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -227,25 +274,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:23:36 GMT + - Mon, 25 Jan 2021 18:00:25 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:23:52 GMT + - Mon, 25 Jan 2021 18:00:28 GMT ms-cv: - - 3MqGz2FCMUafp1C5q4NhOg.0 + - CmZ70QbByk6NKkeYA5Rh+A.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16347ms + - 16459ms status: code: 204 message: No Content @@ -261,25 +310,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:23:52 GMT + - Mon, 25 Jan 2021 18:00:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:24:08 GMT + - Mon, 25 Jan 2021 18:00:44 GMT ms-cv: - - MPRsw0n63UCNlGY5+fhrMw.0 + - 7MnyqCHDvUao3ymZLPEwrA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16432ms + - 16470ms 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 08b15623a406..d1805dca089e 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:24:09 GMT + - Mon, 25 Jan 2021 18:00:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:24:08 GMT + - Mon, 25 Jan 2021 18:00:44 GMT ms-cv: - - aHfL2y5OmUS88T26MLAWfw.0 + - UEO7SMADk0KqCC+9T/uUcw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 150ms + - 19ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:24:09 GMT + - Mon, 25 Jan 2021 18:00:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:24:08.949685+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:00:44.2533376+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:24:09 GMT + - Mon, 25 Jan 2021 18:00:44 GMT ms-cv: - - TmlRwrN9Y0mT6dfZflon+g.0 + - fO/WRqpJYk+ciOfEraP+Jw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 303ms + - 85ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:24:09 GMT + - Mon, 25 Jan 2021 18:00:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:24:09 GMT + - Mon, 25 Jan 2021 18:00:44 GMT ms-cv: - - obi74jvLPkisWVivhsFl4g.0 + - mGimoljORkW6dznXMEwU2Q.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 152ms + - 18ms + 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: + - Mon, 25 Jan 2021 18:00: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-26T18:00:44.4433786+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 + ms-cv: + - qk9uCpd6TUaxb2kwtvmQBA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 82ms status: code: 200 message: OK @@ -118,28 +165,28 @@ interactions: Accept: - application/json Content-Length: - - '205' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:9af3d307649347cd98b07121b2cc78a3@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:24:10Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf17-d5f0-ea7c-5a3a0d0003cc"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:10 GMT - ms-cv: xctmjTmTnUmhw/zAM0tUlw.0 + date: Mon, 25 Jan 2021 18:00:46 GMT + ms-cv: JZebIe/QkUazBWfMUroVQw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 887ms + x-processing-time: 934ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + 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"}' @@ -151,137 +198,137 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:11 GMT - ms-cv: +yxteLB7b0yLRxfyEd3yRQ.0 + date: Mon, 25 Jan 2021 18:00:46 GMT + ms-cv: TVZubOyzzEy9NtjdopUhtw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 666ms + x-processing-time: 409ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:13 GMT - ms-cv: 2J8kUBHwXkeZPTCF2CfXeQ.0 + date: Mon, 25 Jan 2021 18:00:46 GMT + ms-cv: MVdaFk4blUalSaatLroUhQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 262ms + x-processing-time: 349ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?$maxpagesize=1&api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:13 GMT - ms-cv: MnpbfSaSVkSW9batJVDbGg.0 + date: Mon, 25 Jan 2021 18:00:47 GMT + ms-cv: jFswW48X8kSrmXbyg+HG0g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 364ms + x-processing-time: 380ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:14 GMT - ms-cv: gKTRy9qJmkeSZ+7agERCvQ.0 + date: Mon, 25 Jan 2021 18:00:47 GMT + ms-cv: 6w+8RMJ1YUi+e2n2Oom64g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 358ms + x-processing-time: 385ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:14 GMT - ms-cv: HsoLTOjDTUmJW/OyccpTYA.0 + date: Mon, 25 Jan 2021 18:00:48 GMT + ms-cv: B14hjb0FYkuCV1ZqKkVfQw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 355ms + x-processing-time: 375ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&$maxpagesize=1&api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:24:15 GMT - ms-cv: 0ZJQy433EE64ze1d8X0Oow.0 + date: Mon, 25 Jan 2021 18:00:49 GMT + ms-cv: rlIJbOdjOUyw9UaUI5oBag.0 strict-transport-security: max-age=2592000 - x-processing-time: 325ms + x-processing-time: 347ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -294,25 +341,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:24:16 GMT + - Mon, 25 Jan 2021 18:01:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:24:31 GMT + - Mon, 25 Jan 2021 18:01:05 GMT ms-cv: - - 8AjS8w4q/0OQdRpYnRoceQ.0 + - v2mn2f57ekykqIesGZdDAA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16408ms + - 16720ms status: code: 204 message: No Content @@ -328,25 +377,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:24:32 GMT + - Mon, 25 Jan 2021 18:01:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:24:48 GMT + - Mon, 25 Jan 2021 18:01:21 GMT ms-cv: - - gX6lMPjOL0S+sZ+RnaJg8w.0 + - AQjLQbowsEuKIcXie91mDA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15845ms + - 15928ms 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 c769a6dc288e..145128171571 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:24:48 GMT + - Mon, 25 Jan 2021 18:01:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:24:48 GMT + - Mon, 25 Jan 2021 18:01:22 GMT ms-cv: - - PSId7cm0rE2ik6M198zOUQ.0 + - CykDabzLvkOf4uiRsuzorQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 144ms + - 21ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:24:48 GMT + - Mon, 25 Jan 2021 18:01:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:24:48.7841888+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:01:21.4022424+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:24:49 GMT + - Mon, 25 Jan 2021 18:01:22 GMT ms-cv: - - ljsg/8LD9E+O5nrcD/aguw.0 + - iepWFPJzu0GhRB/qhu9NeQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 798ms + - 112ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:24:49 GMT + - Mon, 25 Jan 2021 18:01:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:24:49 GMT + - Mon, 25 Jan 2021 18:01:22 GMT ms-cv: - - Kd7UYBRhK0aMj3+9elVOIg.0 + - BVJZE7g7EEeGwCz/vPG9jg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 145ms + - 46ms + 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: + - Mon, 25 Jan 2021 18:01: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: + - '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-26T18:01:21.652012+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 + ms-cv: + - y/YZ7+zwCk6ApNuVCVc7GA.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 102ms status: code: 200 message: OK @@ -122,69 +169,96 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:bcca59cb518a4a78a7d9b06bdb8c3d60@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:24:50Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf18-6f96-b274-5a3a0d00030f"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:50 GMT - ms-cv: sFAGJpIJOUqJx49W9KuLag.0 + date: Mon, 25 Jan 2021 18:01:23 GMT + ms-cv: wS+0GK3wfE2L2k7swucpyQ.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 929ms + status: + code: 201 + message: Created + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 +- request: + body: '{"participants": "sanitized"}' + headers: + Accept: + - application/json + Content-Length: + - '183' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 + response: + body: '{}' + headers: + api-supported-versions: 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Mon, 25 Jan 2021 18:01:23 GMT + ms-cv: UH0hNnjUskGTq+r7KYnZiw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 883ms + x-processing-time: 459ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:24:50 GMT - ms-cv: TU8IpbjMrUOfTH+7DQXSCg.0 + date: Mon, 25 Jan 2021 18:01:24 GMT + ms-cv: 4rX40Idn4kyRuEtbrRM4yA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 270ms + x-processing-time: 284ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:24:51 GMT - ms-cv: HGgkycA/q0exPtN7DLbpZw.0 + date: Mon, 25 Jan 2021 18:01:24 GMT + ms-cv: 6VtyQ3pZoEa6i+aEErS81Q.0 strict-transport-security: max-age=2592000 - x-processing-time: 321ms + x-processing-time: 348ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -197,25 +271,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:24:51 GMT + - Mon, 25 Jan 2021 18:01:38 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:25:07 GMT + - Mon, 25 Jan 2021 18:01:40 GMT ms-cv: - - 3+Q62LYrDEicM7fzscVa/w.0 + - F7/g+Cn1xkS2jETY78jcAw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16255ms + - 15576ms status: code: 204 message: No Content @@ -231,25 +307,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:25:08 GMT + - Mon, 25 Jan 2021 18:01:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:25:23 GMT + - Mon, 25 Jan 2021 18:01:56 GMT ms-cv: - - P+cmC1KbUUuWkV9pZU11mw.0 + - GcnGeSpChE6047B6l014Qg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15938ms + - 16623ms 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 05cf5793ba27..5f7f466ca4c3 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:25:24 GMT + - Mon, 25 Jan 2021 18:02:10 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:25:24 GMT + - Mon, 25 Jan 2021 18:01:57 GMT ms-cv: - - LlD8ja16g0KbfO8ukVHr4A.0 + - fL6esiSAH0a5J3Cb1E6DXg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 149ms + - 58ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:25:24 GMT + - Mon, 25 Jan 2021 18:02:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:25:24.2319596+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:01:56.9945897+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:25:24 GMT + - Mon, 25 Jan 2021 18:01:57 GMT ms-cv: - - UD93ffCE7UWOco7Ubk+Q+w.0 + - oUJI8XO/3UqzUw9mM6lK8g.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 311ms + - 151ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:25:25 GMT + - Mon, 25 Jan 2021 18:02:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:25:25 GMT + - Mon, 25 Jan 2021 18:01:57 GMT ms-cv: - - SzQ1yuUZsUangzl8LV3TDw.0 + - nQ0d9riVVEKst+BzNqb/jg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 154ms + - 63ms + 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: + - Mon, 25 Jan 2021 18:02: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: + - '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-26T18:01:57.3505167+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 + ms-cv: + - IyKRHK9XWkijgmt3ZL9mmw.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 178ms status: code: 200 message: OK @@ -118,28 +165,28 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '371' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:1cd4d2571f7e4a6c9ad4291334ed33e7@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:25:25Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf18-fbe9-ea7c-5a3a0d0003ce"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:25:26 GMT - ms-cv: wuDbu2YwRECy5MreIUO6pQ.0 + date: Mon, 25 Jan 2021 18:01:58 GMT + ms-cv: LQig+cWNPEGH2hWtoCWEiA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 894ms + x-processing-time: 922ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + 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"}' @@ -151,23 +198,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:25:26 GMT - ms-cv: jERglIIS20SILNh0hz0mxA.0 + date: Mon, 25 Jan 2021 18:01:59 GMT + ms-cv: jXDMU3jR6ky7PqKZB/MnXw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1056ms + x-processing-time: 400ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: '{"chatMessageId": "sanitized"}' headers: @@ -178,68 +225,246 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Fri, 04 Dec 2020 19:25:28 GMT - ms-cv: rrMpMrnkMkqWz0494etB/g.0 + date: Mon, 25 Jan 2021 18:02:00 GMT + ms-cv: 7wMRrOUw8U+vMwTkTI/T/w.0 strict-transport-security: max-age=2592000 - x-processing-time: 1064ms + x-processing-time: 944ms + status: + code: 200 + message: OK + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Mon, 25 Jan 2021 18:02:00 GMT + ms-cv: j9rGblAkfEKgGNIsBOyQlA.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 273ms + 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"}' + headers: + Accept: + - application/json + Content-Length: + - '84' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Mon, 25 Jan 2021 18:02:01 GMT + ms-cv: cxeaASaSDU+9k8DTdawJcQ.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 391ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 +- request: + body: '{"chatMessageId": "sanitized"}' + headers: + Accept: + - application/json + Content-Length: + - '34' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-length: '0' + date: Mon, 25 Jan 2021 18:02:01 GMT + ms-cv: PggznI5tEEuqjKqJUbosgA.0 + strict-transport-security: max-age=2592000 + x-processing-time: 493ms + status: + code: 200 + message: OK + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Mon, 25 Jan 2021 18:02:03 GMT + ms-cv: 40YaXKVrqUKfVuxuT4HkgA.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 729ms + 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"}' + headers: + Accept: + - application/json + Content-Length: + - '88' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + response: + body: '{"id": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Mon, 25 Jan 2021 18:02:03 GMT + ms-cv: s04zALJHnkis/YEC+dZwug.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 428ms + status: + code: 201 + message: Created + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 +- request: + body: '{"chatMessageId": "sanitized"}' + headers: + Accept: + - application/json + Content-Length: + - '34' + Content-Type: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: + string: '' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-length: '0' + date: Mon, 25 Jan 2021 18:02:03 GMT + ms-cv: Fkxs2E1tBE+5VtfibFJYuA.0 + strict-transport-security: max-age=2592000 + x-processing-time: 507ms + status: + code: 200 + message: OK + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 +- request: + body: null + headers: + Accept: + - application/json + User-Agent: + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 + content-type: application/json; charset=utf-8 + date: Mon, 25 Jan 2021 18:02:04 GMT + ms-cv: 81VagS++oEWZbk+rGwDScw.0 + strict-transport-security: max-age=2592000 + transfer-encoding: chunked + x-processing-time: 266ms + status: + code: 200 + message: OK + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2020-11-01-preview3 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:25:30 GMT - ms-cv: ZDbkB4nGlk2xb6aFCGdqaA.0 + date: Mon, 25 Jan 2021 18:02:04 GMT + ms-cv: OWtogL+hrE6Gnnz/mzcZwA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 259ms + x-processing-time: 257ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:25:31 GMT - ms-cv: bwau2l2CAkarkyGspUOgZQ.0 + date: Mon, 25 Jan 2021 18:02:05 GMT + ms-cv: +eBf5Peo3EanXUBF/6aVeg.0 strict-transport-security: max-age=2592000 - x-processing-time: 333ms + x-processing-time: 332ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -252,25 +477,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:25:31 GMT + - Mon, 25 Jan 2021 18:02:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:25:47 GMT + - Mon, 25 Jan 2021 18:02:21 GMT ms-cv: - - +BcctCYB/kak5Jvnu0b2Dw.0 + - HcbxYqas3kigx51Thg6/Tg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16517ms + - 16001ms status: code: 204 message: No Content @@ -286,25 +513,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:25:48 GMT + - Mon, 25 Jan 2021 18:02:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:26:04 GMT + - Mon, 25 Jan 2021 18:02:36 GMT ms-cv: - - a95dFsS+JUCzOS+LYdnFEw.0 + - 4epRjHkghkmQTeKqCjVlxA.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15983ms + - 15892ms 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 8cfa91362e0a..2b750c26d639 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:26:04 GMT + - Mon, 25 Jan 2021 18:02:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:26:04 GMT + - Mon, 25 Jan 2021 18:02:38 GMT ms-cv: - - fE/lvcKa8029Of1xN7re0Q.0 + - lhBlzrOs10mecPSBKAU/mg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 159ms + - 68ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:26:04 GMT + - Mon, 25 Jan 2021 18:02:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:26:04.2129269+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:02:37.450648+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:26:04 GMT + - Mon, 25 Jan 2021 18:02:38 GMT ms-cv: - - ZB6N27gWpE6HT9a80yJGZA.0 + - 7KlKaLkp0UWlSxo4s6uGmg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 307ms + - 91ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:26:05 GMT + - Mon, 25 Jan 2021 18:02:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:26:04 GMT + - Mon, 25 Jan 2021 18:02:38 GMT ms-cv: - - G20Y+0kt20SVPifcklb85g.0 + - YwdzY6hIZEumV8jF7grpAQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 149ms + - 18ms + 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: + - Mon, 25 Jan 2021 18:02: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: + - '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-26T18:02:37.6476091+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 + ms-cv: + - W15RffGB4EG2XdMjEeLvvg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 89ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:7c78cb5b9ecd471b8adc8cb455aa6de3@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:26:05Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf19-9829-557d-5a3a0d00046d"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:26:05 GMT - ms-cv: gYBS7Q0yhka1j1temIJssw.0 + date: Mon, 25 Jan 2021 18:02:39 GMT + ms-cv: cMkzZ8+5AEycqTSTB08H6A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 895ms + x-processing-time: 1202ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"participants": "sanitized"}' headers: @@ -150,67 +197,67 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:26:07 GMT - ms-cv: TT+sl9OYlkOlXIIOQki5kw.0 + date: Mon, 25 Jan 2021 18:02:40 GMT + ms-cv: B6Ttr9jenkWYbVuyXXi18g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 938ms + x-processing-time: 445ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf19-9a6b-557d-5a3a0d00046e?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-da97-e429-dbb7-3a3a0d0029aa?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:26:07 GMT - ms-cv: uLsygXAqeE+Tn7JfRoTU0g.0 + date: Mon, 25 Jan 2021 18:02:40 GMT + ms-cv: rzsJ3UFvqEGcqINor9et/Q.0 strict-transport-security: max-age=2592000 - x-processing-time: 526ms + x-processing-time: 497ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/participants/8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf19-9a6b-557d-5a3a0d00046e?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-da97-e429-dbb7-3a3a0d0029aa?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:26:07 GMT - ms-cv: NUAEQKuZfE+3RaGlNzrQVg.0 + date: Mon, 25 Jan 2021 18:02:41 GMT + ms-cv: VgrL3GxNKUSvBNfihrLHAA.0 strict-transport-security: max-age=2592000 - x-processing-time: 326ms + x-processing-time: 332ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -223,25 +270,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:26:08 GMT + - Mon, 25 Jan 2021 18:02:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:26:25 GMT + - Mon, 25 Jan 2021 18:02:57 GMT ms-cv: - - RLGu939N30yTQq3b8brghQ.0 + - lwN2tDDRREq79GqGOYbAuQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16824ms + - 16620ms status: code: 204 message: No Content @@ -257,25 +306,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:26:25 GMT + - Mon, 25 Jan 2021 18:03:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:26:40 GMT + - Mon, 25 Jan 2021 18:03:13 GMT ms-cv: - - PeGnnZ0idUeivWvkYojpHw.0 + - 7gBuRV8wm0+dEYiKZRy7gw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15683ms + - 16459ms 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 c07cfe27547b..d77b90d7902c 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:26:41 GMT + - Mon, 25 Jan 2021 18:03:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:26:40 GMT + - Mon, 25 Jan 2021 18:03:14 GMT ms-cv: - - PYeCyIKn2E2hina5ocVIQQ.0 + - vTJfVr5apkWm1g2gyGpcQw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 206ms + - 78ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:26:41 GMT + - Mon, 25 Jan 2021 18:03:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:26:41.0655577+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:03:14.5647417+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:26:41 GMT + - Mon, 25 Jan 2021 18:03:14 GMT ms-cv: - - zHXXYAN5u0Ge5CIUxUWpAw.0 + - 5SkpNveJK0C2p3FNI8tc2Q.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 310ms + - 351ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:26:42 GMT + - Mon, 25 Jan 2021 18:03:29 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:26:41 GMT + - Mon, 25 Jan 2021 18:03:14 GMT ms-cv: - - 168b4s8ORE+eiblctoiaAA.0 + - Bjzz78xLK0uqZKILHEs+/w.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 153ms + - 18ms + 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: + - Mon, 25 Jan 2021 18:03: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: + - '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-26T18:03:14.7595707+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 + ms-cv: + - v5hP/rochk6naejWJ6Nt1Q.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 85ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:5f195147edd54595b99d20fe513f316b@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:26:42Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1a-2818-b274-5a3a0d000313"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:26:42 GMT - ms-cv: biVPWSsF70+maGUz00AMKA.0 + date: Mon, 25 Jan 2021 18:03:16 GMT + ms-cv: h+aMtgqHqEqPh53wNDQ5pg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 896ms + x-processing-time: 916ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + 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"}' @@ -151,45 +198,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:26:44 GMT - ms-cv: c3GuNnniAE2GQfMvcWSUng.0 + date: Mon, 25 Jan 2021 18:03:16 GMT + ms-cv: 8QqvojfOEECMBzdtQMbsHg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1123ms + x-processing-time: 400ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:26:44 GMT - ms-cv: W3SzP9YC/kuSupXIDbyqfw.0 + date: Mon, 25 Jan 2021 18:03:17 GMT + ms-cv: y2Mu90EUTUOklCEFQlX3xg.0 strict-transport-security: max-age=2592000 x-processing-time: 334ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -202,25 +249,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:26:45 GMT + - Mon, 25 Jan 2021 18:03:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:27:00 GMT + - Mon, 25 Jan 2021 18:03:33 GMT ms-cv: - - adbwYTn3qUmz22bJgefhYQ.0 + - Ypzm9n/6dk6z9Tz/mkKw6g.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16226ms + - 15962ms status: code: 204 message: No Content @@ -236,25 +285,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:01 GMT + - Mon, 25 Jan 2021 18:03:47 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:27:16 GMT + - Mon, 25 Jan 2021 18:03:49 GMT ms-cv: - - q5Eou+B2uEeNsPxtEEr9uQ.0 + - csHtK1ThokWi3GVYTwy3/Q.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15680ms + - 16377ms 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 9730e381caeb..6118e14e626e 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:17 GMT + - Mon, 25 Jan 2021 18:04:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:27:17 GMT + - Mon, 25 Jan 2021 18:03:49 GMT ms-cv: - - 7cg1bKxqlEWlR3kuMTAexw.0 + - nlpZDZ9R9EOa34G8PvhpfQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 154ms + - 18ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:27:17 GMT + - Mon, 25 Jan 2021 18:04:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:27:17.0879498+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:03:49.6483747+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:27:18 GMT + - Mon, 25 Jan 2021 18:03:50 GMT ms-cv: - - 4C5k+3aumUuEz7Sc/uZnpA.0 + - H0oFD+RIVkWldHpuB9M4Wg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 300ms + - 90ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:18 GMT + - Mon, 25 Jan 2021 18:04:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:27:18 GMT + - Mon, 25 Jan 2021 18:03:50 GMT ms-cv: - - kPOAqNrdxkeIFQ0fN9072g.0 + - CMl/Gf/m8kKowS65JQFDMw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 149ms + - 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: + - Mon, 25 Jan 2021 18:04: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: + - '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-26T18:03:49.8696883+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 + ms-cv: + - frhKhhfNGkiEaOvHGmfHcQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 94ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:bdc8bc04b7cc4d4481e89eae56d4fc39@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:27:19Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1a-b4ce-d67a-5a3a0d000313"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:27:18 GMT - ms-cv: D+kbytRIG0yHnSyo8rC/EQ.0 + date: Mon, 25 Jan 2021 18:03:51 GMT + ms-cv: 6fJvvzRXGUC5jMKtlLuPDA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1392ms + x-processing-time: 910ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + 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"}' @@ -151,23 +198,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:27:20 GMT - ms-cv: udKnnVGlVkuKbxtKnjk2Ag.0 + date: Mon, 25 Jan 2021 18:03:52 GMT + ms-cv: hYssfmHQkUONVPsUXVZ6Gg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 659ms + x-processing-time: 856ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: '{"chatMessageId": "sanitized"}' headers: @@ -178,45 +225,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Fri, 04 Dec 2020 19:27:21 GMT - ms-cv: /wO2/FiPzkKWRGdgqeq7GQ.0 + date: Mon, 25 Jan 2021 18:03:52 GMT + ms-cv: e/mP15+2t0y5VSLFxYdfhA.0 strict-transport-security: max-age=2592000 - x-processing-time: 1128ms + x-processing-time: 454ms status: - code: 201 - message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 + code: 200 + message: OK + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:27:22 GMT - ms-cv: odtpEV8inUCy7GUewQwfDQ.0 + date: Mon, 25 Jan 2021 18:03:53 GMT + ms-cv: haa5wrlr1UyuoYzQSAzdGA.0 strict-transport-security: max-age=2592000 - x-processing-time: 332ms + x-processing-time: 329ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -229,25 +276,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:22 GMT + - Mon, 25 Jan 2021 18:04:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:27:38 GMT + - Mon, 25 Jan 2021 18:04:09 GMT ms-cv: - - EmF1Leuv7Ue86IvGvRg4ig.0 + - WtLG+iv9dk+nTZ2AzzRlMw.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16836ms + - 16330ms status: code: 204 message: No Content @@ -263,25 +312,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:39 GMT + - Mon, 25 Jan 2021 18:04:23 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:27:54 GMT + - Mon, 25 Jan 2021 18:04:26 GMT ms-cv: - - 0ENlv64nvU+eUlg8QioGdw.0 + - MYm1HQ5XiESu1GJ+Fmk1iQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16043ms + - 16770ms 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 e9026ca1bb59..39d2a351cacc 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:55 GMT + - Mon, 25 Jan 2021 18:04:40 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:27:55 GMT + - Mon, 25 Jan 2021 18:04:26 GMT ms-cv: - - DCodSNZYW0GwNKj0Bx/MvA.0 + - oWpLwIQ6ZEe+YTr72FLCIw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 149ms + - 18ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:27:55 GMT + - Mon, 25 Jan 2021 18:04:40 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:27:55.1655435+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:04:26.5244214+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:27:55 GMT + - Mon, 25 Jan 2021 18:04:26 GMT ms-cv: - - Gm8W8zLf9kawSPfDnBvnhQ.0 + - om/uqgOS802kqeKxYtUgxA.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 314ms + - 85ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:56 GMT + - Mon, 25 Jan 2021 18:04:40 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:27:55 GMT + - Mon, 25 Jan 2021 18:04:27 GMT ms-cv: - - FceFKQMBHUiy00NAlzYdfw.0 + - j8cJ/3WkaU2T0pkhfhHBZg.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 149ms + - 15ms + 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: + - Mon, 25 Jan 2021 18:04: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: + - '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-26T18:04:26.7262406+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 + ms-cv: + - NUat00w7rk+maMB//KUP8g.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 83ms status: code: 200 message: OK @@ -118,73 +165,73 @@ interactions: Accept: - application/json Content-Length: - - '205' + - '206' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:9005bf1c069b4c5695c899e741f73167@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:27:56Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1b-4986-557d-5a3a0d000471"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:27:57 GMT - ms-cv: FqY4XgvXFUK8ae6TBWp15Q.0 + date: Mon, 25 Jan 2021 18:04:28 GMT + ms-cv: 03/hkrA3NUiCsPumhgENLQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 899ms + x-processing-time: 893ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + 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.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-length: '0' - date: Fri, 04 Dec 2020 19:27:57 GMT - ms-cv: vxuW3uLw/kSm1GeYaflboQ.0 + date: Mon, 25 Jan 2021 18:04:28 GMT + ms-cv: N8WY+wo0ckG0jtIoI3M+Dg.0 strict-transport-security: max-age=2592000 - x-processing-time: 372ms + x-processing-time: 408ms status: code: 200 message: OK - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:27:58 GMT - ms-cv: +oNVhhl67EGt6JEAkkcqtQ.0 + date: Mon, 25 Jan 2021 18:04:29 GMT + ms-cv: ukYCuO2eMUOr9JWqkRh7yw.0 strict-transport-security: max-age=2592000 - x-processing-time: 326ms + x-processing-time: 336ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -197,25 +244,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:27:58 GMT + - Mon, 25 Jan 2021 18:04:43 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:28:14 GMT + - Mon, 25 Jan 2021 18:04:45 GMT ms-cv: - - D25bmlUbfkiPPFM5QMCmcw.0 + - HSsc8BmWoEeOW3JD1naZvg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16838ms + - 16577ms status: code: 204 message: No Content @@ -231,25 +280,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:28:15 GMT + - Mon, 25 Jan 2021 18:04:59 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:28:31 GMT + - Mon, 25 Jan 2021 18:05:02 GMT ms-cv: - - KM2BeNR6FEyOWTPqQrMUUw.0 + - Xi9d5LVedUeoruLAnPJx7A.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16017ms + - 15871ms 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 62221467e485..7e7a1eecafe6 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:28:31 GMT + - Mon, 25 Jan 2021 18:05:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:28:31 GMT + - Mon, 25 Jan 2021 18:05:02 GMT ms-cv: - - T9TbWpW1rka8OMAVlaVNkw.0 + - 3e0us11r0kSoSEpvvjajvw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 154ms + - 24ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:28:31 GMT + - Mon, 25 Jan 2021 18:05:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:28:31.1868847+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:05:01.6442687+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:28:31 GMT + - Mon, 25 Jan 2021 18:05:02 GMT ms-cv: - - erjGQPYsxkid0mm/elrD9g.0 + - vd1+PR51ykGx63GutU73/A.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 328ms + - 101ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:28:32 GMT + - Mon, 25 Jan 2021 18:05:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:28:32 GMT + - Mon, 25 Jan 2021 18:05:02 GMT ms-cv: - - aN+2i40YcEuJtTrhNbn3jQ.0 + - zJzdCfz4KEqgyEbSrc1/ig.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 154ms + - 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: + - Mon, 25 Jan 2021 18:05: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: + - '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-26T18:05:01.8691364+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 + ms-cv: + - FySW6owWmUyCfdYs9Pj3CQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 112ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:eb17e263799b41e0bdf7af2fec46e31a@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:28:32Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1b-d627-b274-5a3a0d000317"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:28:33 GMT - ms-cv: pzY+7Kl+Ok2m8ZCW8U06iQ.0 + date: Mon, 25 Jan 2021 18:05:03 GMT + ms-cv: AK5CcHwZHUWPtRxVqNw/+w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 888ms + x-processing-time: 919ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + 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"}' @@ -151,23 +198,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:28:33 GMT - ms-cv: IVx5Bu8VqEWgONkw/3y/dQ.0 + date: Mon, 25 Jan 2021 18:05:04 GMT + ms-cv: cwLP/Sq0ekCC8TL++QGyUA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 918ms + x-processing-time: 410ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 - request: body: '{"content": "updated message content"}' headers: @@ -178,44 +225,44 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Fri, 04 Dec 2020 19:28:34 GMT - ms-cv: 9xhiF+eBykqMdP2L65Ggkg.0 + date: Mon, 25 Jan 2021 18:05:05 GMT + ms-cv: XYq3xt+j5EOPI26kgG4IzA.0 strict-transport-security: max-age=2592000 - x-processing-time: 717ms + x-processing-time: 761ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:28:35 GMT - ms-cv: o/D6W6TaMkmf4U+5V1yeqA.0 + date: Mon, 25 Jan 2021 18:05:05 GMT + ms-cv: qog0bonzuEyZUxgbPGcYxw.0 strict-transport-security: max-age=2592000 - x-processing-time: 336ms + x-processing-time: 334ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -228,25 +275,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:28:35 GMT + - Mon, 25 Jan 2021 18:05:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:28:51 GMT + - Mon, 25 Jan 2021 18:05:21 GMT ms-cv: - - YcciaYSaIUyK2N16L/defA.0 + - KIQ9nWLFaU64XCdXU5wVPg.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16352ms + - 16509ms status: code: 204 message: No Content @@ -262,25 +311,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:28:52 GMT + - Mon, 25 Jan 2021 18:05:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:29:08 GMT + - Mon, 25 Jan 2021 18:05:37 GMT ms-cv: - - WBSYv1o+QEyYkAgMku+DbA.0 + - +JzvemoM3U6ixd86NvtfHQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16137ms + - 15815ms 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 daf500d9214c..ed32af2dadac 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,28 +11,30 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:29:08 GMT + - Mon, 25 Jan 2021 18:05:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:29:08 GMT + - Mon, 25 Jan 2021 18:05:37 GMT ms-cv: - - b2nic6Wtk0q5CwAVNlfdIw.0 + - /XB+5AWXUESzjrRs8oCenQ.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 150ms + - 21ms status: code: 200 message: OK @@ -50,28 +52,30 @@ interactions: Content-Type: - application/json Date: - - Fri, 04 Dec 2020 19:29:08 GMT + - Mon, 25 Jan 2021 18:05:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized/token?api-version=2020-07-20-preview2 response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-05T19:29:08.3205817+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-01-26T18:05:37.8185064+00:00"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:29:08 GMT + - Mon, 25 Jan 2021 18:05:38 GMT ms-cv: - - 1Hk70V+tskOg9LYEnWteoQ.0 + - 7OXxOj8pEkaZLDIK0+xGyw.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 310ms + - 333ms status: code: 200 message: OK @@ -87,28 +91,71 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:29:09 GMT + - Mon, 25 Jan 2021 18:05:52 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities?api-version=2020-07-20-preview2 response: body: '{"id": "sanitized"}' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Fri, 04 Dec 2020 19:29:08 GMT + - Mon, 25 Jan 2021 18:05:38 GMT ms-cv: - - xYPwAXX090yPgjbeW4ONWQ.0 + - jCaAVnSNJUC/nHIxQweB0A.0 + strict-transport-security: + - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 148ms + - 74ms + 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: + - Mon, 25 Jan 2021 18:05:52 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-26T18:05:38.3031466+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 + ms-cv: + - zNJPjc9pJ0S0qae7imgljg.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 226ms status: code: 200 message: OK @@ -122,24 +169,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - body: '{"chatThread": {"id": "19:3fe1fb4fc91e4cc1b4e21946f8f3bee2@thread.v2", - "topic": "test topic", "createdOn": "2020-12-04T19:29:09Z", "createdBy": "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-cf1c-6709-b274-5a3a0d00031b"}}' + 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"}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 content-type: application/json; charset=utf-8 - date: Fri, 04 Dec 2020 19:29:10 GMT - ms-cv: u/519dWn5EyzwvBMmD5rig.0 + date: Mon, 25 Jan 2021 18:05:39 GMT + ms-cv: KE5UWKoRPkuM30FBufSb3w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 885ms + x-processing-time: 909ms status: code: 201 message: Created - url: https://sanitized.dev.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 - request: body: '{"topic": "update topic"}' headers: @@ -150,44 +197,44 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:29:10 GMT - ms-cv: PDrzeVC4h0amWoO4eQUEeA.0 + date: Mon, 25 Jan 2021 18:05:40 GMT + ms-cv: 0tZo+daNM0q0VCtCVdi6/A.0 strict-transport-security: max-age=2592000 - x-processing-time: 446ms + x-processing-time: 439ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + 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 - date: Fri, 04 Dec 2020 19:29:11 GMT - ms-cv: VD0pHpC0JUiRT0MY7Dst2g.0 + date: Mon, 25 Jan 2021 18:05:40 GMT + ms-cv: peh3t5UvhUi8Fv2J9pFHtw.0 strict-transport-security: max-age=2592000 - x-processing-time: 340ms + x-processing-time: 304ms status: code: 204 message: No Content - url: https://sanitized.dev.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 + url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 - request: body: null headers: @@ -200,25 +247,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:29:11 GMT + - Mon, 25 Jan 2021 18:05:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:29:28 GMT + - Mon, 25 Jan 2021 18:05:56 GMT ms-cv: - - 00UWv5a9eEiDsveb2EZFmA.0 + - Ckxwlr27u0utIAH9MogHmQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 16805ms + - 16563ms status: code: 204 message: No Content @@ -234,25 +283,27 @@ interactions: Content-Length: - '0' Date: - - Fri, 04 Dec 2020 19:29:28 GMT + - Mon, 25 Jan 2021 18:06:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - 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.dev.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 + uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2020-07-20-preview2 response: body: string: '' headers: api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 + - 2020-07-20-preview2, 2021-03-07 date: - - Fri, 04 Dec 2020 19:29:44 GMT + - Mon, 25 Jan 2021 18:06:14 GMT ms-cv: - - WclIsNxHUUKLObrFPabXHA.0 + - a57B07S0KUWmNGXhD0NptQ.0 + strict-transport-security: + - max-age=2592000 x-processing-time: - - 15941ms + - 16378ms status: code: 204 message: No Content 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 14ecd7dc574f..86d90dcdd875 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 @@ -189,6 +189,33 @@ def mock_send(*_, **__): assert len(l) == 1 l[0].user.id = participant_id + def test_list_participants_with_results_per_page(self): + thread_id = "19:81181a8abbf54b5695f87a0042ddcba9@thread.v2" + participant_id_1 = "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-5399-552c-b274-5a3a0d0000dc" + participant_id_2 = "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-9d32-35c9-557d-5a3a0d0002f1" + raised = False + + def mock_send(*_, **__): + return mock_response(status_code=200, json_payload={ + "value": [ + {"id": participant_id_1}, + {"id": participant_id_2} + ]}) + + chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, + transport=Mock(send=mock_send)) + + chat_thread_participants = None + try: + chat_thread_participants = chat_thread_client.list_participants(results_per_page=2) + except: + raised = True + + self.assertFalse(raised, 'Expected is no excpetion raised') + for chat_thread_participant_page in chat_thread_participants.by_page(): + l = list(chat_thread_participant_page) + assert len(l) == 2 + def test_add_participant(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" new_participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" @@ -269,7 +296,7 @@ def test_send_read_receipt(self): raised = False def mock_send(*_, **__): - return mock_response(status_code=201) + return mock_response(status_code=200) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) try: @@ -299,6 +326,31 @@ def mock_send(*_, **__): l = list(read_receipt_page) assert len(l) == 1 + def test_list_read_receipts_with_results_per_page(self): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + message_id_1="1596823919339" + message_id_2="1596823919340" + raised = False + + def mock_send(*_, **__): + return mock_response(status_code=200, json_payload={ + "value": [ + {"chatMessageId": message_id_1}, + {"chatMessageId": message_id_2} + ]}) + chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) + + read_receipts = None + try: + read_receipts = chat_thread_client.list_read_receipts(results_per_page=2) + except: + raised = True + + self.assertFalse(raised, 'Expected is no excpetion raised') + for read_receipt_page in read_receipts.by_page(): + l = list(read_receipt_page) + assert len(l) == 2 + if __name__ == '__main__': unittest.main() 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 6448b6867059..301eb750fb9d 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 @@ -201,6 +201,36 @@ async def mock_send(*_, **__): assert len(items) == 1 +@pytest.mark.asyncio +async def test_list_participants_with_results_per_page(): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + participant_id_1 = "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-5399-552c-b274-5a3a0d0000dc" + participant_id_2 = "8:acs:9b665d53-8164-4923-ad5d-5e983b07d2e7_00000006-9d32-35c9-557d-5a3a0d0002f1" + raised = False + + async def mock_send(*_, **__): + return mock_response(status_code=200, json_payload={ + "value": [ + {"id": participant_id_1}, + {"id": participant_id_2} + ]}) + chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) + + chat_thread_participants = None + try: + chat_thread_participants = chat_thread_client.list_participants(results_per_page=2) + except: + raised = True + + assert raised == False + + items = [] + async for item in chat_thread_participants: + items.append(item) + + assert len(items) == 2 + + @pytest.mark.asyncio async def test_add_participant(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" @@ -286,7 +316,7 @@ async def test_send_read_receipt(): raised = False async def mock_send(*_, **__): - return mock_response(status_code=201) + return mock_response(status_code=200) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) try: @@ -319,3 +349,59 @@ async def mock_send(*_, **__): items.append(item) assert len(items) == 1 + +@pytest.mark.asyncio +async def test_list_read_receipts_with_results_per_page(): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + message_id_1 = "1596823919339" + message_id_2 = "1596823919340" + raised = False + + async def mock_send(*_, **__): + return mock_response(status_code=200, json_payload={ + "value": [ + {"chatMessageId": message_id_1}, + {"chatMessageId": message_id_2} + ]}) + chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) + + read_receipts = None + try: + read_receipts = chat_thread_client.list_read_receipts(results_per_page=2) + except: + raised = True + + assert raised == False + + items = [] + async for item in read_receipts: + items.append(item) + + assert len(items) == 2 + +@pytest.mark.asyncio +async def test_list_read_receipts_with_results_per_page_and_skip(): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + message_id_1 = "1596823919339" + raised = False + + async def mock_send(*_, **__): + return mock_response(status_code=200, json_payload={ + "value": [ + {"chatMessageId": message_id_1} + ]}) + chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) + + read_receipts = None + try: + read_receipts = chat_thread_client.list_read_receipts(results_per_page=1, skip=1) + except: + raised = True + + assert raised == False + + items = [] + async for item in read_receipts: + items.append(item) + + assert len(items) == 1 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 503825bb9dcd..11919ed9217a 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 @@ -50,10 +50,14 @@ def setUp(self): # create another user self.new_user = self.identity_client.create_user() + tokenresponse = self.identity_client.issue_token(self.new_user, scopes=["chat"]) + self.token_new_user = tokenresponse.token # create ChatClient refresh_options = CommunicationTokenRefreshOptions(self.token) + refresh_options_new_user = CommunicationTokenRefreshOptions(self.token_new_user) self.chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) + self.chat_client_new_user = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options_new_user)) def tearDown(self): super(ChatThreadClientTest, self).tearDown() @@ -64,7 +68,10 @@ def tearDown(self): self.identity_client.delete_user(self.new_user) self.chat_client.delete_chat_thread(self.thread_id) - def _create_thread(self): + def _create_thread( + self, + **kwargs + ): # create chat thread, and ChatThreadClient topic = "test topic" share_history_time = datetime.utcnow() @@ -77,7 +84,29 @@ def _create_thread(self): self.chat_thread_client = self.chat_client.create_chat_thread(topic, participants) self.thread_id = self.chat_thread_client.thread_id - @pytest.mark.live_test_only + def _create_thread_w_two_users( + self, + **kwargs + ): + # create chat thread, and ChatThreadClient + topic = "test topic" + share_history_time = datetime.utcnow() + share_history_time = share_history_time.replace(tzinfo=TZ_UTC) + participants = [ + ChatThreadParticipant( + user=self.user, + display_name='name', + share_history_time=share_history_time + ), + ChatThreadParticipant( + user=self.new_user, + display_name='name', + share_history_time=share_history_time + ) + ] + self.chat_thread_client = self.chat_client.create_chat_thread(topic, participants) + self.thread_id = self.chat_thread_client.thread_id + def _send_message(self): # send a message priority = ChatMessagePriority.NORMAL @@ -87,7 +116,8 @@ def _send_message(self): content, priority=priority, sender_display_name=sender_display_name) - self.message_id = create_message_result_id + message_id = create_message_result_id + return message_id @pytest.mark.live_test_only def test_update_topic(self): @@ -113,16 +143,14 @@ def test_send_message(self): @pytest.mark.live_test_only def test_get_message(self): self._create_thread() - self._send_message() - message = self.chat_thread_client.get_message(self.message_id) - assert message.id == self.message_id + message_id = self._send_message() + message = self.chat_thread_client.get_message(message_id) + assert message.id == message_id @pytest.mark.live_test_only def test_list_messages(self): self._create_thread() self._send_message() - if self.is_live: - time.sleep(2) chat_messages = self.chat_thread_client.list_messages(results_per_page=1) @@ -133,30 +161,43 @@ def test_list_messages(self): @pytest.mark.live_test_only def test_update_message(self): self._create_thread() - self._send_message() + message_id = self._send_message() content = "updated message content" - self.chat_thread_client.update_message(self.message_id, content=content) + self.chat_thread_client.update_message(message_id, content=content) @pytest.mark.live_test_only def test_delete_message(self): self._create_thread() - self._send_message() + message_id = self._send_message() - self.chat_thread_client.delete_message(self.message_id) + self.chat_thread_client.delete_message(message_id) @pytest.mark.live_test_only def test_list_participants(self): self._create_thread() - if self.is_live: - time.sleep(2) - chat_thread_participants = self.chat_thread_client.list_participants() + # add another participant + share_history_time = datetime.utcnow() + share_history_time = share_history_time.replace(tzinfo=TZ_UTC) + new_participant = ChatThreadParticipant( + user=self.new_user, + display_name='name', + share_history_time=share_history_time) + + self.chat_thread_client.add_participant(new_participant) + + # fetch list of participants + chat_thread_participants = self.chat_thread_client.list_participants(results_per_page=1, skip=1) + + participant_count = 0 for chat_thread_participant_page in chat_thread_participants.by_page(): li = list(chat_thread_participant_page) - assert len(li) == 1 + assert len(li) <= 1 + participant_count += len(li) li[0].user.id = self.user.identifier + assert participant_count == 1 @pytest.mark.live_test_only def test_add_participant(self): @@ -212,24 +253,62 @@ def test_send_typing_notification(self): @pytest.mark.live_test_only def test_send_read_receipt(self): self._create_thread() - self._send_message() + message_id = self._send_message() + + self.chat_thread_client.send_read_receipt(message_id) + + + def _wait_on_thread(self, chat_client, thread_id, message_id): + # print("Read Receipts Sent: ", read_receipts_sent) + chat_thread_client = chat_client.get_chat_thread_client(thread_id) + for _ in range(10): + read_receipts_paged = chat_thread_client.list_read_receipts() + chat_message_ids = [] + for page in read_receipts_paged.by_page(): + for item in page: + chat_message_ids.append(item.chat_message_id) + + if message_id in chat_message_ids: + return + else: + print("Sleeping for additional 2 secs") + time.sleep(2) + raise Exception("Read receipts not updated in 20 seconds. Failing.") - self.chat_thread_client.send_read_receipt(self.message_id) @pytest.mark.live_test_only def test_list_read_receipts(self): - self._create_thread() - self._send_message() + self._create_thread_w_two_users() + + # first user send 2 messages + # 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: + self._wait_on_thread(chat_client=self.chat_client, thread_id=self.thread_id, message_id=message_id) + + # get chat thread client for second user + chat_thread_client_new_user = self.chat_client_new_user.get_chat_thread_client(self.thread_id) + # 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) - # send read receipts first - self.chat_thread_client.send_read_receipt(self.message_id) if self.is_live: - time.sleep(2) + self._wait_on_thread(chat_client=self.chat_client_new_user, thread_id=self.thread_id, message_id=message_id_new_user) # list read receipts - read_receipts = self.chat_thread_client.list_read_receipts() + read_receipts = self.chat_thread_client.list_read_receipts(results_per_page=2, skip=0) items = [] - for item in read_receipts: - items.append(item) - assert len(items) > 0 + for page in read_receipts.by_page(): + for item in page: + items.append(item) + + assert len(items) == 2 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 25eaef996e96..59f9a3e801d6 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 @@ -42,17 +42,25 @@ def setUp(self): self.identity_client = CommunicationIdentityClient.from_connection_string(self.connection_str) - # create user + self.users = [] + self.user_tokens = [] + self.chat_clients = [] + + # create user 1 self.user = self.identity_client.create_user() token_response = self.identity_client.issue_token(self.user, scopes=["chat"]) self.token = token_response.token - # create another user + # create user 2 self.new_user = self.identity_client.create_user() + token_response = self.identity_client.issue_token(self.new_user, scopes=["chat"]) + self.token_new_user = token_response.token # create ChatClient refresh_option = CommunicationTokenRefreshOptions(self.token) + refresh_option_new_user = CommunicationTokenRefreshOptions(self.token_new_user) self.chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_option)) + self.chat_client_new_user = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_option_new_user)) def tearDown(self): super(ChatThreadClientTestAsync, self).tearDown() @@ -75,6 +83,27 @@ async def _create_thread(self): self.chat_thread_client = await self.chat_client.create_chat_thread(topic, participants) self.thread_id = self.chat_thread_client.thread_id + async def _create_thread_w_two_users(self): + # create chat thread + topic = "test topic" + share_history_time = datetime.utcnow() + share_history_time = share_history_time.replace(tzinfo=TZ_UTC) + participants = [ + ChatThreadParticipant( + user=self.user, + display_name='name', + share_history_time=share_history_time + ), + ChatThreadParticipant( + user=self.new_user, + display_name='name', + share_history_time=share_history_time + ) + ] + self.chat_thread_client = await self.chat_client.create_chat_thread(topic, participants) + self.thread_id = self.chat_thread_client.thread_id + + async def _send_message(self): # send a message priority = ChatMessagePriority.NORMAL @@ -84,7 +113,8 @@ async def _send_message(self): content, priority=priority, sender_display_name=sender_display_name) - self.message_id = create_message_result_id + message_id = create_message_result_id + return message_id @pytest.mark.live_test_only @AsyncCommunicationTestCase.await_prepared_test @@ -129,9 +159,9 @@ async def test_get_message(self): await self._create_thread() async with self.chat_thread_client: - await self._send_message() - message = await self.chat_thread_client.get_message(self.message_id) - assert message.id == self.message_id + message_id = await self._send_message() + message = await self.chat_thread_client.get_message(message_id) + assert message.id == message_id # delete chat threads if not self.is_playback(): @@ -145,8 +175,6 @@ async def test_list_messages(self): async with self.chat_thread_client: await self._send_message() - if self.is_live: - await asyncio.sleep(2) chat_messages = self.chat_thread_client.list_messages(results_per_page=1) @@ -167,10 +195,10 @@ async def test_update_message(self): await self._create_thread() async with self.chat_thread_client: - await self._send_message() + message_id = await self._send_message() content = "updated message content" - await self.chat_thread_client.update_message(self.message_id, content=content) + await self.chat_thread_client.update_message(message_id, content=content) # delete chat threads if not self.is_playback(): @@ -183,9 +211,9 @@ async def test_delete_message(self): await self._create_thread() async with self.chat_thread_client: - await self._send_message() + message_id = await self._send_message() - await self.chat_thread_client.delete_message(self.message_id) + await self.chat_thread_client.delete_message(message_id) # delete chat threads if not self.is_playback(): @@ -198,7 +226,17 @@ async def test_list_participants(self): await self._create_thread() async with self.chat_thread_client: - chat_thread_participants = self.chat_thread_client.list_participants() + # add another participant + share_history_time = datetime.utcnow() + share_history_time = share_history_time.replace(tzinfo=TZ_UTC) + new_participant = ChatThreadParticipant( + user=self.new_user, + display_name='name', + share_history_time=share_history_time) + + await self.chat_thread_client.add_participant(new_participant) + + chat_thread_participants = self.chat_thread_client.list_participants(results_per_page=1, skip=1) items = [] async for item in chat_thread_participants: @@ -284,3 +322,83 @@ async def test_send_typing_notification(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_send_read_receipt(self): + async with self.chat_client: + await self._create_thread() + + async with self.chat_thread_client: + message_id = await self._send_message() + + await self.chat_thread_client.send_read_receipt(message_id) + + if not self.is_playback(): + await self.chat_client.delete_chat_thread(self.thread_id) + + async def _wait_on_thread(self, chat_client, thread_id, message_id): + # print("Read Receipts Sent: ", read_receipts_sent) + chat_thread_client = chat_client.get_chat_thread_client(thread_id) + for _ in range(10): + read_receipts_paged = chat_thread_client.list_read_receipts() + chat_message_ids = [] + async for page in read_receipts_paged.by_page(): + async for item in page: + chat_message_ids.append(item.chat_message_id) + + if message_id in chat_message_ids: + return + else: + print("Sleeping for additional 2 secs") + await asyncio.sleep(2) + raise Exception("Read receipts not updated in 20 seconds. Failing.") + + @pytest.mark.live_test_only + @AsyncCommunicationTestCase.await_prepared_test + async def test_list_read_receipts(self): + async with self.chat_client: + await self._create_thread_w_two_users() + + async with self.chat_thread_client: + + # 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) + + if self.is_live: + await self._wait_on_thread(chat_client=self.chat_client, thread_id=self.thread_id, message_id=message_id) + + + + # get chat thread client for second user + chat_thread_client_new_user = self.chat_client_new_user.get_chat_thread_client(self.thread_id) + + # 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) + + # list read receipts + read_receipts = self.chat_thread_client.list_read_receipts(results_per_page=2, skip=0) + + items = [] + async for page in read_receipts.by_page(): + async for item in page: + items.append(item) + + assert len(items) == 2 + + if not self.is_playback(): + await self.chat_client.delete_chat_thread(self.thread_id) From f00a7c608861294ebe8ae5c963c9fbd166896280 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Thu, 28 Jan 2021 14:46:02 -0800 Subject: [PATCH 4/6] Updated swagger changes (#16390) * Updated swagger changes - Generate new models from swagger - ChatMessage.content -> ChatMessageContent instead of 'str' - Remove ChatMessagePriority - Introduce ChatMessageType - Add tests around ChatMessageType deserialization - Generate a repeatability ID by default - Add some test scenarios around repeatability ID - Update all relevant tests - Update sample code - Record new test sessions --- .../azure-communication-chat/README.md | 42 +- .../azure/communication/chat/__init__.py | 9 +- .../azure/communication/chat/_chat_client.py | 16 +- .../communication/chat/_chat_thread_client.py | 21 +- .../aio/operations/_chat_operations.py | 32 +- .../aio/operations/_chat_thread_operations.py | 96 ++--- .../chat/_generated/models/__init__.py | 16 +- ..._azure_communication_chat_service_enums.py | 11 +- .../chat/_generated/models/_models.py | 368 +++++++++------- .../chat/_generated/models/_models_py3.py | 407 +++++++++++------- .../_generated/operations/_chat_operations.py | 32 +- .../operations/_chat_thread_operations.py | 96 ++--- .../azure/communication/chat/_models.py | 107 +++-- .../chat/aio/_chat_client_async.py | 15 +- .../chat/aio/_chat_thread_client_async.py | 21 +- .../samples/chat_client_sample.py | 8 + .../samples/chat_client_sample_async.py | 7 + .../samples/chat_thread_client_sample.py | 7 +- .../chat_thread_client_sample_async.py | 5 + ...at_client_e2e.test_create_chat_thread.yaml | 48 ++- ...hat_thread_w_repeatability_request_id.yaml | 230 ++++++++++ ...at_client_e2e.test_delete_chat_thread.yaml | 56 +-- ..._chat_client_e2e.test_get_chat_thread.yaml | 56 +-- ...hat_client_e2e.test_get_thread_client.yaml | 48 ++- ...hat_client_e2e.test_list_chat_threads.yaml | 56 +-- ...e_async.test_create_chat_thread_async.yaml | 48 ++- ...read_w_repeatability_request_id_async.yaml | 200 +++++++++ ...ent_e2e_async.test_delete_chat_thread.yaml | 56 +-- ...client_e2e_async.test_get_chat_thread.yaml | 58 +-- ...ient_e2e_async.test_get_thread_client.yaml | 48 ++- ...ient_e2e_async.test_list_chat_threads.yaml | 58 +-- ...hread_client_e2e.test_add_participant.yaml | 84 ++-- ...read_client_e2e.test_add_participants.yaml | 82 ++-- ...thread_client_e2e.test_delete_message.yaml | 96 +++-- ...at_thread_client_e2e.test_get_message.yaml | 100 ++--- ..._thread_client_e2e.test_list_messages.yaml | 118 ++--- ...ead_client_e2e.test_list_participants.yaml | 90 ++-- ...ad_client_e2e.test_list_read_receipts.yaml | 171 ++++---- ...ad_client_e2e.test_remove_participant.yaml | 92 ++-- ...t_thread_client_e2e.test_send_message.yaml | 90 ++-- ...ead_client_e2e.test_send_read_receipt.yaml | 98 ++--- ...ent_e2e.test_send_typing_notification.yaml | 82 ++-- ...thread_client_e2e.test_update_message.yaml | 94 ++-- ...t_thread_client_e2e.test_update_topic.yaml | 82 ++-- ...client_e2e_async.test_add_participant.yaml | 82 ++-- ...lient_e2e_async.test_add_participants.yaml | 82 ++-- ..._client_e2e_async.test_delete_message.yaml | 96 +++-- ...ead_client_e2e_async.test_get_message.yaml | 100 ++--- ...d_client_e2e_async.test_list_messages.yaml | 120 +++--- ...ient_e2e_async.test_list_participants.yaml | 90 ++-- ...ent_e2e_async.test_list_read_receipts.yaml | 171 ++++---- ...ent_e2e_async.test_remove_participant.yaml | 94 ++-- ...ad_client_e2e_async.test_send_message.yaml | 90 ++-- ...ient_e2e_async.test_send_read_receipt.yaml | 96 +++-- ...e_async.test_send_typing_notification.yaml | 84 ++-- ..._client_e2e_async.test_update_message.yaml | 96 +++-- ...ad_client_e2e_async.test_update_topic.yaml | 80 ++-- .../tests/test_chat_client.py | 36 ++ .../tests/test_chat_client_async.py | 28 ++ .../tests/test_chat_client_e2e.py | 18 +- .../tests/test_chat_client_e2e_async.py | 26 +- .../tests/test_chat_thread_client.py | 143 +++++- .../tests/test_chat_thread_client_async.py | 159 ++++++- .../tests/test_chat_thread_client_e2e.py | 10 +- .../test_chat_thread_client_e2e_async.py | 12 +- 65 files changed, 3229 insertions(+), 2041 deletions(-) create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml create mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml diff --git a/sdk/communication/azure-communication-chat/README.md b/sdk/communication/azure-communication-chat/README.md index 9cdec1f18a3e..c5468fc8d877 100644 --- a/sdk/communication/azure-communication-chat/README.md +++ b/sdk/communication/azure-communication-chat/README.md @@ -63,6 +63,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 @@ -142,6 +151,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 `CommunicationUserIdentifier` you created by CommunicationIdentityClient.create_user() from User Access Tokens - `display_name`, optional, is the display name for the thread participant. @@ -150,6 +160,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( @@ -162,6 +174,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. @@ -216,7 +253,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. @@ -225,10 +262,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 bd766e8aa0d2..0838d4012343 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 CommunicationTokenCredential from ._shared.user_token_refresh_options import CommunicationTokenRefreshOptions @@ -13,6 +13,7 @@ ChatMessage, ChatThread, ChatMessageReadReceipt, + ChatMessageContent ) from ._shared.models import CommunicationUserIdentifier @@ -20,16 +21,16 @@ 'ChatClient', 'ChatThreadClient', 'ChatMessage', - 'ChatMessagePriority', + 'ChatMessageContent', 'ChatMessageReadReceipt', 'SendChatMessageResult', 'ChatThread', 'ChatThreadInfo', 'CommunicationTokenCredential', 'CommunicationTokenRefreshOptions', - 'ChatThreadMember', 'CommunicationUserIdentifier', 'CommunicationUserCredential', - 'ChatThreadParticipant' + 'ChatThreadParticipant', + '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 5b360e34db41..19b4930004f3 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: @@ -121,6 +121,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 @@ -130,6 +131,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 @@ -147,13 +155,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 ccafc2bd02bf..5cec790b273c 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 d8d0bda7b54a..2b4dc805e858 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 ._generated.models import ChatParticipant as ChatParticipantAutorest from ._shared.models import CommunicationUserIdentifier - +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. :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 type: Type of the chat message. Possible values include: "text", "html", + "topicUpdated", "participantAdded", "participantRemoved". + :type type: ~azure.communication.chat.models.ChatMessageType + :ivar sequence_id: Sequence of the chat message in the conversation. + :type sequence_id: str :ivar version: Version of the chat message. :vartype version: str - :param content: Content of the chat message. - :type content: str - :param sender_display_name: The display name of the chat message sender. This property is used + :ivar content: Content of the chat message. + :type content: ~azure.communication.chat.models.ChatMessageContent + :ivar 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: CommunicationUserIdentifier - :param deleted_on: The timestamp when the chat message was deleted. The timestamp is in ISO8601 + in RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. + :type created_on: ~datetime.datetime + :ivar sender_id: The chat message sender. + :type sender_id: CommunicationUserIdentifier + :ivar deleted_on: The timestamp when the chat 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``. + :ivar 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.content = kwargs['content'] + self.sender_display_name = kwargs['sender_display_name'] self.created_on = kwargs['created_on'] - self.sender = kwargs['sender'] - self.deleted_on = kwargs.get('deleted_on', None) - self.edited_on = kwargs.get('edited_on', None) + self.sender_id = kwargs['sender_id'] + self.deleted_on = kwargs['deleted_on'] + self.edited_on = kwargs['edited_on'] + + @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=CommunicationUserIdentifier(chat_message.sender_id), + sender_id=CommunicationUserIdentifier(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 c3771d66ccfa..dfb29899c234 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 fcd8efca2375..ce4a42143fb2 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 e0aa5f32ea3c..ac7fb0062477 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_client_sample.py +++ b/sdk/communication/azure-communication-chat/samples/chat_client_sample.py @@ -70,7 +70,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 ce180918e64f..e22ee5092eb3 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 @@ -67,7 +67,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 37bc80993f3a..d287d26eb636 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 @@ -88,18 +88,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 4ecd68e2cd80..8eb1ce1775c2 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 @@ -100,9 +100,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, CommunicationTokenCredential, CommunicationTokenRefreshOptions 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 4117a5f6c81c..7fbb585737e5 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 1ee7ce44d89a..aa5d78009336 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 9ce2168159fa..c57f10713c36 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.identity import CommunicationIdentityClient from azure.communication.chat import ( @@ -60,7 +61,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() @@ -70,7 +71,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 @@ -78,6 +79,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 68b76cc6d5f0..a71e749a2090 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.identity import CommunicationIdentityClient from azure.communication.chat.aio import ( @@ -57,7 +58,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() @@ -67,7 +68,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 @@ -81,6 +82,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 86d90dcdd875..cb12d1379a53 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, CommunicationUserIdentifier, - CommunicationTokenCredential + CommunicationTokenCredential, + 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 301eb750fb9d..919569952688 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, CommunicationUserIdentifier, + 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 11919ed9217a..9bebfb355fcf 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 @@ -16,7 +16,7 @@ CommunicationTokenCredential, CommunicationTokenRefreshOptions, ChatThreadParticipant, - ChatMessagePriority + ChatMessageType ) from azure.communication.chat._shared.utils import parse_connection_str @@ -109,12 +109,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 @@ -129,13 +127,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 @@ -146,6 +142,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): @@ -284,7 +282,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: @@ -295,7 +292,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 59f9a3e801d6..cacbcff1ed12 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 @@ -17,7 +17,7 @@ ) from azure.communication.chat import ( ChatThreadParticipant, - ChatMessagePriority + ChatMessageType ) from azure.communication.identity._shared.utils import parse_connection_str from azure_devtools.scenario_tests import RecordingProcessor @@ -106,12 +106,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 @@ -137,13 +135,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) @@ -162,6 +158,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(): @@ -365,8 +363,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) @@ -381,12 +377,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) From abdf1dd7ba2dceb39f939ff0e0bbf69c52b7e132 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Mon, 1 Feb 2021 15:35:17 -0800 Subject: [PATCH 5/6] Rebase with master - Use CommunicationUserIdentifier --- .../communication/chat/_chat_thread_client.py | 9 +- .../azure/communication/chat/_models.py | 5 +- .../chat/aio/_chat_thread_client_async.py | 7 +- .../samples/chat_client_sample_async.py | 2 +- .../samples/chat_thread_client_sample.py | 4 +- .../chat_thread_client_sample_async.py | 4 +- .../swagger/SWAGGER.md | 2 +- .../swagger/swagger.json | 1646 ----------------- ...at_client_e2e.test_create_chat_thread.yaml | 54 +- ...hat_thread_w_repeatability_request_id.yaml | 70 +- ...at_client_e2e.test_delete_chat_thread.yaml | 62 +- ..._chat_client_e2e.test_get_chat_thread.yaml | 64 +- ...hat_client_e2e.test_get_thread_client.yaml | 54 +- ...hat_client_e2e.test_list_chat_threads.yaml | 62 +- ...e_async.test_create_chat_thread_async.yaml | 54 +- ...read_w_repeatability_request_id_async.yaml | 68 +- ...ent_e2e_async.test_delete_chat_thread.yaml | 64 +- ...client_e2e_async.test_get_chat_thread.yaml | 62 +- ...ient_e2e_async.test_get_thread_client.yaml | 56 +- ...ient_e2e_async.test_list_chat_threads.yaml | 62 +- ...hread_client_e2e.test_add_participant.yaml | 96 +- ...read_client_e2e.test_add_participants.yaml | 94 +- ...thread_client_e2e.test_delete_message.yaml | 104 +- ...at_thread_client_e2e.test_get_message.yaml | 108 +- ..._thread_client_e2e.test_list_messages.yaml | 126 +- ...ead_client_e2e.test_list_participants.yaml | 102 +- ...ad_client_e2e.test_list_read_receipts.yaml | 164 +- ...ad_client_e2e.test_remove_participant.yaml | 104 +- ...t_thread_client_e2e.test_send_message.yaml | 96 +- ...ead_client_e2e.test_send_read_receipt.yaml | 104 +- ...ent_e2e.test_send_typing_notification.yaml | 94 +- ...thread_client_e2e.test_update_message.yaml | 102 +- ...t_thread_client_e2e.test_update_topic.yaml | 94 +- ...client_e2e_async.test_add_participant.yaml | 94 +- ...lient_e2e_async.test_add_participants.yaml | 92 +- ..._client_e2e_async.test_delete_message.yaml | 104 +- ...ead_client_e2e_async.test_get_message.yaml | 106 +- ...d_client_e2e_async.test_list_messages.yaml | 128 +- ...ient_e2e_async.test_list_participants.yaml | 102 +- ...ent_e2e_async.test_list_read_receipts.yaml | 168 +- ...ent_e2e_async.test_remove_participant.yaml | 110 +- ...ad_client_e2e_async.test_send_message.yaml | 96 +- ...ient_e2e_async.test_send_read_receipt.yaml | 102 +- ...e_async.test_send_typing_notification.yaml | 94 +- ..._client_e2e_async.test_update_message.yaml | 100 +- ...ad_client_e2e_async.test_update_topic.yaml | 94 +- .../tests/test_chat_client.py | 2 +- .../tests/test_chat_client_async.py | 5 +- .../tests/test_chat_thread_client.py | 50 +- .../tests/test_chat_thread_client_async.py | 50 +- 50 files changed, 1852 insertions(+), 3444 deletions(-) delete mode 100644 sdk/communication/azure-communication-chat/swagger/swagger.json 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 5cec790b273c..9adfe78d1e7f 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 @@ -249,8 +249,7 @@ def send_message( :param content: Required. Chat message content. :type content: str - :param chat_message_type: The chat message type. Possible values include: "text", "html", "participant_added", - "participant_removed", "topic_updated" Default: ChatMessageType.TEXT + :param chat_message_type: The chat message type. Possible values include: "text", "html". 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. @@ -281,6 +280,10 @@ def send_message( raise ValueError( "chat_message_type: {message_type} is not acceptable".format(message_type=chat_message_type)) + if chat_message_type not in [ChatMessageType.TEXT, ChatMessageType.HTML]: + raise ValueError( + "chat_message_type: {message_type} can be only 'text' or 'html'".format(message_type=chat_message_type)) + sender_display_name = kwargs.pop("sender_display_name", None) create_message_request = SendChatMessageRequest( @@ -543,7 +546,7 @@ def add_participants( @distributed_trace def remove_participant( self, - user, # type: CommunicationUser + user, # type: CommunicationUserIdentifier **kwargs # type: Any ): # type: (...) -> None 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 2b4dc805e858..30ca4fe3a95e 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py @@ -33,7 +33,7 @@ def __init__( @classmethod def _from_generated(cls, chat_thread_participant): return cls( - user=CommunicationUserIdentifier(chat_thread_member.id), + user=CommunicationUserIdentifier(chat_thread_participant.id), display_name=chat_thread_participant.display_name, share_history_time=chat_thread_participant.share_history_time ) @@ -192,8 +192,7 @@ def _from_generated(cls, chat_thread): id=chat_thread.id, topic=chat_thread.topic, created_on=chat_thread.created_on, - created_by=CommunicationUserIdentifier(chat_thread.created_by), - participants=[ChatThreadParticipant._from_generated(x) for x in chat_thread.participants] + created_by=CommunicationUserIdentifier(chat_thread.created_by) ) 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 ce4a42143fb2..fe1aed56dde3 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 @@ -242,8 +242,7 @@ async def send_message( :param content: Required. Chat message content. :type content: str - :param chat_message_type: The chat message type. Possible values include: "text", "html", "participant_added", - "participant_removed", "topic_updated" Default: ChatMessageType.TEXT + :param chat_message_type: The chat message type. Possible values include: "text", "html". 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. @@ -274,6 +273,10 @@ async def send_message( raise ValueError( "chat_message_type: {message_type} is not acceptable".format(message_type=chat_message_type)) + if chat_message_type not in [ChatMessageType.TEXT, ChatMessageType.HTML]: + raise ValueError( + "chat_message_type: {message_type} can be only 'text' or 'html'".format(message_type=chat_message_type)) + sender_display_name = kwargs.pop("sender_display_name", None) create_message_request = SendChatMessageRequest( 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 e22ee5092eb3..6a8df4addb8e 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 @@ -55,7 +55,7 @@ def create_chat_client(self): async def create_thread_async(self): from datetime import datetime from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential, CommunicationTokenRefreshOptions - from azure.communication.chat import ChatThreadParticipant, CommunicationUser + from azure.communication.chat import ChatThreadParticipant, CommunicationUserIdentifier refresh_options = CommunicationTokenRefreshOptions(self.token) chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) 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 d287d26eb636..5ee180aea894 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 @@ -52,7 +52,7 @@ def create_chat_thread_client(self): ChatClient, CommunicationUserIdentifier, CommunicationTokenCredential, - CommunicationTokenRefreshOptions + CommunicationTokenRefreshOptions, ChatThreadParticipant ) refresh_options = CommunicationTokenRefreshOptions(self.token) @@ -226,7 +226,7 @@ def add_participants(self): def remove_participant(self): from azure.communication.chat import ChatThreadClient - from azure.communication.chat import CommunicationTokenCredential, CommunicationUser, CommunicationTokenRefreshOptions + from azure.communication.chat import CommunicationTokenCredential, CommunicationUserIdentifier, CommunicationTokenRefreshOptions refresh_options = CommunicationTokenRefreshOptions(self.token) chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), self._thread_id) 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 8eb1ce1775c2..f4263ebf021d 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 @@ -205,7 +205,7 @@ async def add_participant_async(self): async with chat_thread_client: # [START add_participant] - from azure.communication.chat import ChatThreadParticipant, CommunicationUser + from azure.communication.chat import ChatThreadParticipant, CommunicationUserIdentifier from datetime import datetime new_chat_thread_participant = ChatThreadParticipant( user=self.new_user, @@ -222,7 +222,7 @@ async def add_participants_async(self): async with chat_thread_client: # [START add_participants] - from azure.communication.chat import ChatThreadParticipant, CommunicationUser + from azure.communication.chat import ChatThreadParticipant, CommunicationUserIdentifier from datetime import datetime new_participant = ChatThreadParticipant( user=self.new_user, diff --git a/sdk/communication/azure-communication-chat/swagger/SWAGGER.md b/sdk/communication/azure-communication-chat/swagger/SWAGGER.md index 1eb37c2ac30c..655be82ec88a 100644 --- a/sdk/communication/azure-communication-chat/swagger/SWAGGER.md +++ b/sdk/communication/azure-communication-chat/swagger/SWAGGER.md @@ -15,7 +15,7 @@ autorest SWAGGER.md ### Settings ``` yaml -input-file: https://int.chatgateway.trafficmanager.net/swagger/2020-11-01-preview3/swagger.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/communication/data-plane/Microsoft.CommunicationServicesChat/preview/2020-11-01-preview3/communicationserviceschat.json output-folder: ../azure/communication/chat/_generated namespace: azure.communication.chat no-namespace-folders: true diff --git a/sdk/communication/azure-communication-chat/swagger/swagger.json b/sdk/communication/azure-communication-chat/swagger/swagger.json deleted file mode 100644 index 13d43e6e87e7..000000000000 --- a/sdk/communication/azure-communication-chat/swagger/swagger.json +++ /dev/null @@ -1,1646 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Azure Communication Chat Service", - "description": "Azure Communication Chat Service", - "contact": { - "email": "acsdevexdisc@microsoft.com" - }, - "version": "2020-09-21-preview2" - }, - "paths": { - "/chat/threads/{chatThreadId}/readreceipts": { - "get": { - "tags": [ - "Threads" - ], - "summary": "Gets read receipts for a thread.", - "operationId": "ListChatReadReceipts", - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "chatThreadId", - "description": "Thread id to get the read receipts for.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Request successful. The action returns the requested `ReadReceipt` resources.", - "schema": { - "$ref": "#/definitions/ReadReceiptsCollection" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Get thread read receipts": { - "$ref": "./examples/Conversations_ListChatReadReceipts.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "value" - } - }, - "post": { - "tags": [ - "Threads" - ], - "summary": "Sends a read receipt event to a thread, on behalf of a user.", - "operationId": "SendChatReadReceipt", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "chatThreadId", - "description": "Thread id to send the read receipt event to.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "body", - "description": "Read receipt details.", - "required": true, - "schema": { - "$ref": "#/definitions/SendReadReceiptRequest" - } - } - ], - "responses": { - "201": { - "description": "Request successful." - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Send read receipt": { - "$ref": "./examples/Conversations_SendChatReadReceipt.json" - } - } - } - }, - "/chat/threads/{chatThreadId}/messages": { - "post": { - "tags": [ - "Messages" - ], - "summary": "Sends a message to a thread.", - "operationId": "SendChatMessage", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "chatThreadId", - "description": "The thread id to send the message to.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "body", - "description": "Details of the message to send.", - "required": true, - "schema": { - "$ref": "#/definitions/SendChatMessageRequest" - } - } - ], - "responses": { - "201": { - "description": "Message sent, the `Location` header contains the URL for the newly sent message.", - "schema": { - "$ref": "#/definitions/SendChatMessageResult" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Send Message": { - "$ref": "./examples/Messages_SendChatMessage.json" - } - } - }, - "get": { - "tags": [ - "Messages" - ], - "summary": "Gets a list of messages from a thread.", - "operationId": "ListChatMessages", - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "chatThreadId", - "description": "The thread id of the message.", - "required": true, - "type": "string" - }, - { - "in": "query", - "name": "maxPageSize", - "description": "The maximum number of messages to be returned per page.", - "type": "integer", - "format": "int32" - }, - { - "in": "query", - "name": "startTime", - "description": "The earliest point in time to get messages up to. The timestamp should be in ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`.", - "type": "string", - "format": "date-time" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Success", - "schema": { - "$ref": "#/definitions/ChatMessagesCollection" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Get messages with pagination (max page size)": { - "$ref": "./examples/Messages_ListChatMessagesWithPageSize.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "value" - } - } - }, - "/chat/threads/{chatThreadId}/messages/{chatMessageId}": { - "get": { - "tags": [ - "Messages" - ], - "summary": "Gets a message by id.", - "operationId": "GetChatMessage", - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "chatThreadId", - "description": "The thread id to which the message was sent.", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "chatMessageId", - "description": "The message id.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Request successful. The action returns a `Message` resource.", - "schema": { - "$ref": "#/definitions/ChatMessage" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Get Message": { - "$ref": "./examples/Messages_GetChatMessage.json" - } - } - }, - "patch": { - "tags": [ - "Messages" - ], - "summary": "Updates a message.", - "operationId": "UpdateChatMessage", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "chatThreadId", - "description": "The thread id to which the message was sent.", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "chatMessageId", - "description": "The message id.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "body", - "description": "Details of the request to update the message.", - "required": true, - "schema": { - "$ref": "#/definitions/UpdateChatMessageRequest" - } - } - ], - "responses": { - "200": { - "description": "Message is successfully updated." - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Update message content": { - "$ref": "./examples/Messages_UpdateChatMessage.json" - } - } - }, - "delete": { - "tags": [ - "Messages" - ], - "summary": "Deletes a message.", - "operationId": "DeleteChatMessage", - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "chatThreadId", - "description": "The thread id to which the message was sent.", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "chatMessageId", - "description": "The message id.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "204": { - "description": "Request successful." - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Delete message": { - "$ref": "./examples/Messages_DeleteChatMessage.json" - } - } - } - }, - "/chat/threads/{chatThreadId}/typing": { - "post": { - "tags": [ - "Messages" - ], - "summary": "Posts a typing event to a thread, on behalf of a user.", - "operationId": "SendTypingNotification", - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "chatThreadId", - "description": "Id of the thread.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Request successful." - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Post typing event to a thread": { - "$ref": "./examples/Messages_SendTypingNotification.json" - } - } - } - }, - "/chat/threads/{chatThreadId}/members": { - "get": { - "tags": [ - "ThreadMembers" - ], - "summary": "Gets the members of a thread.", - "operationId": "ListChatThreadMembers", - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "chatThreadId", - "description": "Thread id to get members for.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Request successful. The action returns the members of a thread.", - "schema": { - "$ref": "#/definitions/ChatThreadMembersCollection" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Get thread members": { - "$ref": "./examples/ThreadMembers_ListChatThreadMembers.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "value" - } - }, - "post": { - "tags": [ - "ThreadMembers" - ], - "summary": "Adds thread members to a thread. If members already exist, no change occurs.", - "operationId": "AddChatThreadMembers", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "chatThreadId", - "description": "Id of the thread to add members to.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "body", - "description": "Thread members to be added to the thread.", - "required": true, - "schema": { - "$ref": "#/definitions/AddChatThreadMembersRequest" - } - } - ], - "responses": { - "207": { - "description": "Multi status response, containing the status for the thread member addition operations." - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Add thread members": { - "$ref": "./examples/ThreadMembers_AddChatThreadMembers.json" - } - } - } - }, - "/chat/threads/{chatThreadId}/members/{chatMemberId}": { - "delete": { - "tags": [ - "ThreadMembers" - ], - "summary": "Remove a member from a thread.", - "operationId": "RemoveChatThreadMember", - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "chatThreadId", - "description": "Thread id to remove the member from.", - "required": true, - "type": "string" - }, - { - "in": "path", - "name": "chatMemberId", - "description": "Id of the thread member to remove from the thread.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "204": { - "description": "Request successful." - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Remove thread member": { - "$ref": "./examples/ThreadMembers_RemoveChatThreadMember.json" - } - } - } - }, - "/chat/threads": { - "post": { - "tags": [ - "Threads" - ], - "summary": "Creates a chat thread.", - "operationId": "CreateChatThread", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "body", - "description": "Request payload for creating a chat thread.", - "required": true, - "schema": { - "$ref": "#/definitions/CreateChatThreadRequest" - } - } - ], - "responses": { - "207": { - "description": "Multi status response, containing the status for the thread creation and the thread member addition operations.\r\nIf the thread was created successfully, `Location` header would contain the URL for the newly created thread.", - "schema": { - "$ref": "#/definitions/MultiStatusResponse" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Create chat thread": { - "$ref": "./examples/Threads_CreateChatThread.json" - } - } - }, - "get": { - "tags": [ - "Threads" - ], - "summary": "Gets the list of chat threads of a user.", - "operationId": "ListChatThreads", - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "query", - "name": "maxPageSize", - "description": "The maximum number of chat threads returned per page.", - "type": "integer", - "format": "int32" - }, - { - "in": "query", - "name": "startTime", - "description": "The earliest point in time to get chat threads up to. The timestamp should be in ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`.", - "type": "string", - "format": "date-time" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Request successful. The action returns a `GetThreadsResponse` resource.", - "schema": { - "$ref": "#/definitions/ChatThreadsInfoCollection" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Get threads with pagination (Max Page Size)": { - "$ref": "./examples/Threads_ListChatThreadsWithPageSize.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink", - "itemName": "value" - } - } - }, - "/chat/threads/{chatThreadId}": { - "patch": { - "tags": [ - "Threads" - ], - "summary": "Updates a thread's properties.", - "operationId": "UpdateChatThread", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "chatThreadId", - "description": "The id of the thread to update.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "in": "body", - "name": "body", - "description": "Request payload for updating a chat thread.", - "required": true, - "schema": { - "$ref": "#/definitions/UpdateChatThreadRequest" - } - } - ], - "responses": { - "200": { - "description": "Thread was successfully updated." - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Update chat thread topic": { - "$ref": "./examples/Threads_UpdateChatThreadTopic.json" - } - } - }, - "get": { - "tags": [ - "Threads" - ], - "summary": "Gets a chat thread.", - "operationId": "GetChatThread", - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "chatThreadId", - "description": "Thread id to get.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Request successful. The action returns a `Thread` resource.", - "schema": { - "$ref": "#/definitions/ChatThread" - } - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Get chat thread": { - "$ref": "./examples/Threads_GetChatThread.json" - } - } - }, - "delete": { - "tags": [ - "Threads" - ], - "summary": "Deletes a thread.", - "operationId": "DeleteChatThread", - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "path", - "name": "chatThreadId", - "description": "Thread id to delete.", - "required": true, - "type": "string" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "204": { - "description": "Request successful." - }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "403": { - "description": "Forbidden", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "429": { - "description": "Too many requests", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - }, - "503": { - "description": "Service unavailable", - "schema": { - "$ref": "#/definitions/Error" - }, - "x-ms-error-response": true - } - }, - "x-ms-examples": { - "Delete chat thread": { - "$ref": "./examples/Threads_DeleteChatThread.json" - } - } - } - } - }, - "definitions": { - "ReadReceipt": { - "description": "A read receipt indicates the time a chat message was read by a recipient.", - "type": "object", - "properties": { - "senderId": { - "description": "Read receipt sender id.", - "type": "string", - "readOnly": true, - "example": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" - }, - "chatMessageId": { - "description": "Id for the chat message that has been read. This id is generated by the server.", - "type": "string", - "readOnly": true, - "example": "1591137790240" - }, - "readOn": { - "format": "date-time", - "description": "Read receipt timestamp. The timestamp is in ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`.", - "type": "string", - "readOnly": true, - "example": "2020-10-30T10:50:50Z" - } - } - }, - "ReadReceiptsCollection": { - "type": "object", - "properties": { - "value": { - "description": "Collection of read receipts.", - "type": "array", - "items": { - "$ref": "#/definitions/ReadReceipt" - }, - "readOnly": true - }, - "nextLink": { - "description": "If there are more read receipts that can be retrieved, the next link will be populated.", - "type": "string", - "readOnly": true - } - } - }, - "Error": { - "type": "object", - "properties": { - "code": { - "type": "string", - "readOnly": true - }, - "message": { - "type": "string", - "readOnly": true - }, - "target": { - "type": "string", - "readOnly": true - }, - "innerErrors": { - "type": "array", - "items": { - "$ref": "#/definitions/Error" - }, - "readOnly": true - } - } - }, - "SendReadReceiptRequest": { - "description": "Request payload for sending a read receipt.", - "required": [ - "chatMessageId" - ], - "type": "object", - "properties": { - "chatMessageId": { - "description": "Id of the latest chat message read by the user.", - "type": "string", - "example": "1592435762364" - } - } - }, - "ChatMessagePriority": { - "description": "The chat message priority.", - "enum": [ - "Normal", - "High" - ], - "type": "string", - "x-ms-enum": { - "name": "ChatMessagePriority", - "modelAsString": true - } - }, - "SendChatMessageRequest": { - "description": "Details of the message to send.", - "required": [ - "content" - ], - "type": "object", - "properties": { - "priority": { - "$ref": "#/definitions/ChatMessagePriority" - }, - "content": { - "description": "Chat message content.", - "type": "string", - "example": "Come one guys, lets go for lunch together." - }, - "senderDisplayName": { - "description": "The display name of the chat message sender. This property is used to populate sender name for push notifications.", - "type": "string", - "example": "Bob Admin" - } - } - }, - "SendChatMessageResult": { - "description": "Result of the send message operation.", - "type": "object", - "properties": { - "id": { - "description": "A server-generated message id.", - "type": "string", - "readOnly": true, - "example": "123456789" - } - } - }, - "ChatMessage": { - "type": "object", - "properties": { - "id": { - "description": "The id of the chat message. This id is server generated.", - "type": "string", - "readOnly": true, - "example": "123456789" - }, - "type": { - "description": "Type of the chat message.\r\n \r\nPossible values:\r\n - Text\r\n - ThreadActivity/TopicUpdate\r\n - ThreadActivity/AddMember\r\n - ThreadActivity/DeleteMember", - "type": "string", - "example": "Text" - }, - "priority": { - "$ref": "#/definitions/ChatMessagePriority" - }, - "version": { - "description": "Version of the chat message.", - "type": "string", - "readOnly": true - }, - "content": { - "description": "Content of the chat message.", - "type": "string", - "example": "Come one guys, lets go for lunch together." - }, - "senderDisplayName": { - "description": "The display name of the chat message sender. This property is used to populate sender name for push notifications.", - "type": "string", - "example": "Jane" - }, - "createdOn": { - "format": "date-time", - "description": "The timestamp when the chat message arrived at the server. The timestamp is in ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`.", - "type": "string", - "readOnly": true, - "example": "2020-10-30T10:50:50Z" - }, - "senderId": { - "description": "The id of the chat message sender.", - "type": "string", - "readOnly": true, - "example": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" - }, - "deletedOn": { - "format": "date-time", - "description": "The timestamp when the chat message was deleted. The timestamp is in ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`.", - "type": "string", - "example": "2020-10-30T10:50:50Z" - }, - "editedOn": { - "format": "date-time", - "description": "The timestamp when the chat message was edited. The timestamp is in ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`.", - "type": "string", - "example": "2020-10-30T10:50:50Z" - } - } - }, - "ChatMessagesCollection": { - "description": "Collection of chat messages for a particular chat thread.", - "type": "object", - "properties": { - "value": { - "description": "Collection of chat messages.", - "type": "array", - "items": { - "$ref": "#/definitions/ChatMessage" - }, - "readOnly": true - }, - "nextLink": { - "description": "If there are more chat messages that can be retrieved, the next link will be populated.", - "type": "string", - "readOnly": true - } - } - }, - "UpdateChatMessageRequest": { - "type": "object", - "properties": { - "content": { - "description": "Chat message content.", - "type": "string", - "example": "Let's go for lunch together." - }, - "priority": { - "$ref": "#/definitions/ChatMessagePriority" - } - } - }, - "ChatThreadMember": { - "description": "A member of the chat thread.", - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "description": "The id of the chat thread member in the format `8:acs:ResourceId_AcsUserId`.", - "type": "string", - "example": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" - }, - "displayName": { - "description": "Display name for the chat thread member.", - "type": "string", - "example": "Bob" - }, - "shareHistoryTime": { - "format": "date-time", - "description": "Time from which the chat history is shared with the member. The timestamp is in ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`.", - "type": "string", - "example": "2020-10-30T10:50:50Z" - } - } - }, - "ChatThreadMembersCollection": { - "description": "Collection of thread members belong to a particular thread.", - "type": "object", - "properties": { - "value": { - "description": "Chat thread members.", - "type": "array", - "items": { - "$ref": "#/definitions/ChatThreadMember" - } - }, - "nextLink": { - "description": "If there are more chat threads that can be retrieved, the next link will be populated.", - "type": "string", - "readOnly": true - } - } - }, - "AddChatThreadMembersRequest": { - "description": "Thread members to be added to the thread.", - "required": [ - "members" - ], - "type": "object", - "properties": { - "members": { - "description": "Members to add to a chat thread.", - "type": "array", - "items": { - "$ref": "#/definitions/ChatThreadMember" - } - } - } - }, - "CreateChatThreadRequest": { - "description": "Request payload for creating a chat thread.", - "required": [ - "members", - "topic" - ], - "type": "object", - "properties": { - "topic": { - "description": "The chat thread topic.", - "type": "string", - "example": "Lunch Thread" - }, - "members": { - "description": "Members to be added to the chat thread.", - "type": "array", - "items": { - "$ref": "#/definitions/ChatThreadMember" - } - } - } - }, - "IndividualStatusResponse": { - "type": "object", - "properties": { - "id": { - "description": "Identifies the resource to which the individual status corresponds.", - "type": "string", - "readOnly": true - }, - "statusCode": { - "format": "int32", - "description": "The status code of the resource operation.\r\n \r\nPossible values include:\r\n 200 for a successful update or delete,\r\n 201 for successful creation,\r\n 400 for a malformed input,\r\n 403 for lacking permission to execute the operation,\r\n 404 for resource not found.", - "type": "integer", - "readOnly": true - }, - "message": { - "description": "The message explaining why the operation failed for the resource identified by the key; null if the operation succeeded.", - "type": "string", - "readOnly": true - }, - "type": { - "description": "Identifies the type of the resource to which the individual status corresponds.", - "type": "string", - "readOnly": true - } - } - }, - "MultiStatusResponse": { - "type": "object", - "properties": { - "multipleStatus": { - "description": "The list of status information for each resource in the request.", - "type": "array", - "items": { - "$ref": "#/definitions/IndividualStatusResponse" - }, - "readOnly": true - } - } - }, - "ChatThreadInfo": { - "type": "object", - "properties": { - "id": { - "description": "Chat thread id.", - "type": "string", - "readOnly": true, - "example": "19:uni01_uy5ucb66ugp3lrhe7pxso6xx4hsmm3dl6eyjfefv2n6x3rrurpea@thread.v2" - }, - "topic": { - "description": "Chat thread topic.", - "type": "string", - "example": "Lunch Chat thread" - }, - "isDeleted": { - "description": "Flag if a chat thread is soft deleted.", - "type": "boolean", - "example": false - }, - "lastMessageReceivedOn": { - "format": "date-time", - "description": "The timestamp when the last message arrived at the server. The timestamp is in ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`.", - "type": "string", - "readOnly": true, - "example": "2020-10-30T10:50:50Z" - } - } - }, - "ChatThreadsInfoCollection": { - "description": "Collection of chat threads.", - "type": "object", - "properties": { - "value": { - "description": "Collection of chat threads.", - "type": "array", - "items": { - "$ref": "#/definitions/ChatThreadInfo" - }, - "readOnly": true - }, - "nextLink": { - "description": "If there are more chat threads that can be retrieved, the next link will be populated.", - "type": "string", - "readOnly": true - } - } - }, - "UpdateChatThreadRequest": { - "type": "object", - "properties": { - "topic": { - "description": "Chat thread topic.", - "type": "string", - "example": "Lunch Thread" - } - } - }, - "ChatThread": { - "type": "object", - "properties": { - "id": { - "description": "Chat thread id.", - "type": "string", - "readOnly": true, - "example": "19:uni01_uy5ucb66ugp3lrhe7pxso6xx4hsmm3dl6eyjfefv2n6x3rrurpea@thread.v2" - }, - "topic": { - "description": "Chat thread topic.", - "type": "string", - "example": "Lunch Chat thread" - }, - "createdOn": { - "format": "date-time", - "description": "The timestamp when the chat thread was created. The timestamp is in ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`.", - "type": "string", - "readOnly": true, - "example": "2020-10-30T10:50:50Z" - }, - "createdBy": { - "description": "Id of the chat thread owner.", - "type": "string", - "readOnly": true, - "example": "8:acs:8540c0de-899f-5cce-acb5-3ec493af3800_0e59221d-0c1d-46ae-9544-c963ce56c10b" - }, - "members": { - "description": "Chat thread members.", - "type": "array", - "items": { - "$ref": "#/definitions/ChatThreadMember" - } - } - } - }, - "CommunicationIdentifierModel": { - "description": "Test", - "required": [ - "kind" - ], - "type": "object", - "properties": { - "kind": { - "description": "Test", - "type": "string" - }, - "id": { - "description": "Test", - "type": "string" - }, - "phoneNumber": { - "description": "Test", - "type": "string" - }, - "isAnonymous": { - "description": "Test", - "type": "boolean" - }, - "microsoftTeamsUserId": { - "description": "Test", - "type": "string" - } - } - } - }, - "parameters": { - "ApiVersionParameter": { - "in": "query", - "name": "api-version", - "description": "Version of API to invoke.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "Endpoint": { - "in": "path", - "name": "endpoint", - "description": "The endpoint of the Azure Communication resource.", - "required": true, - "type": "string", - "x-ms-skip-url-encoding": true, - "x-ms-parameter-location": "client" - } - }, - "securityDefinitions": { - "Authorization": { - "type": "apiKey", - "name": "Authorization", - "in": "header", - "description": "An ACS (Azure Communication Services) user access token." - } - }, - "security": [ - { - "Authorization": [] - } - ], - "x-ms-parameterized-host": { - "hostTemplate": "{endpoint}", - "useSchemePrefix": false, - "parameters": [ - { - "$ref": "#/parameters/Endpoint" - } - ] - } -} \ No newline at end of file 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 66b4e598a972..53597211f34c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:49:38 GMT + - Mon, 01 Feb 2021 23:05:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:49:30 GMT + - Mon, 01 Feb 2021 23:05:49 GMT ms-cv: - - eukGcoVkYEmfXdtkWEUg0g.0 + - ZnvUuj0XsUmdCSvrKAuq/Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 31ms + - 83ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:49:38 GMT + - Mon, 01 Feb 2021 23:05:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:30.7693795+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:05:49.906379+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:31 GMT + - Mon, 01 Feb 2021 23:05:50 GMT ms-cv: - - u2xSnBCYQE655AuC6QnwpQ.0 + - cCElD8gOXkyn78SC7PR2xA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 396ms + - 133ms status: code: 200 message: OK @@ -93,29 +93,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - bbcbf9e3-1ae0-4b59-88c9-ec901af331fb + - ee5399fe-a8b4-4f81-b022-eb5271820855 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:1DwYpmFor6fm6d9B-KPvnaKt1GDCbGkphgtJGLw6qMY1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:05:51Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffb9-ff5a-1655-373a0d0025bf"}}' 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:32 GMT + - Mon, 01 Feb 2021 23:05:52 GMT ms-cv: - - R7bKGjS8/k+JE42B60EOog.0 + - TO71ajX/1EiaJuJJQ5vqJw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 893ms + - 1318ms status: code: 201 message: Created @@ -131,9 +131,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:49:40 GMT + - Mon, 01 Feb 2021 23:05:53 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -145,13 +145,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:49:50 GMT + - Mon, 01 Feb 2021 23:06:09 GMT ms-cv: - - XeAFOGi6ekWnSQIx1h0/AA.0 + - w8dY644PGkyY7+bBkOXYHQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 17266ms + - 16808ms status: code: 204 message: No Content @@ -167,7 +167,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -177,13 +177,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:49:50 GMT + - Mon, 01 Feb 2021 23:06:09 GMT ms-cv: - - 5OlQtreslE2aOWfVcItihQ.0 + - qsobGe1ye0iPmeq6xTNEXA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 336ms + - 345ms 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 index c4dce1a648f2..d6ea61b26cd2 100644 --- 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 @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:49:57 GMT + - Mon, 01 Feb 2021 23:06:10 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:49:50 GMT + - Mon, 01 Feb 2021 23:06:09 GMT ms-cv: - - zDUF04rBW06wXDZbRnQkJg.0 + - 8aH3ZE1jlUSY/zW87XGWVg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 25ms + - 36ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:49:58 GMT + - Mon, 01 Feb 2021 23:06:10 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:06:09.4122919+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 + - Mon, 01 Feb 2021 23:06:09 GMT ms-cv: - - hRTH3IzaFEiWpvzp5CFQRg.0 + - FlQlge6m9E699iT/tDaOfQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 90ms + - 314ms status: code: 200 message: OK @@ -93,29 +93,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - b4ad9002-fcd8-4bd6-bcda-7aad8800023e + - 3226b945-d88e-4c7e-abee-7468608ec067 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"}}' + body: '{"chatThread": {"id": "19:x5mqfZ2VXhexu1xRl38J_IthJWFc78uWfSJ7_fQ49qs1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:06:10Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffba-4adc-1db7-3a3a0d002ba2"}}' 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 + - Mon, 01 Feb 2021 23:06:10 GMT ms-cv: - - HjbSYFRn8EypIAycGp5DpA.0 + - BQidqaje0kytcwLvtImyhw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 836ms + - 913ms status: code: 201 message: Created @@ -129,33 +129,33 @@ interactions: Connection: - keep-alive 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) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - b4ad9002-fcd8-4bd6-bcda-7aad8800023e + - 3226b945-d88e-4c7e-abee-7468608ec067 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"}}' + body: '{"chatThread": {"id": "19:x5mqfZ2VXhexu1xRl38J_IthJWFc78uWfSJ7_fQ49qs1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:06:10Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffba-4adc-1db7-3a3a0d002ba2"}}' 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 + - Mon, 01 Feb 2021 23:06:11 GMT ms-cv: - - Txo39R+aYE6I96Ah86mcfw.0 + - QzgDF9PqIUOb1VmJ/WDwBQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 689ms + - 731ms status: code: 201 message: Created @@ -171,9 +171,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:50:00 GMT + - Mon, 01 Feb 2021 23:06:13 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -185,13 +185,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:50:08 GMT + - Mon, 01 Feb 2021 23:06:28 GMT ms-cv: - - Y2vDciG+VkekxRbCdkRuxw.0 + - HRni64wz5EG6rPYVVX/BvA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16146ms + - 16015ms status: code: 204 message: No Content @@ -207,7 +207,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -217,13 +217,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:50:08 GMT + - Mon, 01 Feb 2021 23:06:27 GMT ms-cv: - - R5DfLqXb2Ey7D8AuVsYBNQ.0 + - 9/q+DwwLaky0HTNC9m/YSw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 331ms + - 313ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml index f419cfd11136..d41a415a6555 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:50:16 GMT + - Mon, 01 Feb 2021 23:06:29 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:50:09 GMT + - Mon, 01 Feb 2021 23:06:28 GMT ms-cv: - - KCsUg8EJV0us6s8KZZWmWw.0 + - +o8WsDMOs0uqL5EJG1EhCA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 29ms + - 269ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:50:17 GMT + - Mon, 01 Feb 2021 23:06:30 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:50:08.8686514+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:06:28.6577603+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:50:09 GMT + - Mon, 01 Feb 2021 23:06:29 GMT ms-cv: - - JlHKkjOyrEeM+Ko8SUu8oA.0 + - NXs+b7gabkGQbpFj6Ob9jw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 98ms + - 162ms status: code: 200 message: OK @@ -93,29 +93,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 33856f9d-9d59-4355-93be-1d43338f5c66 + - e249507a-f040-419b-b197-3e2585182bc0 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:j9pZbUVFcG0UIKClamuE8fPBzDr7o2szKbPsuRRuH6M1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:06:30Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffba-95de-1655-373a0d0025c3"}}' 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:50:10 GMT + - Mon, 01 Feb 2021 23:06:30 GMT ms-cv: - - ZuUMdoVjHEC16ePDRJU0QQ.0 + - OtyGkQBz0k+TjFJiC9qciw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 892ms + - 919ms status: code: 201 message: Created @@ -131,7 +131,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -141,13 +141,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:50:11 GMT + - Mon, 01 Feb 2021 23:06:31 GMT ms-cv: - - oaWQpHK7q0OmL8SHVi2FRw.0 + - mQ+gq8vICEGXJsrvlW4nNw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 336ms + - 338ms status: code: 204 message: No Content @@ -163,9 +163,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:50:18 GMT + - Mon, 01 Feb 2021 23:06:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -177,13 +177,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:50:26 GMT + - Mon, 01 Feb 2021 23:06:47 GMT ms-cv: - - 00Zq+VAZB0KRGOod9+gQrA.0 + - jgtU2RpRuECz0gcDM385Lw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16144ms + - 16385ms status: code: 204 message: No Content @@ -199,7 +199,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -209,13 +209,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:50:27 GMT + - Mon, 01 Feb 2021 23:06:47 GMT ms-cv: - - /oZeg1TTjEy4n9i4yWBrxQ.0 + - vXn1GQn/UkO+84loyHanjQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 281ms + - 262ms 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 61c963cdf98e..1dcfd729d18e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:50:35 GMT + - Mon, 01 Feb 2021 23:06:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:50:27 GMT + - Mon, 01 Feb 2021 23:06:47 GMT ms-cv: - - aEHikcTgskqXOXYraFI7fg.0 + - UQWpMrfQB0uptNVSVeWXWg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 19ms + - 76ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:50:35 GMT + - Mon, 01 Feb 2021 23:06:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:50:27.3065677+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:06:47.4035307+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:50:27 GMT + - Mon, 01 Feb 2021 23:06:47 GMT ms-cv: - - 2VOqmj5Hf0+Iyw3Ui1Dpvg.0 + - tOyEJ/wQQE6lS3vi6YLgkg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 83ms + - 96ms status: code: 200 message: OK @@ -93,29 +93,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 4eb0ddb5-6a06-40e9-88f0-45806d6530a3 + - 8967dc15-d604-4257-bb87-44d8058b01a6 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:iAnuf61IaCSlEJsC8O3VbYqM-AMHX8L_wUgpMocRTHs1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:06:48Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffba-e02e-9c58-373a0d002dd6"}}' 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:50:28 GMT + - Mon, 01 Feb 2021 23:06:48 GMT ms-cv: - - N1pPCjXHvUqUyuUgc6yZsw.0 + - /X7nkGa+NUmOrDElQS1Bvw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 892ms + - 899ms status: code: 201 message: Created @@ -129,11 +129,11 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) 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-28T02:50:28Z", + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-02-01T23:06:48Z", "createdBy": "sanitized"}' headers: api-supported-versions: @@ -141,15 +141,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:50:28 GMT + - Mon, 01 Feb 2021 23:06:49 GMT ms-cv: - - CIgG12mXeEWHMAXvLl4x+w.0 + - LLJhSl5tYEaCJ4F/58GCqQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 257ms + - 264ms status: code: 200 message: OK @@ -165,9 +165,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:50:36 GMT + - Mon, 01 Feb 2021 23:06:50 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -179,13 +179,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:50:45 GMT + - Mon, 01 Feb 2021 23:07:05 GMT ms-cv: - - QnoqW+RreEa8NPq3ko8U3Q.0 + - xsILKS7K+0yTmDu48f13FQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16463ms + - 16893ms status: code: 204 message: No Content @@ -201,7 +201,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -211,13 +211,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:50:46 GMT + - Mon, 01 Feb 2021 23:07:06 GMT ms-cv: - - fdsMOibpO0SIVhU9uYG+Lg.0 + - RtDlEf0Z3k6b2K0CyU/63Q.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 329ms + - 310ms 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 2c6cea7ceb42..3b1b97458bd3 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:50:53 GMT + - Mon, 01 Feb 2021 23:07:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:50:46 GMT + - Mon, 01 Feb 2021 23:07:06 GMT ms-cv: - - RbulWIkRWEukIdYD+b1iAw.0 + - ZU5arxpcBkuN+tm5herHCg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 29ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:50:54 GMT + - Mon, 01 Feb 2021 23:07:08 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:50:46.1560369+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:07:06.4449462+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:50:46 GMT + - Mon, 01 Feb 2021 23:07:06 GMT ms-cv: - - oAxrYt+5mUylH4Ialsi/Dg.0 + - lzLWBxG1nEeff221x5eFDQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 86ms + - 100ms status: code: 200 message: OK @@ -93,29 +93,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 412b94b6-1de3-47ad-a5b8-5390fd438e53 + - c6bb2f2d-0896-4cb7-86b5-00d9d5761055 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:Uiuh6FNzmfVS0c2HNkr_QCX0gEk1FFjcr-zn-VrTnhc1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:07:07Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbb-2aa0-1db7-3a3a0d002ba6"}}' 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:50:48 GMT + - Mon, 01 Feb 2021 23:07:08 GMT ms-cv: - - Crbg/kTJhEKp9hjQgeu6FA.0 + - U0QyAn/ugU6H0ZxvqbdNDg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 840ms + - 862ms status: code: 201 message: Created @@ -131,9 +131,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:50:55 GMT + - Mon, 01 Feb 2021 23:07:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -145,13 +145,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:51:04 GMT + - Mon, 01 Feb 2021 23:07:25 GMT ms-cv: - - PPm6vxi5hkOZOgy+tCivlg.0 + - XHNTij4AikOzSly2DQRMZg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16446ms + - 16828ms status: code: 204 message: No Content @@ -167,7 +167,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -177,13 +177,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:51:04 GMT + - Mon, 01 Feb 2021 23:07:25 GMT ms-cv: - - w2JkgMRDs0OwWI3jweIgXg.0 + - GrF9Je9SjE+2uzKFZKSfRg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 332ms + - 303ms 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 d130ba08102d..6040674e2923 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:51:12 GMT + - Mon, 01 Feb 2021 23:07:26 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:51:04 GMT + - Mon, 01 Feb 2021 23:07:25 GMT ms-cv: - - gw7WjpjzqEefrk1egF7q0w.0 + - ZBImGh7ZAESko20q+2GvXg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 39ms + - 23ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:51:12 GMT + - Mon, 01 Feb 2021 23:07:26 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:04.5496712+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:07:25.0879986+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:05 GMT + - Mon, 01 Feb 2021 23:07:25 GMT ms-cv: - - l1Kz0MoRkECsVD2/sHOzrQ.0 + - 31MYXxPAMEexuRXuhapk4w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 171ms + - 102ms status: code: 200 message: OK @@ -93,29 +93,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - f489f982-a0cb-4ab5-bcfc-256151673fb5 + - ca9c6cf2-f753-45b3-9a76-d7d86a6f318f method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:bl8DP2LGHPRhk7ZPZ9GAlUpS4szKweh-3VPudlijLUg1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:07:26Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbb-7371-1655-373a0d0025c4"}}' 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:05 GMT + - Mon, 01 Feb 2021 23:07:27 GMT ms-cv: - - RG/KNbpkAUe7yvRLw/s3sw.0 + - VqZOxX2c4kqTFVEHLa77Fw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 893ms + - 1038ms status: code: 201 message: Created @@ -129,7 +129,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 response: @@ -140,15 +140,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:51:09 GMT + - Mon, 01 Feb 2021 23:07:29 GMT ms-cv: - - M4H+kfmfiU2S785/gPJKbQ.0 + - gFdW35Os30Guz6FRRnR6Qg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 407ms + - 325ms status: code: 200 message: OK @@ -164,9 +164,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:51:16 GMT + - Mon, 01 Feb 2021 23:07:30 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -178,13 +178,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:51:24 GMT + - Mon, 01 Feb 2021 23:07:45 GMT ms-cv: - - 6rBZ1c1fUkWY+QvQubD6kg.0 + - tZLG0lJIv0C4eg3da882Bw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15854ms + - 16461ms status: code: 204 message: No Content @@ -200,7 +200,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -210,13 +210,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:51:25 GMT + - Mon, 01 Feb 2021 23:07:46 GMT ms-cv: - - +ZjV6MInN0yXwiGymfcQlw.0 + - YuU0xKQrIU6+YkzfDMRpgQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 341ms + - 303ms 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 b4f5d8f8a937..d42052238e76 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:51:32 GMT + - Mon, 01 Feb 2021 23:07:47 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:51:25 GMT + - Mon, 01 Feb 2021 23:07:46 GMT ms-cv: - - +ghOK2wpokS63Na/0ZOgGA.0 + - J++BLQqKNkWICPCA+9xZ5A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 30ms + - 46ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:51:33 GMT + - Mon, 01 Feb 2021 23:07:47 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:24.0655917+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:07:47.0289732+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:25 GMT + - Mon, 01 Feb 2021 23:07:47 GMT ms-cv: - - 1LRFyK6OckeH0TGGm7X37A.0 + - 5pAZRPWRe0i48Hg8Jb+jrQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 88ms + - 926ms status: code: 200 message: OK @@ -89,22 +89,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 390f9edc-89eb-4df4-9096-417ea1d303b1 + - 3d1ef516-d70b-44ca-9923-fbb0a98f85ce method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:yt2KMiiytdERIiWZQFH0bAjzO6rOwAPinaLi0mrDGb01@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:07:48Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbb-c5cc-b0b7-3a3a0d002fc4"}}' 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:26 GMT - ms-cv: XIU0BBtCQkiBDfKY/IEujg.0 + date: Mon, 01 Feb 2021 23:07:48 GMT + ms-cv: mJTbpNZw80uaQIaKPqktTw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 882ms + x-processing-time: 851ms status: code: 201 message: Created @@ -115,7 +115,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -123,10 +123,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:07:48 GMT + ms-cv: gVvHOsLZu0K6aBGua2aZbQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 333ms + x-processing-time: 298ms status: code: 204 message: No Content @@ -143,9 +143,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:51:34 GMT + - Mon, 01 Feb 2021 23:07:50 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -157,13 +157,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:51:42 GMT + - Mon, 01 Feb 2021 23:08:04 GMT ms-cv: - - iiTtYNaG8UikgSvLSWBDtQ.0 + - QCpe+2PiPE2cp9pwMDjx+w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15757ms + - 16313ms 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 index 0e34c42090cc..0c3d8a323d7a 100644 --- 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 @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:51:50 GMT + - Mon, 01 Feb 2021 23:08:06 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:51:42 GMT + - Mon, 01 Feb 2021 23:08:05 GMT ms-cv: - - ePcKaHxqu0ijfBRZ4F/bfA.0 + - BmO2rJliKkacnw64wuz7Qg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 19ms + - 31ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:51:50 GMT + - Mon, 01 Feb 2021 23:08:06 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:08:05.2241522+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 + - Mon, 01 Feb 2021 23:08:05 GMT ms-cv: - - RWPqYTcIVU+4lOEGm76IVw.0 + - lXr3PgaBu0ukIDdpT998MQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 83ms + - 109ms status: code: 200 message: OK @@ -89,22 +89,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - e170ca1e-cc43-4168-ad12-1a9437ece904 + - d22a1da5-d171-48c2-b7cb-b4454a7213dd 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"}}' + body: '{"chatThread": {"id": "19:pxayKUZkmv_fcL_6rAq9aBuZpsJDHOxMmT6t0uTv8pU1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:08:06Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbc-101f-1655-373a0d0025c6"}}' 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 + date: Mon, 01 Feb 2021 23:08:07 GMT + ms-cv: Z6uZ+gz1OkmUVgLK+F5oUw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 914ms + x-processing-time: 845ms status: code: 201 message: Created @@ -119,22 +119,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - e170ca1e-cc43-4168-ad12-1a9437ece904 + - d22a1da5-d171-48c2-b7cb-b4454a7213dd 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"}}' + body: '{"chatThread": {"id": "19:pxayKUZkmv_fcL_6rAq9aBuZpsJDHOxMmT6t0uTv8pU1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:08:06Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbc-101f-1655-373a0d0025c6"}}' 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 + date: Mon, 01 Feb 2021 23:08:07 GMT + ms-cv: 2HnWsHW3e0O7piyoPIQ+hw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 665ms + x-processing-time: 668ms status: code: 201 message: Created @@ -145,7 +145,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -153,10 +153,10 @@ interactions: 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 + date: Mon, 01 Feb 2021 23:08:08 GMT + ms-cv: sTmUo3kaV0KXVzuFhaOF6g.0 strict-transport-security: max-age=2592000 - x-processing-time: 341ms + x-processing-time: 295ms status: code: 204 message: No Content @@ -173,9 +173,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:51:53 GMT + - Mon, 01 Feb 2021 23:08:09 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -187,13 +187,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:52:01 GMT + - Mon, 01 Feb 2021 23:08:23 GMT ms-cv: - - FbSkj5Qt7USkz5MCQU332Q.0 + - 6qXDz5fHa0yRI9HIVUTylQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15853ms + - 15711ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml index 834a632f29ae..7aed4a167227 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:52:09 GMT + - Mon, 01 Feb 2021 23:08:25 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:52:01 GMT + - Mon, 01 Feb 2021 23:08:24 GMT ms-cv: - - ChT/AzqJAEWV5bJDCIxZrg.0 + - AmpnCZx48EeezdIwB3zhpg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 20ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:52:09 GMT + - Mon, 01 Feb 2021 23:08:25 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:52:01.2809248+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:08:23.5482813+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:52:02 GMT + - Mon, 01 Feb 2021 23:08:24 GMT ms-cv: - - L/qkiURqh06HvntvqEb9SA.0 + - T5Q0LnhnQ0mohxkku8vP7A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 185ms + - 99ms status: code: 200 message: OK @@ -85,26 +85,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) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - bc4ef5a4-6d85-4c30-ba1d-44d861476a5d + - 16c202bb-5dd3-4daf-b26b-b63f9aa04882 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:d7OEHcAwW1jzyloZ0VWwSrhuUVhBbQmt_ywPGPE9RLc1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:08:24Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbc-57cb-1655-373a0d0025c7"}}' 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:52:03 GMT - ms-cv: UtX30cVAdEqDd3iyhf1W0A.0 + date: Mon, 01 Feb 2021 23:08:25 GMT + ms-cv: lgrgiV1N4k6IBhGbDZcUlQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 913ms + x-processing-time: 1153ms status: code: 201 message: Created @@ -115,7 +115,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -123,10 +123,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:08:25 GMT + ms-cv: kcGpQt5nZUKT0JqV1KNlog.0 strict-transport-security: max-age=2592000 - x-processing-time: 346ms + x-processing-time: 288ms status: code: 204 message: No Content @@ -137,7 +137,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -145,10 +145,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:08:26 GMT + ms-cv: eJfhBClL/0OOCTRfYO+rPQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 287ms + x-processing-time: 259ms status: code: 204 message: No Content @@ -165,9 +165,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:52:11 GMT + - Mon, 01 Feb 2021 23:08:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -179,13 +179,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:52:19 GMT + - Mon, 01 Feb 2021 23:08:42 GMT ms-cv: - - ssk8hjO9PUK/wPVhTVCS+A.0 + - A5I5fzDO+0uC5mmCzYlPSg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16065ms + - 16432ms 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 7daca206175e..80c0f4e673ab 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:52:27 GMT + - Mon, 01 Feb 2021 23:08:43 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:52:19 GMT + - Mon, 01 Feb 2021 23:08:43 GMT ms-cv: - - oDWwu3e2zkO/MHLow7SRlw.0 + - N2xJrSbqm0KEwZJcYEFSKw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 35ms + - 21ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:52:27 GMT + - Mon, 01 Feb 2021 23:08:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:52:19.6111708+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:08:42.3776314+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:52:19 GMT + - Mon, 01 Feb 2021 23:08:43 GMT ms-cv: - - ONiGgkOlek2mqwv1Gd9NhA.0 + - SauqYXgsqUGA1REpr0qJ/Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 99ms + - 106ms status: code: 200 message: OK @@ -89,22 +89,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 324f1bb5-1d60-4eaf-bfa3-4892e5a17476 + - 51e80716-553e-416f-ab88-ca2ae1385f19 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:EQXoydWlPLxGgkYqZp4tqWuhxAwLbEnnf2E_h58XqtQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:08:44Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbc-a155-9c58-373a0d002dd8"}}' 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:52:21 GMT - ms-cv: vpymEbR/p0iKvMQBYB546g.0 + date: Mon, 01 Feb 2021 23:08:45 GMT + ms-cv: OVJtV5UbHE2/2zFrj6wpQA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 912ms + x-processing-time: 1616ms status: code: 201 message: Created @@ -115,17 +115,17 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) 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-28T02:52:20Z", + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-02-01T23:08:44Z", "createdBy": "sanitized"}' 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:52:21 GMT - ms-cv: 7tD7G1PoF0qslALD3T/sFg.0 + date: Mon, 01 Feb 2021 23:08:45 GMT + ms-cv: WA+vAGOIwUWpGifBnrlzsA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked x-processing-time: 257ms @@ -139,7 +139,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -147,10 +147,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:08:46 GMT + ms-cv: jBgMdj97NUePvbeakFOeJg.0 strict-transport-security: max-age=2592000 - x-processing-time: 287ms + x-processing-time: 298ms status: code: 204 message: No Content @@ -167,9 +167,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:52:29 GMT + - Mon, 01 Feb 2021 23:08:47 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -181,13 +181,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:52:38 GMT + - Mon, 01 Feb 2021 23:09:01 GMT ms-cv: - - BIGXlc+wuUOP5nx4mqmOoQ.0 + - T9QT5+k0kka/dj9zVpdDiA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16842ms + - 15968ms 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 acd260559c7f..0d5423613171 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:52:46 GMT + - Mon, 01 Feb 2021 23:09:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:52:38 GMT + - Mon, 01 Feb 2021 23:09:02 GMT ms-cv: - - cbRBcgjlVEm04lbdicbfpg.0 + - YM8icpnay0K7KP/XVMKYDA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 27ms + - 70ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:52:46 GMT + - Mon, 01 Feb 2021 23:09:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:52:38.6380296+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:09:01.7993412+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:52:38 GMT + - Mon, 01 Feb 2021 23:09:02 GMT ms-cv: - - UP6/1NKgMUOz0xsMHVW01w.0 + - AsBe+PS7pkSntXxIXRC3dw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 136ms + - 102ms status: code: 200 message: OK @@ -85,26 +85,26 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '203' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 79e62744-60ff-4e3e-a409-a3f811650d93 + - 94e5888e-3f56-4368-ab96-048141497269 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:Sk-2ikAf1aYAs5MIdC2t_ErQdkR5_lMEEca7q57mY4s1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:09:03Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbc-ed34-1655-373a0d0025c8"}}' 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:52:39 GMT - ms-cv: ozGcDv1SaEOSTBhDQ/n+Fw.0 + date: Mon, 01 Feb 2021 23:09:03 GMT + ms-cv: EdWDWRBkg0mOtjPozclZOA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 830ms + x-processing-time: 1101ms status: code: 201 message: Created @@ -115,7 +115,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -123,10 +123,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:09:04 GMT + ms-cv: AtFPBYlxXUuxBgHl/KzW0w.0 strict-transport-security: max-age=2592000 - x-processing-time: 288ms + x-processing-time: 298ms status: code: 204 message: No Content @@ -143,9 +143,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:52:48 GMT + - Mon, 01 Feb 2021 23:09:05 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -157,13 +157,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:52:56 GMT + - Mon, 01 Feb 2021 23:09:20 GMT ms-cv: - - M0BclhX8G0CedgrKpX7Csg.0 + - 4bLlDL2gOEy1RxPNZZQJFA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15772ms + - 16561ms 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 21279ecfdf26..46a1988cb526 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:53:04 GMT + - Mon, 01 Feb 2021 23:09:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:52:56 GMT + - Mon, 01 Feb 2021 23:09:20 GMT ms-cv: - - uHYuLL6Xn0O2DCve3/Ln7w.0 + - 2ytELSchtUOns4PQf5VYpg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 19ms + - 24ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:53:04 GMT + - Mon, 01 Feb 2021 23:09:22 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:52:56.1438292+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:09:20.4937887+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:52:57 GMT + - Mon, 01 Feb 2021 23:09:20 GMT ms-cv: - - ElbjBDEfR0i5EYbCcsze1g.0 + - 2+VKkuNu7ECuTx736cL1mg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 88ms + - 93ms status: code: 200 message: OK @@ -89,22 +89,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 4e41686d-249a-42b1-b1b3-2eeac55c0d6d + - 6476c094-a85d-48b1-abbf-698215352a79 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:BRQy_EyPZ9vT_-b0HaF9oeQBo3yzuo8CzWuAfziqakU1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:09:22Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbd-3640-1655-373a0d0025cb"}}' 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:52:57 GMT - ms-cv: +oWO0a0CqkyhR0jKMqooRg.0 + date: Mon, 01 Feb 2021 23:09:22 GMT + ms-cv: Ckm0ytRMXEmyDhevDxPr3Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 838ms + x-processing-time: 1296ms status: code: 201 message: Created @@ -115,7 +115,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads?maxPageSize=1&api-version=2020-11-01-preview3 response: @@ -123,11 +123,11 @@ interactions: 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:52:59 GMT - ms-cv: QciBxBXKmUC3hM7eUACvyQ.0 + date: Mon, 01 Feb 2021 23:09:24 GMT + ms-cv: zE0P4+XPxkCOPdXe7HaI2w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 400ms + x-processing-time: 327ms status: code: 200 message: OK @@ -138,7 +138,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -146,10 +146,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:09:24 GMT + ms-cv: IEQc0iCyH0O6clHor+VS2A.0 strict-transport-security: max-age=2592000 - x-processing-time: 324ms + x-processing-time: 293ms status: code: 204 message: No Content @@ -166,9 +166,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:53:08 GMT + - Mon, 01 Feb 2021 23:09:26 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -180,13 +180,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:53:16 GMT + - Mon, 01 Feb 2021 23:09:41 GMT ms-cv: - - eBnKTKg/o0SpGJpiihit+g.0 + - 5tsI71dnaUim68qiB9QwjQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16288ms + - 16117ms 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 15b4eb6680db..11cd2528dab9 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:53:24 GMT + - Mon, 01 Feb 2021 23:09:42 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:53:17 GMT + - Mon, 01 Feb 2021 23:09:42 GMT ms-cv: - - nuTSb61btkKC0541ce1FDA.0 + - 2c7RaiilYEKo/QBxlOa6/A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 85ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:53:24 GMT + - Mon, 01 Feb 2021 23:09:43 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:53:16.7796221+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:09:41.4212749+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:53:17 GMT + - Mon, 01 Feb 2021 23:09:42 GMT ms-cv: - - EkGxbJGztkWuQRfelOvbPQ.0 + - 1havVHtCV0yHbpuESV588Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 100ms + - 99ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:53:25 GMT + - Mon, 01 Feb 2021 23:09:43 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:53:17 GMT + - Mon, 01 Feb 2021 23:09:42 GMT ms-cv: - - DradkXTBcEWxGyrjpbgHeg.0 + - /M2sVMEVAUWnORXdkKQOXw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 24ms + - 18ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:53:25 GMT + - Mon, 01 Feb 2021 23:09:43 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:53:17.0112305+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:09:41.6322038+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:53:17 GMT + - Mon, 01 Feb 2021 23:09:42 GMT ms-cv: - - FVzu6cw5QUOLpJjOOH80LQ.0 + - KTOc0xa2fkGcuoYlBMXEvA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 100ms + - 87ms status: code: 200 message: OK @@ -173,29 +173,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 56090ed0-6190-446c-8f6b-649fd4a12125 + - 7e90ce67-21ed-42cc-bf70-003c2085c634 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:_WtuTI_rGzHlkgbImP27Kb8Uab-pnuHZgheUB-bv5lc1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:09:43Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbd-87fb-b0b7-3a3a0d002fc8"}}' 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:53:18 GMT + - Mon, 01 Feb 2021 23:09:42 GMT ms-cv: - - eFNx36rnmkSYM3rCthy9ow.0 + - aW7nLTKynEm/mwhkshfxpA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 892ms + - 843ms status: code: 201 message: Created @@ -209,11 +209,11 @@ interactions: Connection: - keep-alive Content-Length: - - '182' + - '183' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: @@ -224,15 +224,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:53:19 GMT + - Mon, 01 Feb 2021 23:09:44 GMT ms-cv: - - oMKzwlbw2k2U319yWBteKQ.0 + - b/eV8VUWJUWJQ7AbCfiYPQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 397ms + - 947ms status: code: 201 message: Created @@ -248,9 +248,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:53:27 GMT + - Mon, 01 Feb 2021 23:09:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -262,13 +262,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:53:35 GMT + - Mon, 01 Feb 2021 23:10:01 GMT ms-cv: - - FL1ThO3Rw0672zJ6JVTX/w.0 + - 9DcGZ6EiiUW1Zpm/1eVRsw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16460ms + - 17040ms status: code: 204 message: No Content @@ -284,9 +284,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:53:43 GMT + - Mon, 01 Feb 2021 23:10:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -298,13 +298,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:53:51 GMT + - Mon, 01 Feb 2021 23:10:17 GMT ms-cv: - - 9iAGoQxXgEms9LsoRjIp1g.0 + - Lz9BP2/4P02Ec0l+GwE0Ow.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15903ms + - 16112ms status: code: 204 message: No Content @@ -320,7 +320,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -330,13 +330,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:53:51 GMT + - Mon, 01 Feb 2021 23:10:18 GMT ms-cv: - - 9LALryDlgUGld/7w57dulQ.0 + - rgDG1g19qU6WrLCSOHrZ/g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 306ms + - 340ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml index 1c2c701a1d25..2ff85ba3988c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:53:59 GMT + - Mon, 01 Feb 2021 23:10:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:53:52 GMT + - Mon, 01 Feb 2021 23:10:18 GMT ms-cv: - - vAMAryc/nkuEiMJAtNLEEQ.0 + - vnzmRKwuUUu1xgU9C2ezJQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 30ms + - 132ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:54:00 GMT + - Mon, 01 Feb 2021 23:10:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:53:51.9611824+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:10:18.2618513+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:53:52 GMT + - Mon, 01 Feb 2021 23:10:18 GMT ms-cv: - - BIuXBb4NQEaW+LgLBQtoNw.0 + - Fe4oLYvJCkm5Ee1bjG/Bwg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 85ms + - 98ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:54:00 GMT + - Mon, 01 Feb 2021 23:10:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:53:52 GMT + - Mon, 01 Feb 2021 23:10:18 GMT ms-cv: - - SK/PSk+Bn0uH7e457XFz0g.0 + - /FONHcKKiE2oHcBiUWbxsg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 16ms + - 50ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:54:00 GMT + - Mon, 01 Feb 2021 23:10:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:53:52.165552+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:10:18.5020576+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:53:52 GMT + - Mon, 01 Feb 2021 23:10:18 GMT ms-cv: - - bikHBYxFz0i0EXh2HjXXew.0 + - AcDUKjvclE2JBfuYphiGaQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 88ms + - 101ms status: code: 200 message: OK @@ -173,29 +173,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 0acd8185-b790-480e-96d9-c022f3a09cd8 + - 14285cb5-b1f8-4bad-ad13-0891f94d4aea method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:n3cu_jYMVs8O4UZUxccMnQLv0W0E7M-JSHy8a4EmPqU1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:10:19Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbe-17e9-1db7-3a3a0d002bab"}}' 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:53:53 GMT + - Mon, 01 Feb 2021 23:10:20 GMT ms-cv: - - GnJMcbvHJ0a4eIeTN2Q0nA.0 + - uZB4rB4UW0GUpZR04jf0dg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1362ms + - 859ms status: code: 201 message: Created @@ -213,7 +213,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: @@ -224,15 +224,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:53:55 GMT + - Mon, 01 Feb 2021 23:10:20 GMT ms-cv: - - Y7neiVDQE0qw5ODyoDIyYg.0 + - gc3qX2jTCk6ZMnH3AbdYHA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 906ms + - 401ms status: code: 201 message: Created @@ -248,9 +248,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:54:03 GMT + - Mon, 01 Feb 2021 23:10:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -262,13 +262,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:54:12 GMT + - Mon, 01 Feb 2021 23:10:38 GMT ms-cv: - - ZjAeLbeSeE6vCmqQY1xyww.0 + - T3lD6L81kEO42dkUQwlsiQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16543ms + - 17069ms status: code: 204 message: No Content @@ -284,9 +284,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:54:19 GMT + - Mon, 01 Feb 2021 23:10:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -298,13 +298,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:54:28 GMT + - Mon, 01 Feb 2021 23:10:53 GMT ms-cv: - - ADHr+LsCFUGqoDVAic5r+A.0 + - cEBOvK1OT0Wm2DQoII6g8g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15886ms + - 15783ms status: code: 204 message: No Content @@ -320,7 +320,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -330,13 +330,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:54:28 GMT + - Mon, 01 Feb 2021 23:10:53 GMT ms-cv: - - x+ryMjif4UaeB/3eMT+Akw.0 + - t2qznUOa5km2Fzbh1vp9EA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 303ms + - 309ms 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 22927ae020e3..fe14a30d334c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:54:36 GMT + - Mon, 01 Feb 2021 23:10:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:54:28 GMT + - Mon, 01 Feb 2021 23:10:54 GMT ms-cv: - - /eRfLNiO3kSTYyhJNEZXBA.0 + - Y5yKxdi/pEWTDIC1tIcd1A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 48ms + - 20ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:54:36 GMT + - Mon, 01 Feb 2021 23:10:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:54:28.3469906+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:10:53.6424333+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:54:28 GMT + - Mon, 01 Feb 2021 23:10:54 GMT ms-cv: - - EvkkQlCbpkithsYNURhTnQ.0 + - N96mc7wlvkOqhmk40buU9g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 208ms + - 94ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:54:36 GMT + - Mon, 01 Feb 2021 23:10:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:54:28 GMT + - Mon, 01 Feb 2021 23:10:54 GMT ms-cv: - - 09jI1i8P5kq5ikXDMNleJA.0 + - G0rrJaH1hEaiBCtU03c0cA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 24ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:54:36 GMT + - Mon, 01 Feb 2021 23:10:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:54:28.6492633+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:10:53.869524+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:54:29 GMT + - Mon, 01 Feb 2021 23:10:54 GMT ms-cv: - - uxaRQTt8z0qc9NzUJ/bmwQ.0 + - Ls8LRrez3kOUSj8ID/Bjjg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 175ms + - 93ms status: code: 200 message: OK @@ -169,33 +169,33 @@ 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) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - f1c5ebdb-14e2-44ca-8a10-3c23e9dd6208 + - c2bdbe6c-1c1f-4643-82d2-9dc9ecdf9e70 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:CQMbb5qBbsYoqTG4zXgK40nGmD3XxvbtL8kE1IJc0oM1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:10:55Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbe-a225-1655-373a0d0025d2"}}' 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:54:30 GMT + - Mon, 01 Feb 2021 23:10:55 GMT ms-cv: - - JBZ1Sgd9bkKpX/LI97mUJw.0 + - 1A3OuOir9Uix9v+YFAycdA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 842ms + - 832ms status: code: 201 message: Created @@ -214,7 +214,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -225,15 +225,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:54:31 GMT + - Mon, 01 Feb 2021 23:10:56 GMT ms-cv: - - LSv1Pg2WHEiT1BIwnJeToA.0 + - CDgQSn5I2ECFyxmOTxQs1w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 869ms + - 370ms status: code: 201 message: Created @@ -249,7 +249,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: @@ -259,13 +259,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:54:31 GMT + - Mon, 01 Feb 2021 23:10:56 GMT ms-cv: - - Y28rr8mJkk6qJEWW1QW+yg.0 + - xbXo/aeDukOL02oLhahF0g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 442ms + - 420ms status: code: 204 message: No Content @@ -281,9 +281,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:54:39 GMT + - Mon, 01 Feb 2021 23:10:57 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -295,13 +295,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:54:47 GMT + - Mon, 01 Feb 2021 23:11:12 GMT ms-cv: - - tucyIy3RUU6coQOLH4lbAQ.0 + - CBsVjaIEnU2H6p8B4eDqWA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15940ms + - 16445ms status: code: 204 message: No Content @@ -317,9 +317,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:54:55 GMT + - Mon, 01 Feb 2021 23:11:14 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -331,13 +331,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:55:04 GMT + - Mon, 01 Feb 2021 23:11:28 GMT ms-cv: - - F1AOuseS50+kLYBeAEJrJA.0 + - eoZnGb1h0USW14/XPmmdNA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16673ms + - 15983ms status: code: 204 message: No Content @@ -353,7 +353,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -363,13 +363,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:55:04 GMT + - Mon, 01 Feb 2021 23:11:29 GMT ms-cv: - - evaLMh21+kWVfOHji8yXew.0 + - iq/zfgeleUa5YgulN7LQWg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 317ms + - 331ms 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 b786d3a2fe84..eb451dc038aa 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:55:12 GMT + - Mon, 01 Feb 2021 23:11:30 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:55:05 GMT + - Mon, 01 Feb 2021 23:11:29 GMT ms-cv: - - U/gMGq9QpkODfp/Mg6Dm9g.0 + - lZuK0EZcm0Wwy5U0VdV7Sw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 60ms + - 22ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:55:13 GMT + - Mon, 01 Feb 2021 23:11:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:55:05.4363162+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:11:29.2886281+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:55:05 GMT + - Mon, 01 Feb 2021 23:11:29 GMT ms-cv: - - PjsCf3jB/U2B77E1C3Ecmg.0 + - 6NkyAQX4uUew4rCbVgZFPw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 341ms + - 91ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:55:13 GMT + - Mon, 01 Feb 2021 23:11:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:55:05 GMT + - Mon, 01 Feb 2021 23:11:29 GMT ms-cv: - - PF6+R81tYEea4u8NappQpQ.0 + - zhnlFrwTK0uTglkFRWdGTQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 18ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:55:13 GMT + - Mon, 01 Feb 2021 23:11:31 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:55:05.655757+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:11:29.4909482+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:55:05 GMT + - Mon, 01 Feb 2021 23:11:29 GMT ms-cv: - - t5Jw4i48oke1DLTwO2a4OQ.0 + - e+z0oVH/HUORsypwrRor1g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 113ms + - 94ms status: code: 200 message: OK @@ -169,33 +169,33 @@ 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) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 92f12785-9a86-4eff-95ee-bf94f84f7342 + - 830a9723-1096-457b-9f39-d010d9f63ea3 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:ahNeeGqZrXgnPY919SOdVpRk0s5o8Ry7ko7igr6YGVk1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:11:30Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbf-2d5f-1655-373a0d0025d6"}}' 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:55:07 GMT + - Mon, 01 Feb 2021 23:11:30 GMT ms-cv: - - I0eOjT6uqUuwnsPn9PFn/w.0 + - P43c9Lc7tEeOLnAY8G+3mg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 906ms + - 857ms status: code: 201 message: Created @@ -214,7 +214,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -225,15 +225,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:55:08 GMT + - Mon, 01 Feb 2021 23:11:31 GMT ms-cv: - - qB8LHSlqVECLgqK6jojAXw.0 + - Np4p+Sh6Z0iUMg49MZ5h+w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 398ms + - 376ms status: code: 201 message: Created @@ -247,28 +247,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) 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": "1611802508230", + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1612221091980", "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": - "2021-01-28T02:55:08Z", "senderId": "sanitized"}' + "2021-02-01T23:11:31Z", "senderId": "sanitized"}' 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:55:08 GMT + - Mon, 01 Feb 2021 23:11:32 GMT ms-cv: - - jS2fPZ6jO06iqYFMxLVR3g.0 + - 7h18nFkBjUGxMSdJls5/yA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 257ms + - 261ms status: code: 200 message: OK @@ -284,9 +284,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:55:16 GMT + - Mon, 01 Feb 2021 23:11:33 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -298,13 +298,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:55:25 GMT + - Mon, 01 Feb 2021 23:11:49 GMT ms-cv: - - fgPfcP2vkkC/pSF5h6A0Eg.0 + - BG9bH+KKnUKVYv606zg7lw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16537ms + - 16675ms status: code: 204 message: No Content @@ -320,9 +320,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:55:32 GMT + - Mon, 01 Feb 2021 23:11:50 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -334,13 +334,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:55:41 GMT + - Mon, 01 Feb 2021 23:12:05 GMT ms-cv: - - rfJ8b16Oe0uZy4WSIVrQDQ.0 + - PtxnGmASLE29V1z+TTQKIQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16795ms + - 16754ms status: code: 204 message: No Content @@ -356,7 +356,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -366,13 +366,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:55:42 GMT + - Mon, 01 Feb 2021 23:12:06 GMT ms-cv: - - HU2Up4qaP0eV86XEE5a4uw.0 + - ujHEeveqfUSyStNeUhdt2g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 322ms + - 291ms 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 9f6d94f46714..15297c7be324 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:55:49 GMT + - Mon, 01 Feb 2021 23:12:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:55:41 GMT + - Mon, 01 Feb 2021 23:12:06 GMT ms-cv: - - kwGl8KMlZ067JyxCwf1ODg.0 + - Sj7h3LbAl0i9hyvAE6L6RA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 19ms + - 56ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:55:50 GMT + - Mon, 01 Feb 2021 23:12:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:55:41.0552003+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:12:05.9542699+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:55:42 GMT + - Mon, 01 Feb 2021 23:12:06 GMT ms-cv: - - zUXuiFqDjUKgP2gIjLF7Kw.0 + - K235FSgb1kidl5278N5ziw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 105ms + - 96ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:55:50 GMT + - Mon, 01 Feb 2021 23:12:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:55:42 GMT + - Mon, 01 Feb 2021 23:12:06 GMT ms-cv: - - SEasf1nK202APUzL0jUR6Q.0 + - w2/fYfVxi0mPbtHuAWLq7A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 53ms + - 21ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:55:50 GMT + - Mon, 01 Feb 2021 23:12:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:55:42.3409913+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:12:06.153305+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:55:42 GMT + - Mon, 01 Feb 2021 23:12:06 GMT ms-cv: - - I2mqAK5lyEyljK2HsoRlig.0 + - CLtEXxBHgkyvn1tnNFijoA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 130ms + - 90ms status: code: 200 message: OK @@ -173,29 +173,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 5a242483-87f4-4aa8-9e23-de8f00e1e700 + - 15be76a1-7003-4647-a1fc-cc05d462a289 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:QiwZiY15O_F3chKHC9waSQP57ESVljAUkKeEW-yoQx41@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:12:07Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffbf-bc7b-b0b7-3a3a0d002fd1"}}' 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:55:43 GMT + - Mon, 01 Feb 2021 23:12:07 GMT ms-cv: - - bJcvsjBlQEmfPrlEuv1vVA.0 + - jsCsMRBiPkiHEwSVHT+osA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 913ms + - 836ms status: code: 201 message: Created @@ -214,7 +214,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -225,15 +225,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:55:44 GMT + - Mon, 01 Feb 2021 23:12:08 GMT ms-cv: - - RVg1WR+RekqF7tJmkmlRng.0 + - d7I+ZkOHlkS5dLbp580JqQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 395ms + - 837ms status: code: 201 message: Created @@ -247,7 +247,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 response: @@ -258,15 +258,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:55:45 GMT + - Mon, 01 Feb 2021 23:12:09 GMT ms-cv: - - sMgpAn8i2ESSfENblSd/og.0 + - c0gVf1/fTEya3/2+70xxkQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 266ms + - 289ms status: code: 200 message: OK @@ -280,7 +280,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 response: @@ -291,15 +291,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:55:45 GMT + - Mon, 01 Feb 2021 23:12:09 GMT ms-cv: - - 27Kx6MlSoEqGHiYuRzS5iw.0 + - vNK5whUAeUmf4w+/X8el2A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 365ms + - 364ms status: code: 200 message: OK @@ -313,7 +313,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 response: @@ -324,15 +324,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:55:45 GMT + - Mon, 01 Feb 2021 23:12:09 GMT ms-cv: - - t8pmIYdVnUGsVQ/APzEG/A.0 + - tF3JqAjl+kSWPNp3V0MwPQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 356ms + - 365ms status: code: 200 message: OK @@ -346,7 +346,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2020-11-01-preview3 response: @@ -357,15 +357,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:55:46 GMT + - Mon, 01 Feb 2021 23:12:10 GMT ms-cv: - - K2x8vKPhjUm7Ko0kb8jP6w.0 + - p9xt/RFcfE+scTMdUQInhA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 370ms + - 359ms status: code: 200 message: OK @@ -381,9 +381,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:55:53 GMT + - Mon, 01 Feb 2021 23:12:11 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -395,13 +395,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:56:02 GMT + - Mon, 01 Feb 2021 23:12:26 GMT ms-cv: - - J1h76RQax0uYmjj5uR4ZHw.0 + - qlR3Xdmn5Uekc2Jr1WkZVg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16596ms + - 16116ms status: code: 204 message: No Content @@ -417,9 +417,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:56:10 GMT + - Mon, 01 Feb 2021 23:12:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -431,13 +431,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:56:19 GMT + - Mon, 01 Feb 2021 23:12:42 GMT ms-cv: - - h0J+v7mvjEeMbIBUdqXGPw.0 + - vk/5JNIo7UmqX8dnj969ng.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16983ms + - 15951ms status: code: 204 message: No Content @@ -453,7 +453,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -463,13 +463,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:56:20 GMT + - Mon, 01 Feb 2021 23:12:43 GMT ms-cv: - - lvHDOYQHt0mEPXlAYRgZIA.0 + - BiUEsvuFh0G9dHU3dkZv7w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 292ms + - 291ms 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 c1ada8333cc5..4c25a1c4bfc2 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:56:27 GMT + - Mon, 01 Feb 2021 23:12:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:56:20 GMT + - Mon, 01 Feb 2021 23:12:42 GMT ms-cv: - - lesRlgj9F0mnYpoMOrZhUA.0 + - kIbPaGMRjkmQka1S4ARAUw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 22ms + - 18ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:56:28 GMT + - Mon, 01 Feb 2021 23:12:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:56:20.1248266+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:12:42.7369269+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:56:20 GMT + - Mon, 01 Feb 2021 23:12:42 GMT ms-cv: - - N7aaY4FMLEOKJHMsy6ml4w.0 + - i8Cy1HDlcECm+g75iVPGrg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 100ms + - 90ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:56:28 GMT + - Mon, 01 Feb 2021 23:12:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:56:20 GMT + - Mon, 01 Feb 2021 23:12:43 GMT ms-cv: - - yCCnHDID2UKLACPypowg/Q.0 + - 50WUMurQfUG8dsRwwthCFw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 68ms + - 16ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:56:28 GMT + - Mon, 01 Feb 2021 23:12:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:56:20.4862089+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:12:42.9313819+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:56:20 GMT + - Mon, 01 Feb 2021 23:12:43 GMT ms-cv: - - dY7M99are0ShGL64HaIpwg.0 + - hDlObaBR30SimCm+AhSwTg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 144ms + - 91ms status: code: 200 message: OK @@ -173,29 +173,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - e2aacb97-d351-4737-bd3e-3bd5a985713c + - 7b0b36b3-3d23-4101-a02c-6a053a88b3d7 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:PvBn6mixYhQtG3hwCn7KwxcVy1X5r-28IHnpnh-nbdI1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:12:44Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc0-4c3c-1655-373a0d0025d9"}}' 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:56:22 GMT + - Mon, 01 Feb 2021 23:12:44 GMT ms-cv: - - buRloAdMXUSBay70R6n3Qw.0 + - SMzZYWyKtkOfdw2y8m9RXg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1285ms + - 834ms status: code: 201 message: Created @@ -213,7 +213,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: @@ -224,15 +224,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:56:23 GMT + - Mon, 01 Feb 2021 23:12:45 GMT ms-cv: - - I618zmPWY0mRtBjQBfA9ZA.0 + - gUsyB6vyQkCaNrJIUn0rtQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 455ms + - 943ms status: code: 201 message: Created @@ -246,7 +246,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2020-11-01-preview3 response: @@ -257,15 +257,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:56:23 GMT + - Mon, 01 Feb 2021 23:12:45 GMT ms-cv: - - 1BAgflwOCUiILihP0ga2yw.0 + - t55a2NIJUkmUufTeg5kiDw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 267ms + - 269ms status: code: 200 message: OK @@ -281,9 +281,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:56:31 GMT + - Mon, 01 Feb 2021 23:12:47 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -295,13 +295,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:56:39 GMT + - Mon, 01 Feb 2021 23:13:03 GMT ms-cv: - - poOYXgqaykyhmTW/xlCECw.0 + - APzhq35/xEe6tGdAjTFtzw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16281ms + - 16705ms status: code: 204 message: No Content @@ -317,9 +317,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:56:47 GMT + - Mon, 01 Feb 2021 23:13:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -331,13 +331,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:56:56 GMT + - Mon, 01 Feb 2021 23:13:19 GMT ms-cv: - - qQ6+G+oST0SNbLrlyH0IcA.0 + - 0y4kz4W45kqOIc0iDXED/w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16535ms + - 16310ms status: code: 204 message: No Content @@ -353,7 +353,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -363,13 +363,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:56:57 GMT + - Mon, 01 Feb 2021 23:13:19 GMT ms-cv: - - yamloZXt/0yedabcyfa2LA.0 + - c4S5WfoS6U2LnxE7igMe/w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 288ms + - 335ms 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 b1a598923ad6..3fb3bb1c4a20 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:57:04 GMT + - Mon, 01 Feb 2021 23:13:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:56:57 GMT + - Mon, 01 Feb 2021 23:13:20 GMT ms-cv: - - eSYTkMn7tEa0wx8qUExYVQ.0 + - n0qQns0Hsk+5aIGutsAdxg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 19ms + - 32ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:57:04 GMT + - Mon, 01 Feb 2021 23:13:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:56:56.7041302+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:13:19.501485+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:56:57 GMT + - Mon, 01 Feb 2021 23:13:20 GMT ms-cv: - - lXlnvI4cF0SQvopoziFDow.0 + - jZvlWXnZR0iUs4jC/0/vnQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 92ms + - 262ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:57:05 GMT + - Mon, 01 Feb 2021 23:13:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:56:57 GMT + - Mon, 01 Feb 2021 23:13:20 GMT ms-cv: - - tMrfciAeskqDKXV/+PfaKQ.0 + - 6XqwUaeyhkS76K9l5V3Ylg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 52ms + - 49ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:57:05 GMT + - Mon, 01 Feb 2021 23:13:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:56:56.9741452+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:13:19.7825279+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:56:57 GMT + - Mon, 01 Feb 2021 23:13:20 GMT ms-cv: - - Ok5i1EgtFEG8SL9v9FMHQg.0 + - Igp/5UmZjEi/byP4MnXjZA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 116ms + - 110ms status: code: 200 message: OK @@ -173,29 +173,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 6ab65574-c8b7-4f89-8460-659c1e20392e + - 25ee9edf-3c7c-45ec-bf01-65eaed8b9fbb method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:OPtWDy6R6cNXXozGaPaBAVysKRxa6er8SZ2o6lOTEIw1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:13:21Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc0-db3c-b0b7-3a3a0d002fd5"}}' 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:56:58 GMT + - Mon, 01 Feb 2021 23:13:21 GMT ms-cv: - - 1LpDoIWUN0OXgVKgNR2y7Q.0 + - 1OkOyIraVkmYNurO83SfGw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 915ms + - 850ms status: code: 201 message: Created @@ -214,7 +214,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -225,15 +225,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:56:59 GMT + - Mon, 01 Feb 2021 23:13:21 GMT ms-cv: - - gOmCsKUK5UmDQ8KxDyFG4A.0 + - bYxpzFv6N0KkUdUjZdVlCg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 394ms + - 373ms status: code: 201 message: Created @@ -251,7 +251,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: @@ -263,13 +263,13 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 02:57:00 GMT + - Mon, 01 Feb 2021 23:13:22 GMT ms-cv: - - jKbfyDDD6kinMN4lyq5fsA.0 + - T6MjZ2ekxEinUStlOzfaXg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 632ms + - 898ms status: code: 200 message: OK @@ -283,7 +283,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: @@ -294,9 +294,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:57:00 GMT + - Mon, 01 Feb 2021 23:13:23 GMT ms-cv: - - GFB61mwdcUGFDt7XG4c2sg.0 + - opHZex5MWESNjsY80GUijg.0 strict-transport-security: - max-age=2592000 transfer-encoding: @@ -321,7 +321,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -332,15 +332,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:57:01 GMT + - Mon, 01 Feb 2021 23:13:23 GMT ms-cv: - - k088AucTwUy1BzvZyPUYqA.0 + - yqZuC3B260GKgRFW7OaWfA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 396ms + - 384ms status: code: 201 message: Created @@ -358,7 +358,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: @@ -370,13 +370,13 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 02:57:02 GMT + - Mon, 01 Feb 2021 23:13:23 GMT ms-cv: - - 31ugWpLl1k6kUNt2bsYTGg.0 + - gXjY7VV/8kmcPf0nJ8mVWg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 1114ms + - 498ms status: code: 200 message: OK @@ -390,7 +390,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: @@ -401,15 +401,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:57:02 GMT + - Mon, 01 Feb 2021 23:13:25 GMT ms-cv: - - 8A060xlCkUKjV/tkQrxqew.0 + - 9K0uoDIxJE2fdvj7B03SIw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 257ms + - 694ms status: code: 200 message: OK @@ -428,7 +428,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -439,15 +439,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:57:03 GMT + - Mon, 01 Feb 2021 23:13:25 GMT ms-cv: - - QJNM4OzUyEWI/NFUJqkLSQ.0 + - LwIYTspikEiHp9s/opWxYg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 399ms + - 368ms status: code: 201 message: Created @@ -465,7 +465,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: @@ -477,13 +477,13 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 02:57:04 GMT + - Mon, 01 Feb 2021 23:13:25 GMT ms-cv: - - jQtucTmZ6EOIwITOoaf23Q.0 + - 1Zh447p3CEmKerITJM7JbA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 637ms + - 474ms status: code: 200 message: OK @@ -497,7 +497,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: @@ -508,15 +508,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:57:04 GMT + - Mon, 01 Feb 2021 23:13:26 GMT ms-cv: - - m09XnDYygkyFkJGAJNScjQ.0 + - Cwy2WeHt4EK+saImRu94aA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 258ms + - 249ms status: code: 200 message: OK @@ -530,7 +530,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2020-11-01-preview3 response: @@ -541,15 +541,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:57:04 GMT + - Mon, 01 Feb 2021 23:13:26 GMT ms-cv: - - Sw3gP2YO2E2MwJAdSMqVlg.0 + - i4qQAKxMvkGrCKeSzyI0Pw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 266ms + - 261ms status: code: 200 message: OK @@ -565,9 +565,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:57:12 GMT + - Mon, 01 Feb 2021 23:13:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -579,13 +579,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:57:20 GMT + - Mon, 01 Feb 2021 23:13:43 GMT ms-cv: - - ay5EMUnQCEiCuinZmgsaag.0 + - seA/Ib8X5EOcHNn4mUD/xw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16547ms + - 16722ms status: code: 204 message: No Content @@ -601,9 +601,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:57:28 GMT + - Mon, 01 Feb 2021 23:13:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -615,13 +615,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:57:37 GMT + - Mon, 01 Feb 2021 23:13:59 GMT ms-cv: - - S+zl2wcWb0i+yvHEXqAkTg.0 + - eg5Zna69MUelcOMGYB9PoA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16442ms + - 15933ms status: code: 204 message: No Content @@ -637,7 +637,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -647,13 +647,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:57:37 GMT + - Mon, 01 Feb 2021 23:14:00 GMT ms-cv: - - wZMwmqLebkihpf/YlYvMJw.0 + - c3gjQEc5w0q/9/MG90WUxQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 347ms + - 292ms 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 1c4033fd3999..770e66674e0b 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:57:45 GMT + - Mon, 01 Feb 2021 23:14:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:57:38 GMT + - Mon, 01 Feb 2021 23:14:00 GMT ms-cv: - - /A0so1MtJ0SGyIhP//ZOyA.0 + - EZm4ZV97KEm0bmO5QoCf5A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 22ms + - 38ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:57:46 GMT + - Mon, 01 Feb 2021 23:14:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:57:37.9787377+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:14:00.2599102+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:57:38 GMT + - Mon, 01 Feb 2021 23:14:00 GMT ms-cv: - - mGhDyZyRQkmrdZJ94vhCyw.0 + - U+n9c5UM90OQyXf+d0GRyg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 95ms + - 115ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:57:46 GMT + - Mon, 01 Feb 2021 23:14:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:57:38 GMT + - Mon, 01 Feb 2021 23:14:00 GMT ms-cv: - - 0zzj+M5LLUqVWpnzuXrhFQ.0 + - iwwv12Y4QkqWRRqH0P3zQA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 43ms + - 23ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:57:46 GMT + - Mon, 01 Feb 2021 23:14:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:57:38.2106827+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:14:00.4581206+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:57:39 GMT + - Mon, 01 Feb 2021 23:14:00 GMT ms-cv: - - kUzOpz10gEG4K+HaT0Offw.0 + - /bW3cAQSkU+YKFSZdCQC4A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 98ms + - 91ms status: code: 200 message: OK @@ -173,29 +173,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - e1581677-492f-4b57-b38c-1bdbfae9ded7 + - e99db6c4-bef1-481d-8e92-528e8a290d0b method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:4E8s1hIQeP0NL5a4RI5MHuFwoSUNhnLIm84cb-6qJtk1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:14:01Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc1-7abd-b0b7-3a3a0d002fd9"}}' 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:57:40 GMT + - Mon, 01 Feb 2021 23:14:02 GMT ms-cv: - - 15sykvov+k6Ewhay5PRRTw.0 + - 7RNEOUTHk0GR//bh61Mcwg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 910ms + - 849ms status: code: 201 message: Created @@ -213,7 +213,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: @@ -224,15 +224,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:57:40 GMT + - Mon, 01 Feb 2021 23:14:02 GMT ms-cv: - - BlTr4tcQDUSh3tBVcnBkmQ.0 + - WTe/ZJvW/UW+XLlyxEnIRQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 456ms + - 405ms status: code: 201 message: Created @@ -248,9 +248,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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-e6ce-6cf2-b0b7-3a3a0d000475?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-ffc1-7be5-b0b7-3a3a0d002fda?api-version=2020-11-01-preview3 response: body: string: '' @@ -258,13 +258,13 @@ interactions: api-supported-versions: - 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:57:41 GMT + - Mon, 01 Feb 2021 23:14:03 GMT ms-cv: - - xjCsxfZ7g0CbbfoRz2FDDA.0 + - jkB6wPDKmUeaim9wAvflbg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 502ms + - 452ms status: code: 204 message: No Content @@ -280,9 +280,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:57:48 GMT + - Mon, 01 Feb 2021 23:14:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -294,13 +294,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:57:58 GMT + - Mon, 01 Feb 2021 23:14:19 GMT ms-cv: - - elTDrC5zUkyNZJMdZI9/Iw.0 + - oT4lJ//RSUahLSYWY6yTWw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 17358ms + - 16000ms status: code: 204 message: No Content @@ -316,9 +316,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:58:06 GMT + - Mon, 01 Feb 2021 23:14:20 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -330,13 +330,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:58:14 GMT + - Mon, 01 Feb 2021 23:14:35 GMT ms-cv: - - Y3tBu8j/6EqgVlUj4+Gcxw.0 + - qg30GEqn+EWOdc+u9Nf7Ow.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16109ms + - 16565ms status: code: 204 message: No Content @@ -352,7 +352,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -362,13 +362,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:58:14 GMT + - Mon, 01 Feb 2021 23:14:36 GMT ms-cv: - - rJ3pA0YnYEGg3RksE34fOQ.0 + - lDW3jg3eiEqYxIvtlsTOxg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 302ms + - 329ms 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 7346f3c0bc7c..669aba8894b2 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:58:23 GMT + - Mon, 01 Feb 2021 23:14:37 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:58:15 GMT + - Mon, 01 Feb 2021 23:14:36 GMT ms-cv: - - bx0TvjRbRUer2jdyxG6F7Q.0 + - PUk9KXg0hkO+CkCLwWzbdg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 50ms + - 144ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:58:23 GMT + - Mon, 01 Feb 2021 23:14:38 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:58:15.3118035+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:14:36.2310025+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:58:15 GMT + - Mon, 01 Feb 2021 23:14:36 GMT ms-cv: - - c9frNKyGJ0KCawr4F+aTug.0 + - i7Qr/LEEekyNydS6xC4pZg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 292ms + - 130ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:58:23 GMT + - Mon, 01 Feb 2021 23:14:38 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:58:15 GMT + - Mon, 01 Feb 2021 23:14:36 GMT ms-cv: - - zwYXYWxkhU+3EQk+WtztMw.0 + - Ww2NQm7lVESaKwXycU5e5w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 22ms + - 21ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:58:23 GMT + - Mon, 01 Feb 2021 23:14:38 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:58:15.5025753+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:14:36.4924069+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:58:15 GMT + - Mon, 01 Feb 2021 23:14:36 GMT ms-cv: - - fU3Ydz2UwECCGQX+kDNzwg.0 + - rNpbJx8+3U6OUrimTrsi2A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 84ms + - 143ms status: code: 200 message: OK @@ -169,33 +169,33 @@ interactions: Connection: - keep-alive 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) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 2ac7c798-f6f1-417f-a27d-01d6034777f7 + - 40db38f0-3b14-4697-9513-4ab0d5de5bb0 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:2L9d8Kv3-nhipybg6fHvSKVtRcXPcmdDbTF4fi7fQP01@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:14:37Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc2-077b-1db7-3a3a0d002bb5"}}' 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:58:16 GMT + - Mon, 01 Feb 2021 23:14:37 GMT ms-cv: - - QQov8rSj0UyItGQbexHRfA.0 + - uWe3kVXQ6UOGBYAnbGxrqQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 822ms + - 834ms status: code: 201 message: Created @@ -214,7 +214,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -225,15 +225,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:58:17 GMT + - Mon, 01 Feb 2021 23:14:39 GMT ms-cv: - - ICXf9MeLJEaqqbkm4rREAg.0 + - IJrEaNKVAkOUChnJIeg1jg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 391ms + - 370ms status: code: 201 message: Created @@ -249,9 +249,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:58:25 GMT + - Mon, 01 Feb 2021 23:14:40 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -263,13 +263,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:58:34 GMT + - Mon, 01 Feb 2021 23:14:55 GMT ms-cv: - - QH87s+ibc0e0ONzP13jUqA.0 + - YfMJXVUq90mBonU+4Kqmmg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16437ms + - 16170ms status: code: 204 message: No Content @@ -285,9 +285,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:58:41 GMT + - Mon, 01 Feb 2021 23:14:56 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -299,13 +299,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:58:49 GMT + - Mon, 01 Feb 2021 23:15:10 GMT ms-cv: - - ohe/pQwbmEqlz89o6bLrBA.0 + - QygpUV62dU2p3dQH1i9EFw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15948ms + - 15771ms status: code: 204 message: No Content @@ -321,7 +321,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -331,13 +331,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:58:50 GMT + - Mon, 01 Feb 2021 23:15:11 GMT ms-cv: - - BegpAPIH8UiSx0IZG2ge9g.0 + - SLGQK/S7UUiOyxLecoVsvg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 345ms + - 296ms 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 59cf3ba525ec..5e4eb0b092dc 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:58:58 GMT + - Mon, 01 Feb 2021 23:15:12 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:58:50 GMT + - Mon, 01 Feb 2021 23:15:11 GMT ms-cv: - - p0k1Fn9N5kKVMfe++MJjnw.0 + - tSA9Uj5DZUW3a9cE/9Mf/Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 42ms + - 17ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:58:58 GMT + - Mon, 01 Feb 2021 23:15:12 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:58:50.4436344+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:15:11.1099766+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:58:50 GMT + - Mon, 01 Feb 2021 23:15:11 GMT ms-cv: - - auPx4dkVGUKialo5fCHfMw.0 + - VgBXYbYf9UurxmT5dzATFg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 103ms + - 89ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:58:58 GMT + - Mon, 01 Feb 2021 23:15:13 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:58:51 GMT + - Mon, 01 Feb 2021 23:15:11 GMT ms-cv: - - UQlnhhG2Jkem7AFBKRiLZg.0 + - DbJCn67mX0aWj8C6ortl0A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 28ms + - 17ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:58:58 GMT + - Mon, 01 Feb 2021 23:15:13 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:58:50.6917131+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:15:11.320505+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:58:51 GMT + - Mon, 01 Feb 2021 23:15:11 GMT ms-cv: - - KUMS8wyd9EC4G0Q+49kEyg.0 + - zjn4ayBwyke1loffvhkcKA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 119ms + - 87ms status: code: 200 message: OK @@ -169,33 +169,33 @@ interactions: Connection: - keep-alive 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) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - ebe703f4-bc68-46ff-9a40-297192a0b3fc + - 474491e3-6187-4de9-9d8a-28f6d540d871 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:t_E0OeuCTWPldGmzOPeMP1S_mSN6F6VTus185SOfXhM1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:15:12Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc2-8fe4-1db7-3a3a0d002bb7"}}' 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:58:53 GMT + - Mon, 01 Feb 2021 23:15:13 GMT ms-cv: - - Nq2sQ0NYe0e7y1If5MISqw.0 + - r9Rq5GDG70a4hFfGeGY4Pg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1275ms + - 827ms status: code: 201 message: Created @@ -214,7 +214,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -225,15 +225,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:58:53 GMT + - Mon, 01 Feb 2021 23:15:13 GMT ms-cv: - - Sdmvxxifmki3M1pStpQWFw.0 + - PWZQZDAcBkCuAJZAkO8FGQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 397ms + - 371ms status: code: 201 message: Created @@ -251,7 +251,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: @@ -263,13 +263,13 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 02:58:54 GMT + - Mon, 01 Feb 2021 23:15:14 GMT ms-cv: - - Cm1e1VxaX0aN0ALs/oY1QQ.0 + - Dmex4TI3t0KRUU5gjpnk0A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 627ms + - 474ms status: code: 200 message: OK @@ -285,9 +285,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:59:01 GMT + - Mon, 01 Feb 2021 23:15:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -299,13 +299,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:59:09 GMT + - Mon, 01 Feb 2021 23:15:30 GMT ms-cv: - - 8duaZ4hYCkOCZ+Y+KeByuQ.0 + - SmoIgTczqk2E5claXN641g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15738ms + - 16560ms status: code: 204 message: No Content @@ -321,9 +321,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:59:17 GMT + - Mon, 01 Feb 2021 23:15:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -335,13 +335,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:59:27 GMT + - Mon, 01 Feb 2021 23:15:47 GMT ms-cv: - - dWSmrOGJoEKW2H7960xw0A.0 + - Y6csz9/irk6fnMs7V1j1kQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 17006ms + - 16651ms status: code: 204 message: No Content @@ -357,7 +357,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -367,13 +367,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 02:59:27 GMT + - Mon, 01 Feb 2021 23:15:47 GMT ms-cv: - - ETIKAJOLdUyRp9dr3gfTsA.0 + - vCDX2DXOBkalGHB9+mXItQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 345ms + - 330ms 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 9b604f752f2d..4f03008f9db2 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:59:35 GMT + - Mon, 01 Feb 2021 23:15:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:59:27 GMT + - Mon, 01 Feb 2021 23:15:47 GMT ms-cv: - - HOSyxa53RkKyDYsAOIElzQ.0 + - XwHJSNWA7UqNR7ibkb9bbA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 31ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:59:35 GMT + - Mon, 01 Feb 2021 23:15:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:59:27.4382882+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:15:47.7123057+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:59:27 GMT + - Mon, 01 Feb 2021 23:15:47 GMT ms-cv: - - sUPZ9APqp0CnY6Q0zP4YpQ.0 + - REHPP3i3bUSlTyS+tP9MWQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 331ms + - 88ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:59:35 GMT + - Mon, 01 Feb 2021 23:15:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 02:59:27 GMT + - Mon, 01 Feb 2021 23:15:47 GMT ms-cv: - - ULhNpDNyuEWlNOpgoOSDeg.0 + - 1wfO7BOee0etC6vNcd4TbQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 18ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 02:59:35 GMT + - Mon, 01 Feb 2021 23:15:49 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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:59:27.7089098+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:15:47.9042925+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:59:28 GMT + - Mon, 01 Feb 2021 23:15:48 GMT ms-cv: - - 0+Dn1sXrpEykJn3iK3BTUA.0 + - VAMXZsDHB0KnHjUxlKLzsg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 126ms + - 84ms status: code: 200 message: OK @@ -173,29 +173,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 617def35-e577-4b73-8406-c0a892e2de19 + - 332f1d84-d70a-41c9-896f-06ce225c9800 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:Fx3tz3AWBkwB0rNJLdwYEp93BWn9LDnjENQr-r6Q1tc1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:15:49Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc3-1ede-1db7-3a3a0d002bbb"}}' 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:59:29 GMT + - Mon, 01 Feb 2021 23:15:49 GMT ms-cv: - - qs7Tsxc1+Eq2aWdrgEOFfA.0 + - 2ibp7R9uik+hT85AQshldw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 915ms + - 835ms status: code: 201 message: Created @@ -211,7 +211,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 response: @@ -223,13 +223,13 @@ interactions: content-length: - '0' date: - - Thu, 28 Jan 2021 02:59:30 GMT + - Mon, 01 Feb 2021 23:15:49 GMT ms-cv: - - rPiFWxRCA0WLauj/Ar2E3Q.0 + - 0206Ij0Tk02wqj686Ri0bw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 855ms + - 380ms status: code: 200 message: OK @@ -245,9 +245,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:59:38 GMT + - Mon, 01 Feb 2021 23:15:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -259,13 +259,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 02:59:46 GMT + - Mon, 01 Feb 2021 23:16:06 GMT ms-cv: - - 9A3URTf/EkGQc+gflYZqEQ.0 + - N6ZajPTp80iFBwopP6HvJw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16654ms + - 16195ms status: code: 204 message: No Content @@ -281,9 +281,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 02:59:55 GMT + - Mon, 01 Feb 2021 23:16:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -295,13 +295,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:00:04 GMT + - Mon, 01 Feb 2021 23:16:22 GMT ms-cv: - - ygGV6BBu602kfprjGydbVQ.0 + - NgU0httyhECRLttIx+ALRg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16560ms + - 16433ms status: code: 204 message: No Content @@ -317,7 +317,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -327,13 +327,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 03:00:04 GMT + - Mon, 01 Feb 2021 23:16:22 GMT ms-cv: - - EPxkympmkE+ZyGm60SaWPg.0 + - r/yFRd7inkO5ZrdEaxelHQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 289ms + - 328ms 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 9b7bbac4d0ce..dec30f9dcf65 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:00:12 GMT + - Mon, 01 Feb 2021 23:16:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:00:04 GMT + - Mon, 01 Feb 2021 23:16:23 GMT ms-cv: - - LQPEZnE6PEGDsiKntImQ7w.0 + - 2MymiP7VJ0OXSvRRMY2dyw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 68ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:00:12 GMT + - Mon, 01 Feb 2021 23:16:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:00:04.0921359+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:16:23.1422355+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 03:00:04 GMT + - Mon, 01 Feb 2021 23:16:23 GMT ms-cv: - - kU/+IvaJT0qD9/kzvVXyoA.0 + - 465Iq26z10GzxzZc6yHNwA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 89ms + - 104ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:00:12 GMT + - Mon, 01 Feb 2021 23:16:25 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:00:04 GMT + - Mon, 01 Feb 2021 23:16:23 GMT ms-cv: - - ynHNp2hsLESDGdMXxeqdeQ.0 + - JRpcxWLlK0yMKlUHiEFbMw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 24ms + - 21ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:00:12 GMT + - Mon, 01 Feb 2021 23:16:25 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:00:04.3132142+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:16:23.3432968+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 03:00:05 GMT + - Mon, 01 Feb 2021 23:16:23 GMT ms-cv: - - S6og+U/gmEykt07lwcFdww.0 + - xhPcqG0KFUyk3F3rjxjZ0w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 90ms + - 91ms status: code: 200 message: OK @@ -173,29 +173,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - c997543b-90a9-455c-acc1-65c3ba7d3a81 + - 7fc2e51d-55b0-40b2-a245-3c2dc6ceedc5 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:3x3XmwNlVkuiiXHmbSCmYuQ8JxeiRazrEShqq-oR3To1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:16:25Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc3-a929-9c58-373a0d002de1"}}' 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 03:00:06 GMT + - Mon, 01 Feb 2021 23:16:26 GMT ms-cv: - - x43x0Y5F+k6PmJNG5S/gJw.0 + - yu7GP5ErZ0yDgI2tJvJ7aA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 845ms + - 848ms status: code: 201 message: Created @@ -214,7 +214,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -225,15 +225,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:00:06 GMT + - Mon, 01 Feb 2021 23:16:27 GMT ms-cv: - - h4ekNHBKIEOs2WAHKCeilA.0 + - OdIc18bb8kigrXOy5U4LKg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 372ms + - 666ms status: code: 201 message: Created @@ -251,7 +251,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: @@ -261,13 +261,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 03:00:07 GMT + - Mon, 01 Feb 2021 23:16:27 GMT ms-cv: - - pWcrAA/egU+Rlad/FYA5Sw.0 + - LPkc4PDmrkaytAz03cTGBg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 662ms + - 755ms status: code: 204 message: No Content @@ -283,9 +283,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:00:14 GMT + - Mon, 01 Feb 2021 23:16:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -297,13 +297,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:00:23 GMT + - Mon, 01 Feb 2021 23:16:43 GMT ms-cv: - - 56RNabjlXkSa2G7/iGYFyA.0 + - tasO5sWXeEK9zfka3B0tyg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16531ms + - 16485ms status: code: 204 message: No Content @@ -319,9 +319,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:00:31 GMT + - Mon, 01 Feb 2021 23:16:45 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -333,13 +333,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:00:39 GMT + - Mon, 01 Feb 2021 23:17:00 GMT ms-cv: - - BMJUaVz/SU2oSDXUZdZniQ.0 + - QV0+4+sWg0O2D5wOmS9L2g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15667ms + - 16183ms status: code: 204 message: No Content @@ -355,7 +355,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -365,13 +365,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 03:00:39 GMT + - Mon, 01 Feb 2021 23:17:00 GMT ms-cv: - - fDCTCrTO6EOvmIxgHlk/fw.0 + - tBMt51eRjkW0VBp/PLpN/A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 297ms + - 294ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml index 3a3721834e1b..ef81731f6a30 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:00:47 GMT + - Mon, 01 Feb 2021 23:17:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:00:40 GMT + - Mon, 01 Feb 2021 23:17:01 GMT ms-cv: - - RUAA5UlZvE2Mugs8Mg/UVQ.0 + - 4k4KwAmJEEWEHj0zcLzq6g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 168ms + - 60ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:00:48 GMT + - Mon, 01 Feb 2021 23:17:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:00:40.5525707+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:17:00.8453508+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 03:00:40 GMT + - Mon, 01 Feb 2021 23:17:01 GMT ms-cv: - - so9Wv3P9zU+0otz1B/8V5A.0 + - rObRoGlwDUeiFVukiGVOqw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 695ms + - 103ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:00:48 GMT + - Mon, 01 Feb 2021 23:17:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:00:41 GMT + - Mon, 01 Feb 2021 23:17:01 GMT ms-cv: - - W2sAhoyd90m+i5l4wktjMw.0 + - pFkPISUMA0q49e0tmLJH7w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 178ms + - 24ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:00:49 GMT + - Mon, 01 Feb 2021 23:17:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:00:41.1086118+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:17:00.0712662+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 03:00:41 GMT + - Mon, 01 Feb 2021 23:17:01 GMT ms-cv: - - EfdeF2TJSEW/DuUwCm5KAg.0 + - sP2KdfioK0mo8hlWKGtfCA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 270ms + - 92ms status: code: 200 message: OK @@ -173,29 +173,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - ac9ba145-5647-47cb-aad0-b61467443c26 + - 21dee0d5-0f45-4e22-8e21-ff7a831076ee method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:MYM8rFp9eERFM1j8IRDD7gCnk7B0fmgKBh0GgAxYouU1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:17:02Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc4-3c30-9c58-373a0d002de3"}}' 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 03:00:43 GMT + - Mon, 01 Feb 2021 23:17:02 GMT ms-cv: - - lq1M1kbQv0CbAiWwacXo7w.0 + - mSXw7JSS2kqOtiKUIwWUIA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 850ms + - 875ms status: code: 201 message: Created @@ -213,7 +213,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -223,13 +223,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 03:00:42 GMT + - Mon, 01 Feb 2021 23:17:03 GMT ms-cv: - - ZKT71IK4HE6KrgCtifKxgA.0 + - 15a+lb6U6EiowJbUL4xxpg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 390ms + - 387ms status: code: 204 message: No Content @@ -245,9 +245,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:00:51 GMT + - Mon, 01 Feb 2021 23:17:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -259,13 +259,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:00:59 GMT + - Mon, 01 Feb 2021 23:17:20 GMT ms-cv: - - 5xfLDjLEi0qehi77O4Z4ag.0 + - 7G+YH3zbsEiZiQC6pR+q9w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16086ms + - 17151ms status: code: 204 message: No Content @@ -281,9 +281,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:01:07 GMT + - Mon, 01 Feb 2021 23:17:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -295,13 +295,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:01:15 GMT + - Mon, 01 Feb 2021 23:17:36 GMT ms-cv: - - 0KBd2U9eUESD4lD2D03//w.0 + - xguohH3MNUSNItwjGBWWXA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15991ms + - 16713ms status: code: 204 message: No Content @@ -317,7 +317,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -327,13 +327,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 date: - - Thu, 28 Jan 2021 03:01:15 GMT + - Mon, 01 Feb 2021 23:17:37 GMT ms-cv: - - lCni6CD+wUWBiUF98Q+VMw.0 + - y7AhM8HUi0md4+LXkmghqw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 305ms + - 338ms 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 b466332556e1..b2bd1b1654c0 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:01:23 GMT + - Mon, 01 Feb 2021 23:17:38 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:01:16 GMT + - Mon, 01 Feb 2021 23:17:37 GMT ms-cv: - - B8Pad+cVKkW3/pHcaa4A6g.0 + - wiJNOcMEe0y2M7VRao265A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 179ms + - 22ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:01:24 GMT + - Mon, 01 Feb 2021 23:17:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:01:16.0274942+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:17:37.4364651+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 03:01:16 GMT + - Mon, 01 Feb 2021 23:17:37 GMT ms-cv: - - XFa2RAbfFUCjoNN5pYMiyw.0 + - 7jJJuoxd7ESniv5K0rURVw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 122ms + - 87ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:01:24 GMT + - Mon, 01 Feb 2021 23:17:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:01:16 GMT + - Mon, 01 Feb 2021 23:17:37 GMT ms-cv: - - 5Tk1Mb8ickusbQR+tnmSDw.0 + - 0aYZgAfC30agjwajckap0Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 101ms + - 22ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:01:24 GMT + - Mon, 01 Feb 2021 23:17:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:01:16.4172366+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:17:37.6483825+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 03:01:17 GMT + - Mon, 01 Feb 2021 23:17:38 GMT ms-cv: - - 9R6kRTzkkkW3RDwcFsyk/g.0 + - WZi9Z5P+mkmIXTZm+QF2Qg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 162ms + - 87ms status: code: 200 message: OK @@ -169,22 +169,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - cd971c3f-0388-4da1-bbf0-db2a3f3db0a2 + - 8c32fba3-7d4e-4fc7-b934-9cc05e49c3ed method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:aJmsyuJMYvoVvmtOiLuUT5R6rkKFRZvli7ahPU-bJaU1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:17:39Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc4-cb7b-9c58-373a0d002de5"}}' 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 03:01:17 GMT - ms-cv: pIl07IGAlkWGe3tBaTAWRQ.0 + date: Mon, 01 Feb 2021 23:17:39 GMT + ms-cv: ERPPmkWQc0SxCaIDt7lYNw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 870ms + x-processing-time: 836ms status: code: 201 message: Created @@ -199,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: @@ -207,11 +207,11 @@ interactions: headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Thu, 28 Jan 2021 03:01:18 GMT - ms-cv: i2ye1jz3KUO8036cO5NRZA.0 + date: Mon, 01 Feb 2021 23:17:40 GMT + ms-cv: +e5us/5vjUOFTQKkdfzraQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 464ms + x-processing-time: 842ms status: code: 201 message: Created @@ -222,7 +222,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -230,10 +230,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:17:40 GMT + ms-cv: ExECFOZRLkSrucWivvZvBw.0 strict-transport-security: max-age=2592000 - x-processing-time: 351ms + x-processing-time: 309ms status: code: 204 message: No Content @@ -250,9 +250,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:01:26 GMT + - Mon, 01 Feb 2021 23:17:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -264,13 +264,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:01:35 GMT + - Mon, 01 Feb 2021 23:17:57 GMT ms-cv: - - bdGS+eav6kK7jfnC2giy7Q.0 + - pCklXNjJmEKS1gEqsrPa3A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16414ms + - 16640ms status: code: 204 message: No Content @@ -286,9 +286,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:01:43 GMT + - Mon, 01 Feb 2021 23:17:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -300,13 +300,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:01:51 GMT + - Mon, 01 Feb 2021 23:18:14 GMT ms-cv: - - 0WWYxiNfhkWku9DPih+ihw.0 + - 2GSUOVKyNkudmSv9EM2ibA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15755ms + - 16693ms 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 e2b12c83c3ca..893d7f5b0fdc 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:01:59 GMT + - Mon, 01 Feb 2021 23:18:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:01:51 GMT + - Mon, 01 Feb 2021 23:18:13 GMT ms-cv: - - E+2iPZzvm0mqPSUSDf0quA.0 + - cuNmsy7nv0G1p/9GsngMgA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 22ms + - 26ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:01:59 GMT + - Mon, 01 Feb 2021 23:18:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:01:51.1545374+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:18:13.8878372+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 03:01:51 GMT + - Mon, 01 Feb 2021 23:18:14 GMT ms-cv: - - fdf8vTTACUacG/h7VnRcGA.0 + - tog85bh5u0aSJG6kumCQJg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 91ms + - 104ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:01:59 GMT + - Mon, 01 Feb 2021 23:18:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,9 +106,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:01:51 GMT + - Mon, 01 Feb 2021 23:18:14 GMT ms-cv: - - +j2iIsbe3UmLv5DZL+cESw.0 + - 1zN9zRgwr0KAcqCHZ2BMJQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:01:59 GMT + - Mon, 01 Feb 2021 23:18:15 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:01:51.3442948+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:18:14.0825193+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 03:01:52 GMT + - Mon, 01 Feb 2021 23:18:14 GMT ms-cv: - - kAMms2GRSEqZUq9Si2pR/g.0 + - kblWrQzk+U6GNVsVxya2pA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 86ms + - 87ms status: code: 200 message: OK @@ -169,22 +169,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 7de1dfbf-14b8-4703-9ad7-9d75fe6b97a2 + - 3ad78fb8-0e55-4ace-b55b-445e910f95dd method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:dY2LFZUfMSYMlUgFHOBK6JL5YCBEnV_7z6C1T5DyfvE1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:18:15Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc5-59cd-dbb7-3a3a0d002e3d"}}' 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 03:01:52 GMT - ms-cv: xXXmunCg5UuHKwawbHD30Q.0 + date: Mon, 01 Feb 2021 23:18:15 GMT + ms-cv: EpZGMSKCI027wfbMuz2U0w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 897ms + x-processing-time: 840ms status: code: 201 message: Created @@ -199,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: @@ -207,11 +207,11 @@ interactions: headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Thu, 28 Jan 2021 03:01:53 GMT - ms-cv: dRCptjZMOUqRwtHnDQ1pTw.0 + date: Mon, 01 Feb 2021 23:18:16 GMT + ms-cv: wrwsS4U4RkOTn7KepcXvdw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 404ms + x-processing-time: 867ms status: code: 201 message: Created @@ -222,7 +222,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -230,10 +230,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:18:16 GMT + ms-cv: XST1go/ahU6EyGpm+A2sXQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 340ms + x-processing-time: 344ms status: code: 204 message: No Content @@ -250,9 +250,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:02:01 GMT + - Mon, 01 Feb 2021 23:18:18 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -264,13 +264,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:02:10 GMT + - Mon, 01 Feb 2021 23:18:33 GMT ms-cv: - - 7L39Jj6O/kqaHFGFHpzeng.0 + - I1E/tzvZYUuzELOe3JTxLQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16302ms + - 16410ms status: code: 204 message: No Content @@ -286,9 +286,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:02:18 GMT + - Mon, 01 Feb 2021 23:18:34 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -300,13 +300,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:02:25 GMT + - Mon, 01 Feb 2021 23:18:49 GMT ms-cv: - - /XIIXNxOAES0XE+UBO4R+w.0 + - RzK4RXdR3EWzhN+5jVzmcA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 15926ms + - 15990ms 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 2728f5746040..4038781d3dcc 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:02:34 GMT + - Mon, 01 Feb 2021 23:18:50 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:02:26 GMT + - Mon, 01 Feb 2021 23:18:49 GMT ms-cv: - - 2B6TZ5g0mkGQi1fB9iEirw.0 + - 31OWtmSn3EiOkJXY25BbiQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 19ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:02:34 GMT + - Mon, 01 Feb 2021 23:18:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:02:26.0859476+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:18:49.4008201+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 03:02:26 GMT + - Mon, 01 Feb 2021 23:18:49 GMT ms-cv: - - PY4gKUNjV0a47+iHjHNxxw.0 + - nHqbbboWNUGZB8iLXcDEJA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 124ms + - 84ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:02:34 GMT + - Mon, 01 Feb 2021 23:18:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:02:26 GMT + - Mon, 01 Feb 2021 23:18:50 GMT ms-cv: - - KiAMkILTdkS33CW576zl1g.0 + - wXZ/WKcf4k2NFRHHTQD5Sw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 27ms + - 105ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:02:34 GMT + - Mon, 01 Feb 2021 23:18:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:02:26.3003794+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:18:49.7426359+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 03:02:26 GMT + - Mon, 01 Feb 2021 23:18:50 GMT ms-cv: - - LuRW2hv67UO6ycxqiB8TRw.0 + - yUabNjFxEkSSBdprrS/EVw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 87ms + - 123ms status: code: 200 message: OK @@ -165,26 +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) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 813e11db-09ab-4aec-9071-19a0e8bc50af + - 11076cec-3eed-4e04-a50a-7de1f5fa86cf method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:hmrEwhvqrMyzs4L4bmVEFpa02a2DGHP3nK-1lIVbDgk1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:18:51Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc5-e49b-dbb7-3a3a0d002e42"}}' 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 03:02:27 GMT - ms-cv: FHmWVcE3Ek6EVbd4t01qYg.0 + date: Mon, 01 Feb 2021 23:18:51 GMT + ms-cv: /D11Li2mXUePQ+ea7zB/4A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 894ms + x-processing-time: 1301ms status: code: 201 message: Created @@ -200,7 +200,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -208,11 +208,11 @@ interactions: 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 03:02:28 GMT - ms-cv: iW6IzAWD4UmqDjeMQ3OUMg.0 + date: Mon, 01 Feb 2021 23:18:52 GMT + ms-cv: 0Rab5ME8YU+cr/32hQOi4g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 388ms + x-processing-time: 839ms status: code: 201 message: Created @@ -223,7 +223,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: @@ -231,10 +231,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:18:52 GMT + ms-cv: VuWN90lDMUSIprmudU5tfw.0 strict-transport-security: max-age=2592000 - x-processing-time: 438ms + x-processing-time: 413ms status: code: 204 message: No Content @@ -245,7 +245,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -253,10 +253,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:18:53 GMT + ms-cv: As0acV4b/k2CWp8oO6NWnA.0 strict-transport-security: max-age=2592000 - x-processing-time: 297ms + x-processing-time: 296ms status: code: 204 message: No Content @@ -273,9 +273,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:02:37 GMT + - Mon, 01 Feb 2021 23:18:54 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -287,13 +287,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:02:46 GMT + - Mon, 01 Feb 2021 23:19:08 GMT ms-cv: - - dBHIp7Ojf0C15fBB1ahmYg.0 + - 3TV+emzQ70KIiKWt3yytEg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 17237ms + - 15749ms status: code: 204 message: No Content @@ -309,9 +309,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:02:54 GMT + - Mon, 01 Feb 2021 23:19:10 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -323,13 +323,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:03:03 GMT + - Mon, 01 Feb 2021 23:19:25 GMT ms-cv: - - QQHvw0tvpUGiWbJZmBJ95A.0 + - 1txET329UkqLiKnywtlx+Q.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16295ms + - 16088ms 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 c1d292f1ab4b..4ae3fc2723f6 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:03:10 GMT + - Mon, 01 Feb 2021 23:19:26 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:03:03 GMT + - Mon, 01 Feb 2021 23:19:25 GMT ms-cv: - - orpHmK8Cl06KAiPosajUTw.0 + - V2iZBGO0mkSTbnFTez9x4g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 22ms + - 25ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:03:11 GMT + - Mon, 01 Feb 2021 23:19:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:03:02.7937829+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:19:25.7173945+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 03:03:03 GMT + - Mon, 01 Feb 2021 23:19:26 GMT ms-cv: - - jMDmOm/MbU26MHGiqU5BqQ.0 + - so9sekwPGE2NMvzGzqVRNw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 115ms + - 471ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:03:11 GMT + - Mon, 01 Feb 2021 23:19:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:03:03 GMT + - Mon, 01 Feb 2021 23:19:26 GMT ms-cv: - - NVsrXCrIdkyF9XXv9Lukfg.0 + - clPvopIe3UesWCd2Wj25sw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 21ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:03:11 GMT + - Mon, 01 Feb 2021 23:19:27 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:03:03.0172071+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:19:25.9587324+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 03:03:03 GMT + - Mon, 01 Feb 2021 23:19:26 GMT ms-cv: - - 6vNrADdsQUiviZvrKczqhw.0 + - d58oeSyc6UmvhH2AX50Srg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 96ms + - 123ms status: code: 200 message: OK @@ -169,22 +169,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 82596e11-cd6b-45b5-87c3-7377d6588480 + - e2efabfd-9369-47bd-ba13-97a39cfe8dda method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:sT4EAyNNsPFIlxwKDRvELElOjSy031rfHMJ9uDfCF1M1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:19:27Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc6-70f4-dbb7-3a3a0d002e44"}}' 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 03:03:04 GMT - ms-cv: bEoE2AUdD0y0DLVN55yidw.0 + date: Mon, 01 Feb 2021 23:19:27 GMT + ms-cv: oCcekLH9MkqjgXrV83zVsQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 842ms + x-processing-time: 887ms status: code: 201 message: Created @@ -200,7 +200,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -208,11 +208,11 @@ interactions: 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 03:03:05 GMT - ms-cv: n9HiL19/CUG7T6zdXNv3LQ.0 + date: Mon, 01 Feb 2021 23:19:27 GMT + ms-cv: 8MxAY6OdU06P126LeQNbmA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 833ms + x-processing-time: 386ms status: code: 201 message: Created @@ -223,21 +223,21 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) 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": "1611802985903", + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1612221568314", "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": - "2021-01-28T03:03:05Z", "senderId": "sanitized"}' + "2021-02-01T23:19:28Z", "senderId": "sanitized"}' 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 03:03:05 GMT - ms-cv: ykaYRF0ZEEq29Q7Gxm+fiA.0 + date: Mon, 01 Feb 2021 23:19:27 GMT + ms-cv: fAu0ovNwVUSs4266LM03ow.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 256ms + x-processing-time: 252ms status: code: 200 message: OK @@ -248,7 +248,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -256,10 +256,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:19:28 GMT + ms-cv: Dm1GewpLpkCW3li1QTQmew.0 strict-transport-security: max-age=2592000 - x-processing-time: 331ms + x-processing-time: 325ms status: code: 204 message: No Content @@ -276,9 +276,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:03:14 GMT + - Mon, 01 Feb 2021 23:19:30 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -290,13 +290,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:03:22 GMT + - Mon, 01 Feb 2021 23:19:44 GMT ms-cv: - - aVEzBfpKx0WHnmxAiakeXA.0 + - fPF+rtnel0uXE6gx+3Ygcg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16601ms + - 16405ms status: code: 204 message: No Content @@ -312,9 +312,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:03:30 GMT + - Mon, 01 Feb 2021 23:19:46 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -326,13 +326,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:03:38 GMT + - Mon, 01 Feb 2021 23:20:01 GMT ms-cv: - - I51/Coq+SUW3gWKhnc76CA.0 + - s8cK09kHJkGx8kD54uNCug.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16002ms + - 16382ms 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 850ff94b96cf..aaf00437b769 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:03:46 GMT + - Mon, 01 Feb 2021 23:20:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:03:39 GMT + - Mon, 01 Feb 2021 23:20:02 GMT ms-cv: - - jRs46rvLukOJRmLe7ovkuA.0 + - HbOjX7CMD0yIeSBDX2zgNQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 75ms + - 47ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:03:47 GMT + - Mon, 01 Feb 2021 23:20:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:03:38.9023623+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:20:01.5625672+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 03:03:39 GMT + - Mon, 01 Feb 2021 23:20:02 GMT ms-cv: - - cjmBThB9lU6lKublUZKVbA.0 + - hQOqUjNxi0Odwu9Ddv6Ikw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 90ms + - 125ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:03:47 GMT + - Mon, 01 Feb 2021 23:20:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:03:39 GMT + - Mon, 01 Feb 2021 23:20:02 GMT ms-cv: - - KPu22fW+mkuV6miwFoQK2g.0 + - D1V4moi670yS3GAi9fxS0Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 22ms + - 37ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:03:47 GMT + - Mon, 01 Feb 2021 23:20:03 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:03:39.1101469+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:20:01.798267+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 03:03:39 GMT + - Mon, 01 Feb 2021 23:20:02 GMT ms-cv: - - 3JX7go5x/0q72JMIgo0KAA.0 + - Kpvd90J+E0ahUbg1233i/A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 95ms + - 92ms status: code: 200 message: OK @@ -165,26 +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) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 2d826cdc-e12c-4b64-a6b6-abc967b3ee32 + - ffed4204-b2d0-4c79-a2b9-167ea6ec6675 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:HAql5yFMs-s5ggcoC6lvfy4lMfV3CLDj02pJz5siXgM1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:20:03Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc6-fe3e-1db7-3a3a0d002bbe"}}' 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 03:03:41 GMT - ms-cv: FuSswvnIr0GM2xlZIoWyrw.0 + date: Mon, 01 Feb 2021 23:20:03 GMT + ms-cv: /DgfnofHcUSj7KMGEjtVVw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 898ms + x-processing-time: 878ms status: code: 201 message: Created @@ -200,7 +200,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -208,11 +208,11 @@ interactions: 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 03:03:40 GMT - ms-cv: LiJ+nqj0fUOowqgMlRRPtQ.0 + date: Mon, 01 Feb 2021 23:20:03 GMT + ms-cv: l7iB83AiV0m0NcpVNhUF9w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 391ms + x-processing-time: 401ms status: code: 201 message: Created @@ -223,7 +223,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2020-11-01-preview3 response: @@ -231,11 +231,11 @@ interactions: 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 03:03:42 GMT - ms-cv: 2vEw6xFkY0u39ZOzMOcceQ.0 + date: Mon, 01 Feb 2021 23:20:04 GMT + ms-cv: mUgKEDWKiUqzo52QfMm3Ig.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 272ms + x-processing-time: 266ms status: code: 200 message: OK @@ -246,7 +246,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 response: @@ -254,11 +254,11 @@ interactions: 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 03:03:42 GMT - ms-cv: ATUYtStUQEuo6gEPQzrm1w.0 + date: Mon, 01 Feb 2021 23:20:04 GMT + ms-cv: zGVUvEodWUW6VGCXzhsssQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 359ms + x-processing-time: 352ms status: code: 200 message: OK @@ -269,7 +269,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 response: @@ -277,11 +277,11 @@ interactions: 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 03:03:42 GMT - ms-cv: LFRI5kvXGES2JbFfQLZojg.0 + date: Mon, 01 Feb 2021 23:20:05 GMT + ms-cv: SJPKrSIwAk2eQS3jEUH62w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 361ms + x-processing-time: 362ms status: code: 200 message: OK @@ -292,7 +292,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2020-11-01-preview3 response: @@ -300,11 +300,11 @@ interactions: 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 03:03:43 GMT - ms-cv: h6bC03glZUOL21M479c7LQ.0 + date: Mon, 01 Feb 2021 23:20:05 GMT + ms-cv: zI4V2XnPNEWEc8ZMNL8EBw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 372ms + x-processing-time: 365ms status: code: 200 message: OK @@ -315,7 +315,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -323,10 +323,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:20:05 GMT + ms-cv: ZytCWmbx2kGM8kb86OFniQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 297ms + x-processing-time: 325ms status: code: 204 message: No Content @@ -343,9 +343,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:03:51 GMT + - Mon, 01 Feb 2021 23:20:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -357,13 +357,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:03:59 GMT + - Mon, 01 Feb 2021 23:20:21 GMT ms-cv: - - 2S0mMcz81U29kitxId9M4A.0 + - bBPNdiKgjEOOG4rufGohUQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16630ms + - 15825ms status: code: 204 message: No Content @@ -379,9 +379,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:04:07 GMT + - Mon, 01 Feb 2021 23:20:23 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -393,13 +393,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:04:16 GMT + - Mon, 01 Feb 2021 23:20:38 GMT ms-cv: - - npWaCyLOi0O2R5AODfGeWA.0 + - 9UV3osczJUioYNOWrKK/3w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 17001ms + - 16641ms 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 cd21e5da3be8..dec731d6e8e0 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:04:24 GMT + - Mon, 01 Feb 2021 23:20:40 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:04:17 GMT + - Mon, 01 Feb 2021 23:20:39 GMT ms-cv: - - E4n9DKYok0OYHKWPVW/SSw.0 + - f4Px5pwNZk6orW3lopLZZQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 23ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:04:25 GMT + - Mon, 01 Feb 2021 23:20:40 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:04:16.8437063+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:20:38.5900315+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 03:04:17 GMT + - Mon, 01 Feb 2021 23:20:39 GMT ms-cv: - - hV06f1iTjEGMHJvoWaZtFA.0 + - N2d84HZid06e2vITK6BKBA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 86ms + - 87ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:04:25 GMT + - Mon, 01 Feb 2021 23:20:40 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:04:17 GMT + - Mon, 01 Feb 2021 23:20:39 GMT ms-cv: - - 5vx3/C1utEupZROdOSIbMQ.0 + - Her44Xo2o0Gmx7P7HW8t1w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 17ms + - 20ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:04:25 GMT + - Mon, 01 Feb 2021 23:20:40 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:04:17.0396038+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:20:38.7820752+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 03:04:17 GMT + - Mon, 01 Feb 2021 23:20:39 GMT ms-cv: - - SCtl4yDW8U28SFLtLVaNEQ.0 + - I6P3k0H5n0e2XRkPODLJLQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 83ms + - 86ms status: code: 200 message: OK @@ -169,22 +169,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 9835aca6-ff43-4d13-ba2f-f858f38e4275 + - 848b50dd-5e67-407f-8905-3e0e5b22f14b method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:GHb4oV86Az3F4uT726U95jqsiEAXGu7_2Ks3dXUzfPg1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:20:40Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc7-8f1a-dbb7-3a3a0d002e49"}}' 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 03:04:18 GMT - ms-cv: AoSeA6oSh06MMniGVQ9fZQ.0 + date: Mon, 01 Feb 2021 23:20:40 GMT + ms-cv: PXXBFYPP30+ZG4uFJS7zvA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 861ms + x-processing-time: 899ms status: code: 201 message: Created @@ -199,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: @@ -207,11 +207,11 @@ interactions: headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Thu, 28 Jan 2021 03:04:19 GMT - ms-cv: M7LpYrw+Dku9N9hAEbzMtA.0 + date: Mon, 01 Feb 2021 23:20:41 GMT + ms-cv: Ngd8yj412UyG9R7fF3NR5g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 918ms + x-processing-time: 901ms status: code: 201 message: Created @@ -222,7 +222,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2020-11-01-preview3 response: @@ -230,11 +230,11 @@ interactions: headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Thu, 28 Jan 2021 03:04:19 GMT - ms-cv: FvAC9oYULkWfybI0lzwo3A.0 + date: Mon, 01 Feb 2021 23:20:41 GMT + ms-cv: 7KvbKhAA50anUYAFvRsQVA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 263ms + x-processing-time: 317ms status: code: 200 message: OK @@ -245,7 +245,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -253,10 +253,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:20:42 GMT + ms-cv: dJqxi4yQFUKlLySz39PCwA.0 strict-transport-security: max-age=2592000 - x-processing-time: 344ms + x-processing-time: 335ms status: code: 204 message: No Content @@ -273,9 +273,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:04:28 GMT + - Mon, 01 Feb 2021 23:20:43 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -287,13 +287,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:04:37 GMT + - Mon, 01 Feb 2021 23:20:59 GMT ms-cv: - - r7yCXcxKrkq+ZH95V5fNqg.0 + - 921TROcHdkyOp7Xidgq8SQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16912ms + - 16773ms status: code: 204 message: No Content @@ -309,9 +309,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:04:45 GMT + - Mon, 01 Feb 2021 23:21:00 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -323,13 +323,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:04:53 GMT + - Mon, 01 Feb 2021 23:21:14 GMT ms-cv: - - i++1HjGeB0Sk04yfCY+/dQ.0 + - w4LueWX/ZE6W7/oW0oef7w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16259ms + - 16020ms 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 6e4a3861a497..72ea19e4dd18 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:05:01 GMT + - Mon, 01 Feb 2021 23:21:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:04:54 GMT + - Mon, 01 Feb 2021 23:21:15 GMT ms-cv: - - xnAUWIMs70+snRXHcOepXg.0 + - Y73NycmljUGoS+Fw5kOCxA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 30ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:05:02 GMT + - Mon, 01 Feb 2021 23:21:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:04:53.8250141+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:21:14.9303274+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 03:04:54 GMT + - Mon, 01 Feb 2021 23:21:15 GMT ms-cv: - - oF6uH5Wk9kKv4orK3HIg4A.0 + - 8Rerr61n40O65GFy48Yfpw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 84ms + - 85ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:05:02 GMT + - Mon, 01 Feb 2021 23:21:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:04:54 GMT + - Mon, 01 Feb 2021 23:21:15 GMT ms-cv: - - tlQxA2VTU0ec1UEqAvmLXg.0 + - S1xoSIQBSka4DV2LM4DnpQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 18ms + - 23ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:05:02 GMT + - Mon, 01 Feb 2021 23:21:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:04:54.0391694+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:21:15.1228654+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 03:04:54 GMT + - Mon, 01 Feb 2021 23:21:15 GMT ms-cv: - - +BoUYldDSkiqJG0qBLgwuQ.0 + - iEOfTZ9KsEG2sI4FO1ga6g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 90ms + - 87ms status: code: 200 message: OK @@ -165,26 +165,26 @@ interactions: Accept: - application/json Content-Length: - - '371' + - '369' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - f74d21d5-cb4e-4403-b4b4-b0aaa36f8bc3 + - c605e6a2-8215-4f6b-9d5a-fe07213ad68f method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:0nqHY0ienC2Fh3pX6izGvIIr1UoHjJnLIj6kP3pNlD41@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:21:16Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc8-1d16-dbb7-3a3a0d002e4d"}}' 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 03:04:55 GMT - ms-cv: NbSFywuHu0uCCcYz7PAdjA.0 + date: Mon, 01 Feb 2021 23:21:16 GMT + ms-cv: ohL958/JBkCZsObnMAC+Gg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 894ms + x-processing-time: 924ms status: code: 201 message: Created @@ -200,7 +200,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -208,11 +208,11 @@ interactions: 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 03:04:56 GMT - ms-cv: J5HAssd3tkmRfGZL1sMTwg.0 + date: Mon, 01 Feb 2021 23:21:16 GMT + ms-cv: w+gQAUFmUUWPWkZ6BFJyXg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 396ms + x-processing-time: 381ms status: code: 201 message: Created @@ -227,7 +227,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: @@ -236,10 +236,10 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Thu, 28 Jan 2021 03:04:57 GMT - ms-cv: JAK83Qp2YE6aaMdn13ArzA.0 + date: Mon, 01 Feb 2021 23:21:17 GMT + ms-cv: cFA048twuE6yynApi/p7iQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 940ms + x-processing-time: 485ms status: code: 200 message: OK @@ -250,7 +250,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: @@ -258,11 +258,11 @@ interactions: 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 03:04:58 GMT - ms-cv: pKeiKKbYY0mw/tlApVx8jg.0 + date: Mon, 01 Feb 2021 23:21:18 GMT + ms-cv: VAVsQp2XWEi13VL5yHn3OQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 704ms + x-processing-time: 721ms status: code: 200 message: OK @@ -278,7 +278,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -286,11 +286,11 @@ interactions: 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 03:04:58 GMT - ms-cv: wPiMGpViqUahMvFWjG/+LQ.0 + date: Mon, 01 Feb 2021 23:21:18 GMT + ms-cv: KvHKUxhRAEesoAW7DQPTvA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 369ms + x-processing-time: 389ms status: code: 201 message: Created @@ -305,7 +305,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: @@ -314,10 +314,10 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Thu, 28 Jan 2021 03:04:59 GMT - ms-cv: galz/GCuakmvTFtcfV6BBA.0 + date: Mon, 01 Feb 2021 23:21:19 GMT + ms-cv: Kb6zsCFNk0SgwzOiNN7DxQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 618ms + x-processing-time: 493ms status: code: 200 message: OK @@ -328,7 +328,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: @@ -336,11 +336,11 @@ interactions: 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 03:04:59 GMT - ms-cv: 7Hy97ON6dU2Vf7T2vIUROQ.0 + date: Mon, 01 Feb 2021 23:21:20 GMT + ms-cv: pTOwHhOssEq/bgvMPw4DBA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 763ms + x-processing-time: 735ms status: code: 200 message: OK @@ -356,7 +356,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -364,11 +364,11 @@ interactions: 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 03:05:00 GMT - ms-cv: VkwLav1lykStCmO7YZF3AA.0 + date: Mon, 01 Feb 2021 23:21:21 GMT + ms-cv: TCjoJnr0F0ylKEzBDmJ7aw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 392ms + x-processing-time: 403ms status: code: 201 message: Created @@ -383,7 +383,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: @@ -392,10 +392,10 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Thu, 28 Jan 2021 03:05:01 GMT - ms-cv: JC+jgOGQBUqQ0LXu2kplQQ.0 + date: Mon, 01 Feb 2021 23:21:22 GMT + ms-cv: UqrPfAD6mk2xLTla3gk72g.0 strict-transport-security: max-age=2592000 - x-processing-time: 623ms + x-processing-time: 1002ms status: code: 200 message: OK @@ -406,7 +406,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: @@ -414,11 +414,11 @@ interactions: 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 03:05:01 GMT - ms-cv: 5GMN4Y97jEebBFmenWnFLA.0 + date: Mon, 01 Feb 2021 23:21:22 GMT + ms-cv: w2knKYvDIkOg1tpARtJPPw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 255ms + x-processing-time: 250ms status: code: 200 message: OK @@ -429,7 +429,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2020-11-01-preview3 response: @@ -437,11 +437,11 @@ interactions: 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 03:05:02 GMT - ms-cv: S7SzT2NUV0iWh32PhER3jQ.0 + date: Mon, 01 Feb 2021 23:21:22 GMT + ms-cv: bJGKQXjTz0G0vwtPXKB4Hg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 260ms + x-processing-time: 283ms status: code: 200 message: OK @@ -452,7 +452,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -460,10 +460,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:21:22 GMT + ms-cv: ACuZGQSCyEerBjQBmkDQag.0 strict-transport-security: max-age=2592000 - x-processing-time: 334ms + x-processing-time: 348ms status: code: 204 message: No Content @@ -480,9 +480,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:05:10 GMT + - Mon, 01 Feb 2021 23:21:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -494,13 +494,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:05:19 GMT + - Mon, 01 Feb 2021 23:21:40 GMT ms-cv: - - n7oSrmG5YUKJDbMLrH8tug.0 + - VBZIaGGgCkaB7VHTdOjuow.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16659ms + - 17051ms status: code: 204 message: No Content @@ -516,9 +516,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:05:27 GMT + - Mon, 01 Feb 2021 23:21:41 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -530,13 +530,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:05:35 GMT + - Mon, 01 Feb 2021 23:21:57 GMT ms-cv: - - z3bCGV7z5EeU/WLuNrJ4yA.0 + - ey5vQHS020CIGdf+9PNl8A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16118ms + - 16877ms 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 1cfbd024df6f..951f045d7e04 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:05:43 GMT + - Mon, 01 Feb 2021 23:21:58 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:05:36 GMT + - Mon, 01 Feb 2021 23:21:58 GMT ms-cv: - - IhBqSpX3ukKU50Qs601dOw.0 + - IR8qAgkkJkKbpyNsfz9ZFQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 43ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:05:43 GMT + - Mon, 01 Feb 2021 23:21:59 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:05:35.4849957+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:21:57.4850953+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 03:05:36 GMT + - Mon, 01 Feb 2021 23:21:58 GMT ms-cv: - - 8SZgvf81/0SZcDHc7KVEHA.0 + - 6B5ozE6YiEuTvLaQmQuqcg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 92ms + - 253ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:05:43 GMT + - Mon, 01 Feb 2021 23:21:59 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:05:36 GMT + - Mon, 01 Feb 2021 23:21:58 GMT ms-cv: - - Q5fqlUS/QUuNB1WGUpHMOA.0 + - 4oXicPYGIEqwMQL31CyFmA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 34ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:05:43 GMT + - Mon, 01 Feb 2021 23:21:59 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:05:35.701029+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:21:57.9083946+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 03:05:36 GMT + - Mon, 01 Feb 2021 23:21:58 GMT ms-cv: - - g93T96S5VE+5gpssDmj+rQ.0 + - zn2JZowMz0mTvt9WTVRIQw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 93ms + - 171ms status: code: 200 message: OK @@ -165,26 +165,26 @@ interactions: Accept: - application/json Content-Length: - - '206' + - '204' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - c1135dbe-1897-484a-ba1a-4ce55d932adb + - 4e005603-2996-4d73-9185-054a2f9de6ec method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:QUVZHhXp9SwSg5OPq6PY8cBLtExh1Iy7xtkPahjchvk1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:21:59Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc8-c2a0-dbb7-3a3a0d002e52"}}' 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 03:05:37 GMT - ms-cv: Py4KOtHHFE2Zd8fJM1NxQw.0 + date: Mon, 01 Feb 2021 23:21:59 GMT + ms-cv: 1rikER0eHk+1ImKysJ5OAA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 898ms + x-processing-time: 913ms status: code: 201 message: Created @@ -195,11 +195,11 @@ interactions: Accept: - application/json Content-Length: - - '183' + - '182' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2020-11-01-preview3 response: @@ -207,11 +207,11 @@ interactions: headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 content-type: application/json; charset=utf-8 - date: Thu, 28 Jan 2021 03:05:37 GMT - ms-cv: Na8L2DKIlE6edRFknBOeYw.0 + date: Mon, 01 Feb 2021 23:21:59 GMT + ms-cv: /EUWgZhWNUCZxw9/fFlqcQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 447ms + x-processing-time: 458ms status: code: 201 message: Created @@ -222,29 +222,29 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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-e6d5-b62f-dbb7-3a3a0d000572?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-ffc8-c494-b0b7-3a3a0d002fec?api-version=2020-11-01-preview3 response: body: string: '' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4 - date: Thu, 28 Jan 2021 03:05:38 GMT - ms-cv: KxcEM9x3D0q5NAVuR3WkKg.0 + date: Mon, 01 Feb 2021 23:22:00 GMT + ms-cv: DK6rkh0u+ESV4EeUpATcXg.0 strict-transport-security: max-age=2592000 - x-processing-time: 477ms + x-processing-time: 514ms 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-e6d5-b62f-dbb7-3a3a0d000572?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-ffc8-c494-b0b7-3a3a0d002fec?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) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -252,10 +252,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:22:01 GMT + ms-cv: LYAa3yRCpkSle1X1IUcmhA.0 strict-transport-security: max-age=2592000 - x-processing-time: 288ms + x-processing-time: 338ms status: code: 204 message: No Content @@ -272,9 +272,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:05:46 GMT + - Mon, 01 Feb 2021 23:22:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -286,13 +286,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:05:55 GMT + - Mon, 01 Feb 2021 23:22:18 GMT ms-cv: - - hOuttqo7TEGNcxdY0U1qNQ.0 + - MFVGBbxcOUGCZXhAtKIbGA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16372ms + - 16909ms status: code: 204 message: No Content @@ -308,9 +308,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:06:02 GMT + - Mon, 01 Feb 2021 23:22:19 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -322,13 +322,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:06:11 GMT + - Mon, 01 Feb 2021 23:22:34 GMT ms-cv: - - 9tlln2CzjEKBDYw7hxKAtA.0 + - 3JviFuM7yUSGV0KU+tzvAw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16214ms + - 16381ms 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 992fac72a847..8536bdd64ea2 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:06:19 GMT + - Mon, 01 Feb 2021 23:22:35 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:06:12 GMT + - Mon, 01 Feb 2021 23:22:34 GMT ms-cv: - - hRDzVjBr1keJfjzFCuRrlw.0 + - vJ5pkAVuH0+w/zW8LYsK6w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 35ms + - 19ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:06:19 GMT + - Mon, 01 Feb 2021 23:22:36 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:06:11.3274772+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:22:34.6115112+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 03:06:12 GMT + - Mon, 01 Feb 2021 23:22:35 GMT ms-cv: - - +k78GYZx30KdgGB/NzbwBg.0 + - LRDW4x+ecUCNLMnP9KrgQA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 87ms + - 91ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:06:19 GMT + - Mon, 01 Feb 2021 23:22:36 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:06:12 GMT + - Mon, 01 Feb 2021 23:22:35 GMT ms-cv: - - 5VU90s5XJkSMP/e27jo/Fw.0 + - pFA2WIfndUSfRe7QQEp71w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 30ms + - 22ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:06:19 GMT + - Mon, 01 Feb 2021 23:22:36 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:06:11.551862+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:22:34.812464+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 03:06:12 GMT + - Mon, 01 Feb 2021 23:22:35 GMT ms-cv: - - h1OVphwQXUuyNzk9sWMhUQ.0 + - +CjMpFq/d0mW021QBABxVw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 87ms + - 93ms status: code: 200 message: OK @@ -165,26 +165,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) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 7c3111cd-4cfa-4388-a874-6365bece7c7d + - bc786b1c-d597-48ec-b853-a0c14973341e method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:VVUbRAlWVhs2m5fmK1yxiA8-cIipUadN6HVJCSQ0X7w1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:22:36Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc9-544c-9c58-373a0d002def"}}' 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 03:06:13 GMT - ms-cv: A4iMhv2H1U2HPDnNvhEBkQ.0 + date: Mon, 01 Feb 2021 23:22:36 GMT + ms-cv: 2QadoNBVw0+1kmPGyToDlA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 834ms + x-processing-time: 1433ms status: code: 201 message: Created @@ -200,7 +200,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -208,11 +208,11 @@ interactions: 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 03:06:13 GMT - ms-cv: xCIXMfhIdEKWw4eobdkizA.0 + date: Mon, 01 Feb 2021 23:22:37 GMT + ms-cv: uQU0u5jR6EaupuKhQI9AnA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 386ms + x-processing-time: 385ms status: code: 201 message: Created @@ -223,7 +223,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -231,10 +231,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:22:37 GMT + ms-cv: 3oVt89CM6EKRxcnf/8Osdw.0 strict-transport-security: max-age=2592000 - x-processing-time: 295ms + x-processing-time: 353ms status: code: 204 message: No Content @@ -251,9 +251,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:06:21 GMT + - Mon, 01 Feb 2021 23:22:39 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -265,13 +265,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:06:30 GMT + - Mon, 01 Feb 2021 23:22:54 GMT ms-cv: - - L+0xHN9KYUmNNT0j1olh7Q.0 + - Bfl9O3aTg0mhInatUkltCg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16885ms + - 16542ms status: code: 204 message: No Content @@ -287,9 +287,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:06:38 GMT + - Mon, 01 Feb 2021 23:22:55 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -301,13 +301,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:06:47 GMT + - Mon, 01 Feb 2021 23:23:11 GMT ms-cv: - - hpbVJt8hMEa5peCg7Lqnkw.0 + - ieTBbeMSNE2DUYblodJyzA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16472ms + - 16338ms 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 075ce0c1c154..314d10e97bb7 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:06:55 GMT + - Mon, 01 Feb 2021 23:23:12 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:06:47 GMT + - Mon, 01 Feb 2021 23:23:10 GMT ms-cv: - - yZoNTiJD40q2Q9LrSKtcfA.0 + - 1PQm5xA2xEaSXsV8I18+iw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 20ms + - 23ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:06:55 GMT + - Mon, 01 Feb 2021 23:23:12 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:06:47.2693999+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:23:10.7955443+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 03:06:47 GMT + - Mon, 01 Feb 2021 23:23:10 GMT ms-cv: - - SkgkQ+6K706xKPBzhleCAg.0 + - QXZoCTJ+2k+xn7a2sjEcJg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 88ms + - 124ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:06:55 GMT + - Mon, 01 Feb 2021 23:23:12 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:06:47 GMT + - Mon, 01 Feb 2021 23:23:10 GMT ms-cv: - - Iz9zVl8GZUeVBsJ9fkkmBA.0 + - QisxI+Bpgk6Jn/2IGZPgRQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 23ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:06:55 GMT + - Mon, 01 Feb 2021 23:23:12 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:06:47.4863528+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:23:10.9940038+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 03:06:47 GMT + - Mon, 01 Feb 2021 23:23:11 GMT ms-cv: - - VL6MGSLTgUSwDv4JoRgCPw.0 + - 9W15esyoC02p75dxwK8onQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 91ms + - 90ms status: code: 200 message: OK @@ -169,22 +169,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 8ac8729a-484b-47d1-aaf0-9b19a974d4e7 + - 1c1f2397-e606-4f51-88c4-d4f1d8245f84 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:BgfIWLP2boNcEYEZzzLs69MML9TI7T55P8BisDSQR-Q1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:23:12Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffc9-e181-9c58-373a0d002df1"}}' 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 03:06:48 GMT - ms-cv: 6HG24F3Iv0y7/w3oGhnsOA.0 + date: Mon, 01 Feb 2021 23:23:12 GMT + ms-cv: STB7amyigkKPCp3dLVeX2w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 834ms + x-processing-time: 913ms status: code: 201 message: Created @@ -200,7 +200,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -208,11 +208,11 @@ interactions: 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 03:06:49 GMT - ms-cv: nypeTzyQ1UabfJQyu/NjgQ.0 + date: Mon, 01 Feb 2021 23:23:13 GMT + ms-cv: ReCQ1NoYvkebEh2MVnaTuQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 368ms + x-processing-time: 740ms status: code: 201 message: Created @@ -227,7 +227,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2020-11-01-preview3 response: @@ -236,10 +236,10 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Thu, 28 Jan 2021 03:06:50 GMT - ms-cv: EUBwZUZANUOPzYjzS/LOsQ.0 + date: Mon, 01 Feb 2021 23:23:14 GMT + ms-cv: bckuD4xjEkSVT16+MYV33w.0 strict-transport-security: max-age=2592000 - x-processing-time: 927ms + x-processing-time: 983ms status: code: 200 message: OK @@ -250,7 +250,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -258,10 +258,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:23:14 GMT + ms-cv: opHMk4nMwEWG8PnnjtulCA.0 strict-transport-security: max-age=2592000 - x-processing-time: 288ms + x-processing-time: 321ms status: code: 204 message: No Content @@ -278,9 +278,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:06:58 GMT + - Mon, 01 Feb 2021 23:23:16 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -292,13 +292,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:07:07 GMT + - Mon, 01 Feb 2021 23:23:31 GMT ms-cv: - - 3G9eBgHVH0WczusODLlaLg.0 + - kIDhxGSX1U+VB09tCJ0++w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16147ms + - 16190ms status: code: 204 message: No Content @@ -314,9 +314,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:07:14 GMT + - Mon, 01 Feb 2021 23:23:32 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -328,13 +328,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:07:24 GMT + - Mon, 01 Feb 2021 23:23:47 GMT ms-cv: - - IHOLIKTPLUyoZfaPYKUOGQ.0 + - fOvspotyjEO9ckTKVxfhSA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16759ms + - 15997ms 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 22c2f10671b2..fc3420758429 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:07:31 GMT + - Mon, 01 Feb 2021 23:23:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:07:24 GMT + - Mon, 01 Feb 2021 23:23:47 GMT ms-cv: - - IFT8n+W7b0WADhwUBdFgrQ.0 + - z9cXxjKO3kq2FNRq9Ut2nw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 25ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:07:32 GMT + - Mon, 01 Feb 2021 23:23:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:07:23.8414058+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:23:46.9704687+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 03:07:24 GMT + - Mon, 01 Feb 2021 23:23:47 GMT ms-cv: - - YmhZLgED20KUoU3SVcM23Q.0 + - ZDEm3qYXdECk2ZT/OOe1Uw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 94ms + - 112ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:07:32 GMT + - Mon, 01 Feb 2021 23:23:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,9 +106,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:07:24 GMT + - Mon, 01 Feb 2021 23:23:47 GMT ms-cv: - - ikBNtX1xD0OeD7X2CHbgjA.0 + - cOJDgcuScESmBfAU8nR/KQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:07:32 GMT + - Mon, 01 Feb 2021 23:23:48 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:07:23.0583605+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:23:47.250249+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 03:07:24 GMT + - Mon, 01 Feb 2021 23:23:48 GMT ms-cv: - - 9GPSpfvmGU23IinvNHAs8g.0 + - p8xayfoxmUKKyCjvuAx7Ng.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 90ms + - 153ms status: code: 200 message: OK @@ -165,26 +165,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) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 0d06e00d-998d-4b8e-8c24-66ea7c26bd5c + - 7aabb880-06f2-45e1-b093-018d3df07ce0 method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:tEPkqgR1t_KWJSQMF31NKlB9SlRBgLnh3MsMO-pxdcw1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:23:48Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffca-6edb-dbb7-3a3a0d002e56"}}' 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 03:07:25 GMT - ms-cv: pq+Qz9YPhUqLht7e7Tutqw.0 + date: Mon, 01 Feb 2021 23:23:48 GMT + ms-cv: 7j8MQyBdkkuL/uA8vZ2J7A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 837ms + x-processing-time: 882ms status: code: 201 message: Created @@ -195,7 +195,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/typing?api-version=2020-11-01-preview3 response: @@ -204,10 +204,10 @@ interactions: headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4 content-length: '0' - date: Thu, 28 Jan 2021 03:07:26 GMT - ms-cv: LxQ01okKFUCr8lL6rDYhUQ.0 + date: Mon, 01 Feb 2021 23:23:49 GMT + ms-cv: Krzp39HLdE20CGu8gO5XZw.0 strict-transport-security: max-age=2592000 - x-processing-time: 847ms + x-processing-time: 383ms status: code: 200 message: OK @@ -218,7 +218,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -226,10 +226,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:23:49 GMT + ms-cv: xeRX+l4sQ0CKg5zWWLrF0g.0 strict-transport-security: max-age=2592000 - x-processing-time: 286ms + x-processing-time: 327ms status: code: 204 message: No Content @@ -246,9 +246,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:07:34 GMT + - Mon, 01 Feb 2021 23:23:51 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -260,13 +260,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:07:43 GMT + - Mon, 01 Feb 2021 23:24:06 GMT ms-cv: - - KGGOf7oVcEm53Ejm9n0U2Q.0 + - GF9toK+rIUOudaKkjzDpVw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16073ms + - 16644ms status: code: 204 message: No Content @@ -282,9 +282,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:07:50 GMT + - Mon, 01 Feb 2021 23:24:07 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -296,13 +296,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:07:59 GMT + - Mon, 01 Feb 2021 23:24:22 GMT ms-cv: - - eDnOrzvl/EilF+FJSxGCig.0 + - 6C5qXWa4E0WTbHl2lwG5RQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16185ms + - 16673ms 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 2a9e79e5be10..8f7ab1f345ea 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:08:07 GMT + - Mon, 01 Feb 2021 23:24:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:08:00 GMT + - Mon, 01 Feb 2021 23:24:23 GMT ms-cv: - - D+iw+kIh40ylCbLIpeToYg.0 + - NQueO+R7EkOZVyAtuON4yQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 25ms + - 20ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:08:07 GMT + - Mon, 01 Feb 2021 23:24:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:07:59.167218+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:24:22.0437936+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 03:08:00 GMT + - Mon, 01 Feb 2021 23:24:23 GMT ms-cv: - - w9PGb74Jg0KHEQ6/fCc2MQ.0 + - vkN9GtijPUq1zJMp5XnuAw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 93ms + - 90ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:08:07 GMT + - Mon, 01 Feb 2021 23:24:24 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:08:00 GMT + - Mon, 01 Feb 2021 23:24:23 GMT ms-cv: - - fLBE0x5JNEGMr00CMKMG8Q.0 + - a/aMXilVbEy+ubNKyuKsQA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 20ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:08:07 GMT + - Mon, 01 Feb 2021 23:24:25 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:07:59.3702139+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:24:23.2449312+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 03:08:00 GMT + - Mon, 01 Feb 2021 23:24:23 GMT ms-cv: - - NOuD925xjE27zfAYgOKH7g.0 + - MnmfPeTv+Ums0E1JwYDWYg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 91ms + - 90ms status: code: 200 message: OK @@ -169,22 +169,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - 9b563f05-244a-4324-ae64-0039901f8398 + - 3a6dd79b-034a-4896-8ee7-323f65ddbecd method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:2MTI6PTB0PTcFtLheTgRhizt-Nj8t_tXmaC40HyGsUs1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:24:25Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffca-fbd8-9c58-373a0d002df3"}}' 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 03:08:01 GMT - ms-cv: hhAYQ/CUX02/U3J5N0rrcg.0 + date: Mon, 01 Feb 2021 23:24:25 GMT + ms-cv: AeoCrhUwQEm7knUWoXsJmw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 857ms + x-processing-time: 1348ms status: code: 201 message: Created @@ -200,7 +200,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2020-11-01-preview3 response: @@ -208,11 +208,11 @@ interactions: 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 03:08:01 GMT - ms-cv: OZfMqOHLc02MwL2AjQjfaw.0 + date: Mon, 01 Feb 2021 23:24:25 GMT + ms-cv: RaphM8ii4E62Td9Vy3tRzg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 383ms + x-processing-time: 378ms status: code: 201 message: Created @@ -227,7 +227,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2020-11-01-preview3 response: @@ -235,10 +235,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:24:26 GMT + ms-cv: 3UNeoTGzQU2LgfF85fTEJw.0 strict-transport-security: max-age=2592000 - x-processing-time: 645ms + x-processing-time: 689ms status: code: 204 message: No Content @@ -249,7 +249,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -257,8 +257,8 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:24:26 GMT + ms-cv: j0yeH8iha0aYMv7WFDihbQ.0 strict-transport-security: max-age=2592000 x-processing-time: 292ms status: @@ -277,9 +277,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:08:10 GMT + - Mon, 01 Feb 2021 23:24:28 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -291,13 +291,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:08:19 GMT + - Mon, 01 Feb 2021 23:24:42 GMT ms-cv: - - S+Y3SEIfnU+k30RFTCGBKg.0 + - BHz24HBbQUqWOnI43uiBmA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16432ms + - 16392ms status: code: 204 message: No Content @@ -313,9 +313,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:08:26 GMT + - Mon, 01 Feb 2021 23:24:44 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -327,13 +327,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:08:35 GMT + - Mon, 01 Feb 2021 23:25:00 GMT ms-cv: - - ptw3chJVIk2ref9LjqcjiA.0 + - T7RlBrl7pk2oGnwnOm3tgw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16319ms + - 16807ms 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 6b3574278aeb..08d69a5868bb 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:08:43 GMT + - Mon, 01 Feb 2021 23:25:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -26,15 +26,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:08:35 GMT + - Mon, 01 Feb 2021 23:25:00 GMT ms-cv: - - txR//a/5fUuAFNxHBeOoPQ.0 + - 2dcZKwGztEOEKkZAsul9eQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 21ms + - 17ms status: code: 200 message: OK @@ -52,30 +52,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:08:43 GMT + - Mon, 01 Feb 2021 23:25:01 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:08:35.2067811+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:24:59.2464733+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 03:08:35 GMT + - Mon, 01 Feb 2021 23:25:00 GMT ms-cv: - - Td0eks1vBkSGHR13wQjHng.0 + - fjhnvlxBckyB76BFwWBzDA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 96ms + - 313ms status: code: 200 message: OK @@ -91,9 +91,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:08:43 GMT + - Mon, 01 Feb 2021 23:25:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: POST @@ -106,15 +106,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 28 Jan 2021 03:08:35 GMT + - Mon, 01 Feb 2021 23:25:00 GMT ms-cv: - - kBqByIqgIkOsjCGlZS6JVA.0 + - 9xbaB/WHXkKzoHd2WO9bWA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 30ms + - 18ms status: code: 200 message: OK @@ -132,30 +132,30 @@ interactions: Content-Type: - application/json Date: - - Thu, 28 Jan 2021 03:08:43 GMT + - Mon, 01 Feb 2021 23:25:02 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 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-29T03:08:35.4365294+00:00"}' + body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2021-02-02T23:25:00.4460578+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 03:08:36 GMT + - Mon, 01 Feb 2021 23:25:01 GMT ms-cv: - - SJtYZCor9EatzaY4F0B4Rg.0 + - S9tEyVnz6UCRoXkZtHAmJQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 114ms + - 97ms status: code: 200 message: OK @@ -169,22 +169,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) repeatability-Request-ID: - - b7bfbd3e-6ca1-41b2-9fcd-e0b34b27515e + - 5344baaa-3075-4ee4-8584-1f1266d2f48f method: POST uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2020-11-01-preview3 response: - 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"}}' + body: '{"chatThread": {"id": "19:c1g_oYg7_vPsF712L8A4rTSaGthY3oPMWbFopDEKJ-Q1@thread.v2", + "topic": "test topic", "createdOn": "2021-02-01T23:25:02Z", "createdBy": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000007-ffcb-8c56-1db7-3a3a0d002bc4"}}' 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 03:08:37 GMT - ms-cv: ODQmxZ2ChkqXCWiKGBr+bw.0 + date: Mon, 01 Feb 2021 23:25:02 GMT + ms-cv: 8nmV+pdLDUajx3HByK3wAw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1135ms + x-processing-time: 1336ms status: code: 201 message: Created @@ -199,7 +199,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2020-11-01-preview3 response: @@ -207,10 +207,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:25:03 GMT + ms-cv: fCHD61AmB0iauk0cKu51jA.0 strict-transport-security: max-age=2592000 - x-processing-time: 389ms + x-processing-time: 519ms status: code: 204 message: No Content @@ -221,7 +221,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b4 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: @@ -229,10 +229,10 @@ interactions: string: '' headers: 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 + date: Mon, 01 Feb 2021 23:25:03 GMT + ms-cv: 622slNwA/0GD/HwYJmKGyg.0 strict-transport-security: max-age=2592000 - x-processing-time: 296ms + x-processing-time: 343ms status: code: 204 message: No Content @@ -249,9 +249,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:08:46 GMT + - Mon, 01 Feb 2021 23:25:04 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -263,13 +263,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:08:54 GMT + - Mon, 01 Feb 2021 23:25:20 GMT ms-cv: - - 18RmxlemQUiqfTUFJdxUOQ.0 + - 425u9POIzUiVuM3AMJf4sw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16339ms + - 16594ms status: code: 204 message: No Content @@ -285,9 +285,9 @@ interactions: Content-Length: - '0' Date: - - Thu, 28 Jan 2021 03:09:02 GMT + - Mon, 01 Feb 2021 23:25:21 GMT User-Agent: - - azsdk-python-communication-administration/1.0.0b3 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) x-ms-return-client-request-id: - 'true' method: DELETE @@ -299,13 +299,13 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Thu, 28 Jan 2021 03:09:10 GMT + - Mon, 01 Feb 2021 23:25:37 GMT ms-cv: - - sfYJfMjcbk2WBS/f9y31ng.0 + - ooMUGjkXbkqGD3G4ZsL8tg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 16472ms + - 16964ms 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 7fbb585737e5..4c6d5e2affd3 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client.py @@ -83,7 +83,7 @@ def mock_send(*_, **__): 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") + user = CommunicationUserIdentifier("8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041") participants = [ChatThreadParticipant( user=user, display_name='name', 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 aa5d78009336..e76a0810ca56 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 @@ -5,8 +5,7 @@ # ------------------------------------------------------------------------- from azure.core.credentials import AccessToken from azure.communication.chat.aio import ( - ChatClient, - CommunicationUserCredential + ChatClient ) from azure.communication.chat import ( ChatThreadParticipant, @@ -70,7 +69,7 @@ async def mock_send(*_, **__): 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") + user = CommunicationUserIdentifier("8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041") participants=[ChatThreadParticipant( user=user, display_name='name', 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 cb12d1379a53..c4778586c2cc 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 @@ -72,18 +72,38 @@ def test_send_message_w_type(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=201, json_payload={"id": message_id}) - chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) + chat_message_types = [ChatMessageType.TEXT, ChatMessageType.HTML, "text", "html"] - create_message_result = None + for chat_message_type in chat_message_types: - chat_message_types = [ChatMessageType.TEXT, ChatMessageType.HTML, - ChatMessageType.PARTICIPANT_ADDED, ChatMessageType.PARTICIPANT_REMOVED, ChatMessageType.TOPIC_UPDATED, - "text", "html", "participant_added", "participant_removed", "topic_updated"] + def mock_send(*_, **__): + return mock_response(status_code=201, json_payload={ + "id": message_id, + "type": chat_message_type, + "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)) - for chat_message_type in chat_message_types: try: content='hello world' sender_display_name='sender name' @@ -101,14 +121,20 @@ def test_send_message_w_invalid_type_throws_error(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" message_id='1596823919339' raised = False + message_str = "Hi I am Bob." + # the payload is irrelevant - it'll fail before def mock_send(*_, **__): - return mock_response(status_code=201, json_payload={"id": message_id}) + 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", + chat_message_types = [ChatMessageType.PARTICIPANT_ADDED, ChatMessageType.PARTICIPANT_REMOVED, + ChatMessageType.TOPIC_UPDATED, "participant_added", "participant_removed", "topic_updated", + "ChatMessageType.TEXT", "ChatMessageType.HTML", "ChatMessageType.PARTICIPANT_ADDED", "ChatMessageType.PARTICIPANT_REMOVED", "ChatMessageType.TOPIC_UPDATED"] for chat_message_type in chat_message_types: @@ -347,7 +373,7 @@ def mock_send(*_, **__): chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) new_participant = ChatThreadParticipant( - user=CommunicationUser(new_participant_id), + user=CommunicationUserIdentifier(new_participant_id), display_name='name', share_history_time=datetime.utcnow()) @@ -390,7 +416,7 @@ def mock_send(*_, **__): chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) try: - chat_thread_client.remove_participant(CommunicationUserIdentifier(participant_id)) + chat_thread_client.remove_participant(user=CommunicationUserIdentifier(participant_id)) except: raised = True 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 919569952688..bf404b459930 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 @@ -71,19 +71,39 @@ 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)) + message_str = "Hi I am Bob." 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"] + chat_message_types = [ChatMessageType.TEXT, ChatMessageType.HTML, "text", "html"] for chat_message_type in chat_message_types: + + async def mock_send(*_, **__): + return mock_response(status_code=201, json_payload={ + "id": message_id, + "type": chat_message_type, + "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)) + try: content='hello world' sender_display_name='sender name' @@ -104,15 +124,19 @@ async def test_send_message_w_invalid_type_throws_error(): message_id='1596823919339' raised = False + # the payload is irrelevant - it'll fail before 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"] + chat_message_types = [ChatMessageType.PARTICIPANT_ADDED, ChatMessageType.PARTICIPANT_REMOVED, + ChatMessageType.TOPIC_UPDATED, "participant_added", "participant_removed", "topic_updated", + "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' @@ -407,7 +431,7 @@ async def mock_send(*_, **__): chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) new_participant = ChatThreadParticipant( - user=CommunicationUser(new_participant_id), + user=CommunicationUserIdentifier(new_participant_id), display_name='name', share_history_time=datetime.utcnow()) participants = [new_participant] @@ -430,7 +454,7 @@ async def mock_send(*_, **__): chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) try: - await chat_thread_client.remove_participant(CommunicationUserIdentifier(participant_id)) + await chat_thread_client.remove_participant(user=CommunicationUserIdentifier(participant_id)) except: raised = True From 54e3411573d7482c8f027962ddbf7dcb8754d433 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Mon, 1 Feb 2021 18:31:46 -0800 Subject: [PATCH 6/6] pylint fixes --- .../azure/communication/chat/__init__.py | 1 - .../azure/communication/chat/_chat_client.py | 1 - .../azure/communication/chat/_chat_thread_client.py | 5 +++-- .../communication/chat/aio/_chat_thread_client_async.py | 5 +++-- .../samples/chat_thread_client_sample_async.py | 7 +++++-- 5 files changed, 11 insertions(+), 8 deletions(-) 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 0838d4012343..b96a16e4aff7 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py @@ -29,7 +29,6 @@ 'CommunicationTokenCredential', 'CommunicationTokenRefreshOptions', 'CommunicationUserIdentifier', - 'CommunicationUserCredential', 'ChatThreadParticipant', 'ChatMessageType' ] 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 19b4930004f3..d2041fdf6499 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 @@ -11,7 +11,6 @@ from urlparse import urlparse # type: ignore from azure.core.tracing.decorator import distributed_trace -from azure.core.exceptions import HttpResponseError from azure.core.pipeline.policies import BearerTokenCredentialPolicy from ._chat_thread_client import ChatThreadClient 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 9adfe78d1e7f..6e39b0b176db 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 @@ -249,7 +249,8 @@ def send_message( :param content: Required. Chat message content. :type content: str - :param chat_message_type: The chat message type. Possible values include: "text", "html". Default: ChatMessageType.TEXT + :param chat_message_type: The chat message type. Possible values include: "text", "html". + 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. @@ -282,7 +283,7 @@ def send_message( if chat_message_type not in [ChatMessageType.TEXT, ChatMessageType.HTML]: raise ValueError( - "chat_message_type: {message_type} can be only 'text' or 'html'".format(message_type=chat_message_type)) + "chat_message_type: {message_type} can be only 'text' or 'html'".format(message_type=chat_message_type)) sender_display_name = kwargs.pop("sender_display_name", None) 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 fe1aed56dde3..8a042712b7bc 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 @@ -242,7 +242,8 @@ async def send_message( :param content: Required. Chat message content. :type content: str - :param chat_message_type: The chat message type. Possible values include: "text", "html". Default: ChatMessageType.TEXT + :param chat_message_type: The chat message type. Possible values include: "text", "html". + 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. @@ -275,7 +276,7 @@ async def send_message( if chat_message_type not in [ChatMessageType.TEXT, ChatMessageType.HTML]: raise ValueError( - "chat_message_type: {message_type} can be only 'text' or 'html'".format(message_type=chat_message_type)) + "chat_message_type: {message_type} can be only 'text' or 'html'".format(message_type=chat_message_type)) sender_display_name = kwargs.pop("sender_display_name", None) 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 f4263ebf021d..2d70572bc3cb 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 @@ -234,8 +234,11 @@ async def add_participants_async(self): print("add_participants succeeded") async def remove_participant_async(self): - from azure.communication.chat.aio import ChatThreadClient, CommunicationUserCredential - chat_thread_client = ChatThreadClient(self.endpoint, CommunicationUserCredential(self.token), self._thread_id) + from azure.communication.chat.aio import ChatThreadClient, CommunicationTokenCredential, \ + CommunicationTokenRefreshOptions + refresh_options = CommunicationTokenRefreshOptions(self.token) + chat_thread_client = ChatThreadClient(self.endpoint, CommunicationTokenCredential(refresh_options), + self._thread_id) async with chat_thread_client: # [START remove_participant]