From 388beb9297002f983e3df7d30f05a07cff4badd9 Mon Sep 17 00:00:00 2001 From: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com> Date: Thu, 18 Mar 2021 17:24:36 -0700 Subject: [PATCH] Rsarkar/communication chat preview5 (#17325) * Rename user_identifier suffix (#17178) * make CommunicationUserIdentifierSerializer private * CommunicationTokenCredential + AccessToken fix - Initialize CommunicationTokenCredential with token and not with CommunicationTokenRefreshOptions - Convert AccessToken.expires_on to int as compared to datetime * add token_refresher to CommunicationTokenCredential * update docstring * Identifier fields renaming _ credential import fixes in sample code * preview5 models generated - CommunicationError renamed to ChatError * rename ChatThread to ChatThreadProperties * get_chat_thread renamed to get_properties - Rename method - Move get_properties from ChatClient to ChatThreadClient - Change method signature - remove parameter thread_id - Modify unit and e2e tests - move tests from chat_thread_* to chat_thread_client_* - Update README.md * Rename ChatThreadInfo to ChatThreadItem * Remove add_participant * Rename repeatability_request_id to idempotency_token * Change send_message return type from str to SendChatMessageResult * Changes made due to rename of CommunicationError -> ChatError - Changes made due to flattening of CreateChatThreadResult and AddChatParticipantsResult * test recording added * Address PR comments * pylint fixes --- .../azure-communication-chat/CHANGELOG.md | 11 +- .../azure-communication-chat/README.md | 117 ++----- .../azure/communication/chat/__init__.py | 15 +- .../azure/communication/chat/_chat_client.py | 56 +-- .../communication/chat/_chat_thread_client.py | 148 ++++---- ...> _communication_identifier_serializer.py} | 0 .../_azure_communication_chat_service.py | 20 ++ .../chat/_generated/_configuration.py | 2 +- .../aio/_azure_communication_chat_service.py | 18 + .../chat/_generated/aio/_configuration.py | 2 +- .../aio/operations/_chat_operations.py | 96 +---- .../aio/operations/_chat_thread_operations.py | 91 ++++- .../chat/_generated/models/__init__.py | 30 +- .../chat/_generated/models/_models.py | 243 ++++++------- .../chat/_generated/models/_models_py3.py | 264 ++++++-------- .../_generated/operations/_chat_operations.py | 97 +---- .../operations/_chat_thread_operations.py | 92 ++++- .../azure/communication/chat/_models.py | 27 +- .../chat/_shared/user_credential.py | 21 +- .../chat/_shared/user_credential_async.py | 20 +- .../azure/communication/chat/_utils.py | 26 +- .../azure/communication/chat/aio/__init__.py | 5 +- .../chat/aio/_chat_client_async.py | 56 +-- .../chat/aio/_chat_thread_client_async.py | 146 ++++---- .../samples/chat_client_sample.py | 87 ++--- .../samples/chat_client_sample_async.py | 97 +++-- .../samples/chat_thread_client_sample.py | 84 ++--- .../chat_thread_client_sample_async.py | 79 ++--- .../swagger/SWAGGER.md | 11 +- ...est_communication_identifier_serializer.py | 2 +- ...ient_e2e.test_access_token_validation.yaml | 105 ++++-- ...at_client_e2e.test_create_chat_thread.yaml | 72 ++-- ..._create_chat_thread_w_no_participants.yaml | 72 ++-- ...hat_thread_w_repeatability_request_id.yaml | 96 ++--- ...at_client_e2e.test_delete_chat_thread.yaml | 82 ++--- ..._chat_client_e2e.test_get_chat_thread.yaml | 235 ------------- ...hat_client_e2e.test_get_thread_client.yaml | 74 ++-- ...hat_client_e2e.test_list_chat_threads.yaml | 82 ++--- ...e_async.test_create_chat_thread_async.yaml | 76 ++-- ...e_chat_thread_w_no_participants_async.yaml | 76 ++-- ...read_w_repeatability_request_id_async.yaml | 102 +++--- ...ent_e2e_async.test_delete_chat_thread.yaml | 88 ++--- ...client_e2e_async.test_get_chat_thread.yaml | 208 ----------- ...ient_e2e_async.test_get_thread_client.yaml | 78 ++--- ...ient_e2e_async.test_list_chat_threads.yaml | 88 ++--- ...at_thread_client_e2e.test_add_members.yaml | 299 ---------------- ...read_client_e2e.test_add_participants.yaml | 122 +++---- ...thread_client_e2e.test_delete_message.yaml | 134 +++---- ...at_thread_client_e2e.test_get_message.yaml | 138 ++++---- ...hread_client_e2e.test_get_properties.yaml} | 140 ++++---- ...t_thread_client_e2e.test_list_members.yaml | 295 ---------------- ..._thread_client_e2e.test_list_messages.yaml | 162 ++++----- ...ead_client_e2e.test_list_participants.yaml | 132 +++---- ...ad_client_e2e.test_list_read_receipts.yaml | 212 +++++------ ..._thread_client_e2e.test_remove_member.yaml | 331 ------------------ ...ad_client_e2e.test_remove_participant.yaml | 134 +++---- ...t_thread_client_e2e.test_send_message.yaml | 122 +++---- ...ead_client_e2e.test_send_read_receipt.yaml | 132 +++---- ...ent_e2e.test_send_typing_notification.yaml | 122 +++---- ...thread_client_e2e.test_update_message.yaml | 132 +++---- ..._thread_client_e2e.test_update_thread.yaml | 298 ---------------- ...t_thread_client_e2e.test_update_topic.yaml | 122 +++---- ...ead_client_e2e_async.test_add_members.yaml | 269 -------------- ...lient_e2e_async.test_add_participants.yaml | 128 +++---- ..._client_e2e_async.test_delete_message.yaml | 140 ++++---- ...ead_client_e2e_async.test_get_message.yaml | 146 ++++---- ...client_e2e_async.test_get_properties.yaml} | 147 ++++---- ...ad_client_e2e_async.test_list_members.yaml | 265 -------------- ...d_client_e2e_async.test_list_messages.yaml | 178 +++++----- ...ient_e2e_async.test_list_participants.yaml | 142 ++++---- ...ent_e2e_async.test_list_read_receipts.yaml | 236 ++++++------- ...d_client_e2e_async.test_remove_member.yaml | 291 --------------- ...ent_e2e_async.test_remove_participant.yaml | 140 ++++---- ...ad_client_e2e_async.test_send_message.yaml | 128 +++---- ...ient_e2e_async.test_send_read_receipt.yaml | 140 ++++---- ...e_async.test_send_typing_notification.yaml | 128 +++---- ..._client_e2e_async.test_update_message.yaml | 138 ++++---- ...d_client_e2e_async.test_update_thread.yaml | 269 -------------- ...ad_client_e2e_async.test_update_topic.yaml | 128 +++---- .../tests/test_chat_client.py | 35 +- .../tests/test_chat_client_async.py | 34 +- .../tests/test_chat_client_e2e.py | 38 +- .../tests/test_chat_client_e2e_async.py | 34 +- .../tests/test_chat_thread_client.py | 102 ++---- .../tests/test_chat_thread_client_async.py | 106 ++---- .../tests/test_chat_thread_client_e2e.py | 47 +-- .../test_chat_thread_client_e2e_async.py | 61 ++-- .../identity/_shared/user_credential.py | 19 +- .../identity/_shared/user_credential_async.py | 20 +- .../communication/identity/_shared/utils.py | 5 + 90 files changed, 3472 insertions(+), 6566 deletions(-) rename sdk/communication/azure-communication-chat/azure/communication/chat/{communication_identifier_serializer.py => _communication_identifier_serializer.py} (100%) delete mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml delete mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml delete mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_members.yaml rename sdk/communication/azure-communication-chat/tests/recordings/{test_chat_thread_client_e2e.test_add_participant.yaml => test_chat_thread_client_e2e.test_get_properties.yaml} (62%) delete mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_members.yaml delete mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_member.yaml delete mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_thread.yaml delete mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_members.yaml rename sdk/communication/azure-communication-chat/tests/recordings/{test_chat_thread_client_e2e_async.test_add_participant.yaml => test_chat_thread_client_e2e_async.test_get_properties.yaml} (57%) delete mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_members.yaml delete mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_member.yaml delete mode 100644 sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_thread.yaml diff --git a/sdk/communication/azure-communication-chat/CHANGELOG.md b/sdk/communication/azure-communication-chat/CHANGELOG.md index ead52573736f..4cecb639f150 100644 --- a/sdk/communication/azure-communication-chat/CHANGELOG.md +++ b/sdk/communication/azure-communication-chat/CHANGELOG.md @@ -1,7 +1,16 @@ # Release History ## 1.0.0b6 (Unreleased) - +### Breaking Changes +- Renamed `ChatThread` to `ChatThreadProperties`. +- Renamed `get_chat_thread` to `get_properties`. +- Moved `get_properties` under `ChatThreadClient`. +- Renamed `ChatThreadInfo` to `ChatThreadItem`. +- Removed `ChatThreadClient.add_participant` method. +- Renamed `repeatability_request_id` to `idempotency_token`. +- Changed return type of `send_message` to `SendChatMessageResult`. +- Replaced `CommunicationError` with `ChatError`. +- Refactored `CommunicationTokenCredential` constructor to accept `token` instead of `CommunicationTokenRefreshOptions`. ## 1.0.0b5 (2021-03-09) ### Breaking Changes diff --git a/sdk/communication/azure-communication-chat/README.md b/sdk/communication/azure-communication-chat/README.md index c99b812567bd..5c1d63426700 100644 --- a/sdk/communication/azure-communication-chat/README.md +++ b/sdk/communication/azure-communication-chat/README.md @@ -44,14 +44,11 @@ it with this token. It is because the initiator of the create request must be in This will allow you to create, get, list or delete chat threads. ```python -from azure.communication.chat import ChatClient -from azure.communication.identity._shared.user_credential import CommunicationTokenCredential -from azure.communication.identity._shared.user_token_refresh_options import CommunicationTokenRefreshOptions +from azure.communication.chat import ChatClient, CommunicationTokenCredential # Your unique Azure Communication service endpoint endpoint = "https://.communcationservices.azure.com" -refresh_options = CommunicationTokenRefreshOptions(token) -chat_client = ChatClient(endpoint, CommunicationTokenCredential(refresh_options)) +chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) ``` ## Create Chat Thread Client @@ -67,15 +64,15 @@ chat_thread_client = chat_client.get_chat_thread_client(create_chat_thread_resul ``` 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 +request multiple times with the same Idempotency-Token and it will get back an appropriate response without +the server executing the request multiple times. The value of the Idempotency-Token is an opaque string representing a client-generated, globally unique for all time, identifier for the request. ```python create_chat_thread_result = chat_client.create_chat_thread( topic, thread_participants=thread_participants, - repeatability_request_id=repeatability_request_id + idempotency_token=idempotency_token ) chat_thread_client = chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) ``` @@ -96,11 +93,10 @@ Once you initialized a `ChatClient` class, you can do the following chat operati ## Create, get, update, and delete threads -Perform CRD(Create-Read-Delete) operations on thread participants +Perform CRD(Create-Read-Delete) operations on threads ```Python create_chat_thread(topic, **kwargs) -get_chat_thread(thread_id, **kwargs) list_chat_threads(**kwargs) delete_chat_thread(thread_id, **kwargs) ``` @@ -115,6 +111,11 @@ Perform Update operation on thread topic update_topic(topic, **kwargs) ``` +## Get Chat thread properties +```python +get_properties(**kwargs) +``` + ## Send, get, update, and delete messages Perform CRUD(Create-Read-Update-Delete) operations on messages @@ -133,7 +134,6 @@ Perform CRD(Create-Read-Delete) operations on thread participants ```Python list_participants(**kwargs) -add_participant(thread_participant, **kwargs) add_participants(thread_participants, **kwargs) remove_participant(participant_id, **kwargs) ``` @@ -177,7 +177,7 @@ Use the `create_chat_thread` method to create a chat thread. - `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. -- Use `repeatability_request_id`, optional, to specify the unique identifier for the request. +- Use `idempotency_token`, optional, to specify the unique identifier for the request. `CreateChatThreadResult` is the result returned from creating a thread, you can use it to fetch the `id` of @@ -185,14 +185,14 @@ the chat thread that got created. This `id` can then be used to fetch a `ChatThr the `get_chat_thread_client` method. `ChatThreadClient` can be used to perform other chat operations to this chat thread. ```Python -# Without repeatability_request_id and thread_participants +# Without idempotency_token and thread_participants topic = "test topic" create_chat_thread_result = chat_client.create_chat_thread(topic) chat_thread_client = chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) ``` ```Python -# With repeatability_request_id and thread_participants +# With idempotency_token and thread_participants from azure.communication.identity import CommunicationIdentityClient from azure.communication.chat import ChatThreadParticipant import uuid @@ -219,13 +219,13 @@ thread_participants = [ChatThreadParticipant( share_history_time=datetime.utcnow() )] -# obtains repeatability_request_id using some customer logic -repeatability_request_id = get_unique_identifier_for_request() +# obtains idempotency_token using some customer logic +idempotency_token = get_unique_identifier_for_request() create_chat_thread_result = chat_client.create_chat_thread( topic, thread_participants=thread_participants, - repeatability_request_id=repeatability_request_id) + idempotency_token=idempotency_token) thread_id = create_chat_thread_result.chat_thread.id # fetch ChatThreadClient @@ -240,16 +240,17 @@ def decide_to_retry(error, **kwargs): return True retry = [thread_participant for thread_participant, error in create_chat_thread_result.errors if decide_to_retry(error)] -chat_thread_client.add_participants(retry) +if len(retry) > 0: + chat_thread_client.add_participants(retry) ``` ### Get a thread -Use `get_chat_thread` method retrieves a `ChatThread` from the service; `thread_id` is the unique ID of the thread. -- Use `thread_id`, required, to specify the unique ID of the thread. +Use `get_properties` method retrieves a `ChatThreadProperties` from the service; `thread_id` is the unique ID of the thread. + ```Python -chat_thread = chat_client.get_chat_thread(thread_id=thread_id) +chat_thread_properties = chat_thread_client.get_properties() ``` ### List chat threads @@ -258,7 +259,7 @@ Use `list_chat_threads` method retrieves the list of created chat threads - Use `results_per_page`, optional, The maximum number of messages to be returned per page. - Use `start_time`, optional, The start time where the range query. -An iterator of `[ChatThreadInfo]` is the response returned from listing threads +An iterator of `[ChatThreadItem]` is the response returned from listing threads ```python from datetime import datetime, timedelta @@ -267,10 +268,10 @@ import pytz start_time = datetime.utcnow() - timedelta(days=2) start_time = start_time.replace(tzinfo=pytz.utc) -chat_thread_infos = chat_client.list_chat_threads(results_per_page=5, start_time=start_time) -for chat_thread_info_page in chat_thread_infos.by_page(): - for chat_thread_info in chat_thread_info_page: - print(chat_thread_info) +chat_threads = chat_client.list_chat_threads(results_per_page=5, start_time=start_time) +for chat_thread_item_page in chat_threads.by_page(): + for chat_thread_item in chat_thread_item_page: + print("thread id:", chat_thread_item.id) ``` ### Update a thread topic @@ -279,10 +280,10 @@ Use `update_topic` method to update a thread's properties. `topic` is used to de - Use `topic` to give thread a new topic; ```python -topic="new topic" +topic = "new topic" chat_thread_client.update_topic(topic=topic) -chat_thread = chat_client.get_chat_thread(thread_id) +chat_thread = chat_client.get_properties(thread_id) assert chat_thread.topic == topic ``` @@ -322,15 +323,17 @@ sender_display_name='sender name' chat_message_type = ChatMessageType.TEXT # without specifying sender_display_name and chat_message_type -send_message_result_id = chat_thread_client.send_message(content) +send_message_result = chat_thread_client.send_message(content) +send_message_result_id = send_message_result.id print("Message sent: id: ", send_message_result_id) # specifying sender_display_name and chat_message_type -send_message_result_w_type_id = chat_thread_client.send_message( +send_message_result_w_type = chat_thread_client.send_message( content, sender_display_name=sender_display_name, chat_message_type=chat_message_type # equivalent to chat_message_type = 'text' ) +send_message_result_w_type_id = send_message_result_w_type.id print("Message sent: id: ", send_message_result_w_type_id) ``` @@ -407,55 +410,6 @@ for chat_thread_participant_page in chat_thread_participants.by_page(): print("ChatThreadParticipant: ", chat_thread_participant) ``` -### Add single thread participant -Use `add_participant` method to add a single thread participants to the thread. - -- Use `thread_participant`, required, to specify 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 participant. - - `share_history_time`, optional, time from which the chat history is shared with the participant. - -When participant is successfully added, no error is thrown. In case of an error encountered while adding participant, -a `RuntimeError` is thrown -```python -from azure.communication.identity import CommunicationIdentityClient -from azure.communication.chat import ChatThreadParticipant -from datetime import datetime - -# create an user -identity_client = CommunicationIdentityClient.from_connection_string('') -new_user = identity_client.create_user() - -# # conversely, you can also add an existing user to a chat thread; provided the user_id is known -# from azure.communication.identity import CommunicationUserIdentifier -# -# user_id = 'some user id' -# user_display_name = "Wilma Flinstone" -# new_user = CommunicationUserIdentifier(user_id) -# participant = ChatThreadParticipant( -# user=new_user, -# display_name=user_display_name, -# share_history_time=datetime.utcnow()) - -def decide_to_retry(error, **kwargs): - """ - Insert some custom logic to decide if retry is applicable based on error - """ - return True - -participant = ChatThreadParticipant( - user=new_user, - display_name='Fred Flinstone', - share_history_time=datetime.utcnow()) - -try: - chat_thread_client.add_participant(thread_participant=participant) -except RuntimeError as e: - if e is not None and decide_to_retry(error=e): - chat_thread_client.add_participant(thread_participant=participant) - -``` ### Add thread participants Use `add_participants` method to add thread participants to the thread. @@ -466,7 +420,7 @@ Use `add_participants` method to add thread participants to the thread. - `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. -A `list(tuple(ChatThreadParticipant, CommunicationError))` is returned. When participant is successfully added, +A `list(tuple(ChatThreadParticipant, ChatError))` is returned. When participant is successfully added, an empty list is expected. In case of an error encountered while adding participant, the list is populated with the failed participants along with the error that was encountered. @@ -547,7 +501,8 @@ Use `send_read_receipt` method to post a read receipt event to a thread, on beha - Use `message_id` to specify the id of the message whose read receipt is to be sent ```python content='hello world' -send_message_result_id = chat_thread_client.send_message(content) +send_message_result = chat_thread_client.send_message(content) +send_message_result_id = send_message_result.id chat_thread_client.send_read_receipt(message_id=send_message_result_id) ``` 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 94266498df10..2adc692b0dac 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/__init__.py @@ -3,20 +3,22 @@ from ._chat_thread_client import ChatThreadClient from ._generated.models import ( SendChatMessageResult, - ChatThreadInfo, + ChatThreadItem, ChatMessageType, - CommunicationError + ChatError ) from ._models import ( ChatThreadParticipant, ChatMessage, - ChatThread, + ChatThreadProperties, ChatMessageReadReceipt, ChatMessageContent, CreateChatThreadResult ) +from ._shared.user_credential import CommunicationTokenCredential + __all__ = [ 'ChatClient', 'ChatThreadClient', @@ -24,11 +26,12 @@ 'ChatMessageContent', 'ChatMessageReadReceipt', 'SendChatMessageResult', - 'ChatThread', - 'ChatThreadInfo', + 'ChatThreadProperties', + 'ChatThreadItem', 'ChatThreadParticipant', 'ChatMessageType', 'CreateChatThreadResult', - 'CommunicationError' + 'ChatError', + 'CommunicationTokenCredential' ] __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 48364bbe1713..b54982144527 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,7 +18,7 @@ from ._generated import AzureCommunicationChatService from ._generated.models import CreateChatThreadRequest from ._models import ( - ChatThread, + ChatThreadProperties, CreateChatThreadResult ) from ._utils import ( # pylint: disable=unused-import @@ -131,14 +131,14 @@ def create_chat_thread( :param topic: Required. The thread topic. :type topic: str :keyword thread_participants: Optional. Participants to be added to the thread. - :paramtype thread_participants: list[~azure.communication.chat.ChatThreadParticipant] - :keyword repeatability_request_id: Optional. If specified, the client directs that the request is + :paramtype thread_participants: List[~azure.communication.chat.ChatThreadParticipant] + :keyword idempotency_token: Optional. 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. - :paramtype repeatability_request_id: str + :paramtype idempotency_token: str :return: CreateChatThreadResult :rtype: ~azure.communication.chat.CreateChatThreadResult :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -155,9 +155,9 @@ def create_chat_thread( if not topic: raise ValueError("topic cannot be None.") - repeatability_request_id = kwargs.pop('repeatability_request_id', None) - if repeatability_request_id is None: - repeatability_request_id = str(uuid4()) + idempotency_token = kwargs.pop('idempotency_token', None) + if idempotency_token is None: + idempotency_token = str(uuid4()) thread_participants = kwargs.pop('thread_participants', None) participants = [] @@ -168,7 +168,7 @@ def create_chat_thread( create_chat_thread_result = self._client.chat.create_chat_thread( create_chat_thread_request=create_thread_request, - repeatability_request_id=repeatability_request_id, + idempotency_token=idempotency_token, **kwargs) errors = None @@ -176,60 +176,32 @@ def create_chat_thread( create_chat_thread_result.errors is not None: errors = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access participants=[thread_participants], - communication_errors=create_chat_thread_result.errors.invalid_participants + chat_errors=create_chat_thread_result.invalid_participants ) - chat_thread = ChatThread._from_generated( # pylint:disable=protected-access + chat_thread_properties = ChatThreadProperties._from_generated( # pylint:disable=protected-access create_chat_thread_result.chat_thread) create_chat_thread_result = CreateChatThreadResult( - chat_thread=chat_thread, + chat_thread=chat_thread_properties, errors=errors ) return create_chat_thread_result - @distributed_trace - def get_chat_thread( - self, thread_id, # type: str - **kwargs # type: Any - ): - # type: (...) -> ChatThread - """Gets a chat thread. - - :param thread_id: Required. Thread id to get. - :type thread_id: str - :return: ChatThread - :rtype: ~azure.communication.chat.ChatThread - :raises: ~azure.core.exceptions.HttpResponseError, ValueError - - .. admonition:: Example: - - .. literalinclude:: ../samples/chat_client_sample.py - :start-after: [START get_thread] - :end-before: [END get_thread] - :language: python - :dedent: 8 - :caption: Getting a chat thread by thread id. - """ - if not thread_id: - raise ValueError("thread_id cannot be None.") - - chat_thread = self._client.chat.get_chat_thread(thread_id, **kwargs) - return ChatThread._from_generated(chat_thread) # pylint:disable=protected-access @distributed_trace def list_chat_threads( self, **kwargs ): - # type: (...) -> ItemPaged[ChatThreadInfo] + # type: (...) -> ItemPaged[ChatThreadItem] """Gets the list of chat threads of a user. :keyword int results_per_page: The maximum number of chat threads returned per page. :keyword ~datetime.datetime start_time: The earliest point in time to get chat threads up to. - :return: An iterator like instance of ChatThreadInfo - :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.ChatThreadInfo] + :return: An iterator like instance of ChatThreadItem + :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.ChatThreadItem] :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: 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 056895bf803d..e69dc4d7cc9a 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 @@ -21,12 +21,14 @@ SendChatMessageRequest, UpdateChatMessageRequest, UpdateChatThreadRequest, - ChatMessageType + ChatMessageType, + SendChatMessageResult ) from ._models import ( ChatThreadParticipant, ChatMessage, - ChatMessageReadReceipt + ChatMessageReadReceipt, + ChatThreadProperties ) from ._utils import ( # pylint: disable=unused-import @@ -38,7 +40,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union, Tuple from datetime import datetime from azure.core.paging import ItemPaged @@ -117,6 +119,32 @@ def thread_id(self): """ return self._thread_id + @distributed_trace + def get_properties( + self, + **kwargs # type: Any + ): + # type: (...) -> ChatThreadProperties + """Gets the properties of the chat thread. + + :return: ChatThreadProperties + :rtype: ~azure.communication.chat.ChatThreadProperties + :raises: ~azure.core.exceptions.HttpResponseError + + .. admonition:: Example: + + .. literalinclude:: ../samples/chat_thread_client_sample.py + :start-after: [START get_thread] + :end-before: [END get_thread] + :language: python + :dedent: 8 + :caption: Getting a chat thread by thread id. + """ + + chat_thread = self._client.chat_thread.get_chat_thread_properties(self._thread_id, **kwargs) + return ChatThreadProperties._from_generated(chat_thread) # pylint:disable=protected-access + + @distributed_trace def update_topic( self, @@ -144,7 +172,7 @@ def update_topic( """ update_topic_request = UpdateChatThreadRequest(topic=topic) - return self._client.chat_thread.update_chat_thread( + return self._client.chat_thread.update_chat_thread_properties( chat_thread_id=self._thread_id, update_chat_thread_request=update_topic_request, **kwargs) @@ -244,18 +272,18 @@ def send_message( content, # type: str **kwargs # type: Any ): - # type: (...) -> str + # type: (...) -> SendChatMessageResult """Sends a message to a thread. :param content: Required. Chat message content. :type content: str - :param chat_message_type: The chat message type. Possible values include: "text", "html". + :keyword 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 + :paramtype chat_message_type: Union[str, ~azure.communication.chat.ChatMessageType] :keyword str sender_display_name: The display name of the message sender. This property is used to populate sender name for push notifications. - :return: str - :rtype: str + :return: SendChatMessageResult + :rtype: ~azure.communication.chat.SendChatMessageResult :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: @@ -296,7 +324,7 @@ def send_message( chat_thread_id=self._thread_id, send_chat_message_request=create_message_request, **kwargs) - return send_chat_message_result.id + return send_chat_message_result @distributed_trace def get_message( @@ -467,76 +495,25 @@ def list_participants( 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. - - If participant is added successfully, a tuple of (None, None) is expected. - Failure to add participant to thread returns tuple of (chat_thread_participant, communication_error). - - :param thread_participant: Required. Single thread participant to be added to the thread. - :type thread_participant: ~azure.communication.chat.ChatThreadParticipant - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError, ValueError, RuntimeError - - .. 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) - - add_chat_participants_result = self._client.chat_thread.add_chat_participants( - chat_thread_id=self._thread_id, - add_chat_participants_request=add_thread_participants_request, - **kwargs) - - response = [] - if hasattr(add_chat_participants_result, 'errors') and \ - add_chat_participants_result.errors is not None: - response = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access - participants=[thread_participant], - communication_errors=add_chat_participants_result.errors.invalid_participants - ) - - if len(response) != 0: - failed_participant = response[0][0] - communication_error = response[0][1] - raise RuntimeError('Participant: ', failed_participant, ' failed to join thread due to: ', - communication_error.message) @distributed_trace def add_participants( self, - thread_participants, # type: list[ChatThreadParticipant] + thread_participants, # type: List[ChatThreadParticipant] **kwargs # type: Any ): - # type: (...) -> list[(ChatThreadParticipant, CommunicationError)] + # type: (...) -> List[Tuple[ChatThreadParticipant, ChatError]] """Adds thread participants to a thread. If participants already exist, no change occurs. If all participants are added successfully, then an empty list is returned; - otherwise, a list of tuple(chat_thread_participant, communincation_error) is returned, + otherwise, a list of tuple(chat_thread_participant, chat_error) is returned, of failed participants and its respective error - :param thread_participants: Required. Thread participants to be added to the thread. - :type thread_participants: list[~azure.communication.chat.ChatThreadParticipant] - :return: List[Tuple(ChatThreadParticipant, CommunicationError)] - :rtype: list[(~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.CommunicationError)] - :raises: ~azure.core.exceptions.HttpResponseError, ValueError, RuntimeError + :param thread_participants: Thread participants to be added to the thread. + :type thread_participants: List[~azure.communication.chat.ChatThreadParticipant] + :return: List[Tuple[ChatThreadParticipant, ChatError]] + :rtype: List[Tuple[~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.ChatError]] + :raises: ~azure.core.exceptions.HttpResponseError .. admonition:: Example: @@ -547,24 +524,23 @@ def add_participants( :dedent: 8 :caption: Adding participants to chat thread. """ - if not thread_participants: - raise ValueError("thread_participants cannot be None.") - - participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access - add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - - add_chat_participants_result = self._client.chat_thread.add_chat_participants( - chat_thread_id=self._thread_id, - add_chat_participants_request=add_thread_participants_request, - **kwargs) - response = [] - if hasattr(add_chat_participants_result, 'errors') and \ - add_chat_participants_result.errors is not None: - response = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access - participants=thread_participants, - communication_errors=add_chat_participants_result.errors.invalid_participants - ) + if thread_participants: + participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access + add_thread_participants_request = AddChatParticipantsRequest(participants=participants) + + add_chat_participants_result = self._client.chat_thread.add_chat_participants( + chat_thread_id=self._thread_id, + add_chat_participants_request=add_thread_participants_request, + **kwargs) + + + if hasattr(add_chat_participants_result, 'invalid_participants') and \ + add_chat_participants_result.invalid_participants is not None: + response = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access + participants=thread_participants, + chat_errors=add_chat_participants_result.invalid_participants + ) return response diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/communication_identifier_serializer.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_communication_identifier_serializer.py similarity index 100% rename from sdk/communication/azure-communication-chat/azure/communication/chat/communication_identifier_serializer.py rename to sdk/communication/azure-communication-chat/azure/communication/chat/_communication_identifier_serializer.py 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 e49f027055f2..78780c4d9d5d 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 @@ -15,6 +15,8 @@ # pylint: disable=unused-import,ungrouped-imports from typing import Any + from azure.core.pipeline.transport import HttpRequest, HttpResponse + from ._configuration import AzureCommunicationChatServiceConfiguration from .operations import ChatThreadOperations from .operations import ChatOperations @@ -52,6 +54,24 @@ def __init__( self.chat = ChatOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() 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 3b061acc042c..26f5455a2f8f 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 = "2021-01-27-preview4" + self.api_version = "2021-03-01-preview5" 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 0abf7bcfd572..97865a75beaf 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 @@ -9,6 +9,7 @@ from typing import Any from azure.core import AsyncPipelineClient +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from msrest import Deserializer, Serializer from ._configuration import AzureCommunicationChatServiceConfiguration @@ -47,6 +48,23 @@ def __init__( self.chat = ChatOperations( self._client, self._config, self._serialize, self._deserialize) + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() 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 f9848e62fb00..55566b953ef8 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 = "2021-01-27-preview4" + self.api_version = "2021-03-01-preview5" kwargs.setdefault('sdk_moniker', 'azurecommunicationchatservice/{}'.format(VERSION)) self._configure(**kwargs) 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 27015c87e6b7..58c7c41a754a 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 @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def create_chat_thread( self, create_chat_thread_request: "_models.CreateChatThreadRequest", - repeatability_request_id: Optional[str] = None, + idempotency_token: Optional[str] = None, **kwargs ) -> "_models.CreateChatThreadResult": """Creates a chat thread. @@ -53,13 +53,12 @@ async def create_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 + :param idempotency_token: If specified, the client directs that the request is repeatable; that + is, that the client can make the request multiple times with the same Idempotency-Token and get + back an appropriate response without the server executing the request multiple times. The value + of the Idempotency-Token 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 idempotency_token: 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 @@ -75,7 +74,7 @@ async def create_chat_thread( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -92,8 +91,8 @@ async def create_chat_thread( # 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') + if idempotency_token is not None: + header_parameters['idempotency-token'] = self._serialize.header("idempotency_token", idempotency_token, 'str') header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') @@ -121,7 +120,7 @@ def list_chat_threads( max_page_size: Optional[int] = None, start_time: Optional[datetime.datetime] = None, **kwargs - ) -> AsyncIterable["_models.ChatThreadsInfoCollection"]: + ) -> AsyncIterable["_models.ChatThreadsItemCollection"]: """Gets the list of chat threads of a user. Gets the list of chat threads of a user. @@ -132,11 +131,11 @@ def list_chat_threads( 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] + :return: An iterator like instance of either ChatThreadsItemCollection or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.models.ChatThreadsItemCollection] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadsInfoCollection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadsItemCollection"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -146,7 +145,7 @@ def list_chat_threads( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" def prepare_request(next_link=None): @@ -181,7 +180,7 @@ def prepare_request(next_link=None): return request async def extract_data(pipeline_response): - deserialized = self._deserialize('ChatThreadsInfoCollection', pipeline_response) + deserialized = self._deserialize('ChatThreadsItemCollection', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -204,67 +203,6 @@ async def get_next(next_link=None): ) 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.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 = "2021-01-27-preview4" - 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, @@ -291,7 +229,7 @@ async def delete_chat_thread( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" # Construct URL 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 ef8b605e8af4..70aaadefcccc 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 @@ -73,7 +73,7 @@ def list_chat_read_receipts( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" def prepare_request(next_link=None): @@ -162,7 +162,7 @@ async def send_chat_read_receipt( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -228,7 +228,7 @@ async def send_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -301,7 +301,7 @@ def list_chat_messages( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" def prepare_request(next_link=None): @@ -390,7 +390,7 @@ async def get_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" # Construct URL @@ -458,7 +458,7 @@ async def update_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" content_type = kwargs.pop("content_type", "application/merge-patch+json") accept = "application/json" @@ -525,7 +525,7 @@ async def delete_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" # Construct URL @@ -584,7 +584,7 @@ async def send_typing_notification( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" # Construct URL @@ -648,7 +648,7 @@ def list_chat_participants( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" def prepare_request(next_link=None): @@ -738,7 +738,7 @@ async def remove_chat_participant( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -804,7 +804,7 @@ async def add_chat_participants( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -844,7 +844,7 @@ async def add_chat_participants( return deserialized add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants/:add'} # type: ignore - async def update_chat_thread( + async def update_chat_thread_properties( self, chat_thread_id: str, update_chat_thread_request: "_models.UpdateChatThreadRequest", @@ -873,12 +873,12 @@ async def update_chat_thread( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" content_type = kwargs.pop("content_type", "application/merge-patch+json") accept = "application/json" # Construct URL - url = self.update_chat_thread.metadata['url'] # type: ignore + url = self.update_chat_thread_properties.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'), @@ -908,4 +908,65 @@ async def update_chat_thread( if cls: return cls(pipeline_response, None, {}) - update_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore + update_chat_thread_properties.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore + + async def get_chat_thread_properties( + self, + chat_thread_id: str, + **kwargs + ) -> "_models.ChatThreadProperties": + """Gets a chat thread's properties. + + Gets a chat thread's properties. + + :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: ChatThreadProperties, or the result of cls(response) + :rtype: ~azure.communication.chat.models.ChatThreadProperties + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadProperties"] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 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 = "2021-03-01-preview5" + accept = "application/json" + + # Construct URL + url = self.get_chat_thread_properties.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('ChatThreadProperties', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_chat_thread_properties.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 eea4119d9489..2c8370ccbcc3 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,9 +7,9 @@ # -------------------------------------------------------------------------- try: - from ._models_py3 import AddChatParticipantsErrors from ._models_py3 import AddChatParticipantsRequest from ._models_py3 import AddChatParticipantsResult + from ._models_py3 import ChatError from ._models_py3 import ChatMessage from ._models_py3 import ChatMessageContent from ._models_py3 import ChatMessageReadReceipt @@ -17,14 +17,12 @@ 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 ChatThreadsInfoCollection - from ._models_py3 import CommunicationError + from ._models_py3 import ChatThreadItem + from ._models_py3 import ChatThreadProperties + from ._models_py3 import ChatThreadsItemCollection from ._models_py3 import CommunicationErrorResponse from ._models_py3 import CommunicationIdentifierModel from ._models_py3 import CommunicationUserIdentifierModel - from ._models_py3 import CreateChatThreadErrors from ._models_py3 import CreateChatThreadRequest from ._models_py3 import CreateChatThreadResult from ._models_py3 import MicrosoftTeamsUserIdentifierModel @@ -35,9 +33,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 ChatError # type: ignore from ._models import ChatMessage # type: ignore from ._models import ChatMessageContent # type: ignore from ._models import ChatMessageReadReceipt # type: ignore @@ -45,14 +43,12 @@ 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 ChatThreadsInfoCollection # type: ignore - from ._models import CommunicationError # type: ignore + from ._models import ChatThreadItem # type: ignore + from ._models import ChatThreadProperties # type: ignore + from ._models import ChatThreadsItemCollection # type: ignore from ._models import CommunicationErrorResponse # type: ignore from ._models import CommunicationIdentifierModel # type: ignore from ._models import CommunicationUserIdentifierModel # type: ignore - from ._models import CreateChatThreadErrors # type: ignore from ._models import CreateChatThreadRequest # type: ignore from ._models import CreateChatThreadResult # type: ignore from ._models import MicrosoftTeamsUserIdentifierModel # type: ignore @@ -69,9 +65,9 @@ ) __all__ = [ - 'AddChatParticipantsErrors', 'AddChatParticipantsRequest', 'AddChatParticipantsResult', + 'ChatError', 'ChatMessage', 'ChatMessageContent', 'ChatMessageReadReceipt', @@ -79,14 +75,12 @@ 'ChatMessagesCollection', 'ChatParticipant', 'ChatParticipantsCollection', - 'ChatThread', - 'ChatThreadInfo', - 'ChatThreadsInfoCollection', - 'CommunicationError', + 'ChatThreadItem', + 'ChatThreadProperties', + 'ChatThreadsItemCollection', 'CommunicationErrorResponse', 'CommunicationIdentifierModel', 'CommunicationUserIdentifierModel', - 'CreateChatThreadErrors', 'CreateChatThreadRequest', 'CreateChatThreadResult', 'MicrosoftTeamsUserIdentifierModel', 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 fba77405c47d..85dc53f35190 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,75 +10,101 @@ import msrest.serialization -class AddChatParticipantsErrors(msrest.serialization.Model): - """Errors encountered during the addition of the chat participant to the chat 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 invalid_participants: Required. The participants that failed to be added to the chat - thread. - :type invalid_participants: list[~azure.communication.chat.models.CommunicationError] + :param participants: Required. Participants to add to a chat thread. + :type participants: list[~azure.communication.chat.models.ChatParticipant] """ _validation = { - 'invalid_participants': {'required': True}, + 'participants': {'required': True}, } _attribute_map = { - 'invalid_participants': {'key': 'invalidParticipants', 'type': '[CommunicationError]'}, + 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, } def __init__( self, **kwargs ): - super(AddChatParticipantsErrors, self).__init__(**kwargs) - self.invalid_participants = kwargs['invalid_participants'] + super(AddChatParticipantsRequest, self).__init__(**kwargs) + self.participants = kwargs['participants'] -class AddChatParticipantsRequest(msrest.serialization.Model): - """Participants to be added to the thread. +class AddChatParticipantsResult(msrest.serialization.Model): + """Result of the add chat participants operation. - All required parameters must be populated in order to send to Azure. + Variables are only populated by the server, and will be ignored when sending a request. - :param participants: Required. Participants to add to a chat thread. - :type participants: list[~azure.communication.chat.models.ChatParticipant] + :ivar invalid_participants: The participants that failed to be added to the chat thread. + :vartype invalid_participants: list[~azure.communication.chat.models.ChatError] """ _validation = { - 'participants': {'required': True}, + 'invalid_participants': {'readonly': True}, } _attribute_map = { - 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[ChatError]'}, } def __init__( self, **kwargs ): - super(AddChatParticipantsRequest, self).__init__(**kwargs) - self.participants = kwargs['participants'] + super(AddChatParticipantsResult, self).__init__(**kwargs) + self.invalid_participants = None -class AddChatParticipantsResult(msrest.serialization.Model): - """Result of the add chat participants operation. +class ChatError(msrest.serialization.Model): + """The Communication Services error. + + Variables are only populated by the server, and will be ignored when sending a request. - :param errors: Errors encountered during the addition of the chat participant to the chat - thread. - :type errors: ~azure.communication.chat.models.AddChatParticipantsErrors + 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.ChatError] + :ivar inner_error: The inner error if any. + :vartype inner_error: ~azure.communication.chat.models.ChatError """ + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + 'inner_error': {'readonly': True}, + } + _attribute_map = { - 'errors': {'key': 'errors', 'type': 'AddChatParticipantsErrors'}, + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ChatError]'}, + 'inner_error': {'key': 'innererror', 'type': 'ChatError'}, } def __init__( self, **kwargs ): - super(AddChatParticipantsResult, self).__init__(**kwargs) - self.errors = kwargs.get('errors', None) + super(ChatError, self).__init__(**kwargs) + self.code = kwargs['code'] + self.message = kwargs['message'] + self.target = None + self.details = None + self.inner_error = None class ChatMessage(msrest.serialization.Model): @@ -368,8 +394,10 @@ def __init__( self.next_link = None -class ChatThread(msrest.serialization.Model): - """Chat thread. +class ChatThreadItem(msrest.serialization.Model): + """Summary information of a 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. @@ -377,51 +405,40 @@ class ChatThread(msrest.serialization.Model): :type id: str :param topic: Required. Chat thread topic. :type topic: 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_communication_identifier: Required. Identifies a participant in Azure - Communication services. A participant is, for example, a phone number or an Azure communication - user. This model must be interpreted as a union: Apart from rawId, at most one further property - may be set. - :type created_by_communication_identifier: - ~azure.communication.chat.models.CommunicationIdentifierModel :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 RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. + :vartype last_message_received_on: ~datetime.datetime """ _validation = { 'id': {'required': True}, 'topic': {'required': True}, - 'created_on': {'required': True}, - 'created_by_communication_identifier': {'required': True}, + 'last_message_received_on': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'topic': {'key': 'topic', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'created_by_communication_identifier': {'key': 'createdByCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, + 'last_message_received_on': {'key': 'lastMessageReceivedOn', 'type': 'iso-8601'}, } def __init__( self, **kwargs ): - super(ChatThread, self).__init__(**kwargs) + super(ChatThreadItem, self).__init__(**kwargs) self.id = kwargs['id'] self.topic = kwargs['topic'] - self.created_on = kwargs['created_on'] - self.created_by_communication_identifier = kwargs['created_by_communication_identifier'] self.deleted_on = kwargs.get('deleted_on', None) + self.last_message_received_on = None -class ChatThreadInfo(msrest.serialization.Model): - """Summary information of a chat thread. - - Variables are only populated by the server, and will be ignored when sending a request. +class ChatThreadProperties(msrest.serialization.Model): + """Chat thread. All required parameters must be populated in order to send to Azure. @@ -429,39 +446,48 @@ class ChatThreadInfo(msrest.serialization.Model): :type id: str :param topic: Required. Chat thread topic. :type topic: 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_communication_identifier: Required. Identifies a participant in Azure + Communication services. A participant is, for example, a phone number or an Azure communication + user. This model must be interpreted as a union: Apart from rawId, at most one further property + may be set. + :type created_by_communication_identifier: + ~azure.communication.chat.models.CommunicationIdentifierModel :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 RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. - :vartype last_message_received_on: ~datetime.datetime """ _validation = { 'id': {'required': True}, 'topic': {'required': True}, - 'last_message_received_on': {'readonly': True}, + 'created_on': {'required': True}, + 'created_by_communication_identifier': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'topic': {'key': 'topic', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'created_by_communication_identifier': {'key': 'createdByCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, - 'last_message_received_on': {'key': 'lastMessageReceivedOn', 'type': 'iso-8601'}, } def __init__( self, **kwargs ): - super(ChatThreadInfo, self).__init__(**kwargs) + super(ChatThreadProperties, self).__init__(**kwargs) self.id = kwargs['id'] self.topic = kwargs['topic'] + self.created_on = kwargs['created_on'] + self.created_by_communication_identifier = kwargs['created_by_communication_identifier'] self.deleted_on = kwargs.get('deleted_on', None) - self.last_message_received_on = None -class ChatThreadsInfoCollection(msrest.serialization.Model): +class ChatThreadsItemCollection(msrest.serialization.Model): """Collection of chat threads. Variables are only populated by the server, and will be ignored when sending a request. @@ -469,7 +495,7 @@ class ChatThreadsInfoCollection(msrest.serialization.Model): 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] + :type value: list[~azure.communication.chat.models.ChatThreadItem] :ivar next_link: If there are more chat threads that can be retrieved, the next link will be populated. :vartype next_link: str @@ -481,7 +507,7 @@ class ChatThreadsInfoCollection(msrest.serialization.Model): } _attribute_map = { - 'value': {'key': 'value', 'type': '[ChatThreadInfo]'}, + 'value': {'key': 'value', 'type': '[ChatThreadItem]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } @@ -489,65 +515,18 @@ def __init__( self, **kwargs ): - super(ChatThreadsInfoCollection, self).__init__(**kwargs) + super(ChatThreadsItemCollection, self).__init__(**kwargs) 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 + :type error: ~azure.communication.chat.models.ChatError """ _validation = { @@ -555,7 +534,7 @@ class CommunicationErrorResponse(msrest.serialization.Model): } _attribute_map = { - 'error': {'key': 'error', 'type': 'CommunicationError'}, + 'error': {'key': 'error', 'type': 'ChatError'}, } def __init__( @@ -622,31 +601,6 @@ def __init__( self.id = kwargs['id'] -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.CommunicationError] - """ - - _validation = { - 'invalid_participants': {'readonly': True}, - } - - _attribute_map = { - 'invalid_participants': {'key': 'invalidParticipants', 'type': '[CommunicationError]'}, - } - - 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. @@ -654,13 +608,12 @@ class CreateChatThreadRequest(msrest.serialization.Model): :param topic: Required. The chat thread topic. :type topic: str - :param participants: Required. Participants to be added to the chat thread. + :param participants: Participants to be added to the chat thread. :type participants: list[~azure.communication.chat.models.ChatParticipant] """ _validation = { 'topic': {'required': True}, - 'participants': {'required': True}, } _attribute_map = { @@ -674,21 +627,27 @@ def __init__( ): super(CreateChatThreadRequest, self).__init__(**kwargs) self.topic = kwargs['topic'] - self.participants = kwargs['participants'] + self.participants = kwargs.get('participants', None) class CreateChatThreadResult(msrest.serialization.Model): """Result of the create chat thread operation. + Variables are only populated by the server, and will be ignored when sending a request. + :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 + :type chat_thread: ~azure.communication.chat.models.ChatThreadProperties + :ivar invalid_participants: The participants that failed to be added to the chat thread. + :vartype invalid_participants: list[~azure.communication.chat.models.ChatError] """ + _validation = { + 'invalid_participants': {'readonly': True}, + } + _attribute_map = { - 'chat_thread': {'key': 'chatThread', 'type': 'ChatThread'}, - 'errors': {'key': 'errors', 'type': 'CreateChatThreadErrors'}, + 'chat_thread': {'key': 'chatThread', 'type': 'ChatThreadProperties'}, + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[ChatError]'}, } def __init__( @@ -697,7 +656,7 @@ def __init__( ): super(CreateChatThreadResult, self).__init__(**kwargs) self.chat_thread = kwargs.get('chat_thread', None) - self.errors = kwargs.get('errors', None) + self.invalid_participants = None class MicrosoftTeamsUserIdentifierModel(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 0c52e6d120b3..a2979f14da39 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,81 +15,106 @@ 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. +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 invalid_participants: Required. The participants that failed to be added to the chat - thread. - :type invalid_participants: list[~azure.communication.chat.models.CommunicationError] + :param participants: Required. Participants to add to a chat thread. + :type participants: list[~azure.communication.chat.models.ChatParticipant] """ _validation = { - 'invalid_participants': {'required': True}, + 'participants': {'required': True}, } _attribute_map = { - 'invalid_participants': {'key': 'invalidParticipants', 'type': '[CommunicationError]'}, + 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, } def __init__( self, *, - invalid_participants: List["CommunicationError"], + participants: List["ChatParticipant"], **kwargs ): - super(AddChatParticipantsErrors, self).__init__(**kwargs) - self.invalid_participants = invalid_participants + super(AddChatParticipantsRequest, self).__init__(**kwargs) + self.participants = participants -class AddChatParticipantsRequest(msrest.serialization.Model): - """Participants to be added to the thread. +class AddChatParticipantsResult(msrest.serialization.Model): + """Result of the add chat participants operation. - All required parameters must be populated in order to send to Azure. + Variables are only populated by the server, and will be ignored when sending a request. - :param participants: Required. Participants to add to a chat thread. - :type participants: list[~azure.communication.chat.models.ChatParticipant] + :ivar invalid_participants: The participants that failed to be added to the chat thread. + :vartype invalid_participants: list[~azure.communication.chat.models.ChatError] """ _validation = { - 'participants': {'required': True}, + 'invalid_participants': {'readonly': True}, } _attribute_map = { - 'participants': {'key': 'participants', 'type': '[ChatParticipant]'}, + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[ChatError]'}, } def __init__( self, - *, - participants: List["ChatParticipant"], **kwargs ): - super(AddChatParticipantsRequest, self).__init__(**kwargs) - self.participants = participants + super(AddChatParticipantsResult, self).__init__(**kwargs) + self.invalid_participants = None -class AddChatParticipantsResult(msrest.serialization.Model): - """Result of the add chat participants operation. +class ChatError(msrest.serialization.Model): + """The Communication Services error. - :param errors: Errors encountered during the addition of the chat participant to the chat - thread. - :type errors: ~azure.communication.chat.models.AddChatParticipantsErrors + 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.ChatError] + :ivar inner_error: The inner error if any. + :vartype inner_error: ~azure.communication.chat.models.ChatError """ + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + 'target': {'readonly': True}, + 'details': {'readonly': True}, + 'inner_error': {'readonly': True}, + } + _attribute_map = { - 'errors': {'key': 'errors', 'type': 'AddChatParticipantsErrors'}, + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ChatError]'}, + 'inner_error': {'key': 'innererror', 'type': 'ChatError'}, } def __init__( self, *, - errors: Optional["AddChatParticipantsErrors"] = None, + code: str, + message: str, **kwargs ): - super(AddChatParticipantsResult, self).__init__(**kwargs) - self.errors = errors + super(ChatError, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = None + self.details = None + self.inner_error = None class ChatMessage(msrest.serialization.Model): @@ -409,8 +434,10 @@ def __init__( self.next_link = None -class ChatThread(msrest.serialization.Model): - """Chat thread. +class ChatThreadItem(msrest.serialization.Model): + """Summary information of a 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. @@ -418,33 +445,25 @@ class ChatThread(msrest.serialization.Model): :type id: str :param topic: Required. Chat thread topic. :type topic: 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_communication_identifier: Required. Identifies a participant in Azure - Communication services. A participant is, for example, a phone number or an Azure communication - user. This model must be interpreted as a union: Apart from rawId, at most one further property - may be set. - :type created_by_communication_identifier: - ~azure.communication.chat.models.CommunicationIdentifierModel :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 RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. + :vartype last_message_received_on: ~datetime.datetime """ _validation = { 'id': {'required': True}, 'topic': {'required': True}, - 'created_on': {'required': True}, - 'created_by_communication_identifier': {'required': True}, + 'last_message_received_on': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'topic': {'key': 'topic', 'type': 'str'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, - 'created_by_communication_identifier': {'key': 'createdByCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, + 'last_message_received_on': {'key': 'lastMessageReceivedOn', 'type': 'iso-8601'}, } def __init__( @@ -452,23 +471,18 @@ def __init__( *, id: str, topic: str, - created_on: datetime.datetime, - created_by_communication_identifier: "CommunicationIdentifierModel", deleted_on: Optional[datetime.datetime] = None, **kwargs ): - super(ChatThread, self).__init__(**kwargs) + super(ChatThreadItem, self).__init__(**kwargs) self.id = id self.topic = topic - self.created_on = created_on - self.created_by_communication_identifier = created_by_communication_identifier self.deleted_on = deleted_on + self.last_message_received_on = None -class ChatThreadInfo(msrest.serialization.Model): - """Summary information of a chat thread. - - Variables are only populated by the server, and will be ignored when sending a request. +class ChatThreadProperties(msrest.serialization.Model): + """Chat thread. All required parameters must be populated in order to send to Azure. @@ -476,25 +490,33 @@ class ChatThreadInfo(msrest.serialization.Model): :type id: str :param topic: Required. Chat thread topic. :type topic: 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_communication_identifier: Required. Identifies a participant in Azure + Communication services. A participant is, for example, a phone number or an Azure communication + user. This model must be interpreted as a union: Apart from rawId, at most one further property + may be set. + :type created_by_communication_identifier: + ~azure.communication.chat.models.CommunicationIdentifierModel :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 RFC3339 format: ``yyyy-MM-ddTHH:mm:ssZ``. - :vartype last_message_received_on: ~datetime.datetime """ _validation = { 'id': {'required': True}, 'topic': {'required': True}, - 'last_message_received_on': {'readonly': True}, + 'created_on': {'required': True}, + 'created_by_communication_identifier': {'required': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'topic': {'key': 'topic', 'type': 'str'}, + 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'created_by_communication_identifier': {'key': 'createdByCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, 'deleted_on': {'key': 'deletedOn', 'type': 'iso-8601'}, - 'last_message_received_on': {'key': 'lastMessageReceivedOn', 'type': 'iso-8601'}, } def __init__( @@ -502,17 +524,20 @@ def __init__( *, id: str, topic: str, + created_on: datetime.datetime, + created_by_communication_identifier: "CommunicationIdentifierModel", deleted_on: Optional[datetime.datetime] = None, **kwargs ): - super(ChatThreadInfo, self).__init__(**kwargs) + super(ChatThreadProperties, self).__init__(**kwargs) self.id = id self.topic = topic + self.created_on = created_on + self.created_by_communication_identifier = created_by_communication_identifier self.deleted_on = deleted_on - self.last_message_received_on = None -class ChatThreadsInfoCollection(msrest.serialization.Model): +class ChatThreadsItemCollection(msrest.serialization.Model): """Collection of chat threads. Variables are only populated by the server, and will be ignored when sending a request. @@ -520,7 +545,7 @@ class ChatThreadsInfoCollection(msrest.serialization.Model): 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] + :type value: list[~azure.communication.chat.models.ChatThreadItem] :ivar next_link: If there are more chat threads that can be retrieved, the next link will be populated. :vartype next_link: str @@ -532,78 +557,28 @@ class ChatThreadsInfoCollection(msrest.serialization.Model): } _attribute_map = { - 'value': {'key': 'value', 'type': '[ChatThreadInfo]'}, + 'value': {'key': 'value', 'type': '[ChatThreadItem]'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, - value: List["ChatThreadInfo"], + value: List["ChatThreadItem"], **kwargs ): - super(ChatThreadsInfoCollection, self).__init__(**kwargs) + super(ChatThreadsItemCollection, self).__init__(**kwargs) 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 + :type error: ~azure.communication.chat.models.ChatError """ _validation = { @@ -611,13 +586,13 @@ class CommunicationErrorResponse(msrest.serialization.Model): } _attribute_map = { - 'error': {'key': 'error', 'type': 'CommunicationError'}, + 'error': {'key': 'error', 'type': 'ChatError'}, } def __init__( self, *, - error: "CommunicationError", + error: "ChatError", **kwargs ): super(CommunicationErrorResponse, self).__init__(**kwargs) @@ -687,31 +662,6 @@ def __init__( self.id = id -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.CommunicationError] - """ - - _validation = { - 'invalid_participants': {'readonly': True}, - } - - _attribute_map = { - 'invalid_participants': {'key': 'invalidParticipants', 'type': '[CommunicationError]'}, - } - - 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. @@ -719,13 +669,12 @@ class CreateChatThreadRequest(msrest.serialization.Model): :param topic: Required. The chat thread topic. :type topic: str - :param participants: Required. Participants to be added to the chat thread. + :param participants: Participants to be added to the chat thread. :type participants: list[~azure.communication.chat.models.ChatParticipant] """ _validation = { 'topic': {'required': True}, - 'participants': {'required': True}, } _attribute_map = { @@ -737,7 +686,7 @@ def __init__( self, *, topic: str, - participants: List["ChatParticipant"], + participants: Optional[List["ChatParticipant"]] = None, **kwargs ): super(CreateChatThreadRequest, self).__init__(**kwargs) @@ -748,27 +697,32 @@ def __init__( class CreateChatThreadResult(msrest.serialization.Model): """Result of the create chat thread operation. + Variables are only populated by the server, and will be ignored when sending a request. + :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 + :type chat_thread: ~azure.communication.chat.models.ChatThreadProperties + :ivar invalid_participants: The participants that failed to be added to the chat thread. + :vartype invalid_participants: list[~azure.communication.chat.models.ChatError] """ + _validation = { + 'invalid_participants': {'readonly': True}, + } + _attribute_map = { - 'chat_thread': {'key': 'chatThread', 'type': 'ChatThread'}, - 'errors': {'key': 'errors', 'type': 'CreateChatThreadErrors'}, + 'chat_thread': {'key': 'chatThread', 'type': 'ChatThreadProperties'}, + 'invalid_participants': {'key': 'invalidParticipants', 'type': '[ChatError]'}, } def __init__( self, *, - chat_thread: Optional["ChatThread"] = None, - errors: Optional["CreateChatThreadErrors"] = None, + chat_thread: Optional["ChatThreadProperties"] = None, **kwargs ): super(CreateChatThreadResult, self).__init__(**kwargs) self.chat_thread = chat_thread - self.errors = errors + self.invalid_participants = None class MicrosoftTeamsUserIdentifierModel(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 8aa4a16656e7..31ea34214873 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 @@ -48,7 +48,7 @@ def __init__(self, client, config, serializer, deserializer): def create_chat_thread( self, create_chat_thread_request, # type: "_models.CreateChatThreadRequest" - repeatability_request_id=None, # type: Optional[str] + idempotency_token=None, # type: Optional[str] **kwargs # type: Any ): # type: (...) -> "_models.CreateChatThreadResult" @@ -58,13 +58,12 @@ def create_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 + :param idempotency_token: If specified, the client directs that the request is repeatable; that + is, that the client can make the request multiple times with the same Idempotency-Token and get + back an appropriate response without the server executing the request multiple times. The value + of the Idempotency-Token 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 idempotency_token: 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 @@ -80,7 +79,7 @@ def create_chat_thread( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -97,8 +96,8 @@ def create_chat_thread( # 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') + if idempotency_token is not None: + header_parameters['idempotency-token'] = self._serialize.header("idempotency_token", idempotency_token, 'str') header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') @@ -127,7 +126,7 @@ def list_chat_threads( start_time=None, # type: Optional[datetime.datetime] **kwargs # type: Any ): - # type: (...) -> Iterable["_models.ChatThreadsInfoCollection"] + # type: (...) -> Iterable["_models.ChatThreadsItemCollection"] """Gets the list of chat threads of a user. Gets the list of chat threads of a user. @@ -138,11 +137,11 @@ def list_chat_threads( 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] + :return: An iterator like instance of either ChatThreadsItemCollection or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.communication.chat.models.ChatThreadsItemCollection] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadsInfoCollection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadsItemCollection"] error_map = { 404: ResourceNotFoundError, 409: ResourceExistsError, @@ -152,7 +151,7 @@ def list_chat_threads( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" def prepare_request(next_link=None): @@ -187,7 +186,7 @@ def prepare_request(next_link=None): return request def extract_data(pipeline_response): - deserialized = self._deserialize('ChatThreadsInfoCollection', pipeline_response) + deserialized = self._deserialize('ChatThreadsItemCollection', pipeline_response) list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) @@ -210,68 +209,6 @@ def get_next(next_link=None): ) 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.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 = "2021-01-27-preview4" - 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 @@ -299,7 +236,7 @@ def delete_chat_thread( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" # Construct URL 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 5055a11869c1..8f4755010d1a 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 @@ -78,7 +78,7 @@ def list_chat_read_receipts( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" def prepare_request(next_link=None): @@ -168,7 +168,7 @@ def send_chat_read_receipt( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -235,7 +235,7 @@ def send_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -309,7 +309,7 @@ def list_chat_messages( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" def prepare_request(next_link=None): @@ -399,7 +399,7 @@ def get_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" # Construct URL @@ -468,7 +468,7 @@ def update_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" content_type = kwargs.pop("content_type", "application/merge-patch+json") accept = "application/json" @@ -536,7 +536,7 @@ def delete_chat_message( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" # Construct URL @@ -596,7 +596,7 @@ def send_typing_notification( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" # Construct URL @@ -661,7 +661,7 @@ def list_chat_participants( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" accept = "application/json" def prepare_request(next_link=None): @@ -752,7 +752,7 @@ def remove_chat_participant( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -819,7 +819,7 @@ def add_chat_participants( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -859,7 +859,7 @@ def add_chat_participants( return deserialized add_chat_participants.metadata = {'url': '/chat/threads/{chatThreadId}/participants/:add'} # type: ignore - def update_chat_thread( + def update_chat_thread_properties( self, chat_thread_id, # type: str update_chat_thread_request, # type: "_models.UpdateChatThreadRequest" @@ -889,12 +889,12 @@ def update_chat_thread( 503: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.CommunicationErrorResponse, response)), } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-01-27-preview4" + api_version = "2021-03-01-preview5" content_type = kwargs.pop("content_type", "application/merge-patch+json") accept = "application/json" # Construct URL - url = self.update_chat_thread.metadata['url'] # type: ignore + url = self.update_chat_thread_properties.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'), @@ -924,4 +924,66 @@ def update_chat_thread( if cls: return cls(pipeline_response, None, {}) - update_chat_thread.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore + update_chat_thread_properties.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore + + def get_chat_thread_properties( + self, + chat_thread_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.ChatThreadProperties" + """Gets a chat thread's properties. + + Gets a chat thread's properties. + + :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: ChatThreadProperties, or the result of cls(response) + :rtype: ~azure.communication.chat.models.ChatThreadProperties + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ChatThreadProperties"] + error_map = { + 404: ResourceNotFoundError, + 409: ResourceExistsError, + 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 = "2021-03-01-preview5" + accept = "application/json" + + # Construct URL + url = self.get_chat_thread_properties.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('ChatThreadProperties', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_chat_thread_properties.metadata = {'url': '/chat/threads/{chatThreadId}'} # type: ignore diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py index 9ec7d7d5a17c..93236fb4685e 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_models.py @@ -3,6 +3,7 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ +from typing import TYPE_CHECKING from ._generated.models import ChatParticipant as ChatParticipantAutorest from ._generated.models import ChatMessageType @@ -11,6 +12,10 @@ # pylint: disable=unused-import,ungrouped-imports from ._shared.models import CommunicationUserIdentifier +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union, Tuple + class ChatThreadParticipant(object): """A participant of the chat thread. @@ -74,8 +79,8 @@ class ChatMessage(object): :ivar created_on: 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 - :ivar sender_communication_identifier: The chat message sender. - :type sender_communication_identifier: CommunicationUserIdentifier + :ivar sender: The chat message sender. + :type sender: 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 @@ -97,7 +102,7 @@ def __init__( self.content = kwargs['content'] self.sender_display_name = kwargs['sender_display_name'] self.created_on = kwargs['created_on'] - self.sender_communication_identifier = kwargs['sender_communication_identifier'] + self.sender = kwargs['sender'] self.deleted_on = kwargs['deleted_on'] self.edited_on = kwargs['edited_on'] @@ -125,7 +130,7 @@ def _from_generated(cls, chat_message): 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_communication_identifier=sender_communication_identifier, + sender=sender_communication_identifier, deleted_on=chat_message.deleted_on, edited_on=chat_message.edited_on ) @@ -140,10 +145,10 @@ class ChatMessageContent(object): :type topic: str :ivar participants: Chat message content for messages of types participantAdded or participantRemoved. - :type participants: list[~azure.communication.chat.models.ChatParticipant] - :ivar initiator_communication_identifier: Chat message content for messages of types participantAdded or + :type participants: List[~azure.communication.chat.models.ChatThreadParticipant] + :ivar initiator: Chat message content for messages of types participantAdded or participantRemoved. - :type initiator_communication_identifier: CommunicationUserIdentifier + :type initiator: Union[CommunicationUserIdentifier, MicrosoftTeamsUserIdentifier] """ def __init__( @@ -182,8 +187,8 @@ def _from_generated(cls, chat_message_content): ) -class ChatThread(object): - """ChatThread. +class ChatThreadProperties(object): + """ChatThreadProperties. Variables are only populated by the server, and will be ignored when sending a request. @@ -268,9 +273,9 @@ class CreateChatThreadResult(object): """Result of the create chat thread operation. :ivar chat_thread: Chat thread. - :type chat_thread: ~azure.communication.chat.ChatThread + :type chat_thread: ~azure.communication.chat.ChatThreadProperties :ivar errors: Errors encountered during the creation of the chat thread. - :type errors: list((~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.CommunicationError)) + :type errors: List[Tuple[~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.ChatError]] """ def __init__( diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/user_credential.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/user_credential.py index e920d356a518..dd68c96b8737 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/user_credential.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/user_credential.py @@ -12,17 +12,24 @@ from msrest.serialization import TZ_UTC +from .user_token_refresh_options import CommunicationTokenRefreshOptions + class CommunicationTokenCredential(object): """Credential type used for authenticating to an Azure Communication service. - :param communication_token_refresh_options: The token used to authenticate to an Azure Communication service - :type communication_token_refresh_options: ~azure.communication.chat.CommunicationTokenRefreshOptions + :param str token: The token used to authenticate to an Azure Communication service + :keyword token_refresher: The token refresher to provide capacity to fetch fresh token + :raises: TypeError """ - ON_DEMAND_REFRESHING_INTERVAL_MINUTES = 2 + _ON_DEMAND_REFRESHING_INTERVAL_MINUTES = 2 def __init__(self, - communication_token_refresh_options - ): + token, # type: str + **kwargs + ): + token_refresher = kwargs.pop('token_refresher', None) + communication_token_refresh_options = CommunicationTokenRefreshOptions(token=token, + token_refresher=token_refresher) self._token = communication_token_refresh_options.get_token() self._token_refresher = communication_token_refresh_options.get_token_refresher() self._lock = Condition(Lock()) @@ -53,7 +60,7 @@ def get_token(self): if should_this_thread_refresh: try: - newtoken = self._token_refresher() + newtoken = self._token_refresher() # pylint:disable=not-callable with self._lock: self._token = newtoken @@ -73,7 +80,7 @@ def _wait_till_inprogress_thread_finish_refreshing(self): def _token_expiring(self): return self._token.expires_on - self._get_utc_now() <\ - timedelta(minutes=self.ON_DEMAND_REFRESHING_INTERVAL_MINUTES) + timedelta(minutes=self._ON_DEMAND_REFRESHING_INTERVAL_MINUTES) def _is_currenttoken_valid(self): return self._get_utc_now() < self._token.expires_on diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/user_credential_async.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/user_credential_async.py index 0918074eb04a..b49c593a066d 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/user_credential_async.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/user_credential_async.py @@ -12,18 +12,24 @@ from msrest.serialization import TZ_UTC +from .user_token_refresh_options import CommunicationTokenRefreshOptions + class CommunicationTokenCredential(object): """Credential type used for authenticating to an Azure Communication service. - :param communication_token_refresh_options: The token used to authenticate to an Azure Communication service - :type communication_token_refresh_options: ~azure.communication.chat.aio.CommunicationTokenRefreshOptions + :param str token: The token used to authenticate to an Azure Communication service + :keyword token_refresher: The token refresher to provide capacity to fetch fresh token :raises: TypeError """ - ON_DEMAND_REFRESHING_INTERVAL_MINUTES = 2 + _ON_DEMAND_REFRESHING_INTERVAL_MINUTES = 2 def __init__(self, - communication_token_refresh_options - ): + token, # type: str + **kwargs + ): + token_refresher = kwargs.pop('token_refresher', None) + communication_token_refresh_options = CommunicationTokenRefreshOptions(token=token, + token_refresher=token_refresher) self._token = communication_token_refresh_options.get_token() self._token_refresher = communication_token_refresh_options.get_token_refresher() self._lock = Condition(Lock()) @@ -56,7 +62,7 @@ def get_token(self): if should_this_thread_refresh: try: - newtoken = self._token_refresher() + newtoken = self._token_refresher() # pylint:disable=not-callable with self._lock: self._token = newtoken @@ -77,7 +83,7 @@ def _wait_till_inprogress_thread_finish_refreshing(self): def _token_expiring(self): return self._token.expires_on - self._get_utc_now() <\ - timedelta(minutes=self.ON_DEMAND_REFRESHING_INTERVAL_MINUTES) + timedelta(minutes=self._ON_DEMAND_REFRESHING_INTERVAL_MINUTES) def _is_currenttoken_valid(self): return self._get_utc_now() < self._token.expires_on 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 11fcd38bbd0e..7a8bb1870794 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_utils.py @@ -3,7 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from .communication_identifier_serializer import CommunicationUserIdentifierSerializer +from ._communication_identifier_serializer import CommunicationUserIdentifierSerializer def _to_utc_datetime(value): return value.strftime('%Y-%m-%dT%H:%M:%SZ') @@ -53,21 +53,21 @@ class CommunicationErrorResponseConverter(object): """ @classmethod - def _convert(cls, participants, communication_errors): - # type: (...) -> list[(ChatThreadParticipant, CommunicationError)] + def _convert(cls, participants, chat_errors): + # type: (...) -> list[(ChatThreadParticipant, ChatError)] """ Util function to convert AddChatParticipantsResult. - Function used to consolidate List[ChatThreadParticipant] and AddChatParticipantsResult - into a list of tuples of ChatThreadParticipant -> CommunicationError. In case of no error, empty + Function used to consolidate List[ChatThreadParticipant] and List[ChatError] + into a list of tuples of ChatThreadParticipant -> ChatError. In case of no error, empty list is returned :param participants: Request object for adding participants to thread :type: participants: list(~azure.communication.chat.ChatThreadParticipant) - :param communication_errors: list of CommunicationError - :type communication_errors: list[~azure.communication.chat.CommunicationError] - :return: A list of (ChatThreadParticipant, CommunicationError) - :rtype: list[(~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.CommunicationError)] + :param chat_errors: list of ChatError + :type chat_errors: list[~azure.communication.chat.ChatError] + :return: A list of (ChatThreadParticipant, ChatError) + :rtype: list[(~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.ChatError)] """ def create_dict(participants): # type: (...) -> Dict(str, ChatThreadParticipant) @@ -83,9 +83,9 @@ def create_dict(participants): failed_chat_thread_participants = [] - if communication_errors is not None: - for communication_error in communication_errors: - _thread_participant = _thread_participants_dict.get(communication_error.target) - failed_chat_thread_participants.append((_thread_participant, communication_error)) + if chat_errors is not None: + for chat_error in chat_errors: + _thread_participant = _thread_participants_dict.get(chat_error.target) + failed_chat_thread_participants.append((_thread_participant, chat_error)) return failed_chat_thread_participants diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/__init__.py b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/__init__.py index 40356a5edc3a..ebda8b1a392f 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/aio/__init__.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/aio/__init__.py @@ -4,8 +4,9 @@ # ------------------------------------ from ._chat_client_async import ChatClient from ._chat_thread_client_async import ChatThreadClient - +from .._shared.user_credential_async import CommunicationTokenCredential __all__ = [ "ChatClient", - "ChatThreadClient" + "ChatThreadClient", + "CommunicationTokenCredential" ] 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 3d901816a9d1..aba5a8a18cd2 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 @@ -25,10 +25,10 @@ from .._generated.aio import AzureCommunicationChatService from .._generated.models import ( CreateChatThreadRequest, - ChatThreadInfo + ChatThreadItem ) from .._models import ( - ChatThread, + ChatThreadProperties, ChatThreadParticipant, CreateChatThreadResult ) @@ -138,14 +138,14 @@ async def create_chat_thread( :param topic: Required. The thread topic. :type topic: str :keyword thread_participants: Optional. Participants to be added to the thread. - :paramtype thread_participants: list[~azure.communication.chat.ChatThreadParticipant] - :keyword repeatability_request_id: Optional. If specified, the client directs that the request is + :paramtype thread_participants: List[~azure.communication.chat.ChatThreadParticipant] + :keyword idempotency_token: Optional. 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. - :paramtype repeatability_request_id: str + :paramtype idempotency_token: str :return: CreateChatThreadResult :rtype: ~azure.communication.chat.CreateChatThreadResult :raises: ~azure.core.exceptions.HttpResponseError, ValueError @@ -162,9 +162,9 @@ async def create_chat_thread( if not topic: raise ValueError("topic cannot be None.") - repeatability_request_id = kwargs.pop('repeatability_request_id', None) - if repeatability_request_id is None: - repeatability_request_id = str(uuid4()) + idempotency_token = kwargs.pop('idempotency_token', None) + if idempotency_token is None: + idempotency_token = str(uuid4()) thread_participants = kwargs.pop('thread_participants', None) participants = [] @@ -176,7 +176,7 @@ async def create_chat_thread( create_chat_thread_result = await self._client.chat.create_chat_thread( create_chat_thread_request=create_thread_request, - repeatability_request_id=repeatability_request_id, + idempotency_token=idempotency_token, **kwargs) errors = None @@ -184,10 +184,10 @@ async def create_chat_thread( create_chat_thread_result.errors is not None: errors = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access participants=[thread_participants], - communication_errors=create_chat_thread_result.errors.invalid_participants + chat_errors=create_chat_thread_result.invalid_participants ) - chat_thread = ChatThread._from_generated( # pylint:disable=protected-access + chat_thread = ChatThreadProperties._from_generated( # pylint:disable=protected-access create_chat_thread_result.chat_thread) create_chat_thread_result = CreateChatThreadResult( @@ -197,46 +197,18 @@ async def create_chat_thread( return create_chat_thread_result - @distributed_trace_async - async def get_chat_thread( - self, thread_id: str, - **kwargs - ) -> ChatThread: # type: (...) -> ChatThread - - """Gets a chat thread. - - :param thread_id: Required. Thread id to get. - :type thread_id: str - :return: ChatThread - :rtype: ~azure.communication.chat.ChatThread - :raises: ~azure.core.exceptions.HttpResponseError, ValueError - - .. admonition:: Example: - - .. literalinclude:: ../samples/chat_client_sample_async.py - :start-after: [START get_thread] - :end-before: [END get_thread] - :language: python - :dedent: 12 - :caption: Getting a chat thread by thread id. - """ - if not thread_id: - raise ValueError("thread_id cannot be None.") - - chat_thread = await self._client.chat.get_chat_thread(thread_id, **kwargs) - return ChatThread._from_generated(chat_thread) # pylint:disable=protected-access @distributed_trace def list_chat_threads( self, **kwargs: Any - ): # type: (...) -> AsyncItemPaged[ChatThreadInfo] + ): # type: (...) -> AsyncItemPaged[ChatThreadItem] """Gets the list of chat threads of a user. :keyword int results_per_page: The maximum number of chat threads to be returned per page. :keyword ~datetime.datetime start_time: The earliest point in time to get chat threads up to. - :return: An iterator like instance of ChatThreadInfo - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.ChatThreadInfo] + :return: An iterator like instance of ChatThreadItem + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.communication.chat.ChatThreadItem] :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: 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 18909456258a..758f996d7e71 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 @@ -9,7 +9,7 @@ from urlparse import urlparse # type: ignore # pylint: disable=unused-import,ungrouped-imports -from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union +from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union, Tuple from datetime import datetime import six @@ -28,12 +28,13 @@ UpdateChatThreadRequest, SendChatMessageResult, ChatMessageType, - CommunicationError + ChatError ) from .._models import ( ChatThreadParticipant, ChatMessage, - ChatMessageReadReceipt + ChatMessageReadReceipt, + ChatThreadProperties ) from .._shared.models import CommunicationUserIdentifier from .._utils import ( # pylint: disable=unused-import @@ -116,6 +117,32 @@ def thread_id(self): """ return self._thread_id + @distributed_trace_async + async def get_properties( + self, + **kwargs + ): # type: (...) -> ChatThreadProperties + + """Gets the properties of the chat thread. + + :return: ChatThreadProperties + :rtype: ~azure.communication.chat.ChatThreadProperties + :raises: ~azure.core.exceptions.HttpResponseError + + .. admonition:: Example: + + .. literalinclude:: ../samples/chat_thread_client_sample_async.py + :start-after: [START get_thread] + :end-before: [END get_thread] + :language: python + :dedent: 12 + :caption: Getting a chat thread by thread id. + """ + + chat_thread = await self._client.chat_thread.get_chat_thread_properties(self._thread_id, **kwargs) + return ChatThreadProperties._from_generated(chat_thread) # pylint:disable=protected-access + + @distributed_trace_async async def update_topic( self, @@ -142,7 +169,7 @@ async def update_topic( """ update_topic_request = UpdateChatThreadRequest(topic=topic) - return await self._client.chat_thread.update_chat_thread( + return await self._client.chat_thread.update_chat_thread_properties( chat_thread_id=self._thread_id, update_chat_thread_request=update_topic_request, **kwargs) @@ -238,18 +265,18 @@ async def send_message( self, content: str, **kwargs - ) -> str: + ) -> SendChatMessageResult: """Sends a message to a thread. :param content: Required. Chat message content. :type content: str - :param chat_message_type: The chat message type. Possible values include: "text", "html". + :keyword 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 + :paramtype chat_message_type: Union[str, ~azure.communication.chat.ChatMessageType] :keyword str sender_display_name: The display name of the message sender. This property is used to populate sender name for push notifications. - :return: str - :rtype: str + :return: SendChatMessageResult + :rtype: ~azure.communication.chat.SendChatMessageResult :raises: ~azure.core.exceptions.HttpResponseError, ValueError .. admonition:: Example: @@ -290,7 +317,7 @@ async def send_message( send_chat_message_request=create_message_request, **kwargs) - return send_chat_message_result.id + return send_chat_message_result @distributed_trace_async async def get_message( @@ -454,76 +481,26 @@ def list_participants( 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. - - If participant is added successfully, a tuple of (None, None) is expected. - Failure to add participant to thread returns tuple of (thread_participant, communication_error). - - :param thread_participant: Required. Single thread participant to be added to the thread. - :type thread_participant: ~azure.communication.chat.ChatThreadParticipant - :return: None - :rtype: None - :raises: ~azure.core.exceptions.HttpResponseError, ValueError, RuntimeError - - .. 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) - - add_chat_participants_result = await self._client.chat_thread.add_chat_participants( - chat_thread_id=self._thread_id, - add_chat_participants_request=add_thread_participants_request, - **kwargs) - - response = [] - if hasattr(add_chat_participants_result, 'errors') and \ - add_chat_participants_result.errors is not None: - response = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access - participants=[thread_participant], - communication_errors=add_chat_participants_result.errors.invalid_participants - ) - - if len(response) != 0: - failed_participant = response[0][0] - communication_error = response[0][1] - raise RuntimeError('Participant: ', failed_participant, ' failed to join thread due to: ', - communication_error.message) @distributed_trace_async async def add_participants( self, thread_participants: List[ChatThreadParticipant], **kwargs - ) -> list((ChatThreadParticipant, CommunicationError)): + ) -> List[Tuple[ChatThreadParticipant, ChatError]]: - # type: (...) -> list[(ChatThreadParticipant, CommunicationError)] + # type: (...) -> List[Tuple[ChatThreadParticipant, ChatError]] """Adds thread participants to a thread. If participants already exist, no change occurs. If all participants are added successfully, then an empty list is returned; - otherwise, a list of tuple(chat_thread_participant, communincation_error) is returned, + otherwise, a list of tuple(chat_thread_participant, chat_error) is returned, of failed participants and its respective error - :param thread_participants: Required. Thread participants to be added to the thread. - :type thread_participants: list[~azure.communication.chat.ChatThreadParticipant] - :return: List[(ChatThreadParticipant, CommunicationError)] - :rtype: list((~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.CommunicationError)) - :raises: ~azure.core.exceptions.HttpResponseError, ValueError, RuntimeError + :param thread_participants: Thread participants to be added to the thread. + :type thread_participants: List[~azure.communication.chat.ChatThreadParticipant] + :return: List[Tuple[ChatThreadParticipant, ChatError]] + :rtype: List[Tuple[~azure.communication.chat.ChatThreadParticipant, ~azure.communication.chat.ChatError]] + :raises: ~azure.core.exceptions.HttpResponseError .. admonition:: Example: @@ -534,24 +511,23 @@ async def add_participants( :dedent: 12 :caption: Adding participants to chat thread. """ - if not thread_participants: - raise ValueError("thread_participants cannot be None.") - - participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access - add_thread_participants_request = AddChatParticipantsRequest(participants=participants) - - add_chat_participants_result = await self._client.chat_thread.add_chat_participants( - chat_thread_id=self._thread_id, - add_chat_participants_request=add_thread_participants_request, - **kwargs) - response = [] - if hasattr(add_chat_participants_result, 'errors') and \ - add_chat_participants_result.errors is not None: - response = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access - participants=thread_participants, - communication_errors=add_chat_participants_result.errors.invalid_participants - ) + if thread_participants: + participants = [m._to_generated() for m in thread_participants] # pylint:disable=protected-access + add_thread_participants_request = AddChatParticipantsRequest(participants=participants) + + add_chat_participants_result = await self._client.chat_thread.add_chat_participants( + chat_thread_id=self._thread_id, + add_chat_participants_request=add_thread_participants_request, + **kwargs) + + + if hasattr(add_chat_participants_result, 'invalid_participants') and \ + add_chat_participants_result.invalid_participants is not None: + response = CommunicationErrorResponseConverter._convert( # pylint:disable=protected-access + participants=thread_participants, + chat_errors=add_chat_participants_result.invalid_participants + ) return response 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 63b55c3ebd97..a4cbd1a1d26f 100644 --- a/sdk/communication/azure-communication-chat/samples/chat_client_sample.py +++ b/sdk/communication/azure-communication-chat/samples/chat_client_sample.py @@ -44,33 +44,34 @@ class ChatClientSamples(object): _thread_id = None def create_chat_client(self): + token = self.token + endpoint = self.endpoint # [START create_chat_client] - from azure.communication.chat import ChatClient - from azure.communication.identity._shared.user_credential import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) + from azure.communication.chat import ChatClient, CommunicationTokenCredential + + chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) # [END create_chat_client] def create_thread(self): + token = self.token + endpoint = self.endpoint + user = self.user # [START create_thread] from datetime import datetime from azure.communication.identity import CommunicationUserIdentifier - from azure.communication.identity._shared.user_credential import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat import( ChatClient, - ChatThreadParticipant + ChatThreadParticipant, + CommunicationTokenCredential ) - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) + chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) topic = "test topic" participants = [ChatThreadParticipant( - user=self.user, + user=user, display_name='name', share_history_time=datetime.utcnow() )] @@ -79,11 +80,11 @@ def create_thread(self): create_chat_thread_result = chat_client.create_chat_thread(topic, thread_participants=participants) # creates a new chat_thread if not exists - repeatability_request_id = 'b66d6031-fdcc-41df-8306-e524c9f226b8' # unique identifier + idempotency_token = 'b66d6031-fdcc-41df-8306-e524c9f226b8' # unique identifier create_chat_thread_result_w_repeatability_id = chat_client.create_chat_thread( topic, thread_participants=participants, - repeatability_request_id=repeatability_request_id + idempotency_token=idempotency_token ) # [END create_thread] @@ -91,60 +92,47 @@ def create_thread(self): print("thread created, id: " + self._thread_id) def get_chat_thread_client(self): + token = self.token + endpoint = self.endpoint + thread_id = self._thread_id + # [START get_chat_thread_client] - from azure.communication.chat import ChatClient - from azure.communication.identity._shared.user_credential import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + from azure.communication.chat import ChatClient, CommunicationTokenCredential - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) - chat_thread_client = chat_client.get_chat_thread_client(self._thread_id) + chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) + chat_thread_client = chat_client.get_chat_thread_client(thread_id) # [END get_chat_thread_client] - print("chat_thread_client created with thread id: ", chat_thread_client.thread_id) - - def get_thread(self): - # [START get_thread] - from azure.communication.chat import ChatClient - from azure.communication.identity._shared.user_credential import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + print("get_chat_thread_client succeeded with thread id: ", chat_thread_client.thread_id) - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) - chat_thread = chat_client.get_chat_thread(self._thread_id) - # [END get_thread] - - print("get_thread succeeded, thread id: " + chat_thread.id + ", thread topic: " + chat_thread.topic) def list_threads(self): + token = self.token + endpoint = self.endpoint + # [START list_threads] - from azure.communication.chat import ChatClient - from azure.communication.identity._shared.user_credential import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + from azure.communication.chat import ChatClient, CommunicationTokenCredential from datetime import datetime, timedelta - import pytz - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) + chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) start_time = datetime.utcnow() - timedelta(days=2) - start_time = start_time.replace(tzinfo=pytz.utc) - chat_thread_infos = chat_client.list_chat_threads(results_per_page=5, start_time=start_time) + chat_threads = chat_client.list_chat_threads(results_per_page=5, start_time=start_time) print("list_threads succeeded with results_per_page is 5, and were created since 2 days ago.") - for chat_thread_info_page in chat_thread_infos.by_page(): - for chat_thread_info in chat_thread_info_page: - print("thread id:", chat_thread_info.id) + for chat_thread_item_page in chat_threads.by_page(): + for chat_thread_item in chat_thread_item_page: + print("thread id:", chat_thread_item.id) # [END list_threads] def delete_thread(self): + token = self.token + endpoint = self.endpoint + thread_id = self._thread_id # [START delete_thread] - from azure.communication.chat import ChatClient - from azure.communication.identity._shared.user_credential import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + from azure.communication.chat import ChatClient, CommunicationTokenCredential - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) - chat_client.delete_chat_thread(self._thread_id) + chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) + chat_client.delete_chat_thread(thread_id) # [END delete_thread] print("delete_thread succeeded") @@ -159,7 +147,6 @@ def clean_up(self): sample.create_chat_client() sample.create_thread() sample.get_chat_thread_client() - sample.get_thread() sample.list_threads() sample.delete_thread() sample.clean_up() 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 094347c5a262..9121cff29f2d 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 @@ -44,27 +44,30 @@ class ChatClientSamplesAsync(object): _thread_id = None def create_chat_client(self): + token = self.token + endpoint = self.endpoint + thread_id = self._thread_id + # [START create_chat_client] - from azure.communication.chat.aio import ChatClient - from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) + chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) # [END create_chat_client] print("chat_client created") async def create_thread_async(self): + token = self.token + endpoint = self.endpoint + thread_id = self._thread_id + + # [START create_thread] from datetime import datetime - from azure.communication.chat.aio import ChatClient - from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential from azure.communication.chat import ChatThreadParticipant - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) + chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) async with chat_client: - # [START create_thread] + topic = "test topic" participants = [ChatThreadParticipant( user=self.user, @@ -75,73 +78,64 @@ async def create_thread_async(self): create_chat_thread_result = await chat_client.create_chat_thread(topic, thread_participants=participants) # creates a new chat_thread if not exists - repeatability_request_id = 'b66d6031-fdcc-41df-8306-e524c9f226b8' # unique identifier + idempotency_token = 'b66d6031-fdcc-41df-8306-e524c9f226b8' # unique identifier create_chat_thread_result_w_repeatability_id = await chat_client.create_chat_thread( topic, thread_participants=participants, - repeatability_request_id=repeatability_request_id) + idempotency_token=idempotency_token) # [END create_thread] self._thread_id = create_chat_thread_result.chat_thread.id print("thread created, id: " + self._thread_id) def get_chat_thread_client(self): + token = self.token + endpoint = self.endpoint + thread_id = self._thread_id + # [START get_chat_thread_client] - from azure.communication.chat.aio import ChatClient - from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) - chat_thread_client = chat_client.get_chat_thread_client(self._thread_id) + chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) + chat_thread_client = chat_client.get_chat_thread_client(thread_id) # [END get_chat_thread_client] print("chat_thread_client created with thread id: ", chat_thread_client.thread_id) - async def get_thread_async(self): - from azure.communication.chat.aio import ChatClient - from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions - - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) - async with chat_client: - # [START get_thread] - chat_thread = await chat_client.get_chat_thread(self._thread_id) - # [END get_thread] - print("get_thread succeeded, thread id: " + chat_thread.id + ", thread topic: " + chat_thread.topic) async def list_threads_async(self): - from azure.communication.chat.aio import ChatClient - from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + token = self.token + endpoint = self.endpoint + thread_id = self._thread_id + + # [START list_threads] + from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) + chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) async with chat_client: - # [START list_threads] + from datetime import datetime, timedelta - import pytz start_time = datetime.utcnow() - timedelta(days=2) - start_time = start_time.replace(tzinfo=pytz.utc) - chat_thread_infos = chat_client.list_chat_threads(results_per_page=5, start_time=start_time) + chat_threads = chat_client.list_chat_threads(results_per_page=5, start_time=start_time) print("list_threads succeeded with results_per_page is 5, and were created since 2 days ago.") - async for chat_thread_info_page in chat_thread_infos.by_page(): - async for chat_thread_info in chat_thread_info_page: - print("thread id: ", chat_thread_info.id) - # [END list_threads] + async for chat_thread_item_page in chat_threads.by_page(): + async for chat_thread_item in chat_thread_item_page: + print("thread id: ", chat_thread_item.id) + # [END list_threads] async def delete_thread_async(self): - from azure.communication.chat.aio import ChatClient - from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions + token = self.token + endpoint = self.endpoint + thread_id = self._thread_id - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) + # [START delete_thread] + from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential + + chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) async with chat_client: - # [START delete_thread] + await chat_client.delete_chat_thread(self._thread_id) - # [END delete_thread] + # [END delete_thread] print("delete_thread succeeded") def clean_up(self): @@ -154,7 +148,6 @@ async def main(): sample.create_chat_client() await sample.create_thread_async() sample.get_chat_thread_client() - await sample.get_thread_async() await sample.list_threads_async() await sample.delete_thread_async() sample.clean_up() 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 c79b9fa0cd56..700fa22e6d6d 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 @@ -28,10 +28,9 @@ class ChatThreadClientSamples(object): from azure.communication.identity import CommunicationIdentityClient - from azure.communication.identity._shared.user_credential import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat import ( - ChatClient + ChatClient, + CommunicationTokenCredential ) connection_string = os.environ.get("AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING", None) if not connection_string: @@ -50,8 +49,7 @@ class ChatThreadClientSamples(object): _message_id = None new_user = identity_client.create_user() - refresh_options = CommunicationTokenRefreshOptions(token) - _chat_client = ChatClient(endpoint, CommunicationTokenCredential(refresh_options)) + _chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) def create_chat_thread_client(self): token = self.token @@ -60,18 +58,16 @@ def create_chat_thread_client(self): # [START create_chat_thread_client] from datetime import datetime from azure.communication.identity import CommunicationUserIdentifier - from azure.communication.identity._shared.user_credential import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat import ( ChatClient, - ChatThreadParticipant + ChatThreadParticipant, + CommunicationTokenCredential ) # retrieve `token` using CommunicationIdentityClient.get_token method # set `endpoint` to ACS service endpoint # create `user` using CommunicationIdentityClient.create_user method for new users; # else for existing users set `user` = CommunicationUserIdentifier(some_user_id) - refresh_options = CommunicationTokenRefreshOptions(token) - chat_client = ChatClient(endpoint, CommunicationTokenCredential(refresh_options)) + chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) topic = "test topic" participants = [ChatThreadParticipant( user=user, @@ -84,20 +80,36 @@ def create_chat_thread_client(self): self._thread_id = create_chat_thread_result.chat_thread.id print("chat_thread_client created") + def get_chat_thread_properties(self): + thread_id = self._thread_id + token = self.token + endpoint = self.endpoint + # [START get_thread] + from azure.communication.chat import ChatClient, CommunicationTokenCredential + + chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) + chat_thread_client = chat_client.get_chat_thread_client(thread_id) + chat_thread_properties = chat_thread_client.get_properties() + print('Expected Thread Id: ', thread_id, ' Actual Value: ', chat_thread_properties.id) + # [END get_thread] + + print("get_chat_thread_properties succeeded, thread id: " + chat_thread.id + ", thread topic: " + chat_thread.topic) + + def update_topic(self): thread_id = self._thread_id chat_client = self._chat_client # [START update_topic] # set `thread_id` to an existing thread id - chat_thread = chat_client.get_chat_thread(thread_id=thread_id) - previous_topic = chat_thread.topic chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) + chat_thread_properties = chat_thread_client.get_properties() + previous_topic = chat_thread_properties.topic topic = "updated thread topic" chat_thread_client.update_topic(topic=topic) - chat_thread = chat_client.get_chat_thread(thread_id=thread_id) - updated_topic = chat_thread.topic + chat_thread_properties = chat_thread_client.get_properties() + updated_topic = chat_thread_properties.topic print("Chat Thread Topic Update: Previous value: ", previous_topic, ", Current value: ", updated_topic) # [END update_topic] @@ -113,16 +125,17 @@ def send_message(self): chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) # Scenario 1: Send message without specifying chat_message_type - send_message_result_id = chat_thread_client.send_message( + send_message_result = chat_thread_client.send_message( "Hello! My name is Fred Flinstone", sender_display_name="Fred Flinstone") + send_message_result_id = send_message_result.id # Scenario 2: Send message specifying chat_message_type - send_message_result_w_type_id = chat_thread_client.send_message( + send_message_result_w_type = chat_thread_client.send_message( "Hello! My name is Wilma Flinstone", sender_display_name="Wilma Flinstone", chat_message_type=ChatMessageType.TEXT) # equivalent to setting chat_message_type='text' - + send_message_result_w_type_id = send_message_result_w_type.id # Verify message content print("First Message:", chat_thread_client.get_message(send_message_result_id).content.message) print("Second Message:", chat_thread_client.get_message(send_message_result_w_type_id).content.message) @@ -249,43 +262,6 @@ def list_participants(self): # [END list_participants] print("list_participants succeeded") - def add_participant_w_check(self): - # initially remove already added user - thread_id = self._thread_id - chat_client = self._chat_client - user = self.new_user - chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) - - chat_thread_client.remove_participant(user) - - # [START add_participant] - from azure.communication.chat import ChatThreadParticipant - from datetime import datetime - - def decide_to_retry(error): - """ - Custom logic to decide whether to retry to add or not - """ - return True - - # set `thread_id` to an existing thread id - chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) - - # create `user` using CommunicationIdentityClient.create_user method for new users; - # else for existing users set `user` = CommunicationUserIdentifier(some_user_id) - new_chat_thread_participant = ChatThreadParticipant( - user=user, - display_name='name', - share_history_time=datetime.utcnow()) - - # check if participant has been added successfully - try: - chat_thread_client.add_participant(new_chat_thread_participant) - except RuntimeError as e: - if e is not None and decide_to_retry(error=e): - chat_thread_client.add_participant(new_chat_thread_participant) - # [END add_participant] - print("add_participant_w_check succeeded") def add_participants_w_check(self): # initially remove already added user 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 c006b7bc805b..699513ec8a91 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 @@ -28,10 +28,8 @@ class ChatThreadClientSamplesAsync(object): - from azure.communication.chat.aio import ChatClient + from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential from azure.communication.identity import CommunicationIdentityClient - from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions connection_string = os.environ.get("AZURE_COMMUNICATION_SERVICE_CONNECTION_STRING", None) if not connection_string: @@ -50,20 +48,17 @@ class ChatThreadClientSamplesAsync(object): _message_id = None new_user = identity_client.create_user() - refresh_options = CommunicationTokenRefreshOptions(token) - _chat_client = ChatClient(endpoint, CommunicationTokenCredential(refresh_options)) + _chat_client = ChatClient(endpoint, CommunicationTokenCredential(token)) async def create_chat_thread_client_async(self): + token = self.token # [START create_chat_thread_client] from datetime import datetime - from azure.communication.chat.aio import ChatClient + from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential from azure.communication.chat import ChatThreadParticipant from azure.communication.identity import CommunicationUserIdentifier - from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential - from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions - refresh_options = CommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) + chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(token)) async with chat_client: topic = "test topic" @@ -80,6 +75,24 @@ async def create_chat_thread_client_async(self): print("thread created, id: " + self._thread_id) print("create_chat_thread_client_async succeeded") + async def get_chat_thread_properties_async(self): + thread_id = self._thread_id + token = self.token + # [START get_thread] + from azure.communication.chat.aio import ChatClient, CommunicationTokenCredential + + chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(token)) + async with chat_client: + chat_thread_client = chat_client.get_chat_thread_client(thread_id) + + async with chat_thread_client: + chat_thread_properties = chat_thread_client.get_properties() + print('Expected Thread Id: ', thread_id, ' Actual Value: ', chat_thread_properties.id) + # [END get_thread] + print("get_chat_thread_properties_async succeeded, thread id: " + chat_thread.id + + ", thread topic: " + chat_thread.topic) + + async def update_topic_async(self): thread_id = self._thread_id chat_client = self._chat_client @@ -87,17 +100,19 @@ async def update_topic_async(self): # [START update_topic] # set `thread_id` to an existing thread id async with chat_client: - chat_thread = await chat_client.get_chat_thread(thread_id=thread_id) - previous_topic = chat_thread.topic chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) async with chat_thread_client: + chat_thread_properties = await chat_thread_client.get_properties() + previous_topic = chat_thread_properties.topic + topic = "updated thread topic" await chat_thread_client.update_topic(topic=topic) - chat_thread = await chat_client.get_chat_thread(thread_id=thread_id) - updated_topic = chat_thread.topic - print("Chat Thread Topic Update: Previous value: ", previous_topic, ", Current value: ", updated_topic) + chat_thread_properties = await chat_thread_client.get_properties() + updated_topic = chat_thread_properties.topic + + print("Chat Thread Topic Update: Previous value: ", previous_topic, ", Current value: ", updated_topic) # [END update_topic] print("update_topic_async succeeded") @@ -112,15 +127,17 @@ async def send_message_async(self): chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) async with chat_thread_client: # Scenario 1: Send message without specifying chat_message_type - send_message_result_id = await chat_thread_client.send_message( + send_message_result = await chat_thread_client.send_message( "Hello! My name is Fred Flinstone", sender_display_name="Fred Flinstone") + send_message_result_id = send_message_result.id # Scenario 2: Send message specifying chat_message_type - send_message_result_w_type_id = await chat_thread_client.send_message( + send_message_result_w_type = await chat_thread_client.send_message( "Hello! My name is Wilma Flinstone", sender_display_name="Wilma Flinstone", chat_message_type=ChatMessageType.TEXT) # equivalent to setting chat_message_type='text' + send_message_result_w_type_id = send_message_result_w_type.id # Verify message content print("First Message:", (await chat_thread_client.get_message(send_message_result_id)).content.message) @@ -251,34 +268,6 @@ async def list_participants_async(self): # [END list_participants] print("list_participants_async succeeded") - async def add_participant_w_check_async(self): - thread_id = self._thread_id - chat_client = self._chat_client - user = self.new_user - # [START add_participant] - def decide_to_retry(error): - """ - Custom logic to decide whether to retry to add or not - """ - return True - - async with chat_client: - # set `thread_id` to an existing thread id - chat_thread_client = chat_client.get_chat_thread_client(thread_id=thread_id) - async with chat_thread_client: - from azure.communication.chat import ChatThreadParticipant - from datetime import datetime - new_chat_thread_participant = ChatThreadParticipant( - user=user, - display_name='name', - share_history_time=datetime.utcnow()) - try: - await chat_thread_client.add_participant(new_chat_thread_participant) - except RuntimeError as e: - if e is not None and decide_to_retry(error=e): - await chat_thread_client.add_participant(new_chat_thread_participant) - # [END add_participant] - print("add_participant_w_check_async succeeded") async def add_participants_w_check_async(self): thread_id = self._thread_id diff --git a/sdk/communication/azure-communication-chat/swagger/SWAGGER.md b/sdk/communication/azure-communication-chat/swagger/SWAGGER.md index 5bb778b2210f..767782af3ad6 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/2021-01-27-preview4/swagger.json +input-file: https://int.chatgateway.trafficmanager.net/swagger/2021-03-01-preview5/swagger.json output-folder: ../azure/communication/chat/_generated namespace: azure.communication.chat no-namespace-folders: true @@ -27,3 +27,12 @@ v3: true no-async: false add-credential: false ``` + +### Rename CommunicationError to ChatError +```yaml +directive: + from: swagger-document + where: '$.definitions.CommunicationError' + transform: > + $["x-ms-client-name"] = "ChatError"; +``` \ No newline at end of file diff --git a/sdk/communication/azure-communication-chat/tests/_shared/test_communication_identifier_serializer.py b/sdk/communication/azure-communication-chat/tests/_shared/test_communication_identifier_serializer.py index b6888d2f3826..837928939394 100644 --- a/sdk/communication/azure-communication-chat/tests/_shared/test_communication_identifier_serializer.py +++ b/sdk/communication/azure-communication-chat/tests/_shared/test_communication_identifier_serializer.py @@ -4,7 +4,7 @@ # license information. # ------------------------------------------------------------------------- import unittest -from azure.communication.chat.communication_identifier_serializer import CommunicationUserIdentifierSerializer +from azure.communication.chat._communication_identifier_serializer import CommunicationUserIdentifierSerializer from azure.communication.chat._generated.models import( CommunicationIdentifierModel, MicrosoftTeamsUserIdentifierModel, diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_access_token_validation.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_access_token_validation.yaml index aa5d0e431598..7765d18dd2cc 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_access_token_validation.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_access_token_validation.yaml @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:10:59 GMT + - Thu, 18 Mar 2021 23:55:13 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff0-c6d8-dbb7-3a3a0d00fe2b"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-46e1-ceb1-a43a0d00bc7e"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:10:59 GMT + - Thu, 18 Mar 2021 23:55:06 GMT ms-cv: - - bW6n9WIC+0e3lIIMYxZQag.0 + - stV5ybZzIkazU9rN1m7o/Q.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 65ms + - 11ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:10:59 GMT + - Thu, 18 Mar 2021 23:55:14 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:10:58.9306776+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:55:06.0513764+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:10:59 GMT + - Thu, 18 Mar 2021 23:55:06 GMT ms-cv: - - MQ5CNrfwpk2ldAK6FpvF1w.0 + - TvSSIYC4h0qcnasNleTjhg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 85ms + - 130ms status: code: 200 message: OK @@ -99,34 +99,67 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - fa747021-f9a3-4253-a19f-939cce81b174 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - c5acde45-0972-4ec3-b6ea-68a2327769d7 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:Ky3TqpBBlrcv99Nzo6k7PnHAF24hHJe4NCu9_Hm6bfA1@thread.v2", - "topic": "test topic1", "createdOn": "2021-03-01T23:11:00Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff0-c6d8-dbb7-3a3a0d00fe2b", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff0-c6d8-dbb7-3a3a0d00fe2b"}}}}' + body: '{"chatThread": {"id": "19:UYZrazvrhFbkcHODxb6QPD2CTyeuuK0DfKWo-przd8U1@thread.v2", + "topic": "test topic1", "createdOn": "2021-03-18T23:55:07Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-46e1-ceb1-a43a0d00bc7e", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-46e1-ceb1-a43a0d00bc7e"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:11:00 GMT + - Thu, 18 Mar 2021 23:55:07 GMT ms-cv: - - WxWXXsh1f0684VuhjaktZQ.0 + - rWqvzfN+xUKK5yYKQStGCA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 906ms + - 807ms 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.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 + response: + body: '{"value": "sanitized"}' + headers: + api-supported-versions: + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 + content-type: + - application/json; charset=utf-8 + date: + - Thu, 18 Mar 2021 23:55:07 GMT + ms-cv: + - OzrnHKrwDEG274eRDybFSQ.0 + strict-transport-security: + - max-age=2592000 + transfer-encoding: + - chunked + x-processing-time: + - 146ms + status: + code: 200 + message: OK - request: body: null headers: @@ -139,13 +172,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:11:00 GMT + - Thu, 18 Mar 2021 23:55:15 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -153,15 +186,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:11:17 GMT + - Thu, 18 Mar 2021 23:55:08 GMT ms-cv: - - /rPqTLNSV0mkKNWE1XECBQ.0 + - Mde/Pvir0kK+IbgoxS+vgQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16329ms + - 786ms status: code: 204 message: No Content @@ -177,9 +210,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -187,13 +220,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:11:17 GMT + - Thu, 18 Mar 2021 23:55:09 GMT ms-cv: - - 58gpvEda/k+1SmXVYyCBhw.0 + - Q/Tvf/XKYES1+YsobtR6+g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 303ms + - 207ms status: code: 204 message: No Content 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 2d7ba1da247d..ce574e00d006 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:11:17 GMT + - Thu, 18 Mar 2021 23:55:17 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-0eab-b0b7-3a3a0d00fd2c"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-52b0-290c-113a0d007a33"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:11:18 GMT + - Thu, 18 Mar 2021 23:55:09 GMT ms-cv: - - o1Q2S+OZaUWwVrObri2lbQ.0 + - pM59/vHui0KDbwGIxqnggA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 12ms + - 224ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:11:18 GMT + - Thu, 18 Mar 2021 23:55:17 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:11:17.344548+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:55:09.275626+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:11:18 GMT + - Thu, 18 Mar 2021 23:55:10 GMT ms-cv: - - 9RQB/Fte0UOjmyNDyi8r4w.0 + - DAWzpwMMJkCFoh/RKwOEnA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 96ms + - 282ms status: code: 200 message: OK @@ -99,31 +99,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 6a1eae11-2bd1-46b9-ad31-4422fcbd69a7 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - be5fddee-66f0-4477-bff9-d0320b2e71a7 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:gOes8DCyipHncgQGhWh4pTzjs4dn1NslXhbSeFjZPEQ1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:11:18Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-0eab-b0b7-3a3a0d00fd2c", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-0eab-b0b7-3a3a0d00fd2c"}}}}' + body: '{"chatThread": {"id": "19:mlqRWbNJPvBfyGhjHw8-9e3hhmjA-clAayT4OHiGosE1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:55:10Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-52b0-290c-113a0d007a33", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-52b0-290c-113a0d007a33"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:11:19 GMT + - Thu, 18 Mar 2021 23:55:10 GMT ms-cv: - - tJ6u6UlFrEiDWyEaiGfi5g.0 + - XDTtq7ecMkajTea0GTZ2gg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 821ms + - 972ms status: code: 201 message: Created @@ -139,13 +139,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:11:19 GMT + - Thu, 18 Mar 2021 23:55:19 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -153,15 +153,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:11:35 GMT + - Thu, 18 Mar 2021 23:55:12 GMT ms-cv: - - LPSpK61oGEOdTG/7cce39w.0 + - y9rnuWQIPka2EKDulXVlLg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16690ms + - 838ms status: code: 204 message: No Content @@ -177,9 +177,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -187,13 +187,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:11:35 GMT + - Thu, 18 Mar 2021 23:55:12 GMT ms-cv: - - bEvdrAQxO0+Waa8482A+og.0 + - 7sNL7NhcBU+MOAJ3MJiMAA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 290ms + - 214ms 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_no_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml index bd2f06714368..9091fde7b5b2 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:11:36 GMT + - Thu, 18 Mar 2021 23:55:20 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-5786-1db7-3a3a0d00052e"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-5f40-9806-113a0d00d802"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:11:36 GMT + - Thu, 18 Mar 2021 23:55:12 GMT ms-cv: - - gBTv8xkWEkG5akiDGE7Shw.0 + - UbiLPklogUOYCg+qlr70CQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 63ms + - 141ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:11:36 GMT + - Thu, 18 Mar 2021 23:55:20 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:11:35.9936998+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:55:12.4802593+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:11:36 GMT + - Thu, 18 Mar 2021 23:55:12 GMT ms-cv: - - DrKW5FHR1UGUJoNWItcxDQ.0 + - t9mIGOIa3EyPJFpdwaK/3w.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 289ms status: code: 200 message: OK @@ -99,31 +99,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - a084ed5e-af68-4831-923f-b566eea88949 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 754d6028-1f6d-40db-a674-a66f8cba8c26 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:_MTvpgDZ0sQ1x8NmI0nIp_oDV6cntpWSFjFSNlrMpT81@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:11:37Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-5786-1db7-3a3a0d00052e", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-5786-1db7-3a3a0d00052e"}}}}' + body: '{"chatThread": {"id": "19:lK7xvlXILwm8E-HVTc8DZfx3-ulPB-6fYLQN-iLOTO81@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:55:13Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-5f40-9806-113a0d00d802", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-5f40-9806-113a0d00d802"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:11:37 GMT + - Thu, 18 Mar 2021 23:55:13 GMT ms-cv: - - 3ivl6phbnEesWJVRH3pmmQ.0 + - 8+wBkVaCCEGrL0mL0ZD7hA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 829ms + - 1016ms status: code: 201 message: Created @@ -139,13 +139,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:11:37 GMT + - Thu, 18 Mar 2021 23:55:22 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -153,15 +153,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:11:53 GMT + - Thu, 18 Mar 2021 23:55:15 GMT ms-cv: - - dKgIMmLihE+Cw+39dbDuug.0 + - T0rgkmHqyUyohJRS8zHFkw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16550ms + - 870ms status: code: 204 message: No Content @@ -177,9 +177,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -187,13 +187,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:11:54 GMT + - Thu, 18 Mar 2021 23:55:15 GMT ms-cv: - - SK3uz76dJUiMg4TPA9RdUQ.0 + - hv50CzQlzUGxGF65hVIktQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 292ms + - 228ms 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 0b2992214e66..6d107592b5b0 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:11:54 GMT + - Thu, 18 Mar 2021 23:55:23 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-9ef9-1db7-3a3a0d000530"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-6b46-99c6-593a0d009e63"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:11:54 GMT + - Thu, 18 Mar 2021 23:55:15 GMT ms-cv: - - boKHZHPBfU6YQ4YkHh+3uQ.0 + - VArM2XN0kk+NgAPXGdGeOA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 52ms + - 11ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:11:54 GMT + - Thu, 18 Mar 2021 23:55:23 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:11:54.2812766+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:55:15.2420845+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:11:54 GMT + - Thu, 18 Mar 2021 23:55:15 GMT ms-cv: - - X++gUGblR0yomDL/mV0OUg.0 + - w8JQIuqnvEOIqBqruieG3w.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 26ms status: code: 200 message: OK @@ -99,31 +99,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - dc104471-80e0-4aa0-aa43-f5891407d977 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - ebd52e59-068d-4d95-b491-e5f17f043350 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:eNSEjghJllwmTm-39qenUverVnQUDWlvOD47fBoDbOE1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:11:55Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-9ef9-1db7-3a3a0d000530", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-9ef9-1db7-3a3a0d000530"}}}}' + body: '{"chatThread": {"id": "19:kPoxJDxmyvwSh624gpo1oAT6W9MMSqyuyW9Ydgpq1EY1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:55:16Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-6b46-99c6-593a0d009e63", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-6b46-99c6-593a0d009e63"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:11:56 GMT + - Thu, 18 Mar 2021 23:55:16 GMT ms-cv: - - gFqhRqzKv0Wm4k8jUPryrg.0 + - iiFm57X7Pk22qoIdIPAiyg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 843ms + - 904ms status: code: 201 message: Created @@ -137,35 +137,35 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '257' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - dc104471-80e0-4aa0-aa43-f5891407d977 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - ebd52e59-068d-4d95-b491-e5f17f043350 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:eNSEjghJllwmTm-39qenUverVnQUDWlvOD47fBoDbOE1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:11:55Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-9ef9-1db7-3a3a0d000530", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-9ef9-1db7-3a3a0d000530"}}}}' + body: '{"chatThread": {"id": "19:kPoxJDxmyvwSh624gpo1oAT6W9MMSqyuyW9Ydgpq1EY1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:55:16Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-6b46-99c6-593a0d009e63", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-6b46-99c6-593a0d009e63"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:11:56 GMT + - Thu, 18 Mar 2021 23:55:16 GMT ms-cv: - - M5WkU9xpwEeue7p6AWMKTQ.0 + - uns8287/IEu6oHZ73qCLgA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 663ms + - 285ms status: code: 201 message: Created @@ -181,13 +181,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:11:56 GMT + - Thu, 18 Mar 2021 23:55:25 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -195,15 +195,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:12:13 GMT + - Thu, 18 Mar 2021 23:55:17 GMT ms-cv: - - HKzdmGO8x0GCD6B4RJcGlQ.0 + - EEWsp/bBiEi3lNKOJfjYlw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16291ms + - 884ms status: code: 204 message: No Content @@ -219,9 +219,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -229,13 +229,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:12:13 GMT + - Thu, 18 Mar 2021 23:55:18 GMT ms-cv: - - xK61zT18s06HRgGF8FiP3Q.0 + - 7Mj5+lOImE2PqREQ3nxD5Q.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 293ms + - 178ms 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 72316fe58a06..fd6630a7c055 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:12:13 GMT + - Thu, 18 Mar 2021 23:55:26 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-e86a-b0b7-3a3a0d00fd2d"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-778c-7f07-113a0d00daf6"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:12:12 GMT + - Thu, 18 Mar 2021 23:55:18 GMT ms-cv: - - uCRjJw16UUW2PVmRc45Bfw.0 + - 4P+aT77c8EiUAyNTcwuTpw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 20ms + - 143ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:12:13 GMT + - Thu, 18 Mar 2021 23:55:26 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:12:13.0870762+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:55:18.6957576+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:12:13 GMT + - Thu, 18 Mar 2021 23:55:19 GMT ms-cv: - - v/O8d6Jdg0Sjc6Hn4g1mRQ.0 + - AAsMqJGQGEec8fmnPe2ELQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 96ms + - 281ms status: code: 200 message: OK @@ -99,31 +99,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 61096283-6efc-4469-8352-98fb47975c67 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - bda2cb9f-9555-47bb-aa99-4425c4e9463c method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:divZF8vf-ddqTxf4aWBgBqJgmQsKkqDnUL00NT8qN2s1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:12:14Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-e86a-b0b7-3a3a0d00fd2d", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff1-e86a-b0b7-3a3a0d00fd2d"}}}}' + body: '{"chatThread": {"id": "19:_GG482sxgBpCh3n0Fm1eiNF3jsAmHLZYbFOt3JHa7ew1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:55:19Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-778c-7f07-113a0d00daf6", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-778c-7f07-113a0d00daf6"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:12:14 GMT + - Thu, 18 Mar 2021 23:55:19 GMT ms-cv: - - xLBaimEFxE2YIOm0y+HVWA.0 + - 8YKVDPQ4iUSktpjVQuEtnQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 853ms + - 563ms status: code: 201 message: Created @@ -139,9 +139,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -149,13 +149,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:12:14 GMT + - Thu, 18 Mar 2021 23:55:19 GMT ms-cv: - - YQjYStjZ/kakJ1gQUFuFyg.0 + - 2UDIewKqkU2a4olJ/XuiDg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 296ms + - 239ms status: code: 204 message: No Content @@ -171,13 +171,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:12:15 GMT + - Thu, 18 Mar 2021 23:55:28 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -185,15 +185,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:12:32 GMT + - Thu, 18 Mar 2021 23:55:20 GMT ms-cv: - - FUX1VjJC1kS1q8iXH6JsYA.0 + - dUgxYbnnrUy/t3KV4ZHNfQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16638ms + - 656ms status: code: 204 message: No Content @@ -209,9 +209,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -219,13 +219,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:12:32 GMT + - Thu, 18 Mar 2021 23:55:20 GMT ms-cv: - - HoESK/Lyr0Odx8VeWgLz2A.0 + - uPNYJOgbMUePaF+FULdv0w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 272ms + - 85ms 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 deleted file mode 100644 index 470ff21446d1..000000000000 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_chat_thread.yaml +++ /dev/null @@ -1,235 +0,0 @@ -interactions: -- request: - body: '{}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json - Date: - - Mon, 01 Mar 2021 23:12:32 GMT - User-Agent: - - 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?api-version=2021-03-07 - response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-3452-1db7-3a3a0d000532"}}' - headers: - api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 - content-type: - - application/json; charset=utf-8 - date: - - Mon, 01 Mar 2021 23:12:33 GMT - ms-cv: - - bXYCcZLD5Uao4dsugnJt2A.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 15ms - status: - code: 201 - message: Created -- request: - body: '{"scopes": ["chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '20' - Content-Type: - - application/json - Date: - - Mon, 01 Mar 2021 23:12:33 GMT - User-Agent: - - 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/:issueAccessToken?api-version=2021-03-07 - response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:12:32.51274+00:00"}' - headers: - api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 - content-type: - - application/json; charset=utf-8 - date: - - Mon, 01 Mar 2021 23:12:33 GMT - ms-cv: - - dAxmslV0MkambGDyUvT6xQ.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 100ms - 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: - - '258' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 9f1e4ccd-8e37-4df1-8b82-55f39aba00a2 - method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - response: - body: '{"chatThread": {"id": "19:L607LTa1QYFQoVI2DdPwmPhHE5eAOMSmEPTLPfQGsUo1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:12:33Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-3452-1db7-3a3a0d000532", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-3452-1db7-3a3a0d000532"}}}}' - headers: - api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - content-type: - - application/json; charset=utf-8 - date: - - Mon, 01 Mar 2021 23:12:34 GMT - ms-cv: - - /D4N8bkckEyTTcjLy+SDmw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 840ms - 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.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=2021-01-27-preview4 - response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-03-01T23:12:33Z", - "createdByCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-3452-1db7-3a3a0d000532", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-3452-1db7-3a3a0d000532"}}}' - headers: - api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - content-type: - - application/json; charset=utf-8 - date: - - Mon, 01 Mar 2021 23:12:34 GMT - ms-cv: - - hTOqvc+qDUW9zlBhJboGaA.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 252ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Mon, 01 Mar 2021 23:12:34 GMT - User-Agent: - - 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 - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 - date: - - Mon, 01 Mar 2021 23:12:50 GMT - ms-cv: - - HTdezt3MMEemJzrPHVshnw.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 16336ms - 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.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=2021-01-27-preview4 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: - - Mon, 01 Mar 2021 23:12:51 GMT - ms-cv: - - Cw4/PlUnREWG16S5jmH6AA.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 292ms - status: - code: 204 - message: No Content -version: 1 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 2d880f37750a..7f5562122153 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:12:51 GMT + - Thu, 18 Mar 2021 23:55:29 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-7d55-9c58-373a0d00f9fc"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-8108-99c6-593a0d009e66"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:12:51 GMT + - Thu, 18 Mar 2021 23:55:20 GMT ms-cv: - - Btvll0RNs0KNo4lhs0zKeg.0 + - qW+801S14E2CupqTN/VFPw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 12ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:12:51 GMT + - Thu, 18 Mar 2021 23:55:29 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:12:51.1946354+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:55:20.8094012+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:12:51 GMT + - Thu, 18 Mar 2021 23:55:20 GMT ms-cv: - - cYB8tbUtx0m96YdACDBv8g.0 + - YByExPp41EKODFdlxp+bKw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 93ms + - 27ms status: code: 200 message: OK @@ -95,35 +95,35 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '257' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - e802eabc-4f80-4aac-9ffa-5bc199001af5 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - bc7d3e0b-d8d0-4c0b-a7a6-4e1311bec009 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:xPDM5_hzLZs8kiMbGwNpJgR05YwtQ9VskwYoUHtBJCo1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:12:52Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-7d55-9c58-373a0d00f9fc", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-7d55-9c58-373a0d00f9fc"}}}}' + body: '{"chatThread": {"id": "19:cDRG-kvhH3VvxgkdOEO50U9mIm_v0vdWxroiaYTE-K41@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:55:22Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-8108-99c6-593a0d009e66", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-8108-99c6-593a0d009e66"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:12:53 GMT + - Thu, 18 Mar 2021 23:55:22 GMT ms-cv: - - hdCt6oYchEGWO1adjMn+XA.0 + - J4MDArBvbE6amFWuVuvHjA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 837ms + - 1179ms status: code: 201 message: Created @@ -139,13 +139,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:12:53 GMT + - Thu, 18 Mar 2021 23:55:30 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -153,15 +153,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:13:08 GMT + - Thu, 18 Mar 2021 23:55:23 GMT ms-cv: - - mbJHP13ODkqJWjH55rDsbQ.0 + - xvSZa3ely0qhSiSC7hz4Yg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15931ms + - 662ms status: code: 204 message: No Content @@ -177,9 +177,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -187,13 +187,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:13:09 GMT + - Thu, 18 Mar 2021 23:55:23 GMT ms-cv: - - C3hlPfnluEKVeZm2B/rQwA.0 + - 2R6TXMBe2kCNEPD158gdkQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 298ms + - 194ms 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 03c9b721798c..32f2a377f1d9 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:13:09 GMT + - Thu, 18 Mar 2021 23:55:31 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-c2b1-1655-373a0d00ffdc"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-8b2b-99c6-593a0d009e68"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:13:09 GMT + - Thu, 18 Mar 2021 23:55:23 GMT ms-cv: - - L33MBngY1E6iLzKIgkT2Sw.0 + - 8T5Y2BWMZkSPvRKcGRIAeg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 18ms + - 13ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:13:09 GMT + - Thu, 18 Mar 2021 23:55:31 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:13:08.9632617+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:55:23.4081523+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:13:09 GMT + - Thu, 18 Mar 2021 23:55:23 GMT ms-cv: - - kOxiWnfMq0CYDmyRKGMFpQ.0 + - eU0gyipKIE2PLE5W2V7BjQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 28ms status: code: 200 message: OK @@ -99,31 +99,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 49a07a02-a8b6-43b6-8591-9d7970eb5f44 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 8145f5ef-5623-43b0-b088-6f47c0451d34 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:Ytg-Ey6wVK8GuxaPsqrAAgyIdZm7lpyEljG2KPpisZM1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:13:10Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-c2b1-1655-373a0d00ffdc", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff2-c2b1-1655-373a0d00ffdc"}}}}' + body: '{"chatThread": {"id": "19:w0534x9bJ4FN6e1jeD_2mXqm1tcl06chkjJJLIK0EGg1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:55:24Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-8b2b-99c6-593a0d009e68", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a5-8b2b-99c6-593a0d009e68"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:13:10 GMT + - Thu, 18 Mar 2021 23:55:24 GMT ms-cv: - - aeHvgXwy30WraKp3O0IusQ.0 + - DMANBD+GSkKNExFgRev3/g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 851ms + - 763ms status: code: 201 message: Created @@ -137,9 +137,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?maxPageSize=1&api-version=2021-03-01-preview5 response: body: '{"value": "sanitized"}' headers: @@ -148,15 +148,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:13:12 GMT + - Thu, 18 Mar 2021 23:55:27 GMT ms-cv: - - XN2XcZeEmEu4FeJR0Od+1Q.0 + - +eX9SaqemE+q+zPjQJkjVg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 385ms + - 102ms status: code: 200 message: OK @@ -172,13 +172,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:13:13 GMT + - Thu, 18 Mar 2021 23:55:35 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -186,15 +186,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:13:28 GMT + - Thu, 18 Mar 2021 23:55:27 GMT ms-cv: - - 76QCTGERQUm1w67q+iFD5A.0 + - 0kskc7lZv0+iZysMl5VVPA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15730ms + - 608ms status: code: 204 message: No Content @@ -210,9 +210,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -220,13 +220,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:13:28 GMT + - Thu, 18 Mar 2021 23:55:28 GMT ms-cv: - - UnTRmhKNJUSJEPNwtPOFrQ.0 + - quZuKcpURUGLF+/axPnpGg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 286ms + - 276ms 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 a1097832b684..b1c476969a76 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:13:29 GMT + - Thu, 18 Mar 2021 23:52:26 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-109b-dbb7-3a3a0d00fe37"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-b7da-570c-113a0d0027df"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:13:29 GMT + - Thu, 18 Mar 2021 23:52:18 GMT ms-cv: - - HuPP1ThDDU2SgTpma7095Q.0 + - wT44QjNit0mdDHvPQOnwFQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 63ms + - 145ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:13:29 GMT + - Thu, 18 Mar 2021 23:52:26 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:13:28.895824+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:18.5538057+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:13:29 GMT + - Thu, 18 Mar 2021 23:52:19 GMT ms-cv: - - bOnA0dDdbkWXYCU/VhyZKA.0 + - qu7FDqCCY0eP/X3cRRU/Lg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 287ms status: code: 200 message: OK @@ -95,52 +95,52 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 0ceb21b6-60ec-4180-ae51-699957c2e204 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 83499aee-bafc-4ed8-9d7d-de87c99ca1d2 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:-i0uFpmWwsQpFoaWG4En3Oil8WphbzovDCSkdZUhsL41@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:13:30Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-109b-dbb7-3a3a0d00fe37", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-109b-dbb7-3a3a0d00fe37"}}}}' + body: '{"chatThread": {"id": "19:DLzhUgTLSo6xNL65i2eopWhakMg-OtjO9owy8AhpbRE1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:52:19Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-b7da-570c-113a0d0027df", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-b7da-570c-113a0d0027df"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:13:30 GMT - ms-cv: Y6woGsmZoE2ukkbCcCsO+g.0 + date: Thu, 18 Mar 2021 23:52:20 GMT + ms-cv: FxvkBE4gpEaDwXtaGq/G4A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 839ms + x-processing-time: 943ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:13:30 GMT - ms-cv: Gz3XzHmp8UqOnLNHJgWfbg.0 + date: Thu, 18 Mar 2021 23:52:20 GMT + ms-cv: GQ71VPoE+kKvdpKTXaermA.0 strict-transport-security: max-age=2592000 - x-processing-time: 296ms + x-processing-time: 250ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -153,13 +153,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:13:31 GMT + - Thu, 18 Mar 2021 23:52:28 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -167,15 +167,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:13:48 GMT + - Thu, 18 Mar 2021 23:52:21 GMT ms-cv: - - sL7w0ec2cESw/NOo6QT8/w.0 + - Y8yFW70bRkmXmo9OKof48w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17183ms + - 931ms 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_no_participants_async.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_no_participants_async.yaml index 3091dc683c5a..61f76170364a 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_no_participants_async.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_no_participants_async.yaml @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:13:48 GMT + - Thu, 18 Mar 2021 23:52:29 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-5abc-b0b7-3a3a0d00fd3a"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-c5b0-570c-113a0d0027e2"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:13:48 GMT + - Thu, 18 Mar 2021 23:52:22 GMT ms-cv: - - P5SCqAHmoE6spN0fTu7Q4w.0 + - HJiuAztKZkWlBJlApSMO9A.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 71ms + - 145ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:13:48 GMT + - Thu, 18 Mar 2021 23:52:30 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:13:47.8924518+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:22.0867254+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:13:48 GMT + - Thu, 18 Mar 2021 23:52:22 GMT ms-cv: - - Meew9aPM2kWFfcDy8ApB0w.0 + - HG9JHDG+/0mBVrnZYHLq6w.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 98ms + - 278ms status: code: 200 message: OK @@ -95,52 +95,52 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - a63a8805-27d5-40e0-9927-4409b5947575 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 7e978e72-336e-4244-a4fb-86e3b4072569 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:fyiLTLG61FU0clc7XDYHU4JGxni4V6ie1ZeOl2I7Kqw1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:13:49Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-5abc-b0b7-3a3a0d00fd3a", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-5abc-b0b7-3a3a0d00fd3a"}}}}' + body: '{"chatThread": {"id": "19:oH8yTHab688fjrJ2I3g4RoA2hZp_MCkzUq8mkv8lySQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:52:23Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-c5b0-570c-113a0d0027e2", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-c5b0-570c-113a0d0027e2"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:13:49 GMT - ms-cv: SqzmjFPtzkmjeYynYuak8Q.0 + date: Thu, 18 Mar 2021 23:52:23 GMT + ms-cv: 8DyFBBOT20qQKkcBbOf8Zw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 821ms + x-processing-time: 641ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:13:50 GMT - ms-cv: Qzc/BwblME69WjvC0+D+EA.0 + date: Thu, 18 Mar 2021 23:52:23 GMT + ms-cv: l05YbM1nTUGEz3dn5Boygg.0 strict-transport-security: max-age=2592000 - x-processing-time: 289ms + x-processing-time: 193ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -153,13 +153,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:13:50 GMT + - Thu, 18 Mar 2021 23:52:31 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -167,15 +167,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:14:05 GMT + - Thu, 18 Mar 2021 23:52:24 GMT ms-cv: - - Nih3hqxtjUynhS88uR95pQ.0 + - xtP1GHwZckChugpI7uUZ4Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16327ms + - 918ms 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 ac7e7afbe8e1..0c905cb8fa83 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:14:06 GMT + - Thu, 18 Mar 2021 23:52:32 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-a1ef-b0b7-3a3a0d00fd3b"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-d184-570c-113a0d0027e3"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:14:06 GMT + - Thu, 18 Mar 2021 23:52:25 GMT ms-cv: - - i4yILdubt0WIG45+vXc9Ag.0 + - ybGaig9yEUKvcISNSj2pkw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 141ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:14:06 GMT + - Thu, 18 Mar 2021 23:52:33 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:14:06.1177615+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:25.1087768+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:14:07 GMT + - Thu, 18 Mar 2021 23:52:25 GMT ms-cv: - - XILY7nn670CAuxPvrYit4A.0 + - dYwsc/D4zUuHVoId8H3NVA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 108ms + - 277ms status: code: 200 message: OK @@ -95,85 +95,85 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 1b8fc3c0-4178-4c8d-8129-9ca08d4f5d8c + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 8eecbbe6-296b-48c4-81f9-0382765f6e1b method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:B-ynYDZgUs8AkHAio97-dvc6UaXwMQeoxMKW4D7FnlU1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:14:07Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-a1ef-b0b7-3a3a0d00fd3b", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-a1ef-b0b7-3a3a0d00fd3b"}}}}' + body: '{"chatThread": {"id": "19:oRCZ6uUc_UQoW4gifoDy1L0UHd0lOEeqCBvfDuVidU41@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:52:26Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-d184-570c-113a0d0027e3", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-d184-570c-113a0d0027e3"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:14:07 GMT - ms-cv: e2fPLpJA9UKGCt2TJiivXQ.0 + date: Thu, 18 Mar 2021 23:52:26 GMT + ms-cv: Exy7Q0EcfE2Pj0kxQvJrIQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 831ms + x-processing-time: 617ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: '{"topic": "test topic", "participants": "sanitized"}' headers: Accept: - application/json Content-Length: - - '257' + - '258' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 1b8fc3c0-4178-4c8d-8129-9ca08d4f5d8c + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 8eecbbe6-296b-48c4-81f9-0382765f6e1b method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:B-ynYDZgUs8AkHAio97-dvc6UaXwMQeoxMKW4D7FnlU1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:14:07Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-a1ef-b0b7-3a3a0d00fd3b", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-a1ef-b0b7-3a3a0d00fd3b"}}}}' + body: '{"chatThread": {"id": "19:oRCZ6uUc_UQoW4gifoDy1L0UHd0lOEeqCBvfDuVidU41@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:52:26Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-d184-570c-113a0d0027e3", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-d184-570c-113a0d0027e3"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:14:08 GMT - ms-cv: ZJ1uDD51jkCic9qAAkw1Aw.0 + date: Thu, 18 Mar 2021 23:52:26 GMT + ms-cv: /4WMvIOMkku6L3R/i4HASQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 642ms + x-processing-time: 339ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:14:08 GMT - ms-cv: 5RUFVqC7LU2wPtHL3NYwGQ.0 + date: Thu, 18 Mar 2021 23:52:27 GMT + ms-cv: +fbZxMXy20adJSkpSKj+Rw.0 strict-transport-security: max-age=2592000 - x-processing-time: 287ms + x-processing-time: 207ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -186,13 +186,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:14:08 GMT + - Thu, 18 Mar 2021 23:52:35 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -200,15 +200,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:14:25 GMT + - Thu, 18 Mar 2021 23:52:28 GMT ms-cv: - - p9yP8tmYgkGK3ubw4CuS3g.0 + - aAB3zR2p0E2OL/J/vtfB+A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16898ms + - 876ms 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 ade243436527..49579fe4b61a 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:14:25 GMT + - Thu, 18 Mar 2021 23:52:36 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-ed6e-9c58-373a0d00f9fe"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-de10-28c5-593a0d0016f3"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:14:25 GMT + - Thu, 18 Mar 2021 23:52:28 GMT ms-cv: - - 7+l9g9Wr206DDRri7UQLLw.0 + - k6q6UNct5k+6V8LDNo3uBA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 12ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:14:26 GMT + - Thu, 18 Mar 2021 23:52:36 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:14:25.4209728+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:28.0183135+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:14:25 GMT + - Thu, 18 Mar 2021 23:52:28 GMT ms-cv: - - MOJhXcYyLU6sO9B3rrEP4A.0 + - gyhaXAg4dUWpMWoMjsUQTw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 24ms status: code: 200 message: OK @@ -95,75 +95,75 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - b8131d30-db2d-4f74-8ac7-fcb8cdaa8232 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 219e8049-132b-444a-9395-aad4a3df0a44 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:W5HTQ6iUB6OMQ5rYPm4XMs_N1rk3QF3kO1y-TMpw_qI1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:14:26Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-ed6e-9c58-373a0d00f9fe", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff3-ed6e-9c58-373a0d00f9fe"}}}}' + body: '{"chatThread": {"id": "19:Y0xTk5faAfLL4XUn1IjvQSXa9I2vJ-N4EqP1MeWBbI81@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:52:29Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-de10-28c5-593a0d0016f3", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-de10-28c5-593a0d0016f3"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:14:27 GMT - ms-cv: GaOWQ1/Oa0yFjl98q33P1A.0 + date: Thu, 18 Mar 2021 23:52:29 GMT + ms-cv: /RYB3dGvKU27OZgsE39ulA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 834ms + x-processing-time: 831ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:14:27 GMT - ms-cv: KcxiQpMpXkG8SieVt3kROg.0 + date: Thu, 18 Mar 2021 23:52:29 GMT + ms-cv: ArnfT/BJqEC6HmPdWU+Mlw.0 strict-transport-security: max-age=2592000 - x-processing-time: 288ms + x-processing-time: 144ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:14:27 GMT - ms-cv: ho1aWOX2rkCt3idPXjMcyQ.0 + date: Thu, 18 Mar 2021 23:52:29 GMT + ms-cv: Z2hN1lAqtUCOw6OZFGzDZQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 304ms + x-processing-time: 112ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -176,13 +176,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:14:27 GMT + - Thu, 18 Mar 2021 23:52:37 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -190,15 +190,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:14:43 GMT + - Thu, 18 Mar 2021 23:52:30 GMT ms-cv: - - 2ILlZCUFjkKgR1Ipg7VqpA.0 + - 4jBTu7Tq70mmPWMBN18TCA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16135ms + - 588ms 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 deleted file mode 100644 index cde34857232f..000000000000 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_chat_thread.yaml +++ /dev/null @@ -1,208 +0,0 @@ -interactions: -- request: - body: '{}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json - Date: - - Mon, 01 Mar 2021 23:14:44 GMT - User-Agent: - - 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?api-version=2021-03-07 - response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-3492-b0b7-3a3a0d00fd4d"}}' - headers: - api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 - content-type: - - application/json; charset=utf-8 - date: - - Mon, 01 Mar 2021 23:14:44 GMT - ms-cv: - - RsQhh2DfPkGA68jXi9/hmA.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 14ms - status: - code: 201 - message: Created -- request: - body: '{"scopes": ["chat"]}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '20' - Content-Type: - - application/json - Date: - - Mon, 01 Mar 2021 23:14:44 GMT - User-Agent: - - 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/:issueAccessToken?api-version=2021-03-07 - response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:14:43.6241158+00:00"}' - headers: - api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 - content-type: - - application/json; charset=utf-8 - date: - - Mon, 01 Mar 2021 23:14:44 GMT - ms-cv: - - 04pJyTQMqEqsD9qLSCB+dg.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 85ms - status: - code: 200 - message: OK -- request: - body: '{"topic": "test topic", "participants": "sanitized"}' - headers: - Accept: - - application/json - Content-Length: - - '258' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 63601889-68b1-4d8d-aba9-b40f14cda32c - method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 - response: - body: '{"chatThread": {"id": "19:TQ2jo8KCLgwuuoxUOUVSSKHaOur6xhoi0JUxkjW3D-g1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:14:45Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-3492-b0b7-3a3a0d00fd4d", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-3492-b0b7-3a3a0d00fd4d"}}}}' - headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5 - content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:14:45 GMT - ms-cv: CP8CvI+t0U2j+H9YDAT6sg.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 837ms - status: - code: 201 - message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - 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=2021-01-27-preview4 - response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-03-01T23:14:45Z", - "createdByCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-3492-b0b7-3a3a0d00fd4d", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-3492-b0b7-3a3a0d00fd4d"}}}' - headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5 - content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:14:45 GMT - ms-cv: xl3Ck2aef0CZDps6w77twg.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 250ms - status: - code: 200 - message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - 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=2021-01-27-preview4 - response: - body: - string: '' - headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:14:46 GMT - ms-cv: ZM/NAd6N/Ei0y8xnnocovA.0 - strict-transport-security: max-age=2592000 - x-processing-time: 287ms - status: - code: 204 - message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Mon, 01 Mar 2021 23:14:46 GMT - User-Agent: - - 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 - uri: https://sanitized.int.communication.azure.net/identities/sanitized?api-version=2021-03-07 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-07-20-preview2, 2021-03-07 - date: - - Mon, 01 Mar 2021 23:15:02 GMT - ms-cv: - - zQbPSoz7ZEyJF/NUucPJ3g.0 - request-context: - - appId= - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 16817ms - status: - code: 204 - message: No Content -version: 1 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 02e79a19bc7f..054429a198ad 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:15:03 GMT + - Thu, 18 Mar 2021 23:52:38 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-7ee8-dbb7-3a3a0d00fe38"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-e735-edbe-a43a0d000760"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:15:03 GMT + - Thu, 18 Mar 2021 23:52:30 GMT ms-cv: - - OAFcFU2uIEiLgm2Bd8kz3g.0 + - jWlftrhmEkyw5NjdFsyYSg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 64ms + - 11ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:15:03 GMT + - Thu, 18 Mar 2021 23:52:38 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:15:02.6587392+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:30.474748+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:15:03 GMT + - Thu, 18 Mar 2021 23:52:30 GMT ms-cv: - - ofdweUZE2EmxTaNnzix1Kw.0 + - ToJdjlUom0iIvrgikwCSsA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 122ms status: code: 200 message: OK @@ -91,56 +91,56 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '257' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 14d82eb0-26f5-4aec-ba2d-5b233446b277 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - a12cb5e9-7d9c-474b-8a6e-d3f06e28f57c method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:6LA8hfvYZ6blgcoIXWOaP_fBbD6sCze7SgaoIij2BoM1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:15:04Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-7ee8-dbb7-3a3a0d00fe38", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-7ee8-dbb7-3a3a0d00fe38"}}}}' + body: '{"chatThread": {"id": "19:Qa3GBvBrkWcTFyntb7m9m-LaKaIjC9qCxf8sHSjBOLo1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:52:31Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-e735-edbe-a43a0d000760", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-e735-edbe-a43a0d000760"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:15:04 GMT - ms-cv: Ok4S5AoSa06hW4Obu3I0JQ.0 + date: Thu, 18 Mar 2021 23:52:31 GMT + ms-cv: sNDjPKLr50GIHNNQO+9gdw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 835ms + x-processing-time: 539ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:15:04 GMT - ms-cv: jSC8ZnL1x0OnODJ4gBbcZg.0 + date: Thu, 18 Mar 2021 23:52:31 GMT + ms-cv: 5+u54CoIMUOXKceOJ5AY3g.0 strict-transport-security: max-age=2592000 - x-processing-time: 287ms + x-processing-time: 220ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -153,13 +153,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:15:04 GMT + - Thu, 18 Mar 2021 23:52:39 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -167,15 +167,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:15:20 GMT + - Thu, 18 Mar 2021 23:52:32 GMT ms-cv: - - 80jrq7PPEkWyjE0aDjSoyw.0 + - lRPKQh3qg02DShrw+vBuJA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15802ms + - 561ms 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 84f758df3c54..aa3fcdafe1fd 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:15:20 GMT + - Thu, 18 Mar 2021 23:52:40 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-c42d-b0b7-3a3a0d00fd4e"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-ee94-28c5-593a0d0016f4"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:15:20 GMT + - Thu, 18 Mar 2021 23:52:32 GMT ms-cv: - - ZbaA6oMtgUeyd5aD++s6YQ.0 + - DDMzR7RvY02IZ5YTsJx5ZQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 85ms + - 11ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:15:21 GMT + - Thu, 18 Mar 2021 23:52:40 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:15:20.4423646+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:32.2603996+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:15:21 GMT + - Thu, 18 Mar 2021 23:52:32 GMT ms-cv: - - 1IPKNQVVO0uswbXRU4snQg.0 + - gmQzrJlPtEmUWX18Dk7xRA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 133ms + - 24ms status: code: 200 message: OK @@ -95,76 +95,76 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 44001336-f972-4c2f-b99f-eadb6e05adf2 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 7eea10cf-1e38-4dd5-b4fa-88be7048d1ed method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:0kiJcqIc9H8Yq_uvcbthgt4fLPvcX33J17SwULgHTxE1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:15:21Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-c42d-b0b7-3a3a0d00fd4e", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-8ff4-c42d-b0b7-3a3a0d00fd4e"}}}}' + body: '{"chatThread": {"id": "19:FOHHHWUEfzDI85s8beWwcfB1rKZ-Oz5RK35t322wAPM1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:52:33Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-ee94-28c5-593a0d0016f4", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-ee94-28c5-593a0d0016f4"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:15:22 GMT - ms-cv: S4CxBYLDxEmISblspQy3Pw.0 + date: Thu, 18 Mar 2021 23:52:33 GMT + ms-cv: JisvRl+CekSp8E/Wso/k1Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 910ms + x-processing-time: 802ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?maxPageSize=1&api-version=2021-03-01-preview5 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:15:24 GMT - ms-cv: cuKBu6wh1kyXnKNJd/gYHw.0 + date: Thu, 18 Mar 2021 23:52:35 GMT + ms-cv: fMZOuFEwfEKFwzKK0JlG1A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 384ms + x-processing-time: 96ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads?maxPageSize=1&api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?maxPageSize=1&api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:15:25 GMT - ms-cv: gPRd7szgSk2eEupIEjrnJA.0 + date: Thu, 18 Mar 2021 23:52:36 GMT + ms-cv: hTxC9s1XhUua1GXeTBnQ+g.0 strict-transport-security: max-age=2592000 - x-processing-time: 332ms + x-processing-time: 145ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -177,13 +177,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:15:25 GMT + - Thu, 18 Mar 2021 23:52:44 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -191,15 +191,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:15:40 GMT + - Thu, 18 Mar 2021 23:52:36 GMT ms-cv: - - UP0S0SwFIUqnnHuhzWQ4wg.0 + - HbNpChe6gkmUWVMDGa553g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16075ms + - 513ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_members.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_members.yaml deleted file mode 100644 index c438cf2e903c..000000000000 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_members.yaml +++ /dev/null @@ -1,299 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:47:43 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:47:41 GMT - ms-cv: - - /dSOvdLqhE2TBW1ZKAq33w.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 212ms - 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: - - Wed, 02 Dec 2020 23:47:43 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:47:41.8647504+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:41 GMT - ms-cv: - - 4uYP1s3lI0K8dJPtsPhiug.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 287ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:47:44 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:47:42 GMT - ms-cv: - - s+0FlY1sQUqbX/ZI4I/b0Q.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 225ms - status: - code: 200 - message: OK -- request: - body: '{"topic": "test topic", "members": "sanitized"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '201' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 - response: - body: '{"multipleStatus": "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:44 GMT - ms-cv: - - QzWl8SqWDke9hsq60Kpl7Q.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 960ms - status: - code: 207 - message: Multi-Status -- request: - body: '{"members": "sanitized"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '178' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/members?api-version=2020-09-21-preview2 - response: - body: '{"multipleStatus": "sanitized"}' - headers: - api-supported-versions: - - 2020-09-21-preview2 - content-type: - - application/json; charset=utf-8 - date: - - Wed, 02 Dec 2020 23:47:44 GMT - ms-cv: - - A9UGxzV5dkGm95G/RW+vsw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 165ms - status: - code: 207 - message: Multi-Status -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:47:46 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:47:45 GMT - ms-cv: - - 2w5xfB1lsUGr+o4bpVEEiA.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 824ms - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:47:47 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:47:46 GMT - ms-cv: - - Bt9bbhsJBkG+1tFAQrVCSg.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 876ms - 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.8.5 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 - date: - - Wed, 02 Dec 2020 23:47:46 GMT - ms-cv: - - 68xdUPx1LkSn924UjfiPAQ.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 164ms - 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 index ef95e246386e..648c5191ae85 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:37:41 GMT + - Thu, 18 Mar 2021 23:52:44 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-3828-dbb7-3a3a0d00fea1"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-ff02-edbe-a43a0d000761"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:37:40 GMT + - Thu, 18 Mar 2021 23:52:36 GMT ms-cv: - - i3CVlr/9G0qJTKSZps5igw.0 + - tgpT2Uy5WEq3745PLTPtrw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 11ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:37:41 GMT + - Thu, 18 Mar 2021 23:52:44 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:37:40.8281983+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:36.6045752+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:37:40 GMT + - Thu, 18 Mar 2021 23:52:36 GMT ms-cv: - - EVPMoFQYiUStLfnO9BsCsA.0 + - rgBlRb7Zqk6IDAfX2SI3Fw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 142ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:37:41 GMT + - Thu, 18 Mar 2021 23:52:45 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-38fd-dbb7-3a3a0d00fea2"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-0042-edbe-a43a0d000762"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:37:41 GMT + - Thu, 18 Mar 2021 23:52:37 GMT ms-cv: - - Q7pvVRLpfkGVzol9L1MsvA.0 + - KhTymCk0S0aB/IoNQmAlHw.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 12ms + - 11ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:37:41 GMT + - Thu, 18 Mar 2021 23:52:45 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:37:41.0377672+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:36.8956261+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:37:41 GMT + - Thu, 18 Mar 2021 23:52:37 GMT ms-cv: - - FE9CGyRix0WIiYZ8yqKi6Q.0 + - M6yC9vG2cU6Bbvo3SnCutQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 88ms + - 131ms status: code: 200 message: OK @@ -185,31 +185,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 77cb732e-1549-45ab-8904-965a7368d4c7 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 7208de11-7282-4b77-972d-002577fed3e2 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:5lDYmahmJ-kcqYXJQjlLnks4t1VyQ2bdkJwZlnf2s881@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:37:42Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-3828-dbb7-3a3a0d00fea1", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-3828-dbb7-3a3a0d00fea1"}}}}' + body: '{"chatThread": {"id": "19:ilsekOojXCjlp6pSYAXe7E6gScY2fBFYBqGmZ8acwVE1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:52:38Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-ff02-edbe-a43a0d000761", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a2-ff02-edbe-a43a0d000761"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:37:42 GMT + - Thu, 18 Mar 2021 23:52:37 GMT ms-cv: - - 1ygQQbtsUkmkzuBI11GaNw.0 + - SLjkqfO09EGP1NusU3V0Zw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 822ms + - 589ms status: code: 201 message: Created @@ -227,9 +227,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-01-preview5 response: body: '{}' headers: @@ -238,15 +238,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:37:43 GMT + - Thu, 18 Mar 2021 23:52:38 GMT ms-cv: - - hS8KziZTjEynG2AkZ3rsdg.0 + - 57s32UB7mEivzoFhsI1Siw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 388ms + - 329ms status: code: 201 message: Created @@ -262,13 +262,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:37:43 GMT + - Thu, 18 Mar 2021 23:52:46 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -276,15 +276,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:38:00 GMT + - Thu, 18 Mar 2021 23:52:39 GMT ms-cv: - - iXjTsx7fQkOJw54k/tRtOQ.0 + - DFXZvUcTckiJ13mNDHLWEA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16348ms + - 783ms status: code: 204 message: No Content @@ -300,13 +300,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:37:59 GMT + - Thu, 18 Mar 2021 23:52:47 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -314,15 +314,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:38:16 GMT + - Thu, 18 Mar 2021 23:52:40 GMT ms-cv: - - TCsoffG12EeelApm0k07mA.0 + - 8x8JifX+Ak6OQuwQi0V6Jw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16472ms + - 648ms status: code: 204 message: No Content @@ -338,9 +338,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -348,13 +348,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:38:16 GMT + - Thu, 18 Mar 2021 23:52:39 GMT ms-cv: - - ZnB4Gj/nf0O0eFAQc8bYhg.0 + - n6PX0CqlW0+bPgHE1qy/FA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 341ms + - 159ms 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 7c5329ecbbf8..be9d51d6a0f7 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:38:16 GMT + - Thu, 18 Mar 2021 23:52:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-c418-dbb7-3a3a0d00fea6"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-0d61-b8ba-a43a0d00b7c2"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:17 GMT + - Thu, 18 Mar 2021 23:52:40 GMT ms-cv: - - cnmakXO+MUCewBJyugutDQ.0 + - SVkeRyOBjEa/mBtx/gxZDQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 17ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:38:17 GMT + - Thu, 18 Mar 2021 23:52:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:38:16.6474118+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:40.260372+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:17 GMT + - Thu, 18 Mar 2021 23:52:40 GMT ms-cv: - - yZ802S/Go0+HnsKE/8OSlA.0 + - olXBlLwEA0KEZmthIon2YQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 137ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:38:17 GMT + - Thu, 18 Mar 2021 23:52:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-c508-dbb7-3a3a0d00fea7"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-0e77-b8ba-a43a0d00b7c3"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:17 GMT + - Thu, 18 Mar 2021 23:52:41 GMT ms-cv: - - 1OWhJZ8yOE+nsQBOTZLHmA.0 + - gugVVcXIDk6vIaGFJDNWKg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 11ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:38:17 GMT + - Thu, 18 Mar 2021 23:52:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:38:16.8769217+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:40.5560448+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:17 GMT + - Thu, 18 Mar 2021 23:52:41 GMT ms-cv: - - 71U+LISZ8kK4J8TPEn9Hcg.0 + - +Jby/NMeYkuRcIB9WdutZA.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 135ms status: code: 200 message: OK @@ -181,35 +181,35 @@ interactions: Connection: - keep-alive Content-Length: - - '256' + - '258' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - f60179a9-248a-4c74-9749-a5a3acee56ba + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 74d9f0d0-259b-4e35-aea4-6ef3975c0969 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:YujF15fkVJuRtggRYt4KameG6OwonokA3m88i2TvqTs1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:38:18Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-c418-dbb7-3a3a0d00fea6", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9009-c418-dbb7-3a3a0d00fea6"}}}}' + body: '{"chatThread": {"id": "19:xcCctD2q9kGHjPv3pF35NB-FxXN5A8wqfBK1gulgA-k1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:52:41Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-0d61-b8ba-a43a0d00b7c2", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-0d61-b8ba-a43a0d00b7c2"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:18 GMT + - Thu, 18 Mar 2021 23:52:42 GMT ms-cv: - - Sa5kIZSNv0ebXZu+pvD9Xg.0 + - 2x0zCRE7z0OFwl9kcT+hdw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 880ms + - 728ms status: code: 201 message: Created @@ -228,9 +228,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: @@ -239,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:18 GMT + - Thu, 18 Mar 2021 23:52:42 GMT ms-cv: - - RfwxKd2KD0S2QHpJShA1pg.0 + - 23JRLVUg8ECCZLqb7jtdzA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 382ms + - 147ms status: code: 201 message: Created @@ -263,9 +263,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -273,13 +273,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:38:19 GMT + - Thu, 18 Mar 2021 23:52:42 GMT ms-cv: - - GeUDIIzOS0a3rywCcO/drg.0 + - grw1efAuVkKP7/Dy0+AE3g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 416ms + - 179ms status: code: 204 message: No Content @@ -295,13 +295,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:38:19 GMT + - Thu, 18 Mar 2021 23:52:50 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -309,15 +309,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:38:36 GMT + - Thu, 18 Mar 2021 23:52:43 GMT ms-cv: - - FokxClbFeUCprObrIAPhjw.0 + - FrdWctj37kC8lz0Sa/creA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17157ms + - 500ms status: code: 204 message: No Content @@ -333,13 +333,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:38:37 GMT + - Thu, 18 Mar 2021 23:52:51 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -347,15 +347,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:38:53 GMT + - Thu, 18 Mar 2021 23:52:43 GMT ms-cv: - - 4Ylb28Tk0kiVY5TmRMC6Nw.0 + - 8c1CmfarnEanXw24T5kJkg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16629ms + - 566ms status: code: 204 message: No Content @@ -371,9 +371,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -381,13 +381,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:38:54 GMT + - Thu, 18 Mar 2021 23:52:44 GMT ms-cv: - - xpI1n12by06p3u2XJmSIAQ.0 + - 9He0A7ZcQUWbUk7LyqJ12A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 788ms + - 216ms 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 218e89406c51..9853c551a3bc 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:38:54 GMT + - Thu, 18 Mar 2021 23:52:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-5721-dbb7-3a3a0d00fead"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-1c53-7f07-113a0d00dab8"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:54 GMT + - Thu, 18 Mar 2021 23:52:44 GMT ms-cv: - - oWoBnyHqn0W6jGwHgnsFpw.0 + - H1gocee08UeL2LpQPkv+/g.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 140ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:38:54 GMT + - Thu, 18 Mar 2021 23:52:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:38:54.2911193+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:44.2690662+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:54 GMT + - Thu, 18 Mar 2021 23:52:44 GMT ms-cv: - - o3vGjiBfXkeQPq2TEjYSIQ.0 + - oUOxnRaaTkeY6lOsf9qOOQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 285ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:38:55 GMT + - Thu, 18 Mar 2021 23:52:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-57f1-dbb7-3a3a0d00feae"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-1ed5-7f07-113a0d00dab9"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:54 GMT + - Thu, 18 Mar 2021 23:52:44 GMT ms-cv: - - bNnsgiy0u0yaxtVgPrz0Iw.0 + - zK/6cnr5wUaomENWIsx5Xg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 139ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:38:55 GMT + - Thu, 18 Mar 2021 23:52:53 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:38:54.6769934+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:44.9056222+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:54 GMT + - Thu, 18 Mar 2021 23:52:45 GMT ms-cv: - - WzN8vxhHbECFo868nq3pWQ.0 + - Wy8HV+cg1kOV3dmvpFwGwA.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 284ms + - 280ms status: code: 200 message: OK @@ -185,31 +185,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 07761d5d-2492-43cf-8277-26ce2b8a54ab + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - b6705bc2-29e4-4387-b5d8-947921876e3b method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:Mv4la1Z6NSSWD00FTwTot_k7TqWyif0eRyCxBgFqeb01@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:38:56Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-5721-dbb7-3a3a0d00fead", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-5721-dbb7-3a3a0d00fead"}}}}' + body: '{"chatThread": {"id": "19:J0V1cCdu8xI8pBCgZ11icGhv9Tese_iro_4LEHbjJGs1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:52:46Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-1c53-7f07-113a0d00dab8", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-1c53-7f07-113a0d00dab8"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:56 GMT + - Thu, 18 Mar 2021 23:52:46 GMT ms-cv: - - AD04oxtaUkKFL95f5yKuEQ.0 + - eXyAZlS9fUWtT9+PPNRY2A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1171ms + - 871ms status: code: 201 message: Created @@ -228,9 +228,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: @@ -239,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:57 GMT + - Thu, 18 Mar 2021 23:52:46 GMT ms-cv: - - 1U2jtpMBuU+1UZ/vKBoHQg.0 + - x3LohnIvsEe++ycN06XQ8g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 656ms + - 239ms status: code: 201 message: Created @@ -261,29 +261,29 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-01-preview5 response: - body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1614641937705", + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1616111567289", "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": - "2021-03-01T23:38:57Z", "senderCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-5721-dbb7-3a3a0d00fead", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-5721-dbb7-3a3a0d00fead"}}}' + "2021-03-18T23:52:47Z", "senderCommunicationIdentifier": {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-1c53-7f07-113a0d00dab8", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-1c53-7f07-113a0d00dab8"}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:38:57 GMT + - Thu, 18 Mar 2021 23:52:47 GMT ms-cv: - - 3GaJ2qPTT0KKoEC4IV2K1w.0 + - l+DipqPDWUCIsO5pUTVltQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 250ms + - 119ms status: code: 200 message: OK @@ -299,13 +299,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:38:58 GMT + - Thu, 18 Mar 2021 23:52:55 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -313,15 +313,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:39:14 GMT + - Thu, 18 Mar 2021 23:52:47 GMT ms-cv: - - c6OdctE0Y0GMuOKphp8nZA.0 + - WBU2xnPJrESvLDag8WZaNQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16283ms + - 721ms status: code: 204 message: No Content @@ -337,13 +337,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:39:14 GMT + - Thu, 18 Mar 2021 23:52:56 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -351,15 +351,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:39:30 GMT + - Thu, 18 Mar 2021 23:52:48 GMT ms-cv: - - yGkV2NOJIku0pOmCn2bajA.0 + - b+QJ9CHDsU2ES01+OM/ILA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16304ms + - 832ms status: code: 204 message: No Content @@ -375,9 +375,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -385,13 +385,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:39:30 GMT + - Thu, 18 Mar 2021 23:52:49 GMT ms-cv: - - ErvLFTeJbkuwezIvnGzHEA.0 + - xvu8ZSy9rUi4ltU5rqAV9w.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 333ms + - 136ms 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_get_properties.yaml similarity index 62% rename from sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participant.yaml rename to sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_properties.yaml index 90cbadc643f7..5b126e54dc0c 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_get_properties.yaml @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:37:05 GMT + - Thu, 18 Mar 2021 23:52:57 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9008-ab29-dbb7-3a3a0d00fe9e"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-3047-51b9-a43a0d002705"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:37:05 GMT + - Thu, 18 Mar 2021 23:52:49 GMT ms-cv: - - gXtrzXPH30KtjuOoLBNOGg.0 + - HWdlIgko50yIsstzWtR0Ag.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 18ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:37:05 GMT + - Thu, 18 Mar 2021 23:52:57 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:37:04.7108628+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:49.203791+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:37:05 GMT + - Thu, 18 Mar 2021 23:52:49 GMT ms-cv: - - hjlQRLz3AEqVaallePfMJg.0 + - AomTQ6D5W06oRJ0HK/TjoA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 123ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:37:05 GMT + - Thu, 18 Mar 2021 23:52:57 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9008-abf3-dbb7-3a3a0d00fe9f"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-316e-51b9-a43a0d002706"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:37:05 GMT + - Thu, 18 Mar 2021 23:52:49 GMT ms-cv: - - iUDBGaPYWk2nMlQrUuOa6A.0 + - vBZ5kIf++Em1WfSPFuc7Bg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 22ms + - 11ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:37:05 GMT + - Thu, 18 Mar 2021 23:52:57 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:37:04.9275414+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:49.4983373+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:37:05 GMT + - Thu, 18 Mar 2021 23:52:49 GMT ms-cv: - - oyCbT20vWECg9E9Wadk7LQ.0 + - G1h8hPTdPkKIiOe8cAwDWQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 142ms status: code: 200 message: OK @@ -185,36 +185,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 89e458a7-c505-467e-9463-d7397ca3f538 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 6cf9ea47-cd17-4929-af29-bfaac37b28b9 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:g0zKu49XaeWtx0TVnp6FDGragFUUYZdguvAR6mtYFqU1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:37:06Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9008-ab29-dbb7-3a3a0d00fe9e", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9008-ab29-dbb7-3a3a0d00fe9e"}}}}' + body: '{"chatThread": {"id": "19:Cj8RLyiWCisoqmXnZ62ETEQAjAvlR58guHxYwPiXJL81@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:52:50Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-3047-51b9-a43a0d002705", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-3047-51b9-a43a0d002705"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:37:06 GMT + - Thu, 18 Mar 2021 23:52:50 GMT ms-cv: - - ficKTp3r3UWHaaQH6CwRrQ.0 + - DJZCKwaUKUmhuHvuCaQOIw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 821ms + - 439ms status: code: 201 message: Created - request: - body: '{"participants": "sanitized"}' + body: null headers: Accept: - application/json @@ -222,34 +222,32 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-Length: - - '235' - Content-Type: - - application/json User-Agent: - - 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=2021-01-27-preview4 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: - body: '{}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-03-18T23:52:50Z", + "createdByCommunicationIdentifier": {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-3047-51b9-a43a0d002705", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-3047-51b9-a43a0d002705"}}}' headers: api-supported-versions: - - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:37:07 GMT + - Thu, 18 Mar 2021 23:52:50 GMT ms-cv: - - X979MlT0z02B4KUemNeAPw.0 + - 8iNMh4zxPUy2jhFyzQIz2w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 435ms + - 103ms status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -262,13 +260,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:37:07 GMT + - Thu, 18 Mar 2021 23:52:59 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -276,15 +274,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:37:23 GMT + - Thu, 18 Mar 2021 23:52:51 GMT ms-cv: - - HtjZgKlc1UanF7Ui1byjbQ.0 + - 6cF8b9qjSkWFv+u4+47pDg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16557ms + - 805ms status: code: 204 message: No Content @@ -300,13 +298,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:37:24 GMT + - Thu, 18 Mar 2021 23:53:00 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -314,15 +312,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:37:40 GMT + - Thu, 18 Mar 2021 23:52:52 GMT ms-cv: - - fH7QEG7m70+n2MDBv4SxlQ.0 + - v2Cj1iCceE2KylJ9jXnwxg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16455ms + - 802ms status: code: 204 message: No Content @@ -338,9 +336,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -348,13 +346,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:37:40 GMT + - Thu, 18 Mar 2021 23:52:53 GMT ms-cv: - - kCFjckXRBUaHomhB0bhOnQ.0 + - EIm6pY0s4EeabzxThgH5tw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 345ms + - 257ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_members.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_members.yaml deleted file mode 100644 index fe87b4a477cd..000000000000 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_members.yaml +++ /dev/null @@ -1,295 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:47:59 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:47:58 GMT - ms-cv: - - Y5UoRL9iO0GIhw6ZCtbj0g.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 214ms - 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: - - Wed, 02 Dec 2020 23:48:00 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:47:58.3116926+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:59 GMT - ms-cv: - - lnLR371He0aZRec2CURtYQ.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 281ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:00 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:47:59 GMT - ms-cv: - - JXGvxSWB4kGSiupxw2aCgg.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 216ms - status: - code: 200 - message: OK -- request: - body: '{"topic": "test topic", "members": "sanitized"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '201' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 - response: - body: '{"multipleStatus": "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:59 GMT - ms-cv: - - 0rPG3Q2290KFSBu17Xfvgw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 287ms - status: - code: 207 - message: Multi-Status -- 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.8.5 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/members?api-version=2020-09-21-preview2 - response: - body: '{"value": "sanitized"}' - headers: - api-supported-versions: - - 2020-09-21-preview2 - content-type: - - application/json; charset=utf-8 - date: - - Wed, 02 Dec 2020 23:48:01 GMT - ms-cv: - - hDYkk5Xy/Ump7V+SNuGwaw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 77ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:04 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:48:03 GMT - ms-cv: - - wzmG/CyyDUWV4jm4yCGCDA.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 885ms - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:05 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:48:04 GMT - ms-cv: - - uDYwrjkUWEWzLdEDU1A3YA.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 830ms - 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.8.5 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 - date: - - Wed, 02 Dec 2020 23:48:04 GMT - ms-cv: - - O85+vyS3HkyRtfMIJmXDyw.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 113ms - 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_messages.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml index 0055b08c15b1..51e1f4048c36 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:39:31 GMT + - Thu, 18 Mar 2021 23:53:01 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-e5a9-9c58-373a0d00fa52"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-3f75-edbe-a43a0d000764"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:30 GMT + - Thu, 18 Mar 2021 23:52:52 GMT ms-cv: - - cTr9K59za0KQfMbbjrfsug.0 + - p01LsJlgeEGSd6mgVXnWvg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 82ms + - 16ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:39:31 GMT + - Thu, 18 Mar 2021 23:53:01 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:39:30.7646426+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:53.0882515+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:30 GMT + - Thu, 18 Mar 2021 23:52:53 GMT ms-cv: - - 3cqjRTV1nkWzDOOZLwDavQ.0 + - vxshWD3YHE6hrCNbt87/4Q.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 126ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:39:31 GMT + - Thu, 18 Mar 2021 23:53:01 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-e66c-9c58-373a0d00fa53"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-40a6-edbe-a43a0d000765"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:30 GMT + - Thu, 18 Mar 2021 23:52:53 GMT ms-cv: - - yvPMpfyfFkSXiRF93Dnbdw.0 + - PcD9wxan60C1x3qZE1sgpg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 11ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:39:31 GMT + - Thu, 18 Mar 2021 23:53:01 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:39:30.9775643+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:53.3980905+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:31 GMT + - Thu, 18 Mar 2021 23:52:53 GMT ms-cv: - - EK2T6/ZBP0OZLCDhvLIceg.0 + - gSSxR/mTC0Sy54PbfwQ+pg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 130ms status: code: 200 message: OK @@ -185,31 +185,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - f9acc625-655d-4921-93ce-49bdc8195034 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 969aa559-5f40-43c4-886e-f0d7abf1d34a method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:E2tBzEeWrsmVOAHa3QKvqwj7nsFkK-I4vXacT2CBjIU1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:39:32Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-e5a9-9c58-373a0d00fa52", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900a-e5a9-9c58-373a0d00fa52"}}}}' + body: '{"chatThread": {"id": "19:ek1VIfIOYS-f62TMMs9_62PYabjA5w34BIOv-FZODlI1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:52:54Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-3f75-edbe-a43a0d000764", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-3f75-edbe-a43a0d000764"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:32 GMT + - Thu, 18 Mar 2021 23:52:54 GMT ms-cv: - - Aw0V800krkixMY5qeb5R/g.0 + - SItjS395sk6I1Wz2lrlbUg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 893ms + - 832ms status: code: 201 message: Created @@ -228,9 +228,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: @@ -239,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:32 GMT + - Thu, 18 Mar 2021 23:52:54 GMT ms-cv: - - Xh3HiaGu9k6QpbsUFaI10g.0 + - 8xEw96LV6Emvtya6IU4iQw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 386ms + - 234ms status: code: 201 message: Created @@ -261,9 +261,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?maxPageSize=1&api-version=2021-03-01-preview5 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -272,15 +272,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:33 GMT + - Thu, 18 Mar 2021 23:52:55 GMT ms-cv: - - 32f+Qc71b06SDyrLK4LJyQ.0 + - 7ksS3LuW9EaKhbagtLm/nw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 258ms + - 121ms status: code: 200 message: OK @@ -294,9 +294,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + 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=2021-03-01-preview5 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -305,15 +305,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:33 GMT + - Thu, 18 Mar 2021 23:52:55 GMT ms-cv: - - jjpqdiZLP0mN+raEvl7WUw.0 + - y41vl61k2UuS4IhpjnAhtg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 357ms + - 180ms status: code: 200 message: OK @@ -327,9 +327,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + 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=2021-03-01-preview5 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: @@ -338,15 +338,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:34 GMT + - Thu, 18 Mar 2021 23:52:55 GMT ms-cv: - - E8I+7AMWeU+dcjbt7XM2eg.0 + - SnydnZNp4UquNZrY25ealA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 349ms + - 178ms status: code: 200 message: OK @@ -360,9 +360,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + 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=2021-03-01-preview5 response: body: '{"value": "sanitized"}' headers: @@ -371,15 +371,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:39:34 GMT + - Thu, 18 Mar 2021 23:52:55 GMT ms-cv: - - ox8RSrXHX0K+Cy2DaYqxdw.0 + - 08nz/McGQ0u890H3KxMigQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 349ms + - 207ms status: code: 200 message: OK @@ -395,13 +395,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:39:34 GMT + - Thu, 18 Mar 2021 23:53:04 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -409,15 +409,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:39:51 GMT + - Thu, 18 Mar 2021 23:52:56 GMT ms-cv: - - D7iOW0sPAkuxavl6oJKNWw.0 + - ACHaAxihGEyCvQksZ1q39w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16863ms + - 589ms status: code: 204 message: No Content @@ -433,13 +433,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:39:51 GMT + - Thu, 18 Mar 2021 23:53:04 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -447,15 +447,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:40:08 GMT + - Thu, 18 Mar 2021 23:52:57 GMT ms-cv: - - 0v5KoFVk90KOgoJnk/xgRg.0 + - NdlDBpVRM0WA5fwZl7E2pQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17051ms + - 1056ms status: code: 204 message: No Content @@ -471,9 +471,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -481,13 +481,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:40:09 GMT + - Thu, 18 Mar 2021 23:52:57 GMT ms-cv: - - EFF4AUQds0K1zGt+ht+Stw.0 + - XLUm2j5b9Ey8vP5a6KFjew.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 329ms + - 122ms 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 dfe56ea9d9bb..003f50005e3d 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:40:09 GMT + - Thu, 18 Mar 2021 23:53:06 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900b-7b72-b0b7-3a3a0d00fdf7"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-54e5-740a-113a0d004e10"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:09 GMT + - Thu, 18 Mar 2021 23:52:59 GMT ms-cv: - - WolNF2sJMkWR0gpETIbgCQ.0 + - 9Zbj9Swp4kaH3/OsQ0HxGg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 35ms + - 212ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:40:09 GMT + - Thu, 18 Mar 2021 23:53:06 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:40:09.1426016+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:58.7486505+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:09 GMT + - Thu, 18 Mar 2021 23:52:59 GMT ms-cv: - - uXM+XgvwJUaP5e4QhxstRw.0 + - w3kANMH2hEOuXKoeIjmvKQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 104ms + - 278ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:40:09 GMT + - Thu, 18 Mar 2021 23:53:07 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900b-7c5b-b0b7-3a3a0d00fdf8"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-5756-740a-113a0d004e11"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:09 GMT + - Thu, 18 Mar 2021 23:52:59 GMT ms-cv: - - pxVty6Wn7EuXo/CLMcIg+g.0 + - /6ZVDtjBR0eBmRAMukJXfQ.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 18ms + - 142ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:40:10 GMT + - Thu, 18 Mar 2021 23:53:07 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:40:09.3493873+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:52:59.3717343+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:09 GMT + - Thu, 18 Mar 2021 23:53:00 GMT ms-cv: - - zUa8aSJpyk6sgg1Xu22rOg.0 + - F8IZxQc29EqDU/uUMxNkTQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 97ms + - 278ms status: code: 200 message: OK @@ -185,31 +185,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 33062ce9-5106-4f66-b327-3d5378d29e30 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 9dc8d9f3-7e85-4b50-ab3f-de794c425786 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:k4dY9Rl5kEaWrlP2CmVJQp2oenWpreXU0H4S_opUqcQ1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:40:10Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900b-7b72-b0b7-3a3a0d00fdf7", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900b-7b72-b0b7-3a3a0d00fdf7"}}}}' + body: '{"chatThread": {"id": "19:9so1AOLchZpAgjBq-F9U5q2pDx5pYxqv0oR5U6hZk9w1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:53:00Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-54e5-740a-113a0d004e10", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-54e5-740a-113a0d004e10"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:10 GMT + - Thu, 18 Mar 2021 23:53:00 GMT ms-cv: - - 3ZsBOsuXnU68tvVkWaOGXQ.0 + - hRxq47H3HUmYnhEYWp0yOA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 882ms + - 761ms status: code: 201 message: Created @@ -227,9 +227,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-01-preview5 response: body: '{}' headers: @@ -238,15 +238,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:11 GMT + - Thu, 18 Mar 2021 23:53:02 GMT ms-cv: - - pBksuiJwekaFD+IwUyFV+A.0 + - O4aAi8Yw70S4GxtI6nZRWA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 405ms + - 513ms status: code: 201 message: Created @@ -260,9 +260,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2021-03-01-preview5 response: body: '{"value": "sanitized"}' headers: @@ -271,15 +271,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:11 GMT + - Thu, 18 Mar 2021 23:53:02 GMT ms-cv: - - agBbhnwywUidYjKEnNyKDQ.0 + - j/S5MpZ3Bk6i3PaEZYILIA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 256ms + - 99ms status: code: 200 message: OK @@ -295,13 +295,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:40:12 GMT + - Thu, 18 Mar 2021 23:53:09 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -309,15 +309,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:40:29 GMT + - Thu, 18 Mar 2021 23:53:02 GMT ms-cv: - - xMyX+YZ8ZUOse+kiK6XbmA.0 + - FxDUhSXl8Uecmq5ly4ngcA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16834ms + - 725ms status: code: 204 message: No Content @@ -333,13 +333,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:40:29 GMT + - Thu, 18 Mar 2021 23:53:10 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -347,15 +347,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:40:45 GMT + - Thu, 18 Mar 2021 23:53:03 GMT ms-cv: - - HAeDMcAwcUCieVHGZqVY9Q.0 + - +QXKSVwmtEyKKlzYc38P+w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16720ms + - 986ms status: code: 204 message: No Content @@ -371,9 +371,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -381,13 +381,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:40:46 GMT + - Thu, 18 Mar 2021 23:53:03 GMT ms-cv: - - y87I4ohHwE6il0AmXh9Gag.0 + - lUtVOq8hiEqbvmh9wRhhVA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 396ms + - 169ms 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 959af76a6bad..00c6a6af047b 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:40:46 GMT + - Thu, 18 Mar 2021 23:53:12 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-0b40-1db7-3a3a0d0005c4"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-6a76-570c-113a0d0027fd"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:46 GMT + - Thu, 18 Mar 2021 23:53:04 GMT ms-cv: - - grhoCd/Kg0uxfe/bFxoRmg.0 + - MuCv88a4fkWEZNCslDtm5g.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 141ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:40:46 GMT + - Thu, 18 Mar 2021 23:53:12 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:40:45.9201893+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:04.2733314+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:46 GMT + - Thu, 18 Mar 2021 23:53:04 GMT ms-cv: - - IqCieV/1L0CoczmL2ZxuVg.0 + - R/728VJqRkWBeNKkORqWcw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 283ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:40:46 GMT + - Thu, 18 Mar 2021 23:53:12 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-0bfb-1db7-3a3a0d0005c5"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-6cfd-570c-113a0d0027fe"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:46 GMT + - Thu, 18 Mar 2021 23:53:04 GMT ms-cv: - - XPjgscGygkqbMA/NzvPRPQ.0 + - LT11vZJCMUSEqgjPRYZWzA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 10ms + - 142ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:40:46 GMT + - Thu, 18 Mar 2021 23:53:13 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:40:46.110204+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:04.9163413+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:46 GMT + - Thu, 18 Mar 2021 23:53:05 GMT ms-cv: - - uN1mNQcEDUG4dhPOA8+TDQ.0 + - RZqnN8pVbkSqyRZk3nwklQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 283ms status: code: 200 message: OK @@ -185,31 +185,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 19deb45c-7efc-40fa-89b1-a423bbd9ebff + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 0aba8a54-3b14-454a-8991-380d52cb6a69 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:DlVadwcymFJhPI5iD-c9qJ9WsmcTYAY7pJzyDXivBKk1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:40:47Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-0b40-1db7-3a3a0d0005c4", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-0b40-1db7-3a3a0d0005c4"}}}}' + body: '{"chatThread": {"id": "19:trOUqqmRht4S1DCMdqqqdUYYNCOfeeKXfb0OKukl28k1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:53:06Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-6a76-570c-113a0d0027fd", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-6a76-570c-113a0d0027fd"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:48 GMT + - Thu, 18 Mar 2021 23:53:07 GMT ms-cv: - - WtRF4OLcbk+g7HkJ4wAKWg.0 + - GW4gpdjAj0O2m7I3XCrU9A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 1450ms + - 1304ms status: code: 201 message: Created @@ -228,9 +228,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: @@ -239,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:48 GMT + - Thu, 18 Mar 2021 23:53:06 GMT ms-cv: - - 95Vax+OUP0uAfhOTe7nytQ.0 + - GWpK6QwxxUWAGVix53fz0g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 386ms + - 121ms status: code: 201 message: Created @@ -265,9 +265,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 response: body: string: '' @@ -277,13 +277,13 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:40:49 GMT + - Thu, 18 Mar 2021 23:53:06 GMT ms-cv: - - fddTXIAlCEG2bZZMDqk8+g.0 + - Occc8z96qECe6VsUC6SOGA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 1078ms + - 172ms status: code: 200 message: OK @@ -297,9 +297,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 response: body: '{"value": "sanitized"}' headers: @@ -308,15 +308,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:50 GMT + - Thu, 18 Mar 2021 23:53:07 GMT ms-cv: - - Thze5ZrJn0SgCIr2ANWBww.0 + - AKcAFOEUJEGIbGTkPKBMLQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 712ms + - 107ms status: code: 200 message: OK @@ -335,9 +335,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: @@ -346,15 +346,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:51 GMT + - Thu, 18 Mar 2021 23:53:07 GMT ms-cv: - - KyPOXrmmpESJu+77Ouc0vA.0 + - 7VRsvFW6cEaP5LynL36Grw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 368ms + - 180ms status: code: 201 message: Created @@ -372,9 +372,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 response: body: string: '' @@ -384,13 +384,13 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:40:51 GMT + - Thu, 18 Mar 2021 23:53:07 GMT ms-cv: - - 3Y7QN5pk/0+MJUvyYmegag.0 + - PGK9oHmIQUWMLq9Y88k8/A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 752ms + - 162ms status: code: 200 message: OK @@ -404,9 +404,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 response: body: '{"value": "sanitized"}' headers: @@ -415,15 +415,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:52 GMT + - Thu, 18 Mar 2021 23:53:08 GMT ms-cv: - - 7AXtM5NOVEC1hfFJjiPNFw.0 + - wxKzp130eUueiU6NHGAEAA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 252ms + - 129ms status: code: 200 message: OK @@ -442,9 +442,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: @@ -453,15 +453,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:53 GMT + - Thu, 18 Mar 2021 23:53:09 GMT ms-cv: - - vyzPBjDEFkm0k5ZIF0kfSg.0 + - MyySX21zh0mvziSyr1hcbg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 368ms + - 187ms status: code: 201 message: Created @@ -479,9 +479,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 response: body: string: '' @@ -491,13 +491,13 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:40:53 GMT + - Thu, 18 Mar 2021 23:53:09 GMT ms-cv: - - SCqvZeDDZUKjY/wXuc7dQw.0 + - 3L+yG6r9Y0yyZmC348HW9A.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 599ms + - 155ms status: code: 200 message: OK @@ -511,9 +511,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 response: body: '{"value": "sanitized"}' headers: @@ -522,15 +522,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:54 GMT + - Thu, 18 Mar 2021 23:53:09 GMT ms-cv: - - NDyBxoWqxEyqiVQcER2Klg.0 + - D3C3w4xFtUmbuezHGEBdIw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 277ms + - 104ms status: code: 200 message: OK @@ -544,9 +544,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2021-03-01-preview5 response: body: '{"value": "sanitized"}' headers: @@ -555,15 +555,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:40:54 GMT + - Thu, 18 Mar 2021 23:53:08 GMT ms-cv: - - jIgKb0IEZ0islUt+zw+Q+w.0 + - olluxLMJekGo2RGd3fMxtQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 249ms + - 104ms status: code: 200 message: OK @@ -579,13 +579,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:40:55 GMT + - Thu, 18 Mar 2021 23:53:17 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -593,15 +593,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:41:11 GMT + - Thu, 18 Mar 2021 23:53:09 GMT ms-cv: - - JGgfGTlz0kiO5rVYClqslw.0 + - N1INuxZAo0uCAjU6SgBYyA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16733ms + - 712ms status: code: 204 message: No Content @@ -617,13 +617,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:41:12 GMT + - Thu, 18 Mar 2021 23:53:18 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -631,15 +631,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:41:27 GMT + - Thu, 18 Mar 2021 23:53:10 GMT ms-cv: - - 3+dAUBSphUi/ggI0bb6wwQ.0 + - Oz9nxlO/7keN1o840O2OaA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16673ms + - 652ms status: code: 204 message: No Content @@ -655,9 +655,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -665,13 +665,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:41:28 GMT + - Thu, 18 Mar 2021 23:53:11 GMT ms-cv: - - w/AKvfDCY0e3RWGODMvjFQ.0 + - EwDDQS5GwEeHaPokZje1mw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 293ms + - 131ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_member.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_member.yaml deleted file mode 100644 index 7b9aa4691253..000000000000 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_member.yaml +++ /dev/null @@ -1,331 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:21 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:48:19 GMT - ms-cv: - - spDYMfwsjUO4sdTPMYpeyQ.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 207ms - 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: - - Wed, 02 Dec 2020 23:48:21 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:48:19.6389726+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:19 GMT - ms-cv: - - j1A5lKmD6k6yaCxg34IDZw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 277ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:22 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:48:20 GMT - ms-cv: - - V6aLhLppc0qL+1XS2+R7nQ.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 204ms - status: - code: 200 - message: OK -- request: - body: '{"topic": "test topic", "members": "sanitized"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '201' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 - response: - body: '{"multipleStatus": "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:20 GMT - ms-cv: - - 5+vxvCiOzUmV6BQKnGjAmA.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 263ms - status: - code: 207 - message: Multi-Status -- request: - body: '{"members": "sanitized"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '178' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/members?api-version=2020-09-21-preview2 - response: - body: '{"multipleStatus": "sanitized"}' - headers: - api-supported-versions: - - 2020-09-21-preview2 - content-type: - - application/json; charset=utf-8 - date: - - Wed, 02 Dec 2020 23:48:21 GMT - ms-cv: - - WshetgaAI0OBgqK3zaG4Wg.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 314ms - status: - code: 207 - message: Multi-Status -- 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.8.5 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/members/8%3Aacs%3Abff431b2-eb28-43ab-b2fc-546ea8974212_00000006-c5bc-fd20-6216-1f3a0d000075?api-version=2020-09-21-preview2 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-09-21-preview2 - date: - - Wed, 02 Dec 2020 23:48:21 GMT - ms-cv: - - +xeY6MnaXE6VMzBtwZIF7g.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 217ms - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:23 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:48:23 GMT - ms-cv: - - tftTaQYwSEWjkMG2VPLSDw.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 1128ms - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:25 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:48:23 GMT - ms-cv: - - DFIgvVZXNUWovfQH21M96A.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 642ms - 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.8.5 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 - date: - - Wed, 02 Dec 2020 23:48:24 GMT - ms-cv: - - nYZhIL+hcEWO393RuWeyRA.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 149ms - status: - code: 204 - message: No Content -version: 1 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 b262ab6df0f4..2338aa6ae24d 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:41:29 GMT + - Thu, 18 Mar 2021 23:53:19 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-b223-b0b7-3a3a0d00fdfd"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-8698-28c5-593a0d0016fe"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:41:29 GMT + - Thu, 18 Mar 2021 23:53:11 GMT ms-cv: - - GOWVmkmFP0mjue2kW8hTRQ.0 + - JNZnwmhC/EWrH/lDfQmw7A.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 12ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:41:29 GMT + - Thu, 18 Mar 2021 23:53:19 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:41:28.6699723+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:11.1761725+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:41:29 GMT + - Thu, 18 Mar 2021 23:53:12 GMT ms-cv: - - FvABCZjgdkKAhBIZFLe2gg.0 + - 1cAlQQFd7UadGVxyvQ8uLw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 112ms + - 25ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:41:29 GMT + - Thu, 18 Mar 2021 23:53:19 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-b314-b0b7-3a3a0d00fdfe"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-872c-28c5-593a0d0016ff"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:41:29 GMT + - Thu, 18 Mar 2021 23:53:12 GMT ms-cv: - - t5aRpeRZQ0m6HhohZJ2tCw.0 + - eImnYaWEPECrXNeOg/wBJw.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 12ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:41:29 GMT + - Thu, 18 Mar 2021 23:53:19 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:41:28.8913447+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:11.3280783+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:41:29 GMT + - Thu, 18 Mar 2021 23:53:12 GMT ms-cv: - - CnAqxlInwUWoOdL9+NoWPw.0 + - 0QXPdKSy702hWWOYNWLKMg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 97ms + - 26ms status: code: 200 message: OK @@ -185,31 +185,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - ba9bbb8d-97a1-4b4a-842f-83c779d2a671 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - c89fd0e9-f85b-4d4c-a58f-a4b8f711d32f method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:mhmbttQOEIiMyq0hD60dHmJQa7M4D4dDQVgcCgYa_vA1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:41:30Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-b223-b0b7-3a3a0d00fdfd", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-b223-b0b7-3a3a0d00fdfd"}}}}' + body: '{"chatThread": {"id": "19:OGHkTO4RxxguQS9_My4FNx2Ut3MezmLrNK4aJlKKcz01@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:53:12Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-8698-28c5-593a0d0016fe", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-8698-28c5-593a0d0016fe"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:41:30 GMT + - Thu, 18 Mar 2021 23:53:12 GMT ms-cv: - - rdYilk4o9ka+9ejcnUFarA.0 + - r1G0TjWyzkqCx+HRG3hr+g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 839ms + - 972ms status: code: 201 message: Created @@ -227,9 +227,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-01-preview5 response: body: '{}' headers: @@ -238,20 +238,20 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:41:31 GMT + - Thu, 18 Mar 2021 23:53:13 GMT ms-cv: - - L4Vh50x3MkODVVUvApqf0A.0 + - tWLz9ktd6E+4ZZM+or27ew.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 690ms + - 234ms status: code: 201 message: Created - request: - body: '{"communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900c-b314-b0b7-3a3a0d00fdfe"}}' + body: '{"communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-872c-28c5-593a0d0016ff"}}' headers: Accept: - application/json @@ -264,9 +264,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:remove?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-03-01-preview5 response: body: string: '' @@ -274,13 +274,13 @@ interactions: api-supported-versions: - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:41:31 GMT + - Thu, 18 Mar 2021 23:53:13 GMT ms-cv: - - XwhZwhogF0yJaNHL6it/oQ.0 + - 2ylGdlGYbEG6xnqAA7O8oQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 455ms + - 195ms status: code: 204 message: No Content @@ -296,13 +296,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:41:32 GMT + - Thu, 18 Mar 2021 23:53:21 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -310,15 +310,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:41:48 GMT + - Thu, 18 Mar 2021 23:53:14 GMT ms-cv: - - GBMwKgmCZ0u+3gjcJlC5uQ.0 + - K0wBhuhn8UyZr/XN7LTlEA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16892ms + - 749ms status: code: 204 message: No Content @@ -334,13 +334,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:41:49 GMT + - Thu, 18 Mar 2021 23:53:22 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -348,15 +348,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:42:05 GMT + - Thu, 18 Mar 2021 23:53:15 GMT ms-cv: - - YoIaiobTgEWHYwjsf97CdA.0 + - tvcuVqJeXEuNuQblWDVqKA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16924ms + - 524ms status: code: 204 message: No Content @@ -372,9 +372,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -382,13 +382,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:42:06 GMT + - Thu, 18 Mar 2021 23:53:14 GMT ms-cv: - - ldHUM4f7+UqQeW2gnoJOWQ.0 + - y8RfiusPEUaISEWLz0rSsg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 334ms + - 137ms 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 c4d8fcaef1cd..a3abdfe9391b 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:42:06 GMT + - Thu, 18 Mar 2021 23:53:23 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-445c-dbb7-3a3a0d00feb7"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-9671-570c-113a0d002803"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:42:06 GMT + - Thu, 18 Mar 2021 23:53:15 GMT ms-cv: - - o+we9yzWRECAOumpeYMfFg.0 + - M8C6cDCQyEq++DHLBsd3fQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 139ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:42:06 GMT + - Thu, 18 Mar 2021 23:53:23 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:42:06.0735811+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:15.5265965+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:42:06 GMT + - Thu, 18 Mar 2021 23:53:15 GMT ms-cv: - - SiM5P6cRyE6CT2AMB394ZQ.0 + - 8pbjL/SGPUuHp0MOcgwjXA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 87ms + - 282ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:42:06 GMT + - Thu, 18 Mar 2021 23:53:24 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-451b-dbb7-3a3a0d00feb8"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-98e0-570c-113a0d002804"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:42:06 GMT + - Thu, 18 Mar 2021 23:53:15 GMT ms-cv: - - vAzfuf18YEuTgJdjCudnJg.0 + - 8vqJlRo89Een0d4SJTf2qA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 144ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:42:06 GMT + - Thu, 18 Mar 2021 23:53:24 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:42:06.2793838+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:16.1600406+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:42:06 GMT + - Thu, 18 Mar 2021 23:53:16 GMT ms-cv: - - piP9wYNZ0kSst8IeS+SUnw.0 + - 66phSd5B/Eu5E5cZ+5GgOw.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 87ms + - 285ms status: code: 200 message: OK @@ -185,31 +185,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 3bcf9f50-5578-4b7f-bb6b-8a18b2a25555 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - ac21e13a-9363-427b-9b87-b8c8eabbb5dd method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:CjkcPZIyD_-CMxlXczT00roXzd7YTAhm4b75Ef4L5Es1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:42:07Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-445c-dbb7-3a3a0d00feb7", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-445c-dbb7-3a3a0d00feb7"}}}}' + body: '{"chatThread": {"id": "19:g5Axk4tI5gEdFO87GZX6p_yNqHYDHHGHr8xqybS6Fxg1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:53:17Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-9671-570c-113a0d002803", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-9671-570c-113a0d002803"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:42:07 GMT + - Thu, 18 Mar 2021 23:53:17 GMT ms-cv: - - FxrVG9fKLkSPqRVSgjrbxA.0 + - CzUIe8ebfkeljsATOWGR+w.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 902ms + - 589ms status: code: 201 message: Created @@ -228,9 +228,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: @@ -239,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:42:08 GMT + - Thu, 18 Mar 2021 23:53:17 GMT ms-cv: - - RP5KcGGF9UCuZd+4oIYhkA.0 + - 2i1yUzRyt06cdqLKfT7t/Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 387ms + - 185ms status: code: 201 message: Created @@ -263,13 +263,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:42:08 GMT + - Thu, 18 Mar 2021 23:53:25 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -277,15 +277,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:42:24 GMT + - Thu, 18 Mar 2021 23:53:18 GMT ms-cv: - - xu/3CgTE/0mvtlW/9hMa1Q.0 + - uNt+XkJ7P0WC6oiB7Hn+FQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16770ms + - 750ms status: code: 204 message: No Content @@ -301,13 +301,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:42:25 GMT + - Thu, 18 Mar 2021 23:53:26 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -315,15 +315,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:42:41 GMT + - Thu, 18 Mar 2021 23:53:18 GMT ms-cv: - - dSImIT3goEWYV1Tns4Jt4w.0 + - BBdOAhjSD02AFsX3NiuUgg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16272ms + - 774ms status: code: 204 message: No Content @@ -339,9 +339,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -349,13 +349,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:42:42 GMT + - Thu, 18 Mar 2021 23:53:19 GMT ms-cv: - - QFbpuI18REKGJ3YvyMdMVg.0 + - vToSuzPW+k+hsnU1U3VSFw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 325ms + - 144ms 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 e83dc1240c30..d674ee845bd3 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:42:42 GMT + - Thu, 18 Mar 2021 23:53:27 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-d06c-9c58-373a0d00fa67"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-a743-7f07-113a0d00dac6"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:42:42 GMT + - Thu, 18 Mar 2021 23:53:20 GMT ms-cv: - - m/n2ej5fAE2OYBQbu/hm3Q.0 + - yRaA30xBQEyNXZWbeFpl/g.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 140ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:42:42 GMT + - Thu, 18 Mar 2021 23:53:27 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:42:41.9269488+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:19.8313404+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:42:42 GMT + - Thu, 18 Mar 2021 23:53:20 GMT ms-cv: - - 2/5MphOs40m9O9epJhcBmA.0 + - Wv1LZpd1B02jUvJhbzLFTw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 279ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:42:42 GMT + - Thu, 18 Mar 2021 23:53:28 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-d12a-9c58-373a0d00fa68"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-a9b0-7f07-113a0d00dac7"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:42:42 GMT + - Thu, 18 Mar 2021 23:53:21 GMT ms-cv: - - r5wsIFBgv0OreRzh/8K7bQ.0 + - Nf6ujBEkfkStXi60sFVu+w.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 139ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:42:42 GMT + - Thu, 18 Mar 2021 23:53:28 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:42:42.1231387+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:20.4555978+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:42:42 GMT + - Thu, 18 Mar 2021 23:53:21 GMT ms-cv: - - Qi6zhA3+pEW6ObYtj3p72Q.0 + - Z96xTATGo0WJccz0zs3omg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 88ms + - 282ms status: code: 200 message: OK @@ -185,31 +185,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 93500e09-6ea5-4cd3-9b20-7f9d81a621ad + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 6c6855a3-67e5-4109-959e-a10034f274ba method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:TdUWBFU4mvlGataTLuWOC599yTPug1CYYyN_VnLk0HE1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:42:44Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-d06c-9c58-373a0d00fa67", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900d-d06c-9c58-373a0d00fa67"}}}}' + body: '{"chatThread": {"id": "19:ea_1912fipvmUDsAsK4ac1Hy7SGSXIt4njHmLop_l8g1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:53:21Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-a743-7f07-113a0d00dac6", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-a743-7f07-113a0d00dac6"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:42:45 GMT + - Thu, 18 Mar 2021 23:53:21 GMT ms-cv: - - JQvWyIRJGkCsFB92gibT4g.0 + - VZ3Ie0rfXECL4pMvwiyD9g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 897ms + - 1180ms status: code: 201 message: Created @@ -228,9 +228,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: @@ -239,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:42:46 GMT + - Thu, 18 Mar 2021 23:53:22 GMT ms-cv: - - cskFOzv5Ikuwhi2LAdJZCQ.0 + - CudkT+4tikeIfQ6zGObfuA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 386ms + - 201ms status: code: 201 message: Created @@ -265,9 +265,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 response: body: string: '' @@ -277,13 +277,13 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:42:46 GMT + - Thu, 18 Mar 2021 23:53:22 GMT ms-cv: - - MDNs58QFiE6lkDAT96/5NA.0 + - u6NQ/pcFQEmFjnCqaOO8qQ.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 620ms + - 186ms status: code: 200 message: OK @@ -299,13 +299,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:42:46 GMT + - Thu, 18 Mar 2021 23:53:30 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -313,15 +313,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:43:03 GMT + - Thu, 18 Mar 2021 23:53:24 GMT ms-cv: - - SfEERkDutk2727zYQFb8fQ.0 + - VeoFv4EQoEm26xjMawF13A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17021ms + - 883ms status: code: 204 message: No Content @@ -337,13 +337,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:43:03 GMT + - Thu, 18 Mar 2021 23:53:31 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -351,15 +351,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:43:19 GMT + - Thu, 18 Mar 2021 23:53:25 GMT ms-cv: - - WtHjXwpauEmeIejI99lrJQ.0 + - 2pE2+TXbc0+Q0ZashYwI5w.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16148ms + - 961ms status: code: 204 message: No Content @@ -375,9 +375,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -385,13 +385,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:43:19 GMT + - Thu, 18 Mar 2021 23:53:24 GMT ms-cv: - - IE0VLuAVNkiPKuVqBZx3lg.0 + - ZJOuSFthGEiJzDYeqboSIA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 319ms + - 304ms 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 a862b496150e..473ab898b4a5 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:43:20 GMT + - Thu, 18 Mar 2021 23:53:33 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-6509-9c58-373a0d00fa6b"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-bd8d-edbe-a43a0d00076a"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:43:20 GMT + - Thu, 18 Mar 2021 23:53:25 GMT ms-cv: - - +8ZWqUyIckaLYJIxdORTTw.0 + - IBJfhudH+0OJq3nRxuuSMA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 18ms + - 16ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:43:20 GMT + - Thu, 18 Mar 2021 23:53:33 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:43:19.9932822+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:25.3758913+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:43:20 GMT + - Thu, 18 Mar 2021 23:53:25 GMT ms-cv: - - lei8eIhdk02BDJIwh6FQQw.0 + - wClG5sBWoEO7XvU4gja/RA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 146ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:43:20 GMT + - Thu, 18 Mar 2021 23:53:33 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-65e5-9c58-373a0d00fa6c"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-bec9-edbe-a43a0d00076b"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:43:20 GMT + - Thu, 18 Mar 2021 23:53:25 GMT ms-cv: - - bCG+fZm8vkKHs+p16zNAGQ.0 + - TkBBN6ZseEibqWCh9CUrCQ.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 11ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:43:20 GMT + - Thu, 18 Mar 2021 23:53:33 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:43:20.2174719+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:25.6999645+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:43:20 GMT + - Thu, 18 Mar 2021 23:53:25 GMT ms-cv: - - Zf/0lMF1yUmOJk1WKN+qDQ.0 + - n2Xv85fqxUaYVtfKD6h6HQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 140ms status: code: 200 message: OK @@ -185,31 +185,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - b6d4befb-a5fe-466d-a823-140e57714113 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - ed74718a-839d-498b-b99c-037e822ad7d3 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:pmT_uawfXpDA9uyTVp-wMGfWQaGQ5ZOSjeK7OsEh-fA1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:43:21Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-6509-9c58-373a0d00fa6b", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-6509-9c58-373a0d00fa6b"}}}}' + body: '{"chatThread": {"id": "19:6il_zV8KE_H6QKB78deCZBtGvRB3yDgcdkJ6XVXGMfw1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:53:26Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-bd8d-edbe-a43a0d00076a", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-bd8d-edbe-a43a0d00076a"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:43:21 GMT + - Thu, 18 Mar 2021 23:53:27 GMT ms-cv: - - nR9CMxS470KCrogeoBK9LA.0 + - Lh+XNPtn7Ue538TCuszsig.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 887ms + - 818ms status: code: 201 message: Created @@ -225,9 +225,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/typing?api-version=2021-03-01-preview5 response: body: string: '' @@ -237,13 +237,13 @@ interactions: content-length: - '0' date: - - Mon, 01 Mar 2021 23:43:22 GMT + - Thu, 18 Mar 2021 23:53:27 GMT ms-cv: - - erIFwU494UyW8EPk0lQ9aA.0 + - dl/7VdFvgEyBMw/vfZjRKw.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 370ms + - 155ms status: code: 200 message: OK @@ -259,13 +259,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:43:22 GMT + - Thu, 18 Mar 2021 23:53:35 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -273,15 +273,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:43:38 GMT + - Thu, 18 Mar 2021 23:53:27 GMT ms-cv: - - wYrM4nEWwk6B5Hpy0c0jMg.0 + - Qpt7dZuvT0OwcpJQLyB1nQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16347ms + - 730ms status: code: 204 message: No Content @@ -297,13 +297,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:43:39 GMT + - Thu, 18 Mar 2021 23:53:36 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -311,15 +311,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:43:55 GMT + - Thu, 18 Mar 2021 23:53:28 GMT ms-cv: - - od0nkIycT06u1nPmCLTGbg.0 + - E1/iKyIrI0GBvjbUAE4mDA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16632ms + - 925ms status: code: 204 message: No Content @@ -335,9 +335,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -345,13 +345,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:43:55 GMT + - Thu, 18 Mar 2021 23:53:29 GMT ms-cv: - - CCwrwbkiwEy9t6VH23ZIPA.0 + - uxi67sIpNU+n7lLFVbLaow.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 319ms + - 261ms 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 481393a64346..53d55049a037 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:43:56 GMT + - Thu, 18 Mar 2021 23:53:37 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-f1d1-b0b7-3a3a0d00fe05"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-cf42-570c-113a0d00280d"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:43:56 GMT + - Thu, 18 Mar 2021 23:53:30 GMT ms-cv: - - KNeQN4SiFEeCkn23Bp6xrw.0 + - V8mvs4LRJ0eUPBDai3Oxyw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 140ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:43:56 GMT + - Thu, 18 Mar 2021 23:53:38 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:43:56.0301261+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:31.0803375+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:43:56 GMT + - Thu, 18 Mar 2021 23:53:30 GMT ms-cv: - - nA1TKOnWdEGdV5nmMuHmjQ.0 + - PoUqhGFTVUusqPygUBU3iw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 101ms + - 292ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:43:56 GMT + - Thu, 18 Mar 2021 23:53:38 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-f29f-b0b7-3a3a0d00fe06"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-d1be-570c-113a0d00280e"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:43:56 GMT + - Thu, 18 Mar 2021 23:53:30 GMT ms-cv: - - OTKrAmSA4kykhohJiwVeZw.0 + - ZZPaJcKMgEujNhYtiF7f6w.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 141ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:43:56 GMT + - Thu, 18 Mar 2021 23:53:38 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:43:56.2286132+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:30.7148221+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:43:56 GMT + - Thu, 18 Mar 2021 23:53:31 GMT ms-cv: - - azxUDAzK4U6D7fiHcTy6EQ.0 + - kulTp4yhjkqMRcrqeEneNw.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 96ms + - 287ms status: code: 200 message: OK @@ -185,31 +185,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 734fd4fd-0ea7-47c5-abc6-83d6e4128e92 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 6145fd85-9742-46a4-bc6b-4e92504e608c method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:Ba0XSo1RLpr5LhcEwcjhD_cw31gy0KottJAAVcpTObE1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:43:57Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-f1d1-b0b7-3a3a0d00fe05", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900e-f1d1-b0b7-3a3a0d00fe05"}}}}' + body: '{"chatThread": {"id": "19:EITin0a8V6oGMSIqY7Mm2NPig_in7A9Vf3JfXOfr3gY1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:53:31Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-cf42-570c-113a0d00280d", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-cf42-570c-113a0d00280d"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:43:57 GMT + - Thu, 18 Mar 2021 23:53:32 GMT ms-cv: - - PstsUqZl0ki5Xj5Xqpk5cg.0 + - ELcJxkTc7k2JHLx2WsRmgA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 885ms + - 1083ms status: code: 201 message: Created @@ -228,9 +228,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: @@ -239,15 +239,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:43:58 GMT + - Thu, 18 Mar 2021 23:53:32 GMT ms-cv: - - iWeOcEjoRkO+B6OWU5VVsg.0 + - NTC02O+hHEKBlXyoNFvNgA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 381ms + - 173ms status: code: 201 message: Created @@ -265,9 +265,9 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -275,13 +275,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:43:59 GMT + - Thu, 18 Mar 2021 23:53:33 GMT ms-cv: - - rzmgfs1znU+8Hcr8kbxEqw.0 + - r+h7bYUY/0CfoVRkgLYQ9g.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 677ms + - 247ms status: code: 204 message: No Content @@ -297,13 +297,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:43:59 GMT + - Thu, 18 Mar 2021 23:53:41 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -311,15 +311,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:44:15 GMT + - Thu, 18 Mar 2021 23:53:33 GMT ms-cv: - - ko3NRFDJDE+hRFQitVEmlQ.0 + - 2BxCa0um/UOm8auAWUZ3eg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16638ms + - 772ms status: code: 204 message: No Content @@ -335,13 +335,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:44:16 GMT + - Thu, 18 Mar 2021 23:53:42 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -349,15 +349,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:44:32 GMT + - Thu, 18 Mar 2021 23:53:34 GMT ms-cv: - - vzGHZyEftEK4nWHdOj5Yuw.0 + - Y2/WhNJaS0+9tWe6VeBJQw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16802ms + - 818ms status: code: 204 message: No Content @@ -373,9 +373,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -383,13 +383,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:44:33 GMT + - Thu, 18 Mar 2021 23:53:34 GMT ms-cv: - - jn71eGpcSkGqxxKVtXEzrw.0 + - gtARa9TbLU24eZ4Rz6fUIg.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 764ms + - 130ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_thread.yaml deleted file mode 100644 index 43239d9fd301..000000000000 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_thread.yaml +++ /dev/null @@ -1,298 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:48 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:48:46 GMT - ms-cv: - - su+m1WI4P0WlrGJpBdxsdg.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 218ms - 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: - - Wed, 02 Dec 2020 23:48:48 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:48:46.7725564+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:47 GMT - ms-cv: - - URPvbY9/uECdD5gk1SqkTA.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 282ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:49 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:48:47 GMT - ms-cv: - - dOGKnynaWUuB+xgPoKZ/aw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 208ms - status: - code: 200 - message: OK -- request: - body: '{"topic": "test topic", "members": "sanitized"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '201' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 - response: - body: '{"multipleStatus": "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:48 GMT - ms-cv: - - dNgVjrtKDU+XnBUBWR+SHA.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 246ms - status: - code: 207 - message: Multi-Status -- request: - body: '{"topic": "update topic"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '25' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 - 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:48 GMT - ms-cv: - - hyHxXebUrkq/adTumpHVNg.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 180ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:50 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:48:49 GMT - ms-cv: - - Rb5dzuoyd0KiAEJrIuHb0A.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 749ms - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:51 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:48:50 GMT - ms-cv: - - 88xSAcW6M0q3koagujHCIw.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 833ms - 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.8.5 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3 - date: - - Wed, 02 Dec 2020 23:48:50 GMT - ms-cv: - - lb5SRHzHA0GXXfKfd4FrPA.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 106ms - status: - code: 204 - message: No Content -version: 1 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 622ac853cef0..47584a7dc63d 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:44:33 GMT + - Thu, 18 Mar 2021 23:53:43 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900f-83d3-b0b7-3a3a0d00fe09"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-e3fd-02c3-593a0d005495"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:44:33 GMT + - Thu, 18 Mar 2021 23:53:35 GMT ms-cv: - - kyKMfcDELU6/kBKDSplo0Q.0 + - jMbiz8xGGUCnnmi+EgFrlA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 64ms + - 19ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:44:34 GMT + - Thu, 18 Mar 2021 23:53:43 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:44:33.4038746+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:35.0653414+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:44:34 GMT + - Thu, 18 Mar 2021 23:53:35 GMT ms-cv: - - zD5rDIFvUE+zlzkFw/5NQg.0 + - qdvNHXhxyUmob7gBzntM0A.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 101ms + - 24ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:44:34 GMT + - Thu, 18 Mar 2021 23:53:43 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900f-849f-b0b7-3a3a0d00fe0a"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-e478-02c3-593a0d005496"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:44:34 GMT + - Thu, 18 Mar 2021 23:53:35 GMT ms-cv: - - 4TsGFCnKKECl5hhgu2ySsw.0 + - RQ+GHPiqTUOBDM+9yZHAUw.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 11ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:44:34 GMT + - Thu, 18 Mar 2021 23:53:43 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:44:33.6051914+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:35.1915964+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:44:34 GMT + - Thu, 18 Mar 2021 23:53:35 GMT ms-cv: - - v22aOuA0Ak6fGUEtq8d30g.0 + - bpWSTUCqPUGIApMxVZ6GJw.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 99ms + - 26ms status: code: 200 message: OK @@ -185,31 +185,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - cbcb06a1-b572-42f1-8f7f-d19856ad1bde + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - f53d2268-6d43-4a46-83f9-1d9142eb6793 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:gQY_1yN2EgV7Pm9h_6j7TbCg4z-DF4NoYZGCi2r8mjw1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:44:34Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900f-83d3-b0b7-3a3a0d00fe09", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-900f-83d3-b0b7-3a3a0d00fe09"}}}}' + body: '{"chatThread": {"id": "19:NeO3_EsIPJYgFwxENBql3WyYF4SeV59_lLFdAr2sz-E1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:53:36Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-e3fd-02c3-593a0d005495", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-e3fd-02c3-593a0d005495"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:44:34 GMT + - Thu, 18 Mar 2021 23:53:37 GMT ms-cv: - - aOVDyqojZUW7HJwu10ne3w.0 + - f5s2+lQvyEeI0C1CAPC7gw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked x-processing-time: - - 886ms + - 1053ms status: code: 201 message: Created @@ -227,9 +227,9 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -237,13 +237,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:44:35 GMT + - Thu, 18 Mar 2021 23:53:37 GMT ms-cv: - - bXX0kM8mYUGMWWJ7CE8BuA.0 + - mkJ0ejQE4kqPIAIRcCnvTA.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 429ms + - 292ms status: code: 204 message: No Content @@ -259,13 +259,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:44:36 GMT + - Thu, 18 Mar 2021 23:53:45 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -273,15 +273,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:44:51 GMT + - Thu, 18 Mar 2021 23:53:38 GMT ms-cv: - - QH2hJ12H+0+aRb/hwQsRsg.0 + - dAX1DB8Gb0OAldNnI75ayw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15993ms + - 1215ms status: code: 204 message: No Content @@ -297,13 +297,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:44:52 GMT + - Thu, 18 Mar 2021 23:53:46 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -311,15 +311,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:45:09 GMT + - Thu, 18 Mar 2021 23:53:39 GMT ms-cv: - - eDuxz/hXw0G3L7P4BdOkQA.0 + - cCiPF0yjeUa5cPEgHSp4OQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16565ms + - 499ms status: code: 204 message: No Content @@ -335,9 +335,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' @@ -345,13 +345,13 @@ interactions: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 date: - - Mon, 01 Mar 2021 23:45:09 GMT + - Thu, 18 Mar 2021 23:53:39 GMT ms-cv: - - dWSE9SOZQEC9uTdPyXekFQ.0 + - m767z7M1dkanfWviiVc55Q.0 strict-transport-security: - max-age=2592000 x-processing-time: - - 292ms + - 250ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_members.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_members.yaml deleted file mode 100644 index 1e9cb598fe81..000000000000 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_members.yaml +++ /dev/null @@ -1,269 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:52 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:48:51 GMT - ms-cv: - - DGyh2QZkTEecIiy6fCd+SA.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 203ms - 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: - - Wed, 02 Dec 2020 23:48:53 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:48:51.335101+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:51 GMT - ms-cv: - - cUHF5dYRiESJ2mxcxSXbxQ.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 273ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:53 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:48:52 GMT - ms-cv: - - xSQMCtbdkEGljLq/7BlyNw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 204ms - status: - code: 200 - message: OK -- request: - body: '{"topic": "test topic", "members": "sanitized"}' - headers: - Accept: - - application/json - Content-Length: - - '201' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 - response: - body: '{"multipleStatus": "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:52 GMT - ms-cv: Zf/4RBRJu0+mnojcETIvVQ.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 288ms - status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 -- request: - body: '{"members": "sanitized"}' - headers: - Accept: - - application/json - Content-Length: - - '178' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/members?api-version=2020-09-21-preview2 - response: - body: '{"multipleStatus": "sanitized"}' - headers: - api-supported-versions: 2020-09-21-preview2 - content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:48:53 GMT - ms-cv: 2lBlEV3u802/LqonRXOccA.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 190ms - status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads/sanitized/members?api-version=2020-09-21-preview2 -- 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) - method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 - response: - body: - string: '' - headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Wed, 02 Dec 2020 23:48:53 GMT - ms-cv: Dbakzfk6b0ulL/9T4PMCYg.0 - strict-transport-security: max-age=2592000 - x-processing-time: 157ms - status: - code: 204 - message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:55 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:48:55 GMT - ms-cv: - - YHrQENAPTk+Ri0os7sylAQ.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 1280ms - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:48:56 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:48:55 GMT - ms-cv: - - xFdFXEvyoEOIkTgHgE/Ojg.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 606ms - 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 index 8d6071a0026a..3d28db82a31c 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:46:01 GMT + - Thu, 18 Mar 2021 23:53:47 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-d89e-dbb7-3a3a0d00fed0"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-f4f5-9806-113a0d00d7c4"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:46:01 GMT + - Thu, 18 Mar 2021 23:53:39 GMT ms-cv: - - i34KqPnOzEa5thfVvL5jyw.0 + - Xe8so+q9q0+cnsoZgCngIQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 138ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:46:01 GMT + - Thu, 18 Mar 2021 23:53:47 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:46:00.6357953+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:39.741996+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:46:01 GMT + - Thu, 18 Mar 2021 23:53:40 GMT ms-cv: - - QM3v0KYCTECLKousDvUrNg.0 + - UpR7V3y4WUiKrdmoLW8jeg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 283ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:46:01 GMT + - Thu, 18 Mar 2021 23:53:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-d963-dbb7-3a3a0d00fed1"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-f777-9806-113a0d00d7c6"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:46:01 GMT + - Thu, 18 Mar 2021 23:53:40 GMT ms-cv: - - g6wapJY3dEuOeLXcRUfwoQ.0 + - VUcg0H/Xi0yvWi9bJGGoGA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 143ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:46:01 GMT + - Thu, 18 Mar 2021 23:53:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:46:00.8345957+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:40.3671095+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:46:01 GMT + - Thu, 18 Mar 2021 23:53:40 GMT ms-cv: - - OabeMqdYXkKaQ5AnDSoj7w.0 + - h9otqtybSkORupgwlsyvVQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 281ms status: code: 200 message: OK @@ -181,29 +181,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 0d070e8c-b0b2-4ab1-807a-0b47a9400ae9 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 3de7ef6d-8c3a-41e9-afa1-7e01e84c7fae method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:DpcikdQ3hkGa8FPKa41f56HiE04uhuZEGaPcGVJFx1Q1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:46:02Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-d89e-dbb7-3a3a0d00fed0", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-d89e-dbb7-3a3a0d00fed0"}}}}' + body: '{"chatThread": {"id": "19:JbshZufrj8GPbL1kwGE2JkCw20RmN5BSJDRGr9E1pME1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:53:41Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-f4f5-9806-113a0d00d7c4", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a3-f4f5-9806-113a0d00d7c4"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:46:02 GMT - ms-cv: 8hWRht+5EkSnQWWkAH5K/A.0 + date: Thu, 18 Mar 2021 23:53:41 GMT + ms-cv: uThtW3/VjEeRTHe3ANhM+Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 873ms + x-processing-time: 554ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: '{"participants": "sanitized"}' headers: @@ -214,46 +214,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-01-preview5 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:46:03 GMT - ms-cv: 2G4BUv60DUqvQSF1apnTJA.0 + date: Thu, 18 Mar 2021 23:53:42 GMT + ms-cv: PaEBbPI0BkqGOPAKezCTfw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 819ms + x-processing-time: 445ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:46:03 GMT - ms-cv: jQwLQ/DAgEOFGuA1Uq02Qw.0 + date: Thu, 18 Mar 2021 23:53:42 GMT + ms-cv: 4CxRJ7DNeEOjI8qoraIhTw.0 strict-transport-security: max-age=2592000 - x-processing-time: 334ms + x-processing-time: 259ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -266,13 +266,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:46:04 GMT + - Thu, 18 Mar 2021 23:53:50 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -280,15 +280,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:46:19 GMT + - Thu, 18 Mar 2021 23:53:43 GMT ms-cv: - - v8N67i9vOEC/9jws5Swh9A.0 + - kvDFB6/PakGMDThQ7N6RbA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16442ms + - 1170ms status: code: 204 message: No Content @@ -304,13 +304,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:46:20 GMT + - Thu, 18 Mar 2021 23:53:51 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -318,15 +318,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:46:35 GMT + - Thu, 18 Mar 2021 23:53:44 GMT ms-cv: - - P694XHjNKUKSZ/BAK4cTPg.0 + - Ehb7gleXgEO75vXSK3KbXQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16036ms + - 836ms 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 b603c6c8fdb2..acd116b971b7 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:46:36 GMT + - Thu, 18 Mar 2021 23:53:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-63c8-1db7-3a3a0d0005e5"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-08da-9806-113a0d00d7cd"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:46:36 GMT + - Thu, 18 Mar 2021 23:53:44 GMT ms-cv: - - veZZsvVyqEmBJcjQqHVL3w.0 + - xLgYmxgKFkSUR963dHQjsA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 45ms + - 138ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:46:36 GMT + - Thu, 18 Mar 2021 23:53:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:46:36.2865251+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:44.8137381+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:46:36 GMT + - Thu, 18 Mar 2021 23:53:45 GMT ms-cv: - - uSqo3pSX7E6mEymf05vgmw.0 + - cDUwqEtuZUSAjavOq8c/Zw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 93ms + - 279ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:46:37 GMT + - Thu, 18 Mar 2021 23:53:53 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-64b0-1db7-3a3a0d0005e6"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-0b56-9806-113a0d00d7cf"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:46:36 GMT + - Thu, 18 Mar 2021 23:53:45 GMT ms-cv: - - ILIauNn1zkaVs4+BCxSZUg.0 + - pczdKcEifEWkUdtdjWN1LA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 139ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:46:37 GMT + - Thu, 18 Mar 2021 23:53:53 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:46:36.5055253+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:45.4571122+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:46:37 GMT + - Thu, 18 Mar 2021 23:53:45 GMT ms-cv: - - dLiJ37GpKUq+btSLOoZqRw.0 + - TLE3RGbLxkmyjUINzYvWkQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 281ms status: code: 200 message: OK @@ -181,29 +181,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 6ecd09ff-7033-41c8-9355-1dc8d2bf0b28 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 92b6c915-6ca7-4d79-bfba-a73f5c00662c method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:zJTyR9uzSM4KG300cqp6LTjj4jjZc5w6866wcaSSZ2I1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:46:37Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-63c8-1db7-3a3a0d0005e5", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-63c8-1db7-3a3a0d0005e5"}}}}' + body: '{"chatThread": {"id": "19:7Q8cK4HRnN-7iWRKdfgMNYdcs6WzaTxgD0doO6vaaI81@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:53:46Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-08da-9806-113a0d00d7cd", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-08da-9806-113a0d00d7cd"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:46:38 GMT - ms-cv: T2pToxL5f0Gv7N+g59sR6g.0 + date: Thu, 18 Mar 2021 23:53:46 GMT + ms-cv: 6yZ5pwwuvU2yxoKViNVKQw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 897ms + x-processing-time: 403ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -215,70 +215,70 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:46:38 GMT - ms-cv: GssvZhIUVkyT9x3jA/IEvg.0 + date: Thu, 18 Mar 2021 23:53:46 GMT + ms-cv: 0xvN4gJSn0CETZNNnKbj4g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 402ms + x-processing-time: 218ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:46:39 GMT - ms-cv: zzMGoGX18EuM+dVqzNUYcA.0 + date: Thu, 18 Mar 2021 23:53:46 GMT + ms-cv: q3F5Oa3K7kGJev9093KsxQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 417ms + x-processing-time: 158ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:46:39 GMT - ms-cv: 9CqT6fV8jkSHPr7V47B0gQ.0 + date: Thu, 18 Mar 2021 23:53:47 GMT + ms-cv: 4dKNTHaCIUG+c4putCCOhw.0 strict-transport-security: max-age=2592000 - x-processing-time: 320ms + x-processing-time: 138ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -291,13 +291,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:46:39 GMT + - Thu, 18 Mar 2021 23:53:55 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -305,15 +305,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:46:55 GMT + - Thu, 18 Mar 2021 23:53:47 GMT ms-cv: - - pWIGIyLG7EK0wsBM7Sv3wA.0 + - A1wyTlHx2EGQVRBJOuuZaQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16038ms + - 692ms status: code: 204 message: No Content @@ -329,13 +329,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:46:55 GMT + - Thu, 18 Mar 2021 23:53:55 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -343,15 +343,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:47:11 GMT + - Thu, 18 Mar 2021 23:53:48 GMT ms-cv: - - HxQmHxmWbk+dFbVnUy0VZw.0 + - B6dEX0bHOUuvLMmytAmIrA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16023ms + - 697ms 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 83f78d1c8d51..5d3dc9f83832 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:47:11 GMT + - Thu, 18 Mar 2021 23:53:56 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-ed9a-1db7-3a3a0d0005e8"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-1872-02c3-593a0d00549b"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:47:12 GMT + - Thu, 18 Mar 2021 23:53:48 GMT ms-cv: - - 5ZtOtGeEg0iCquyHzkQgVQ.0 + - 32PMpX7pZ0GAa1trHR61LQ.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 12ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:47:12 GMT + - Thu, 18 Mar 2021 23:53:56 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:47:11.5647541+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:48.513138+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:47:12 GMT + - Thu, 18 Mar 2021 23:53:49 GMT ms-cv: - - 4BRepLGv+UyuMYm8Bm+1bQ.0 + - iK3rXebnY0+5Cw03CDXy4Q.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 25ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:47:12 GMT + - Thu, 18 Mar 2021 23:53:57 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-ee6b-1db7-3a3a0d0005e9"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-1961-e3c7-593a0d00918d"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:47:12 GMT + - Thu, 18 Mar 2021 23:53:49 GMT ms-cv: - - tiVmr3oQf0irZQod4MB3jg.0 + - axbpYMUbVU2fN7HH7OgDrA.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 12ms + - 29ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:47:12 GMT + - Thu, 18 Mar 2021 23:53:57 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:47:11.7734486+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:48.7576184+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:47:12 GMT + - Thu, 18 Mar 2021 23:53:49 GMT ms-cv: - - ZQhXOXBPTEGKHh7qanMVIA.0 + - U6Gu/VFUZki8X8/Zi09sOA.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 93ms + - 27ms status: code: 200 message: OK @@ -181,29 +181,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 1124d9d9-2b48-41b8-b9f1-e874bc9786d3 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - fc46b577-b855-46d9-93bc-ac60f9301438 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:XRPl_HSC_BxL1gIMfUA4u2obpn75--1BXpv-ycIO0sc1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:47:13Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-ed9a-1db7-3a3a0d0005e8", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-ed9a-1db7-3a3a0d0005e8"}}}}' + body: '{"chatThread": {"id": "19:rpgY3lRnD8zIMKc-UDuH5w6k39Pr1Oj1ipatmUC7b7I1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:53:50Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-1872-02c3-593a0d00549b", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-1872-02c3-593a0d00549b"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:47:13 GMT - ms-cv: c/vhqBy8lkO3fd87XiVcYA.0 + date: Thu, 18 Mar 2021 23:53:50 GMT + ms-cv: 76L5efwIUkaz4jzBu/TieA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 895ms + x-processing-time: 576ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -215,74 +215,74 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:47:14 GMT - ms-cv: Bc/sQ+yCg0S7644v8s30IA.0 + date: Thu, 18 Mar 2021 23:53:50 GMT + ms-cv: 9XRq462BNUCOqMONB71GBw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 386ms + x-processing-time: 135ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-01-preview5 response: - body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1614642434421", + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1616111630750", "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": - "2021-03-01T23:47:14Z", "senderCommunicationIdentifier": {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-ed9a-1db7-3a3a0d0005e8", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9011-ed9a-1db7-3a3a0d0005e8"}}}' + "2021-03-18T23:53:50Z", "senderCommunicationIdentifier": {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-1872-02c3-593a0d00549b", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-1872-02c3-593a0d00549b"}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:47:14 GMT - ms-cv: iSUySknNFEOftXf2ZGhAOw.0 + date: Thu, 18 Mar 2021 23:53:50 GMT + ms-cv: SSiUtQAynkiD09BDKCzm5Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 254ms + x-processing-time: 105ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:47:15 GMT - ms-cv: XOMtEelNWUqcl+EWUncG9A.0 + date: Thu, 18 Mar 2021 23:53:50 GMT + ms-cv: ZYj/upMGTU6nyhIUkZVn6g.0 strict-transport-security: max-age=2592000 - x-processing-time: 325ms + x-processing-time: 193ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -295,13 +295,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:47:15 GMT + - Thu, 18 Mar 2021 23:53:58 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -309,15 +309,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:47:32 GMT + - Thu, 18 Mar 2021 23:53:51 GMT ms-cv: - - 9QrcVqtPdEaxf7zYces34A.0 + - JEjI2E/cm0yLWrJGQgcptg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 17099ms + - 357ms status: code: 204 message: No Content @@ -333,13 +333,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:47:32 GMT + - Thu, 18 Mar 2021 23:53:59 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -347,15 +347,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:47:48 GMT + - Thu, 18 Mar 2021 23:53:51 GMT ms-cv: - - 2NiBVP1W3EmGepIsShtR/Q.0 + - Qhxe5SVAcEqYXsLD6sc2bg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16467ms + - 784ms 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_get_properties.yaml similarity index 57% rename from sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participant.yaml rename to sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_properties.yaml index 852f382e9531..2947899f89e2 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_get_properties.yaml @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:45:24 GMT + - Thu, 18 Mar 2021 23:53:59 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-497b-1655-373a0d000069"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-25e2-edbe-a43a0d000775"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:45:24 GMT + - Thu, 18 Mar 2021 23:53:52 GMT ms-cv: - - cf7jnSO9AUuf/atBhGHi6w.0 + - VEgL4kopnU6R+RXefRVDzw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 10ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:45:24 GMT + - Thu, 18 Mar 2021 23:54:00 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:45:24.0013541+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:51.0777569+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:45:24 GMT + - Thu, 18 Mar 2021 23:53:52 GMT ms-cv: - - SMSl4Tn6akec5gh7C9JpVQ.0 + - +4bVgmbpZkCVhvoQIbk9nQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 141ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:45:24 GMT + - Thu, 18 Mar 2021 23:54:00 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-4a4b-1655-373a0d00006a"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-2717-edbe-a43a0d000776"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:45:25 GMT + - Thu, 18 Mar 2021 23:53:52 GMT ms-cv: - - +gFeapLED06g0uyqX+CGMw.0 + - RkIgX1AXuEG3pWy2yvAqdw.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 22ms + - 10ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:45:24 GMT + - Thu, 18 Mar 2021 23:54:00 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:45:24.2018736+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:52.3894104+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:45:25 GMT + - Thu, 18 Mar 2021 23:53:52 GMT ms-cv: - - yNDLHo+7706hD4WhTXHWYg.0 + - bY+tDo+qJ0aug3iV/DK48A.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 89ms + - 129ms status: code: 200 message: OK @@ -181,79 +181,78 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 8ad20314-7443-494f-88ae-97e051c9f8ae + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - dc6767bf-0c38-41bf-9b2b-39dee67dbbaf method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:IL9g-Fi0oBkYpaQ7odYqUdDRkiCecihVM3MC4DAxkLw1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:45:25Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-497b-1655-373a0d000069", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9010-497b-1655-373a0d000069"}}}}' + body: '{"chatThread": {"id": "19:m-qgGTbVIXT5xbJN9g9JxCcsAQr0bFBKkheCPzcKn781@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:53:53Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-25e2-edbe-a43a0d000775", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-25e2-edbe-a43a0d000775"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:45:25 GMT - ms-cv: +KMMckzi+kGQbXpzUGpRSg.0 + date: Thu, 18 Mar 2021 23:53:54 GMT + ms-cv: h/KhGr5m4Ei7JCClVxMh3g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 827ms + x-processing-time: 763ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: - body: '{"participants": "sanitized"}' + body: null headers: Accept: - application/json - Content-Length: - - '235' - Content-Type: - - application/json User-Agent: - - 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=2021-01-27-preview4 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: - body: '{}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-03-18T23:53:53Z", + "createdByCommunicationIdentifier": {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-25e2-edbe-a43a0d000775", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-25e2-edbe-a43a0d000775"}}}' headers: - api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 + api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, + 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:45:26 GMT - ms-cv: D7fyg3OtakOh+qw78BQwQg.0 + date: Thu, 18 Mar 2021 23:53:54 GMT + ms-cv: Bt3tkke/IkCJvD7DVS04gg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 927ms + x-processing-time: 102ms status: - code: 201 - message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 + code: 200 + message: OK + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:45:27 GMT - ms-cv: Sr8t56jEuk20xhYeBluufQ.0 + date: Thu, 18 Mar 2021 23:53:54 GMT + ms-cv: fZjk5XblsUmMeDaVwgXz7w.0 strict-transport-security: max-age=2592000 - x-processing-time: 298ms + x-processing-time: 142ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -266,13 +265,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:45:27 GMT + - Thu, 18 Mar 2021 23:54:02 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -280,15 +279,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:45:43 GMT + - Thu, 18 Mar 2021 23:53:54 GMT ms-cv: - - HAQTYeGExES7OfJI3IFSWg.0 + - o4zTakXH9UqWiMZ+Xg9HZA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16460ms + - 814ms status: code: 204 message: No Content @@ -304,13 +303,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:45:43 GMT + - Thu, 18 Mar 2021 23:54:03 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -318,15 +317,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:46:00 GMT + - Thu, 18 Mar 2021 23:53:55 GMT ms-cv: - - nU9tislMrEyrHckqZQbEMg.0 + - riruImUinU+RLl6ejyjmWg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16976ms + - 561ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_members.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_members.yaml deleted file mode 100644 index f1e426bf4bba..000000000000 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_members.yaml +++ /dev/null @@ -1,265 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:49:06 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:49:05 GMT - ms-cv: - - dVJTiFunz0692b+BLd/Txw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 203ms - 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: - - Wed, 02 Dec 2020 23:49:07 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:49:05.6239622+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:06 GMT - ms-cv: - - 9KVao4PELUam5sxXOx6LGg.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 305ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:49:08 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:49:06 GMT - ms-cv: - - C97FAAqlF0q7RZ7ZosGqsg.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 205ms - status: - code: 200 - message: OK -- request: - body: '{"topic": "test topic", "members": "sanitized"}' - headers: - Accept: - - application/json - Content-Length: - - '201' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 - response: - body: '{"multipleStatus": "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:07 GMT - ms-cv: VlihoaHP3kifjaK72OVIdA.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 238ms - status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 -- 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) - method: GET - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/members?api-version=2020-09-21-preview2 - response: - body: '{"value": "sanitized"}' - headers: - api-supported-versions: 2020-09-21-preview2 - content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:07 GMT - ms-cv: gXnnGT3kfE+HqOImEXpFTw.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 78ms - status: - code: 200 - message: OK - url: https://sanitized.communication.azure.com/chat/threads/sanitized/members?api-version=2020-09-21-preview2 -- 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) - method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 - response: - body: - string: '' - headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Wed, 02 Dec 2020 23:49:07 GMT - ms-cv: 6nEC/Dqce0Ku7IWhVpzyiA.0 - strict-transport-security: max-age=2592000 - x-processing-time: 87ms - status: - code: 204 - message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:49:09 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:49:09 GMT - ms-cv: - - q7JNwnBvmkaTjy8XQON7Tg.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 1338ms - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:49:10 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:49:09 GMT - ms-cv: - - jL2BVAVOeUq+me1QwUP64Q.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 453ms - 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_messages.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml index e667a80d0ee1..d4603efd5e2b 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:47:48 GMT + - Thu, 18 Mar 2021 23:54:03 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9012-7d84-dbb7-3a3a0d00fedd"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-3365-28c5-593a0d00170a"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:47:49 GMT + - Thu, 18 Mar 2021 23:53:55 GMT ms-cv: - - F0Vu+8b2v0e5qoukthEHIA.0 + - XN/xO4oOKEyt5ZiU+bG8sw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 12ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:47:49 GMT + - Thu, 18 Mar 2021 23:54:03 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:47:48.3924433+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:55.4003704+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:47:49 GMT + - Thu, 18 Mar 2021 23:53:55 GMT ms-cv: - - ij1Q40yGS0iUqHFIS1155w.0 + - 8uTjet6p70KkH+b9s4pUkw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 26ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:47:49 GMT + - Thu, 18 Mar 2021 23:54:03 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9012-7e50-dbb7-3a3a0d00fede"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-33f9-28c5-593a0d00170b"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:47:49 GMT + - Thu, 18 Mar 2021 23:53:56 GMT ms-cv: - - JVEVWMCMtEu66IB4orn2Uw.0 + - fmlK6+35t0u4xRf3eG7CMQ.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 10ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:47:49 GMT + - Thu, 18 Mar 2021 23:54:03 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:47:48.5934229+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:53:55.5443622+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:47:49 GMT + - Thu, 18 Mar 2021 23:53:56 GMT ms-cv: - - Y2XIQDVzvEmf7VdZT7hpjw.0 + - vVhmLKWx10ClO/Jsdt8cvQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 88ms + - 26ms status: code: 200 message: OK @@ -177,33 +177,33 @@ interactions: Accept: - application/json Content-Length: - - '257' + - '258' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 14bd6e7a-b6eb-4e10-a0cc-d2573a68aceb + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 869f98d0-ba87-4213-bfcc-5643c33b54fc method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:w9yEd4WpzRccXmpybFLwaSzbCWvst71zHbHCOBEflzk1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:47:50Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9012-7d84-dbb7-3a3a0d00fedd", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9012-7d84-dbb7-3a3a0d00fedd"}}}}' + body: '{"chatThread": {"id": "19:5Rn7_b8hFlCsUNrrG9f55H2RgZVyBrVsROvw4SBrCMo1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:53:57Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-3365-28c5-593a0d00170a", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-3365-28c5-593a0d00170a"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:47:50 GMT - ms-cv: m0YFH6okYU+pnVxLb1kGuQ.0 + date: Thu, 18 Mar 2021 23:53:57 GMT + ms-cv: YfQa8UBEI0ejKefDYdyC9Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 925ms + x-processing-time: 953ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -215,143 +215,143 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:47:52 GMT - ms-cv: j2ZwmEyAeUeFea/9tOit3g.0 + date: Thu, 18 Mar 2021 23:53:58 GMT + ms-cv: SzFXWFKWfkuQtfgeku536Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1051ms + x-processing-time: 238ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?maxPageSize=1&api-version=2021-03-01-preview5 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:47:52 GMT - ms-cv: LTWxkGgX90aufqBeB/7dpQ.0 + date: Thu, 18 Mar 2021 23:53:58 GMT + ms-cv: M16PGY8CiUyr8rJ6MZ1Klw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 305ms + x-processing-time: 120ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?maxPageSize=1&api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?maxPageSize=1&api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + 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=2021-03-01-preview5 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:47:53 GMT - ms-cv: +VsCZA5nOUSxhdnmWoQdbA.0 + date: Thu, 18 Mar 2021 23:53:58 GMT + ms-cv: 6A+lUIa6gUu03bA+WMMCpw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 370ms + x-processing-time: 164ms status: code: 200 message: OK - 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=2021-01-27-preview4 + 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=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + 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=2021-03-01-preview5 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:47:54 GMT - ms-cv: mkM0hnkEj0SIQAjaLew8Eg.0 + date: Thu, 18 Mar 2021 23:53:58 GMT + ms-cv: U8HVKdmTTEeFqGHTld7u/A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 829ms + x-processing-time: 182ms status: code: 200 message: OK - 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=2021-01-27-preview4 + 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=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + 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=2021-03-01-preview5 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:47:54 GMT - ms-cv: UXPMeVcFeUqzWB3k9pyr4Q.0 + date: Thu, 18 Mar 2021 23:53:58 GMT + ms-cv: a+IBAPSwS0yJlq9nGQXR0g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 406ms + x-processing-time: 163ms status: code: 200 message: OK - 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=2021-01-27-preview4 + 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=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:47:54 GMT - ms-cv: q9EWcPIMukS7JCT3QhlN/g.0 + date: Thu, 18 Mar 2021 23:53:59 GMT + ms-cv: nfSMyt/PpESlNqovOxbYig.0 strict-transport-security: max-age=2592000 - x-processing-time: 336ms + x-processing-time: 241ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -364,13 +364,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:47:54 GMT + - Thu, 18 Mar 2021 23:54:07 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -378,15 +378,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:48:10 GMT + - Thu, 18 Mar 2021 23:53:59 GMT ms-cv: - - 2PkIgGANyEm2tFYBleZ5/g.0 + - N0dwd0hlqkyVwPoqOEHKDA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16148ms + - 673ms status: code: 204 message: No Content @@ -402,13 +402,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:48:10 GMT + - Thu, 18 Mar 2021 23:54:07 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -416,15 +416,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:48:26 GMT + - Thu, 18 Mar 2021 23:54:00 GMT ms-cv: - - Qz1EIJzFwE+S0kIi2ldARw.0 + - UALkjYFpRkWjX3XTu/7FkQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16258ms + - 348ms 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 83a6c0f7f91a..d858ff3ff263 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:48:27 GMT + - Thu, 18 Mar 2021 23:54:08 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-1420-9c58-373a0d00fa82"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-45a7-7f07-113a0d00dad5"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:48:27 GMT + - Thu, 18 Mar 2021 23:54:00 GMT ms-cv: - - Sk8GCihPOEOsUhJcDc4zhQ.0 + - 8mkc3mNTc0iksNM7SJsrcA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 28ms + - 138ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:48:27 GMT + - Thu, 18 Mar 2021 23:54:08 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:48:26.994978+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:00.3825211+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:48:27 GMT + - Thu, 18 Mar 2021 23:54:00 GMT ms-cv: - - wzcC27Zmb0e5mPu7SNLyZw.0 + - PYBoWVH6c0+oCKaIAEwgqQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 118ms + - 285ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:48:27 GMT + - Thu, 18 Mar 2021 23:54:08 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-152a-9c58-373a0d00fa83"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-481a-7f07-113a0d00dad6"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:48:27 GMT + - Thu, 18 Mar 2021 23:54:00 GMT ms-cv: - - vYdzb+4ELEKscpDnJccX+w.0 + - J/k1sHaSwU+PK3HEVQn6sQ.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 18ms + - 143ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:48:27 GMT + - Thu, 18 Mar 2021 23:54:09 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:48:27.2285036+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:01.0296587+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:48:28 GMT + - Thu, 18 Mar 2021 23:54:01 GMT ms-cv: - - Oqxz5sOBbEaIaq75nG5L5g.0 + - HkZt2rnhF0+952Exk94HJQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 285ms status: code: 200 message: OK @@ -177,33 +177,33 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '257' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 6ce29f0d-8e55-47a1-8635-65587293013a + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 3268bb5e-d5f3-4f75-9cf4-1252c22226f7 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:9gKAaRpIqH7mxjXuFZQgN-oi5e_BCpygpN6h2OLJavA1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:48:28Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-1420-9c58-373a0d00fa82", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-1420-9c58-373a0d00fa82"}}}}' + body: '{"chatThread": {"id": "19:AC5siD0o8uas0wzBK8I7hag1GHoeQwAo7ayiUlPFGXQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:54:02Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-45a7-7f07-113a0d00dad5", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-45a7-7f07-113a0d00dad5"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:48:28 GMT - ms-cv: Tu3rFdlztUOuEPL/tPIkBQ.0 + date: Thu, 18 Mar 2021 23:54:02 GMT + ms-cv: 2SDCtb4K7EeAsESSq8btag.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 870ms + x-processing-time: 800ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: '{"participants": "sanitized"}' headers: @@ -214,69 +214,69 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-01-preview5 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:48:29 GMT - ms-cv: yYKfE9zJ/U2r4CkXQA5Ctg.0 + date: Thu, 18 Mar 2021 23:54:02 GMT + ms-cv: X3xhbNJJu0+3xCZZMxbsUA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 862ms + x-processing-time: 317ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2021-03-01-preview5 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:48:30 GMT - ms-cv: ak1/pWOl1kiiHZcqRJvcvA.0 + date: Thu, 18 Mar 2021 23:54:03 GMT + ms-cv: 2H0R9gM3k0SRuEGz8TXWMA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 271ms + x-processing-time: 105ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:48:29 GMT - ms-cv: cz/d0llIt0iHDeOpkIbjhA.0 + date: Thu, 18 Mar 2021 23:54:03 GMT + ms-cv: I/v8R8+ctEuWTVAUo5Td+g.0 strict-transport-security: max-age=2592000 - x-processing-time: 318ms + x-processing-time: 238ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -289,13 +289,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:48:30 GMT + - Thu, 18 Mar 2021 23:54:11 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -303,15 +303,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:48:46 GMT + - Thu, 18 Mar 2021 23:54:04 GMT ms-cv: - - +SiPb5xiFUGPa+TUEaAZvA.0 + - 1GiuxMmA+EO5nUrly1ld5A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16349ms + - 1067ms status: code: 204 message: No Content @@ -327,13 +327,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:48:47 GMT + - Thu, 18 Mar 2021 23:54:12 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -341,15 +341,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:49:02 GMT + - Thu, 18 Mar 2021 23:54:05 GMT ms-cv: - - 1fvAII+/a0Ghnigg7wQ5tg.0 + - iTiJB9vEQkCR4AOuz3Nqxg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 15991ms + - 853ms 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 ab75b1249de6..9f78a923ff3d 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:49:03 GMT + - Thu, 18 Mar 2021 23:54:13 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-a052-1db7-3a3a0d0005f3"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-5b36-740a-113a0d004e2c"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:49:03 GMT + - Thu, 18 Mar 2021 23:54:06 GMT ms-cv: - - ZZs42DpX606fzqytJFwQIg.0 + - Y5aFZIOQXkGrHkffFDC/0A.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 68ms + - 140ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:49:03 GMT + - Thu, 18 Mar 2021 23:54:14 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:49:02.8352134+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:05.8984337+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:49:03 GMT + - Thu, 18 Mar 2021 23:54:06 GMT ms-cv: - - RlOnT+pRhEixP5tJxmRFfw.0 + - ROA3ifhjBUKVNVk1A4xczw.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 94ms + - 281ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:49:03 GMT + - Thu, 18 Mar 2021 23:54:14 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-a128-1db7-3a3a0d0005f4"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-5d9f-740a-113a0d004e2d"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:49:03 GMT + - Thu, 18 Mar 2021 23:54:07 GMT ms-cv: - - i03oQo2kRUGwBk+DUO0z/Q.0 + - ZI8egGb9LkefFp7uC/UK6A.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 33ms + - 139ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:49:03 GMT + - Thu, 18 Mar 2021 23:54:14 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:49:02.0488806+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:06.5237742+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:49:03 GMT + - Thu, 18 Mar 2021 23:54:07 GMT ms-cv: - - ZI6JHC5hYU6T00E/SmbHKw.0 + - Vx8LbuGKbEi4CHtW6UgP+g.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 93ms + - 283ms status: code: 200 message: OK @@ -181,29 +181,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 45c2f1f1-132e-4e78-b2ea-fd904da06a32 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - e0c6054f-3381-4043-be6b-9b1177456e90 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:rp_7aHcGKxhAjRWriRRbmd2nN_X9R6spPrZsW1JUfos1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:49:04Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-a052-1db7-3a3a0d0005f3", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9013-a052-1db7-3a3a0d0005f3"}}}}' + body: '{"chatThread": {"id": "19:3zX5Qs8-EvHtBxpQ1_FNOMdxYmisePMLtVAr_Ua8ZGc1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:54:07Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-5b36-740a-113a0d004e2c", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-5b36-740a-113a0d004e2c"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:49:04 GMT - ms-cv: gz5hZyc8p0uiJjEVSPo5ZA.0 + date: Thu, 18 Mar 2021 23:54:08 GMT + ms-cv: 7YAxutRhKkOwMy3h8agETQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 890ms + x-processing-time: 1002ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -215,24 +215,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:49:04 GMT - ms-cv: 5Ko9AJvGBUuhfINdaonT9Q.0 + date: Thu, 18 Mar 2021 23:54:08 GMT + ms-cv: E3MabIKKdkeL83Mhbsxi3w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 389ms + x-processing-time: 157ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 - request: body: '{"chatMessageId": "sanitized"}' headers: @@ -243,9 +243,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 response: body: string: '' @@ -253,38 +253,38 @@ interactions: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-length: '0' - date: Mon, 01 Mar 2021 23:49:05 GMT - ms-cv: sGS+0k5pjU+B2C8BaNpUtw.0 + date: Thu, 18 Mar 2021 23:54:08 GMT + ms-cv: /f+as9S4g0i97mSfJTyBvw.0 strict-transport-security: max-age=2592000 - x-processing-time: 493ms + x-processing-time: 480ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:49:05 GMT - ms-cv: HCQAXxQnpESjgDyuOQhS0g.0 + date: Thu, 18 Mar 2021 23:54:08 GMT + ms-cv: XePDc8EfYEGzrzbdsUFtuw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 278ms + x-processing-time: 95ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -296,24 +296,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:49:06 GMT - ms-cv: mSLq6YDFyEOnHsAOXmLUyw.0 + date: Thu, 18 Mar 2021 23:54:08 GMT + ms-cv: P8sRlaX1hUyMXqFr83cGrg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 393ms + x-processing-time: 153ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 - request: body: '{"chatMessageId": "sanitized"}' headers: @@ -324,9 +324,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 response: body: string: '' @@ -334,38 +334,38 @@ interactions: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-length: '0' - date: Mon, 01 Mar 2021 23:49:06 GMT - ms-cv: lnGDyOhA/UygzyIwT1wd0w.0 + date: Thu, 18 Mar 2021 23:54:09 GMT + ms-cv: AbP8aQ2hPkq4UQ6qfteFLQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 495ms + x-processing-time: 486ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:49:07 GMT - ms-cv: Y11022tp3UG30cnzEVrRdg.0 + date: Thu, 18 Mar 2021 23:54:09 GMT + ms-cv: ahT6ZvueO0ygxUq+ZvGa6g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 252ms + x-processing-time: 107ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 - request: body: '{"content": "content", "senderDisplayName": "sender_display_name", "type": "text"}' @@ -377,24 +377,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:49:08 GMT - ms-cv: hYupyjsj/EWDOoNFvW2LHw.0 + date: Thu, 18 Mar 2021 23:54:10 GMT + ms-cv: N3FEdbw4HU6fZlgflTVyvg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 401ms + x-processing-time: 125ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 - request: body: '{"chatMessageId": "sanitized"}' headers: @@ -405,9 +405,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 response: body: string: '' @@ -415,85 +415,85 @@ interactions: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-length: '0' - date: Mon, 01 Mar 2021 23:49:08 GMT - ms-cv: A8Pb0GcFBkm1/p4TJQeRMw.0 + date: Thu, 18 Mar 2021 23:54:10 GMT + ms-cv: 6Y3tvMdRCUS5Bqi107e52A.0 strict-transport-security: max-age=2592000 - x-processing-time: 462ms + x-processing-time: 176ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:49:08 GMT - ms-cv: p/mC0h/aU0eERqpJgyG+OQ.0 + date: Thu, 18 Mar 2021 23:54:10 GMT + ms-cv: +dfnBO/mHUeS9mQXNOz3dw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 254ms + x-processing-time: 136ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2021-03-01-preview5 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:49:09 GMT - ms-cv: ZnON+koGkUinwYbO1z1voQ.0 + date: Thu, 18 Mar 2021 23:54:10 GMT + ms-cv: DEfU3FMUbk+r83Cj8BXVsQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 250ms + x-processing-time: 105ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:49:09 GMT - ms-cv: RMkRra/KMUuKXvHFRAFWpw.0 + date: Thu, 18 Mar 2021 23:54:11 GMT + ms-cv: 2ViOZgt12USZE4fEHhgByQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 322ms + x-processing-time: 249ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -506,13 +506,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:49:10 GMT + - Thu, 18 Mar 2021 23:54:19 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -520,15 +520,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:49:26 GMT + - Thu, 18 Mar 2021 23:54:12 GMT ms-cv: - - HpZg2nvrR0ibU4j9TyX5yw.0 + - wMIi0AA4+UCtHlhJ4cWZyg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16333ms + - 868ms status: code: 204 message: No Content @@ -544,13 +544,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:49:26 GMT + - Thu, 18 Mar 2021 23:54:20 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -558,15 +558,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:49:42 GMT + - Thu, 18 Mar 2021 23:54:13 GMT ms-cv: - - 7Pc4FdAjX0mbXkl5frpwcA.0 + - FlioFPaWOEqVeC4Vz8iZxQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16058ms + - 888ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_member.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_member.yaml deleted file mode 100644 index 1447c3a49e9f..000000000000 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_member.yaml +++ /dev/null @@ -1,291 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:49:25 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:49:24 GMT - ms-cv: - - YJYvHDmC/0ezgby3lU1lrA.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 206ms - 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: - - Wed, 02 Dec 2020 23:49:26 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:49:24.0593806+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:24 GMT - ms-cv: - - aqtNIBpOdkGG6qI1t5yU/g.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 277ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:49:26 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:49:24 GMT - ms-cv: - - DXiJDIIgtE60EPy4ufTHMg.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 206ms - status: - code: 200 - message: OK -- request: - body: '{"topic": "test topic", "members": "sanitized"}' - headers: - Accept: - - application/json - Content-Length: - - '201' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 - response: - body: '{"multipleStatus": "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:25 GMT - ms-cv: qPl7MlCK4k+eo1In/Q0OOA.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 170ms - status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 -- request: - body: '{"members": "sanitized"}' - headers: - Accept: - - application/json - Content-Length: - - '178' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/members?api-version=2020-09-21-preview2 - response: - body: '{"multipleStatus": "sanitized"}' - headers: - api-supported-versions: 2020-09-21-preview2 - content-type: application/json; charset=utf-8 - date: Wed, 02 Dec 2020 23:49:25 GMT - ms-cv: /UlkNEp38kuTIe5bU+TEuQ.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 229ms - status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads/sanitized/members?api-version=2020-09-21-preview2 -- 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) - method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized/members/8:acs:bff431b2-eb28-43ab-b2fc-546ea8974212_00000006-c5bd-f8ce-b218-1f3a0d000056?api-version=2020-09-21-preview2 - response: - body: - string: '' - headers: - api-supported-versions: 2020-09-21-preview2 - date: Wed, 02 Dec 2020 23:49:26 GMT - ms-cv: wBSuuGS4lke2LNHqYn9z3w.0 - strict-transport-security: max-age=2592000 - x-processing-time: 176ms - status: - code: 204 - message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized/members/8:acs:bff431b2-eb28-43ab-b2fc-546ea8974212_00000006-c5bd-f8ce-b218-1f3a0d000056?api-version=2020-09-21-preview2 -- 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) - method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 - response: - body: - string: '' - headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Wed, 02 Dec 2020 23:49:26 GMT - ms-cv: dxTC8kYye0GT8etpOLQhiQ.0 - strict-transport-security: max-age=2592000 - x-processing-time: 78ms - status: - code: 204 - message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:49:28 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:49:27 GMT - ms-cv: - - 25aKS3oJ+Uu0r6xsb8Lp1w.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 1191ms - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:49:29 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:49:28 GMT - ms-cv: - - LTfyQMs/ak+powoP2o1rqw.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 766ms - 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_remove_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml index 6302f92eb627..cbe34e514470 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:49:42 GMT + - Thu, 18 Mar 2021 23:54:21 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-3a65-b0b7-3a3a0d00fe1b"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-791a-02c3-593a0d00549f"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:49:42 GMT + - Thu, 18 Mar 2021 23:54:13 GMT ms-cv: - - NELhiRGK10qeYQJoWyKinQ.0 + - P4Q46hhNRUqB6W/Tse7A+g.0 request-context: - appId= strict-transport-security: @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:49:42 GMT + - Thu, 18 Mar 2021 23:54:21 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:49:42.2798242+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:13.243987+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:49:42 GMT + - Thu, 18 Mar 2021 23:54:13 GMT ms-cv: - - zg0jXt8JGUSx/1mWVei7Aw.0 + - AVzIHEtCpE6T5AAW9xTuIA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 96ms + - 26ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:49:43 GMT + - Thu, 18 Mar 2021 23:54:21 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-3b29-b0b7-3a3a0d00fe1c"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-799f-02c3-593a0d0054a0"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:49:43 GMT + - Thu, 18 Mar 2021 23:54:13 GMT ms-cv: - - pncZOuLhWUaWgd3spui8Lg.0 + - VLZn5c83YUWp+bKFL2Dtzw.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 12ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:49:43 GMT + - Thu, 18 Mar 2021 23:54:21 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:49:42.4831942+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:13.4662511+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:49:43 GMT + - Thu, 18 Mar 2021 23:54:13 GMT ms-cv: - - UHZF14o2eU6eX9KVquJiBw.0 + - 6qciHYrv6EKb+iCWu3yIlQ.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 95ms + - 25ms status: code: 200 message: OK @@ -181,29 +181,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 38a56f20-a227-4f16-bd45-af8cd845f384 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - c868c729-a51c-482d-8490-8c8da0b9c848 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:Zdt7w9S1Dlrn_yHy2vpaWv5DzppECsDWzRF9QRJwzX81@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:49:43Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-3a65-b0b7-3a3a0d00fe1b", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-3a65-b0b7-3a3a0d00fe1b"}}}}' + body: '{"chatThread": {"id": "19:cmDT7hppGYsqk4rOMgX8CBUL4UABfJ6FeRX2ETg_wuo1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:54:14Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-791a-02c3-593a0d00549f", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-791a-02c3-593a0d00549f"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:49:44 GMT - ms-cv: DqCdBem3L0ebVuHrMjGQwg.0 + date: Thu, 18 Mar 2021 23:54:14 GMT + ms-cv: gdK9qVOiiE2SxoXJdtzNvA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 887ms + x-processing-time: 837ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: '{"participants": "sanitized"}' headers: @@ -214,25 +214,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-01-preview5 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:49:44 GMT - ms-cv: tEc+j5z7BEGF9INTIW8TaQ.0 + date: Thu, 18 Mar 2021 23:54:15 GMT + ms-cv: 6tVk/0YHiEaQ2yYuIaR1Gg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 888ms + x-processing-time: 259ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:add?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-01-preview5 - request: - body: '{"communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-3b29-b0b7-3a3a0d00fe1c"}}' + body: '{"communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-799f-02c3-593a0d0054a0"}}' headers: Accept: - application/json @@ -241,45 +241,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:remove?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:49:45 GMT - ms-cv: tfZShi2DY0Wv81RqpdSi+Q.0 + date: Thu, 18 Mar 2021 23:54:15 GMT + ms-cv: hNn5Yz6JwEyPQ4KWIbaTrA.0 strict-transport-security: max-age=2592000 - x-processing-time: 539ms + x-processing-time: 208ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/participants/:remove?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:49:46 GMT - ms-cv: TSZsKpQ+BUi38+Pox9pV5w.0 + date: Thu, 18 Mar 2021 23:54:15 GMT + ms-cv: 2qKPlUb6EUWZdElni5RPbA.0 strict-transport-security: max-age=2592000 - x-processing-time: 332ms + x-processing-time: 237ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -292,13 +292,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:49:46 GMT + - Thu, 18 Mar 2021 23:54:23 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -306,15 +306,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:50:02 GMT + - Thu, 18 Mar 2021 23:54:16 GMT ms-cv: - - jDPN04guD0GCED0YqrOY/A.0 + - TFQb/TnGsU64mqLEnXWu1A.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16986ms + - 658ms status: code: 204 message: No Content @@ -330,13 +330,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:50:03 GMT + - Thu, 18 Mar 2021 23:54:24 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -344,15 +344,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:50:19 GMT + - Thu, 18 Mar 2021 23:54:16 GMT ms-cv: - - JJQcAJVTLUeKpdRY4V/nNQ.0 + - iNvTNx8YFkKGsehfrmCSUQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16148ms + - 500ms 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 a2d2549b766b..2b652c5b9518 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:50:19 GMT + - Thu, 18 Mar 2021 23:54:25 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-cb1c-1db7-3a3a0d0005fc"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-8795-570c-113a0d002825"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:50:19 GMT + - Thu, 18 Mar 2021 23:54:17 GMT ms-cv: - - 7oGBAXRiC0GPOWGR6h4yVg.0 + - Je9OHJcYxUOelUpXcRiICg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 21ms + - 138ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:50:20 GMT + - Thu, 18 Mar 2021 23:54:25 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:50:19.3299596+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:17.2611297+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:50:19 GMT + - Thu, 18 Mar 2021 23:54:17 GMT ms-cv: - - GbUvgr2LmUO0z5I+2po2cg.0 + - 6+ZqtIjfuUmAT4RNNQnNCg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 98ms + - 280ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:50:20 GMT + - Thu, 18 Mar 2021 23:54:25 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-cbdf-1db7-3a3a0d0005fd"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-8a06-570c-113a0d002826"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:50:19 GMT + - Thu, 18 Mar 2021 23:54:17 GMT ms-cv: - - k1Y8FFj7+EWR/AnABsC9zg.0 + - OUlKL8NAZ0Gvpv9gpm+CgQ.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 139ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:50:20 GMT + - Thu, 18 Mar 2021 23:54:26 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:50:19.5176972+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:17.8796242+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:50:19 GMT + - Thu, 18 Mar 2021 23:54:18 GMT ms-cv: - - tz5RqQNCpkyS/I8jgC0wbQ.0 + - wXuOQkYH60uspey9fh5pbg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 278ms status: code: 200 message: OK @@ -181,29 +181,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 8e83b285-400b-4332-9d93-f5dd777ae4d2 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 0d738af9-569f-4b92-823d-468772a80650 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:JcCT-ldDxH_7I04HomqxPtxVAjHoS-sRoqdWgo4zX0Q1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:50:20Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-cb1c-1db7-3a3a0d0005fc", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9014-cb1c-1db7-3a3a0d0005fc"}}}}' + body: '{"chatThread": {"id": "19:Krav-zqQlloSFj8cWxHjIeHAHMbh812mZI4FM6iAwRg1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:54:19Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-8795-570c-113a0d002825", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-8795-570c-113a0d002825"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:50:21 GMT - ms-cv: JxKvjXTWs0WwFPgc2C/X5g.0 + date: Thu, 18 Mar 2021 23:54:18 GMT + ms-cv: ICHjVnXnvUyiLFDbGiV2eg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 915ms + x-processing-time: 896ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -215,47 +215,47 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:50:21 GMT - ms-cv: tGYBKid4ik+Z6zjowcDnIw.0 + date: Thu, 18 Mar 2021 23:54:20 GMT + ms-cv: fr6QDPphDEa4wwQYPXd4Tw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 388ms + x-processing-time: 207ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:50:22 GMT - ms-cv: n8p5gwq8ukK2lHAiyksX5w.0 + date: Thu, 18 Mar 2021 23:54:20 GMT + ms-cv: sCTRYaEBNEmUjTPZnWemSA.0 strict-transport-security: max-age=2592000 - x-processing-time: 338ms + x-processing-time: 251ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -268,13 +268,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:50:22 GMT + - Thu, 18 Mar 2021 23:54:28 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -282,15 +282,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:50:38 GMT + - Thu, 18 Mar 2021 23:54:20 GMT ms-cv: - - 2f7eceQwnkK4rl8oZsnnGQ.0 + - dvQbAw9VXUm0S0dgE0T8LA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16775ms + - 595ms status: code: 204 message: No Content @@ -306,13 +306,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:50:39 GMT + - Thu, 18 Mar 2021 23:54:28 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -320,15 +320,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:50:55 GMT + - Thu, 18 Mar 2021 23:54:21 GMT ms-cv: - - eJdVkb3NuE29w7MuX3iv/g.0 + - KXohZtdz4kiMtghE/VXgQw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16159ms + - 850ms 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 755f854c27c2..0c3141b60bbe 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:50:55 GMT + - Thu, 18 Mar 2021 23:54:29 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-562e-9c58-373a0d00fa89"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-991f-edbe-a43a0d000778"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:50:55 GMT + - Thu, 18 Mar 2021 23:54:21 GMT ms-cv: - - R/YTjstVjE+yIqhXFdnjlw.0 + - nTTqoSFLrEOhweckiG83cw.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 14ms + - 11ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:50:55 GMT + - Thu, 18 Mar 2021 23:54:29 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:50:54.9263986+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:21.5669869+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:50:55 GMT + - Thu, 18 Mar 2021 23:54:21 GMT ms-cv: - - goVuj1jb30u9fLLpKe/4Rw.0 + - wDlRsZNhSUu6G59gJgujlQ.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 90ms + - 132ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:50:55 GMT + - Thu, 18 Mar 2021 23:54:30 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-56f2-9c58-373a0d00fa8a"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-9a3d-edbe-a43a0d000779"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:50:55 GMT + - Thu, 18 Mar 2021 23:54:21 GMT ms-cv: - - ZgTZ7Gz+LkK6TTj0F5RcFA.0 + - U4pUl493w06mpJ7pSlXb+g.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 16ms + - 10ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:50:55 GMT + - Thu, 18 Mar 2021 23:54:30 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:50:55.1442058+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:21.8557794+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:50:55 GMT + - Thu, 18 Mar 2021 23:54:22 GMT ms-cv: - - zw36/4KUW0u7NQ56Q8FeWA.0 + - qlGhP/9z9U6aV//KqMKa0w.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 92ms + - 130ms status: code: 200 message: OK @@ -181,29 +181,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - d6955177-c78b-459b-b7e8-81d6b5330116 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - c7d4160c-a649-48f5-83f6-f0a053903a9f method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:txDI0D40meJYj4Y9ibm1M6qw-x-Aey_V6YQG-upIW5o1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:50:56Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-562e-9c58-373a0d00fa89", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-562e-9c58-373a0d00fa89"}}}}' + body: '{"chatThread": {"id": "19:fGYlsVPh7a6N5c_eSGtdylD0e3kN4xJqjriU5AXs2VA1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:54:23Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-991f-edbe-a43a0d000778", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-991f-edbe-a43a0d000778"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:50:56 GMT - ms-cv: zQ7N7d1tPkeMNPmA8HmRwA.0 + date: Thu, 18 Mar 2021 23:54:23 GMT + ms-cv: /8Z6nGT0XUGuhzofhiv4eg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 886ms + x-processing-time: 737ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -215,24 +215,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:50:57 GMT - ms-cv: 9bSaHtGmb0+4tANly4hwTw.0 + date: Thu, 18 Mar 2021 23:54:24 GMT + ms-cv: iFyqvkQnBEChL1yyUW1/8g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 379ms + x-processing-time: 142ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 - request: body: '{"chatMessageId": "sanitized"}' headers: @@ -243,9 +243,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 response: body: string: '' @@ -253,37 +253,37 @@ interactions: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-length: '0' - date: Mon, 01 Mar 2021 23:50:57 GMT - ms-cv: rZAPg7w090+cxNIC77q+2A.0 + date: Thu, 18 Mar 2021 23:54:24 GMT + ms-cv: TwtjjM+cq0+fsvxm+x1cow.0 strict-transport-security: max-age=2592000 - x-processing-time: 485ms + x-processing-time: 185ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/readReceipts?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:50:57 GMT - ms-cv: l+Tbt+erGk2EN1pZX8GDyA.0 + date: Thu, 18 Mar 2021 23:54:24 GMT + ms-cv: kyBAkQujkkeHPtDLIpO6tA.0 strict-transport-security: max-age=2592000 - x-processing-time: 321ms + x-processing-time: 225ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -296,13 +296,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:50:58 GMT + - Thu, 18 Mar 2021 23:54:32 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -310,15 +310,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:51:14 GMT + - Thu, 18 Mar 2021 23:54:24 GMT ms-cv: - - EyPQnRiNv0K9Jg7vzYs0ag.0 + - grafGQAV5UKVTSgs1UGWXA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16560ms + - 775ms status: code: 204 message: No Content @@ -334,13 +334,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:51:15 GMT + - Thu, 18 Mar 2021 23:54:33 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -348,15 +348,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:51:31 GMT + - Thu, 18 Mar 2021 23:54:25 GMT ms-cv: - - /kqTZRkM3E2wZ4RD7+b7Hg.0 + - DQgcxTZUh0Ct/dzx0arJeA.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16585ms + - 822ms 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 d28766af7de9..39a48806ad71 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:51:31 GMT + - Thu, 18 Mar 2021 23:54:34 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-e497-9c58-373a0d00fa91"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-aaa2-51b9-a43a0d002718"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:51:31 GMT + - Thu, 18 Mar 2021 23:54:26 GMT ms-cv: - - vBy6NHLlXUmh1r69ndd9Dg.0 + - dJ8jeDYbpUKPafky0VymZg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 13ms + - 10ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:51:32 GMT + - Thu, 18 Mar 2021 23:54:34 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:51:31.3858105+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:26.0964927+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:51:32 GMT + - Thu, 18 Mar 2021 23:54:26 GMT ms-cv: - - kCdlhHMh5k2oLraulL2www.0 + - WPcU6P7veE+shC+VONk2Fg.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 179ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:51:32 GMT + - Thu, 18 Mar 2021 23:54:34 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-e556-9c58-373a0d00fa92"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-abf7-51b9-a43a0d002719"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:51:32 GMT + - Thu, 18 Mar 2021 23:54:26 GMT ms-cv: - - v6Pi5IjbQkysln2Q5qVplA.0 + - +rfJYxXvAki+e/Pzv5oJMw.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 12ms + - 10ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:51:32 GMT + - Thu, 18 Mar 2021 23:54:34 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:51:31.5730644+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:26.3892093+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:51:32 GMT + - Thu, 18 Mar 2021 23:54:27 GMT ms-cv: - - QyzJZHRecU+sMbmhVBWApg.0 + - 0CqEI/2QnEi+/wIJ6jPY+Q.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 88ms + - 126ms status: code: 200 message: OK @@ -181,38 +181,38 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - b10b2977-9312-4b1c-983c-de26c915640d + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 5b209e70-558b-4b78-8187-87a326fb60a0 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:4SEkETC1N01snLf3gO9_zdh5B_UjorsAt1cub2K1aPY1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:51:32Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-e497-9c58-373a0d00fa91", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9015-e497-9c58-373a0d00fa91"}}}}' + body: '{"chatThread": {"id": "19:k1kFKbnpeLKZR7YS4WLwlsdglwnPU-hv3SMlll7e64w1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:54:27Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-aaa2-51b9-a43a0d002718", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-aaa2-51b9-a43a0d002718"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:51:33 GMT - ms-cv: MAKBY/5O4EGX0Awiz4yFdQ.0 + date: Thu, 18 Mar 2021 23:54:28 GMT + ms-cv: +iY5WWIZwEGzx0Nue0PRug.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 887ms + x-processing-time: 762ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/typing?api-version=2021-03-01-preview5 response: body: string: '' @@ -220,37 +220,37 @@ interactions: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-length: '0' - date: Mon, 01 Mar 2021 23:51:34 GMT - ms-cv: YMVT5jGPO0uQv+YJz4nohg.0 + date: Thu, 18 Mar 2021 23:54:27 GMT + ms-cv: /XeiulNAeEmzrAfjC4fPhg.0 strict-transport-security: max-age=2592000 - x-processing-time: 785ms + x-processing-time: 156ms status: code: 200 message: OK - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/typing?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/typing?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:51:34 GMT - ms-cv: oRoeQclaIEqb/asiVL3iHA.0 + date: Thu, 18 Mar 2021 23:54:28 GMT + ms-cv: gopV34V9w0+DABDNcRkkxw.0 strict-transport-security: max-age=2592000 - x-processing-time: 334ms + x-processing-time: 250ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -263,13 +263,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:51:34 GMT + - Thu, 18 Mar 2021 23:54:36 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -277,15 +277,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:51:50 GMT + - Thu, 18 Mar 2021 23:54:29 GMT ms-cv: - - Z4ZSnJUN602qxFMGE4xXsg.0 + - o5xre+b5FUK1pBkB3Yll8g.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16582ms + - 656ms status: code: 204 message: No Content @@ -301,13 +301,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:51:51 GMT + - Thu, 18 Mar 2021 23:54:37 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -315,15 +315,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:52:06 GMT + - Thu, 18 Mar 2021 23:54:29 GMT ms-cv: - - bCK2v2qG20mFNvnQGwAx6w.0 + - sO0/OPIIpUaVPSjcD30dnw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16182ms + - 459ms 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 00999eb1bc4d..e8c0c6f76bde 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:52:07 GMT + - Thu, 18 Mar 2021 23:54:37 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9016-70c2-1655-373a0d00008d"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-b7fe-99c6-593a0d009e56"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:52:07 GMT + - Thu, 18 Mar 2021 23:54:30 GMT ms-cv: - - UgXw83MPE06nbdICN75hxw.0 + - rbe3iKsphEqEeviRDXRGuA.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 20ms + - 25ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:52:07 GMT + - Thu, 18 Mar 2021 23:54:37 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:52:07.2873642+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:29.3610647+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:52:08 GMT + - Thu, 18 Mar 2021 23:54:30 GMT ms-cv: - - T3EEi3+N70WEfzl1V1az8A.0 + - ZcQqRtTdCkapiq2dAUI+oA.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 87ms + - 26ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:52:08 GMT + - Thu, 18 Mar 2021 23:54:37 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9016-7198-1655-373a0d00008e"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-b8a4-99c6-593a0d009e57"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:52:08 GMT + - Thu, 18 Mar 2021 23:54:30 GMT ms-cv: - - FTDEw6dbo0aBRnU2gVbQGg.0 + - UYUFNzqrZ0Wuv5TO5NpbPw.0 request-context: - appId= strict-transport-security: @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:52:08 GMT + - Thu, 18 Mar 2021 23:54:37 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:52:07.479129+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:29.515006+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:52:08 GMT + - Thu, 18 Mar 2021 23:54:30 GMT ms-cv: - - ZpKgLhthIEaBnqEmJ9S59g.0 + - KILqSpNuyEKoNs5KVpjgPA.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 91ms + - 27ms status: code: 200 message: OK @@ -181,29 +181,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 50af969b-7c6a-4f81-a37a-0a5ad60f9223 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 241c618c-8dd9-4e3c-9cdc-5bf3b05b67d7 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:0kJom_4X_Lgb-H3EKF9YxEqelZ9dY574UOjvnLHuN501@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:52:09Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9016-70c2-1655-373a0d00008d", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9016-70c2-1655-373a0d00008d"}}}}' + body: '{"chatThread": {"id": "19:OrzNvRPJrlabrzIcEsfHszgUwSbkF_yH7335yCXHna01@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:54:30Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-b7fe-99c6-593a0d009e56", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-b7fe-99c6-593a0d009e56"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:52:09 GMT - ms-cv: tkBA4C4OSkKPXIsOoKF6BQ.0 + date: Thu, 18 Mar 2021 23:54:30 GMT + ms-cv: nDWot5ozHUaCUnbDwReknQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1086ms + x-processing-time: 785ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: '{"content": "hello world", "senderDisplayName": "sender name", "type": "text"}' @@ -215,24 +215,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:52:09 GMT - ms-cv: aMbQpbzl8UyA5ET2zFHEZw.0 + date: Thu, 18 Mar 2021 23:54:31 GMT + ms-cv: hCLsFF+pNUmqOjflq+Grcg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 373ms + x-processing-time: 189ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-01-preview5 - request: body: '{"content": "updated message content"}' headers: @@ -243,46 +243,46 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 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=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:52:10 GMT - ms-cv: SRzqfq26gkOpFtAtH7y4Bw.0 + date: Thu, 18 Mar 2021 23:54:31 GMT + ms-cv: 4VlMiQtRSUyCXn7FtjZEWA.0 strict-transport-security: max-age=2592000 - x-processing-time: 673ms + x-processing-time: 371ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized/messages/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:52:11 GMT - ms-cv: hoPDAyfV4EO9ctW5m+abiQ.0 + date: Thu, 18 Mar 2021 23:54:31 GMT + ms-cv: xd/IZ77krEu3+QL5FiRaUA.0 strict-transport-security: max-age=2592000 - x-processing-time: 324ms + x-processing-time: 205ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -295,13 +295,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:52:11 GMT + - Thu, 18 Mar 2021 23:54:39 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -309,15 +309,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:52:27 GMT + - Thu, 18 Mar 2021 23:54:32 GMT ms-cv: - - sbSjvSFVzUONY+ovW+lQxw.0 + - 5Q0EXrhT8Em3oQdRgaySTg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16219ms + - 616ms status: code: 204 message: No Content @@ -333,13 +333,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:52:27 GMT + - Thu, 18 Mar 2021 23:54:40 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -347,15 +347,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:52:43 GMT + - Thu, 18 Mar 2021 23:54:33 GMT ms-cv: - - EIPLS/3CHUWF1SdG5VhM5g.0 + - 33XMSyNJnEyEcKVFSntiiw.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16855ms + - 679ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_thread.yaml deleted file mode 100644 index 4d8e704304c7..000000000000 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_thread.yaml +++ /dev/null @@ -1,269 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:49:47 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:49:45 GMT - ms-cv: - - 8xHstEATe0u2NMjbbQFUWA.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 209ms - 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: - - Wed, 02 Dec 2020 23:49:48 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: '{"id": "sanitized", "token": "sanitized", "expiresOn": "2020-12-03T23:49:46.2484051+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:46 GMT - ms-cv: - - bvSRt+yDMkiJBZV1mJh8gw.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 280ms - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:49:48 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - 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: - - Wed, 02 Dec 2020 23:49:46 GMT - ms-cv: - - MRLd0dW4bEWGhsjNOuHckA.0 - strict-transport-security: - - max-age=2592000 - transfer-encoding: - - chunked - x-processing-time: - - 217ms - status: - code: 200 - message: OK -- request: - body: '{"topic": "test topic", "members": "sanitized"}' - headers: - Accept: - - application/json - Content-Length: - - '201' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 - response: - body: '{"multipleStatus": "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:48 GMT - ms-cv: sHP0NEWiCk2EuLmqTDLrVg.0 - strict-transport-security: max-age=2592000 - transfer-encoding: chunked - x-processing-time: 298ms - status: - code: 207 - message: Multi-Status - url: https://sanitized.communication.azure.com/chat/threads?api-version=2020-09-21-preview2 -- request: - body: '{"topic": "update topic"}' - headers: - Accept: - - application/json - Content-Length: - - '25' - Content-Type: - - application/json - User-Agent: - - azsdk-python-communication-chat/1.0.0b2 Python/3.8.5 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 - 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:48 GMT - ms-cv: xVessK5Ku0CvRvFKJbet9A.0 - strict-transport-security: max-age=2592000 - x-processing-time: 125ms - status: - code: 200 - message: OK - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 -- 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) - method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 - response: - body: - string: '' - headers: - api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3 - date: Wed, 02 Dec 2020 23:49:48 GMT - ms-cv: WeW3H3EXfE+9IZ4YC1R4RQ.0 - strict-transport-security: max-age=2592000 - x-processing-time: 92ms - status: - code: 204 - message: No Content - url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2020-09-21-preview2 -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:49:50 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:49:49 GMT - ms-cv: - - ouhuP4aj10mQwOYMLMgzvg.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 1154ms - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - Date: - - Wed, 02 Dec 2020 23:49:51 GMT - User-Agent: - - azsdk-python-communication-administration/1.0.0b1 Python/3.8.5 (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 - response: - body: - string: '' - headers: - api-supported-versions: - - 2020-01-15-preview3, 2020-07-20-preview1, 2020-07-20-preview2 - date: - - Wed, 02 Dec 2020 23:49:50 GMT - ms-cv: - - 9rXgr09dO0eQx9y1JIM/wA.0 - strict-transport-security: - - max-age=2592000 - x-processing-time: - - 871ms - 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_update_topic.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml index 58597fb2d86e..de4743fd9619 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 @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:52:44 GMT + - Thu, 18 Mar 2021 23:54:41 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9017-003d-b0b7-3a3a0d00fe26"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-c6f5-28c5-593a0d001711"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:52:44 GMT + - Thu, 18 Mar 2021 23:54:33 GMT ms-cv: - - vPjhuJLGWESWkqufzVtC4g.0 + - gmeC71RkRkCVlEk63n4VVg.0 request-context: - appId= strict-transport-security: @@ -38,7 +38,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 15ms + - 11ms status: code: 201 message: Created @@ -56,24 +56,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:52:44 GMT + - Thu, 18 Mar 2021 23:54:41 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:52:43.9998701+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:33.1893519+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:52:44 GMT + - Thu, 18 Mar 2021 23:54:33 GMT ms-cv: - - bUpr+IDIUEG9GWYzKs1Akw.0 + - Wt6Z5AWWwUm75n79d2tB5Q.0 request-context: - appId= strict-transport-security: @@ -81,7 +81,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 96ms + - 26ms status: code: 200 message: OK @@ -99,24 +99,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:52:44 GMT + - Thu, 18 Mar 2021 23:54:41 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9017-0117-b0b7-3a3a0d00fe27"}}' + body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-c796-28c5-593a0d001712"}}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:52:44 GMT + - Thu, 18 Mar 2021 23:54:33 GMT ms-cv: - - ytftr5ElQUKfw1t/bWyZvw.0 + - xeXU5WLWA0ip+JdZD78Pyg.0 request-context: - appId= strict-transport-security: @@ -124,7 +124,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 31ms + - 12ms status: code: 201 message: Created @@ -142,24 +142,24 @@ interactions: Content-Type: - application/json Date: - - Mon, 01 Mar 2021 23:52:44 GMT + - Thu, 18 Mar 2021 23:54:41 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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/:issueAccessToken?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-02T23:52:44.238236+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-03-19T23:54:33.3533429+00:00"}' headers: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 content-type: - application/json; charset=utf-8 date: - - Mon, 01 Mar 2021 23:52:45 GMT + - Thu, 18 Mar 2021 23:54:33 GMT ms-cv: - - NI6uHNWQDUqU7jbG3s3Zzw.0 + - uVY6Zijh9k+uL3JDvKkqtg.0 request-context: - appId= strict-transport-security: @@ -167,7 +167,7 @@ interactions: transfer-encoding: - chunked x-processing-time: - - 97ms + - 24ms status: code: 200 message: OK @@ -181,29 +181,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 4d924b9d-ea29-4804-b780-3d3fb573e9b8 + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + idempotency-token: + - 63ae4d47-90e4-45c7-b5f9-fca9feef2817 method: POST - uri: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 response: - body: '{"chatThread": {"id": "19:fctDn9IhlhkUyeEIWRgKSbP0LBD3mZ4Mr6b1Lp31N2o1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-01T23:52:45Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9017-003d-b0b7-3a3a0d00fe26", - "communicationUser": {"id": "8:acs:46849534-eb08-4ab7-bde7-c36928cd1547_00000008-9017-003d-b0b7-3a3a0d00fe26"}}}}' + body: '{"chatThread": {"id": "19:moSiniiE1_9qOZGZNAsSzzAHnrpcL9o6H2TNmNBCTaU1@thread.v2", + "topic": "test topic", "createdOn": "2021-03-18T23:54:34Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-c6f5-28c5-593a0d001711", + "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-e7a4-c6f5-28c5-593a0d001711"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 content-type: application/json; charset=utf-8 - date: Mon, 01 Mar 2021 23:52:45 GMT - ms-cv: AiRR0T77mUmnfb/1zIWdaw.0 + date: Thu, 18 Mar 2021 23:54:34 GMT + ms-cv: DS0e/ZJUQUiSGHnQ0xt24Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 875ms + x-processing-time: 606ms status: code: 201 message: Created - url: https://sanitized.int.communication.azure.net/chat/threads?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-01-preview5 - request: body: '{"topic": "update topic"}' headers: @@ -214,46 +214,46 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: PATCH - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:52:46 GMT - ms-cv: 4F6kOYhgk0+T5R5k+0bpGg.0 + date: Thu, 18 Mar 2021 23:54:34 GMT + ms-cv: 4KPNlakA6UqIrfLfHf4mPQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 432ms + x-processing-time: 510ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 response: body: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5 - date: Mon, 01 Mar 2021 23:52:46 GMT - ms-cv: Kzz/LzDpyE2vy7vycpexTQ.0 + date: Thu, 18 Mar 2021 23:54:35 GMT + ms-cv: Qb8x1bv/TE6aaD7durXyFg.0 strict-transport-security: max-age=2592000 - x-processing-time: 289ms + x-processing-time: 244ms status: code: 204 message: No Content - url: https://sanitized.int.communication.azure.net/chat/threads/sanitized?api-version=2021-01-27-preview4 + url: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-01-preview5 - request: body: null headers: @@ -266,13 +266,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:52:47 GMT + - Thu, 18 Mar 2021 23:54:43 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -280,15 +280,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:53:03 GMT + - Thu, 18 Mar 2021 23:54:35 GMT ms-cv: - - Qhy8fsiWfEGx6A/eH+tDqA.0 + - ISAWeKi340itOwAbJgwnfg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16698ms + - 391ms status: code: 204 message: No Content @@ -304,13 +304,13 @@ interactions: Content-Length: - '0' Date: - - Mon, 01 Mar 2021 23:53:03 GMT + - Thu, 18 Mar 2021 23:54:44 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b4 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.0b6 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=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' @@ -318,15 +318,15 @@ interactions: api-supported-versions: - 2020-07-20-preview2, 2021-03-07 date: - - Mon, 01 Mar 2021 23:53:19 GMT + - Thu, 18 Mar 2021 23:54:36 GMT ms-cv: - - Y9vON9Bu50u7OgnvSq6yBg.0 + - ishd2+u5FECNAL15axdwFg.0 request-context: - appId= strict-transport-security: - max-age=2592000 x-processing-time: - - 16418ms + - 764ms 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 3c9bcd0f2d34..0f63e7babef7 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client.py +++ b/sdk/communication/azure-communication-chat/tests/test_chat_client.py @@ -70,7 +70,7 @@ 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" + idempotency_token="b66d6031-fdcc-41df-8306-e524c9f226b8" def mock_send(*_, **__): return mock_response(status_code=201, json_payload={ @@ -94,7 +94,7 @@ def mock_send(*_, **__): try: create_chat_thread_result = chat_client.create_chat_thread(topic=topic, thread_participants=participants, - repeatability_request_id=repeatability_request_id) + idempotency_token=idempotency_token) except: raised = True raise @@ -132,29 +132,6 @@ def mock_send(*_, **__): self.assertFalse(raised, 'Expected is no excpetion raised') - def test_get_chat_thread(self): - thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" - raised = False - - def mock_send(*_, **__): - return mock_response(status_code=200, json_payload={ - "id": thread_id, - "topic": "Lunch Chat thread", - "createdOn": "2020-10-30T10:50:50Z", - "deletedOn": "2020-10-30T10:50:50Z", - "createdByCommunicationIdentifier": {"rawId": "string", "communicationUser": {"id": "string"}} - }) - chat_client = ChatClient("https://endpoint", TestChatClient.credential, transport=Mock(send=mock_send)) - - get_thread_result = None - try: - get_thread_result = chat_client.get_chat_thread(thread_id) - except: - raised = True - - self.assertFalse(raised, 'Expected is no excpetion raised') - assert get_thread_result.id == thread_id - def test_list_chat_threads(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" raised = False @@ -163,15 +140,15 @@ def mock_send(*_, **__): return mock_response(status_code=200, json_payload={"value": [{"id": thread_id}]}) chat_client = ChatClient("https://endpoint", TestChatClient.credential, transport=Mock(send=mock_send)) - chat_thread_infos = None + chat_threads = None try: - chat_thread_infos = chat_client.list_chat_threads() + chat_threads = chat_client.list_chat_threads() except: raised = True self.assertFalse(raised, 'Expected is no excpetion raised') - for chat_thread_page in chat_thread_infos.by_page(): - l = list(chat_thread_page) + for chat_thread_item_page in chat_threads.by_page(): + l = list(chat_thread_item_page) assert len(l) == 1 assert l[0].id == thread_id 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 482075cb50cf..9855337d5db3 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 @@ -56,7 +56,7 @@ async def mock_send(*_, **__): @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" + idempotency_token = "b66d6031-fdcc-41df-8306-e524c9f226b8" async def mock_send(*_, **__): return mock_response(status_code=201, json_payload={ "chatThread": { @@ -78,7 +78,7 @@ async def mock_send(*_, **__): )] create_chat_thread_result = await chat_client.create_chat_thread(topic=topic, thread_participants=participants, - repeatability_request_id=repeatability_request_id) + idempotency_token=idempotency_token) assert create_chat_thread_result.chat_thread.id == thread_id @pytest.mark.asyncio @@ -120,30 +120,6 @@ async def mock_send(*_, **__): assert raised == False -@pytest.mark.asyncio -async def test_get_chat_thread(): - thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" - raised = False - - async def mock_send(*_, **__): - return mock_response(status_code=200, json_payload={ - "id": thread_id, - "topic": "Lunch Chat thread", - "createdOn": "2020-10-30T10:50:50Z", - "deletedOn": "2020-10-30T10:50:50Z", - "createdByCommunicationIdentifier": {"rawId": "string", "communicationUser": {"id": "string"}} - }) - chat_client = ChatClient("https://endpoint", credential, transport=Mock(send=mock_send)) - - get_thread_result = None - try: - get_thread_result = await chat_client.get_chat_thread(thread_id) - except: - raised = True - - assert raised == False - assert get_thread_result.id == thread_id - @pytest.mark.asyncio async def test_list_chat_threads(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" @@ -153,16 +129,16 @@ async def mock_send(*_, **__): return mock_response(status_code=200, json_payload={"value": [{"id": thread_id}]}) chat_client = ChatClient("https://endpoint", credential, transport=Mock(send=mock_send)) - chat_thread_infos = None + chat_threads = None try: - chat_thread_infos = chat_client.list_chat_threads() + chat_threads = chat_client.list_chat_threads() except: raised = True assert raised == False items = [] - async for item in chat_thread_infos: + async for item in chat_threads: items.append(item) assert len(items) == 1 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 2dc8ff231252..c972a128421f 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 @@ -12,10 +12,9 @@ from uuid import uuid4 from azure.communication.identity import CommunicationIdentityClient -from azure.communication.identity._shared.user_credential import CommunicationTokenCredential -from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat import ( ChatClient, + CommunicationTokenCredential, ChatThreadParticipant ) from azure.communication.chat._shared.utils import parse_connection_str @@ -50,8 +49,7 @@ def setUp(self): self.token = tokenresponse.token # create ChatClient - refresh_options = CommunicationTokenRefreshOptions(self.token) - self.chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) + self.chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(self.token)) def tearDown(self): super(ChatClientTest, self).tearDown() @@ -61,7 +59,7 @@ def tearDown(self): self.identity_client.delete_user(self.user) self.chat_client.delete_chat_thread(self.thread_id) - def _create_thread(self, repeatability_request_id=None): + def _create_thread(self, idempotency_token=None): # create chat thread topic = "test topic" share_history_time = datetime.utcnow() @@ -73,7 +71,7 @@ def _create_thread(self, repeatability_request_id=None): )] create_chat_thread_result = self.chat_client.create_chat_thread(topic, thread_participants=participants, - repeatability_request_id=repeatability_request_id) + idempotency_token=idempotency_token) self.thread_id = create_chat_thread_result.chat_thread.id @pytest.mark.live_test_only @@ -82,12 +80,9 @@ def test_access_token_validation(self): This is to make sure that consecutive calls made using the same chat_client or chat_thread_client does not throw an exception due to mismatch in the generation of azure.core.credentials.AccessToken """ - from azure.communication.identity._shared.user_token_refresh_options import \ - CommunicationTokenRefreshOptions as IdentityCommunicationTokenRefreshOptions # create ChatClient - refresh_options = IdentityCommunicationTokenRefreshOptions(self.token) - chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) + chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(self.token)) raised = False try: # create chat thread @@ -95,9 +90,6 @@ def test_access_token_validation(self): create_chat_thread1_result = chat_client.create_chat_thread(topic1) self.thread_id = create_chat_thread1_result.chat_thread.id - # get chat thread - chat_thread1 = chat_client.get_chat_thread(create_chat_thread1_result.chat_thread.id) - # get chat thread client chat_thread1_client = chat_client.get_chat_thread_client(self.thread_id) @@ -127,32 +119,26 @@ def test_create_chat_thread_w_no_participants(self): @pytest.mark.live_test_only def test_create_chat_thread_w_repeatability_request_id(self): - repeatability_request_id = str(uuid4()) + idempotency_token = str(uuid4()) # create thread - self._create_thread(repeatability_request_id=repeatability_request_id) + self._create_thread(idempotency_token=idempotency_token) thread_id = self.thread_id - # re-create thread with same repeatability_request_id - self._create_thread(repeatability_request_id=repeatability_request_id) + # re-create thread with same idempotency_token + self._create_thread(idempotency_token=idempotency_token) # test idempotency assert thread_id == self.thread_id - @pytest.mark.live_test_only - def test_get_chat_thread(self): - self._create_thread() - get_thread_result = self.chat_client.get_chat_thread(self.thread_id) - assert get_thread_result.id == self.thread_id - @pytest.mark.live_test_only def test_list_chat_threads(self): self._create_thread() if self.is_live: time.sleep(2) - chat_thread_infos = self.chat_client.list_chat_threads(results_per_page=1) - for chat_thread_page in chat_thread_infos.by_page(): - li = list(chat_thread_page) + chat_threads = self.chat_client.list_chat_threads(results_per_page=1) + for chat_thread_item_page in chat_threads.by_page(): + li = list(chat_thread_item_page) assert len(li) <= 1 @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 0b2fe07c045d..17adc16e624c 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 @@ -11,10 +11,9 @@ from uuid import uuid4 from azure.communication.identity import CommunicationIdentityClient -from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential -from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat.aio import ( - ChatClient + ChatClient, + CommunicationTokenCredential ) from azure.communication.chat import ( ChatThreadParticipant @@ -48,8 +47,7 @@ def setUp(self): self.token = token_response.token # create ChatClient - refresh_options = CommunicationTokenRefreshOptions(self.token) - self.chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(refresh_options)) + self.chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(self.token)) def tearDown(self): super(ChatClientTestAsync, self).tearDown() @@ -58,7 +56,7 @@ def tearDown(self): if not self.is_playback(): self.identity_client.delete_user(self.user) - async def _create_thread(self, repeatability_request_id=None): + async def _create_thread(self, idempotency_token=None): # create chat thread topic = "test topic" share_history_time = datetime.utcnow() @@ -70,7 +68,7 @@ async def _create_thread(self, repeatability_request_id=None): )] create_chat_thread_result = await self.chat_client.create_chat_thread(topic, thread_participants=participants, - repeatability_request_id=repeatability_request_id) + idempotency_token=idempotency_token) self.thread_id = create_chat_thread_result.chat_thread.id @pytest.mark.live_test_only @@ -103,15 +101,15 @@ async def test_create_chat_thread_w_no_participants_async(self): @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()) + idempotency_token = str(uuid4()) # create thread - await self._create_thread(repeatability_request_id=repeatability_request_id) + await self._create_thread(idempotency_token=idempotency_token) 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) + await self._create_thread(idempotency_token=idempotency_token) assert thread_id == self.thread_id @@ -120,18 +118,6 @@ async def test_create_chat_thread_w_repeatability_request_id_async(self): 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): - async with self.chat_client: - await self._create_thread() - get_thread_result = await self.chat_client.get_chat_thread(self.thread_id) - assert get_thread_result.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_list_chat_threads(self): @@ -140,10 +126,10 @@ async def test_list_chat_threads(self): if self.is_live: await asyncio.sleep(2) - chat_thread_infos = self.chat_client.list_chat_threads(results_per_page=1) + chat_threads = self.chat_client.list_chat_threads(results_per_page=1) items = [] - async for item in chat_thread_infos: + async for item in chat_threads: items.append(item) assert len(items) == 1 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 26083b722474..e87bb8fbe8e0 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 @@ -60,9 +60,10 @@ def mock_send(*_, **__): try: content='hello world' sender_display_name='sender name' - create_message_result_id = chat_thread_client.send_message( + create_message_result = chat_thread_client.send_message( content=content, sender_display_name=sender_display_name) + create_message_result_id = create_message_result.id except: raised = True @@ -108,10 +109,11 @@ def mock_send(*_, **__): try: content='hello world' sender_display_name='sender name' - create_message_result_id = chat_thread_client.send_message( + create_message_result = chat_thread_client.send_message( content=content, chat_message_type=chat_message_type, sender_display_name=sender_display_name) + create_message_result_id = create_message_result.id except: raised = True @@ -142,7 +144,7 @@ def mock_send(*_, **__): try: content='hello world' sender_display_name='sender name' - create_message_result_id = chat_thread_client.send_message( + create_message_result = chat_thread_client.send_message( content=content, chat_message_type=chat_message_type, sender_display_name=sender_display_name) @@ -433,59 +435,6 @@ def mock_send(*_, **__): 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" - 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_participant = ChatThreadParticipant( - user=CommunicationUserIdentifier(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_participant_w_failed_participants(self): - thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" - new_participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" - raised = False - error_message = "some error message" - - def mock_send(*_, **__): - return mock_response(status_code=201, json_payload={ - "errors": { - "invalidParticipants": [ - { - "code": "string", - "message": error_message, - "target": new_participant_id, - "details": [] - } - ] - } - }) - chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.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: - chat_thread_client.add_participant(new_participant) - except: - raised = True - - self.assertTrue(raised, 'Expected is no excpetion raised') def test_add_participants(self): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" @@ -518,16 +467,14 @@ def test_add_participants_w_failed_participants_returns_nonempty_list(self): def mock_send(*_, **__): return mock_response(status_code=201,json_payload={ - "errors": { - "invalidParticipants": [ - { - "code": "string", - "message": error_message, - "target": new_participant_id, - "details": [] - } - ] - } + "invalidParticipants": [ + { + "code": "string", + "message": error_message, + "target": new_participant_id, + "details": [] + } + ] }) chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) @@ -674,6 +621,29 @@ def mock_send(*_, **__): l = list(read_receipt_page) assert len(l) == 2 + def test_get_properties(self): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + raised = False + + def mock_send(*_, **__): + return mock_response(status_code=200, json_payload={ + "id": thread_id, + "topic": "Lunch Chat thread", + "createdOn": "2020-10-30T10:50:50Z", + "deletedOn": "2020-10-30T10:50:50Z", + "createdByCommunicationIdentifier": {"rawId": "string", "communicationUser": {"id": "string"}} + }) + chat_thread_client = ChatThreadClient("https://endpoint", TestChatThreadClient.credential, thread_id, transport=Mock(send=mock_send)) + + get_thread_result = None + try: + get_thread_result = chat_thread_client.get_properties() + except: + raised = True + + self.assertFalse(raised, 'Expected is no excpetion raised') + assert get_thread_result.id == thread_id + 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 5439e45fcfcb..ea1d7424529d 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 @@ -59,9 +59,10 @@ async def mock_send(*_, **__): content='hello world' sender_display_name='sender name' - create_message_result_id = await chat_thread_client.send_message( + create_message_result = await chat_thread_client.send_message( content, sender_display_name=sender_display_name) + create_message_result_id = create_message_result.id except: raised = True @@ -110,10 +111,11 @@ async def mock_send(*_, **__): content='hello world' sender_display_name='sender name' - create_message_result_id = await chat_thread_client.send_message( + create_message_result = await chat_thread_client.send_message( content, chat_message_type=chat_message_type, sender_display_name=sender_display_name) + create_message_result_id = create_message_result.id except: raised = True @@ -144,7 +146,7 @@ async def mock_send(*_, **__): content='hello world' sender_display_name='sender name' - create_message_result_id = await chat_thread_client.send_message( + create_message_result = await chat_thread_client.send_message( content, chat_message_type=chat_message_type, sender_display_name=sender_display_name) @@ -449,62 +451,6 @@ async def mock_send(*_, **__): assert len(items) == 2 -@pytest.mark.asyncio -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_participant_w_failed_participants(): - thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" - new_participant_id="8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041" - raised = False - error_message = "some error message" - - async def mock_send(*_, **__): - return mock_response(status_code=201, json_payload={ - "errors": { - "invalidParticipants": [ - { - "code": "string", - "message": error_message, - "target": new_participant_id, - "details": [] - } - ] - } - }) - 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 == True - @pytest.mark.asyncio async def test_add_participants(): thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" @@ -537,16 +483,14 @@ async def test_add_participants_w_failed_participants_returns_nonempty_list(): async def mock_send(*_, **__): return mock_response(status_code=201, json_payload={ - "errors": { - "invalidParticipants": [ - { - "code": "string", - "message": error_message, - "target": new_participant_id, - "details": [] - } - ] - } + "invalidParticipants": [ + { + "code": "string", + "message": error_message, + "target": new_participant_id, + "details": [] + } + ] }) chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) @@ -735,3 +679,27 @@ async def mock_send(*_, **__): items.append(item) assert len(items) == 1 + +@pytest.mark.asyncio +async def test_get_properties(): + thread_id = "19:bcaebfba0d314c2aa3e920d38fa3df08@thread.v2" + raised = False + + async def mock_send(*_, **__): + return mock_response(status_code=200, json_payload={ + "id": thread_id, + "topic": "Lunch Chat thread", + "createdOn": "2020-10-30T10:50:50Z", + "deletedOn": "2020-10-30T10:50:50Z", + "createdByCommunicationIdentifier": {"rawId": "string", "communicationUser": {"id": "string"}} + }) + chat_thread_client = ChatThreadClient("https://endpoint", credential, thread_id, transport=Mock(send=mock_send)) + + get_thread_result = None + try: + get_thread_result = await chat_thread_client.get_properties() + except: + raised = True + + assert raised == False + assert get_thread_result.id == thread_id 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 bf26081d5616..8de1d80954a9 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 @@ -11,12 +11,11 @@ from msrest.serialization import TZ_UTC from azure.communication.identity import CommunicationIdentityClient -from azure.communication.identity._shared.user_credential import CommunicationTokenCredential -from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat import ( ChatClient, ChatThreadParticipant, - ChatMessageType + ChatMessageType, + CommunicationTokenCredential ) from azure.communication.chat._shared.utils import parse_connection_str @@ -54,10 +53,8 @@ def setUp(self): 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)) + self.chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(self.token)) + self.chat_client_new_user = ChatClient(self.endpoint, CommunicationTokenCredential(self.token_new_user)) def tearDown(self): super(ChatThreadClientTest, self).tearDown() @@ -113,10 +110,10 @@ def _send_message(self): # send a message content = 'hello world' sender_display_name = 'sender name' - create_message_result_id = self.chat_thread_client.send_message( + create_message_result = self.chat_thread_client.send_message( content, sender_display_name=sender_display_name) - message_id = create_message_result_id + message_id = create_message_result.id return message_id @pytest.mark.live_test_only @@ -132,9 +129,10 @@ def test_send_message(self): content = 'hello world' sender_display_name = 'sender name' - create_message_result_id = self.chat_thread_client.send_message( + create_message_result = self.chat_thread_client.send_message( content, sender_display_name=sender_display_name) + create_message_result_id = create_message_result.id assert create_message_result_id is not None @@ -185,7 +183,7 @@ def test_list_participants(self): display_name='name', share_history_time=share_history_time) - self.chat_thread_client.add_participant(new_participant) + self.chat_thread_client.add_participants([new_participant]) # fetch list of participants chat_thread_participants = self.chat_thread_client.list_participants(results_per_page=1, skip=1) @@ -199,24 +197,6 @@ def test_list_participants(self): li[0].user.id = self.user.identifier assert participant_count == 1 - @pytest.mark.live_test_only - def test_add_participant(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) - raised = False - - try: - self.chat_thread_client.add_participant(new_participant) - except RuntimeError as e: - raised = True - - assert raised is False @pytest.mark.live_test_only def test_add_participants(self): @@ -302,9 +282,10 @@ def test_list_read_receipts(self): # 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( + message_result_new_user = chat_thread_client_new_user.send_message( "content", sender_display_name="sender_display_name") + message_id_new_user = message_result_new_user.id # send read receipt chat_thread_client_new_user.send_read_receipt(message_id_new_user) @@ -320,3 +301,9 @@ def test_list_read_receipts(self): items.append(item) assert len(items) == 2 + + @pytest.mark.live_test_only + def test_get_properties(self): + self._create_thread() + get_thread_result = self.chat_thread_client.get_properties() + assert get_thread_result.id == self.thread_id 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 de3228ef62ff..19f1ff3d0480 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 @@ -10,10 +10,9 @@ from msrest.serialization import TZ_UTC from azure.communication.identity import CommunicationIdentityClient -from azure.communication.identity._shared.user_credential_async import CommunicationTokenCredential -from azure.communication.chat._shared.user_token_refresh_options import CommunicationTokenRefreshOptions from azure.communication.chat.aio import ( - ChatClient + ChatClient, + CommunicationTokenCredential ) from azure.communication.chat import ( ChatThreadParticipant, @@ -57,10 +56,8 @@ def setUp(self): 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)) + self.chat_client = ChatClient(self.endpoint, CommunicationTokenCredential(self.token)) + self.chat_client_new_user = ChatClient(self.endpoint, CommunicationTokenCredential(self.token_new_user)) def tearDown(self): super(ChatThreadClientTestAsync, self).tearDown() @@ -110,10 +107,10 @@ async def _send_message(self): # send a message content = 'hello world' sender_display_name = 'sender name' - create_message_result_id = await self.chat_thread_client.send_message( + create_message_result = await self.chat_thread_client.send_message( content, sender_display_name=sender_display_name) - message_id = create_message_result_id + message_id = create_message_result.id return message_id @pytest.mark.live_test_only @@ -140,9 +137,10 @@ async def test_send_message(self): content = 'hello world' sender_display_name = 'sender name' - create_message_result_id = await self.chat_thread_client.send_message( + create_message_result = await self.chat_thread_client.send_message( content, sender_display_name=sender_display_name) + create_message_result_id = create_message_result.id self.assertTrue(create_message_result_id) @@ -234,7 +232,7 @@ async def test_list_participants(self): display_name='name', share_history_time=share_history_time) - await self.chat_thread_client.add_participant(new_participant) + await self.chat_thread_client.add_participants([new_participant]) chat_thread_participants = self.chat_thread_client.list_participants(results_per_page=1, skip=1) @@ -248,30 +246,6 @@ async def test_list_participants(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_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_participant = ChatThreadParticipant( - user=self.new_user, - display_name='name', - share_history_time=share_history_time) - raised = False - try: - await self.chat_thread_client.add_participant(new_participant) - except RuntimeError as e: - raised = True - - assert raised is False - - 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): @@ -385,9 +359,10 @@ async def test_list_read_receipts(self): 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( + message_result_new_user = await chat_thread_client_new_user.send_message( "content", sender_display_name="sender_display_name") + message_id_new_user = message_result_new_user.id # send read receipt await chat_thread_client_new_user.send_read_receipt(message_id_new_user) @@ -406,3 +381,17 @@ async def test_list_read_receipts(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_get_properties(self): + async with self.chat_client: + await self._create_thread() + + async with self.chat_thread_client: + get_thread_result = await self.chat_thread_client.get_properties() + assert get_thread_result.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) diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/user_credential.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/user_credential.py index e920d356a518..9c3228b28619 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/user_credential.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/user_credential.py @@ -12,17 +12,24 @@ from msrest.serialization import TZ_UTC +from .user_token_refresh_options import CommunicationTokenRefreshOptions + class CommunicationTokenCredential(object): """Credential type used for authenticating to an Azure Communication service. - :param communication_token_refresh_options: The token used to authenticate to an Azure Communication service - :type communication_token_refresh_options: ~azure.communication.chat.CommunicationTokenRefreshOptions + :param str token: The token used to authenticate to an Azure Communication service + :keyword token_refresher: The token refresher to provide capacity to fetch fresh token + :raises: TypeError """ - ON_DEMAND_REFRESHING_INTERVAL_MINUTES = 2 + _ON_DEMAND_REFRESHING_INTERVAL_MINUTES = 2 def __init__(self, - communication_token_refresh_options + token, # type: str + **kwargs ): + token_refresher = kwargs.pop('token_refresher', None) + communication_token_refresh_options = CommunicationTokenRefreshOptions(token=token, + token_refresher=token_refresher) self._token = communication_token_refresh_options.get_token() self._token_refresher = communication_token_refresh_options.get_token_refresher() self._lock = Condition(Lock()) @@ -53,7 +60,7 @@ def get_token(self): if should_this_thread_refresh: try: - newtoken = self._token_refresher() + newtoken = self._token_refresher() # pylint:disable=not-callable with self._lock: self._token = newtoken @@ -73,7 +80,7 @@ def _wait_till_inprogress_thread_finish_refreshing(self): def _token_expiring(self): return self._token.expires_on - self._get_utc_now() <\ - timedelta(minutes=self.ON_DEMAND_REFRESHING_INTERVAL_MINUTES) + timedelta(minutes=self._ON_DEMAND_REFRESHING_INTERVAL_MINUTES) def _is_currenttoken_valid(self): return self._get_utc_now() < self._token.expires_on diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/user_credential_async.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/user_credential_async.py index 0918074eb04a..b49c593a066d 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/user_credential_async.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/user_credential_async.py @@ -12,18 +12,24 @@ from msrest.serialization import TZ_UTC +from .user_token_refresh_options import CommunicationTokenRefreshOptions + class CommunicationTokenCredential(object): """Credential type used for authenticating to an Azure Communication service. - :param communication_token_refresh_options: The token used to authenticate to an Azure Communication service - :type communication_token_refresh_options: ~azure.communication.chat.aio.CommunicationTokenRefreshOptions + :param str token: The token used to authenticate to an Azure Communication service + :keyword token_refresher: The token refresher to provide capacity to fetch fresh token :raises: TypeError """ - ON_DEMAND_REFRESHING_INTERVAL_MINUTES = 2 + _ON_DEMAND_REFRESHING_INTERVAL_MINUTES = 2 def __init__(self, - communication_token_refresh_options - ): + token, # type: str + **kwargs + ): + token_refresher = kwargs.pop('token_refresher', None) + communication_token_refresh_options = CommunicationTokenRefreshOptions(token=token, + token_refresher=token_refresher) self._token = communication_token_refresh_options.get_token() self._token_refresher = communication_token_refresh_options.get_token_refresher() self._lock = Condition(Lock()) @@ -56,7 +62,7 @@ def get_token(self): if should_this_thread_refresh: try: - newtoken = self._token_refresher() + newtoken = self._token_refresher() # pylint:disable=not-callable with self._lock: self._token = newtoken @@ -77,7 +83,7 @@ def _wait_till_inprogress_thread_finish_refreshing(self): def _token_expiring(self): return self._token.expires_on - self._get_utc_now() <\ - timedelta(minutes=self.ON_DEMAND_REFRESHING_INTERVAL_MINUTES) + timedelta(minutes=self._ON_DEMAND_REFRESHING_INTERVAL_MINUTES) def _is_currenttoken_valid(self): return self._get_utc_now() < self._token.expires_on diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py index 12f338c8dbd7..8ff385e81d04 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py @@ -71,6 +71,11 @@ def create_access_token(token): except ValueError: raise ValueError(token_parse_err_msg) +def _convert_expires_on_datetime_to_utc_int(expires_on): + epoch = time.mktime(datetime(1970, 1, 1).timetuple()) + return epoch-time.mktime(expires_on.timetuple()) + + def get_authentication_policy( endpoint, # type: str credential, # type: TokenCredential or str