From c5bc2f8182ab8bb536573a181abb7d1ca79a9742 Mon Sep 17 00:00:00 2001 From: Franko Morales <67804607+cochi2@users.noreply.github.com> Date: Wed, 9 Jun 2021 15:04:14 -0700 Subject: [PATCH] Rebasing master into feature/communication-ServerCalling (#22185) * Exposes management node in azure-core-amqp (#22095) * Update AmqpConnection to have a getManagementNode. * Adding AmqpManagementNode. * Update AmqpConnection, AmqpManagementNode, AmqpSession to use AsyncCloseable. * Adding AsyncCloseable to AmqpLink. * ClaimsBasedSecurityNode.java uses AsyncCloseable. * Implements CbsNode's closeAsync() and adds tests. * ReactorSession implements closeAsync() * ReactorConnection uses closeAsync(). Renames dispose() to closeAsync(). Fixes errors where some close operations were not subscribed to. * RequestResponseChannel. Remove close operation with message. * Adding DeliveryOutcome models and DeliveryState enum. * Add authorization scope to connection options. * Add MessageUtils to serialize and deserialize AmqpAnnotatedMessage * Update AmqpManagementNode to expose delivery outcomes because they can be associated with messages. * Adding MessageUtil support for converting DeliveryOutcome and Outcomes. * Fixing build breaks from ConnectionOptions. * Adding management channel class. * Adding management channel into ReactorConnection. * Update ExceptionUtil to return instead of throwing on unknown amqp error codes. * Moving ManagementChannel formatting. * Add javadocs to ReceivedDeliveryOutcome. * Add tests for ManagementChannel * Adding tests for message utils. * Fix javadoc on ModifiedDeliveryOutcome * ReactorConnection: Hook up dispose method. * EventHubs: Fixing instances of ConnectionOptions. * ServiceBus: Fix build errors using ConnectionOptions. * Adding MessageUtilsTests. * Updating CHANGELOG. * Annotate HttpRange with Immutable (#22119) * Cosmos Spark: Changing inferSchema.forceNullableProperties default to true (#22049) * Changing default * Docs * Tests * new test * doc update * Change log * Make getScopes in the ARM Authentication Policy Public (#22120) Make getScopes in the ARM Authentication Policy Public * [Communication]: Update version, changelog, and dependency for June release (#22061) * Update version, changelog, and dependency for June release * Update Chat, SMS, and PhoneNumbers for release * Correction for chat version number * Typo in chat pom * Unrelease Chat; update change logs for other sdks * Nit fix Co-authored-by: JP Chen * Increment version for videoanalyzer releases (#21814) * Increment package version after release of com.azure azure-media-videoanalyzer-edge * Update version_client.txt Co-authored-by: giakas * Add module-info to jca and jca test module and change package name of jca test module (#22041) * Fix error in aad-starter-sample (#22109) * EventGrid Add 4.4.0 new system events. (#22126) * Updates to monitor query based on API review feedback (#22114) * API consistency review feedback * Remove commented code * fix tests * Refactor building prefer header * Fix Management Bug (#22122) * Adding missing return statement. * Using common logic for status codes. * Adding isSuccessful. * mgmt, upgrade aks (#22136) * Add domain_hint in aad-stater. (#22134) * Increment version for core releases (#22124) Increment package version after release of Core libraries * Update datafeed tests to remove error code asserts (#22121) * Made Tables service interfaces public (#22130) * Made service interfaces public for Key Vault and Tables impl clients. * Removed kvErrorStrings.properties files from Key Vault SDKs. Made KeyVaultErrorCodeStrings store the constants that were in the files. * Added check for null credentials in Key Vault Administration Builders. * Reverted changes made to KV libraries. * Adding lmolkova as owner for core, opentelemetry, and azure monitor exporter (#22128) * Re-generate EventGrid 4.4.0 events without FarmsBeat events (#22148) * Client throughput control: Deferring store invocation (#22144) * Dummy * Deferring teh request when ClinetThrouhgputControl is enabled * Client throughput control: defer store invocation * Adding additional test-coverage in throughput tests * Reacting to code review feedback. * Adding back createItem_withBulk test * Sync eng/common directory with azure-sdk-tools for PR 1633 (#22145) * Update format of new Changelog Entry * Add parsing of changelog sections * Update ChangeLog Logic Co-authored-by: Chidozie Ononiwu * [Communication]: Update readme to release version (#22149) * Update readme to release version * Ignore transitive API errors from core Co-authored-by: JP Chen * Update pom (#22155) Co-authored-by: JP Chen * Update EventGrid Version to 4.4.0 (#22156) * Prepared storage for GA release of STG77 (#22152) * Identity versions Update June 2021 (#22153) * updated keyvault jca changelog for local jre keystore certificates (#22133) * mgmt, support vm boot diagnostics on managed storage account (#22162) * Cosmos Spark: Not-nullable properties to include "id" (#22143) * Id not nullable * Unit tests * Adding _ts * Integration tests * Update the release dates (#22169) * Increment package version after release of com.azure azure-identity (#22168) * Added support for metadata in messages (#22158) * Added support for metadata in messages * Updated tests to reflect various PATCH scenarios. Reverted the autorest convention change * Re-added V2021_03_07 Co-authored-by: Andrei Giurgiu * Fix Azure Core Amqp Sample issue #18806 by lihong 202105271344 (#21885) * Change Track 2 SB sendMessages() API for messages are being sent at a slow pace (#21014) * [BUG] Track 2 SB API (Batch Send Messages) doesn't seem to work. Messages are being sent at a slow pace. #16127 * Implement an Event Hubs Shared Access Key Credential (#21228) * Fix issue#16466 Implement an Event Hubs Shared Access Key Credential 202105061703 by LiHong * Prepare for metricsadvisor Beta release (#22175) * Prepare monitor query for release (#22166) * Increment version for communication releases (#22171) * Increment package version after release of com.azure azure-communication-identity * Increment package version after release of com.azure azure-communication-common * Increment package version after release of com.azure azure-communication-phonenumbers * Increment package version after release of com.azure azure-communication-sms * Increment package version after release of com.azure azure-ai-metricsadvisor (#22179) * Update azure-search-documents After Release (#22176) * Fix title in changelog (#22181) * Increment version for storage releases (#22172) * Increment package version after release of com.azure azure-storage-internal-avro * Increment package version after release of com.azure azure-storage-common * Increment package version after release of com.azure azure-storage-blob * Increment package version after release of com.azure azure-storage-queue * Increment package version after release of com.azure azure-storage-file-share * Increment package version after release of com.azure azure-storage-blob-batch * Increment package version after release of com.azure azure-storage-blob-nio * Increment package version after release of com.azure azure-storage-blob-cryptography * Increment package version after release of com.azure azure-storage-file-datalake * Increment package version after release of com.azure azure-storage-blob-changefeed * Adding IoT Hub connection string sample (#22157) * Adding IoTHubConnection string sample. * Tables list/get access policies changes (#22161) * Fixed serialization issues with listAccessPolicies() and setAccessPolicies in TableAsyncClient and TableClient. Added tests. * Added a test for service properties and statistics. * Fixed CheckStyle issues. * Applied PR feedback. * Fixed compilation error(?). * Made TableAccessPolicies final. * Fixed another CheckStyle issue. * Fixed another CheckStyle issue. Co-authored-by: Connie Yau Co-authored-by: Alan Zimmer <48699787+alzimmermsft@users.noreply.github.com> Co-authored-by: Matias Quaranta Co-authored-by: Jianping Chen Co-authored-by: JP Chen Co-authored-by: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Co-authored-by: giakas Co-authored-by: michaelqi793 <78671298+michaelqi793@users.noreply.github.com> Co-authored-by: Rujun Chen Co-authored-by: Yijun Xie <48257664+YijunXieMS@users.noreply.github.com> Co-authored-by: Srikanta <51379715+srnagar@users.noreply.github.com> Co-authored-by: Weidong Xu Co-authored-by: gaohan <1135494872@qq.com> Co-authored-by: Sameeksha Vaity Co-authored-by: vcolin7 Co-authored-by: Liudmila Molkova Co-authored-by: Fabian Meiswinkel Co-authored-by: Chidozie Ononiwu Co-authored-by: Gauri Prasad <51212198+gapra-msft@users.noreply.github.com> Co-authored-by: Vinay Gera Co-authored-by: ankitarorabit <48968483+ankitarorabit@users.noreply.github.com> Co-authored-by: angiurgiu Co-authored-by: Andrei Giurgiu Co-authored-by: Hong Li(MSFT) <74638143+hongli750210@users.noreply.github.com> --- common/smoke-tests/pom.xml | 4 +- eng/jacoco-test-coverage/pom.xml | 34 +- eng/versioning/version_client.txt | 35 +- .../azure-ai-anomalydetector/pom.xml | 2 +- .../azure-data-appconfiguration/pom.xml | 2 +- .../pom.xml | 2 +- .../pom.xml | 2 +- .../azure-security-attestation/pom.xml | 2 +- sdk/boms/azure-spring-boot-bom/pom.xml | 6 +- .../azure-spring-cloud-dependencies/pom.xml | 2 +- .../azure-communication-chat/CHANGELOG.md | 1 + .../chat/ChatServiceVersion.java | 5 +- ...reCommunicationChatServiceImplBuilder.java | 2 +- .../converters/ChatMessageConverter.java | 3 +- .../implementation/models/ChatMessage.java | 27 + .../chat/models/ChatMessage.java | 27 + .../chat/models/SendChatMessageOptions.java | 27 + .../chat/models/UpdateChatMessageOptions.java | 27 + .../chat/ChatThreadAsyncClientTest.java | 20 +- .../chat/ChatThreadClientTest.java | 15 + .../implementation/ChatOptionsProvider.java | 33 +- ...hreadWithoutSettingRepeatabilityID[1].json | 95 ++-- ...ntTest.canCreateThreadWithResponse[1].json | 74 +-- ...hatAsyncClientTest.canCreateThread[1].json | 74 +-- ...st.canDeleteChatThreadWithResponse[1].json | 89 +-- ...syncClientTest.canDeleteChatThread[1].json | 89 +-- ...cClientTest.canGetChatThreadClient[1].json | 53 +- ...nGetExistingChatThreadWithResponse[1].json | 91 +-- ...lientTest.canGetExistingChatThread[1].json | 91 +-- ....canListChatThreadsWithMaxPageSize[1].json | 53 +- ...AsyncClientTest.canListChatThreads[1].json | 53 +- ...alidParticipantsOnCreateChatThread[1].json | 4 +- ...ncClientTest.canRepeatCreateThread[1].json | 116 ++-- ....cannotCreateThreadWithNullOptions[1].json | 53 +- ...eThreadWithResponseWithNullOptions[1].json | 53 +- ...t.cannotDeleteChatThreadWithNullId[1].json | 53 +- ...teChatThreadWithResponseWithNullId[1].json | 53 +- ...ntTest.canCreateThreadWithResponse[1].json | 74 +-- .../ChatClientTest.canCreateThread[1].json | 74 +-- ...st.canDeleteChatThreadWithResponse[1].json | 89 +-- ...ChatClientTest.canDeleteChatThread[1].json | 89 +-- ...tClientTest.canGetChatThreadClient[1].json | 53 +- ....canListChatThreadsWithMaxPageSize[1].json | 112 ++-- .../ChatClientTest.canListChatThreads[1].json | 112 ++-- ...st.canAddListAndRemoveMembersAsync[1].json | 138 ++--- ...stAndRemoveMembersWithOptionsAsync[1].json | 112 ++-- ...tAndRemoveMembersWithResponseAsync[1].json | 138 ++--- ...stWithContextAndRemoveMembersAsync[1].json | 91 +-- ....canAddListWithContextMembersAsync[1].json | 108 ++-- ...tTest.canAddSingleParticipantAsync[1].json | 91 +-- ...SingleParticipantWithResponseAsync[1].json | 91 +-- ...nDeleteExistingMessageWithResponse[1].json | 110 ++-- ...lientTest.canDeleteExistingMessage[1].json | 110 ++-- ...entTest.canListMessagesWithOptions[1].json | 74 +-- ...eadAsyncClientTest.canListMessages[1].json | 74 +-- ...est.canListReadReceiptsWithContext[1].json | 4 +- ...est.canListReadReceiptsWithOptions[1].json | 2 +- ...syncClientTest.canListReadReceipts[1].json | 4 +- ...est.canSendReadReceiptWithResponse[1].json | 112 ++-- ...AsyncClientTest.canSendReadReceipt[1].json | 112 ++-- ...ientTest.canSendThenGetHtmlMessage[1].json | 112 ++-- ....canSendThenGetMessageWithResponse[1].json | 112 ++-- ...ncClientTest.canSendThenGetMessage[1].json | 112 ++-- ...endThenListReadReceiptsWithOptions[1].json | 60 +- ...ndThenListReadReceiptsWithResponse[1].json | 74 +-- ...ntTest.canSendThenListReadReceipts[1].json | 74 +-- ...SendTypingNotificationWithResponse[1].json | 91 +-- ...ientTest.canSendTypingNotification[1].json | 91 +-- ...nUpdateExistingMessageWithResponse[1].json | 127 +++-- ...lientTest.canUpdateExistingMessage[1].json | 74 +-- ...ntTest.canUpdateThreadWithResponse[1].json | 106 ++-- ...eadAsyncClientTest.canUpdateThread[1].json | 74 +-- ...nnotAddParticipantsWithNullOptions[1].json | 74 +-- ...cipantsWithResponseWithNullOptions[1].json | 74 +-- ...ientTest.cannotDeleteMessageNullId[1].json | 74 +-- ...notDeleteMessageWithRepsonseNullId[1].json | 74 +-- ...cClientTest.cannotGetMessageNullId[1].json | 74 +-- ....cannotGetMessageWithReponseNullId[1].json | 74 +-- ...articipantWithNullUserWithResponse[1].json | 74 +-- ...annotRemoveParticipantWithNullUser[1].json | 74 +-- ...t.cannotSendMessageWithNullOptions[1].json | 74 +-- ...MessageWithResponseWithNullOptions[1].json | 74 +-- ...otSendReadReceiptWithNullMessageId[1].json | 74 +-- ...ceiptWithResponseWithNullMessageId[1].json | 74 +-- ...ientTest.cannotUpdateMessageNullId[1].json | 74 +-- ...notUpdateMessageWithResponseNullId[1].json | 74 +-- ...st.cannotUpdateThreadWithNullTopic[1].json | 74 +-- ...ateThreadWithResponseWithNullTopic[1].json | 74 +-- ...ntTest.throwsExceptionOnBadRequest[1].json | 4 +- ...ddListAndRemoveMembersWithResponse[1].json | 204 +++---- ...stAndRemoveParticipantsWithOptions[1].json | 221 ++++---- ...tAndRemoveParticipantsWithResponse[1].json | 125 ++-- ...st.canAddListAndRemoveParticipants[1].json | 204 +++---- ...anAddSingleParticipantWithResponse[1].json | 157 ++--- ...ClientTest.canAddSingleParticipant[1].json | 157 ++--- ...nDeleteExistingMessageWithResponse[1].json | 144 ++--- ...lientTest.canDeleteExistingMessage[1].json | 144 ++--- ...etChatThreadPropertiesWithResponse[1].json | 125 ++-- ...entTest.canGetChatThreadProperties[1].json | 125 ++-- ...est.canListMessagesWithOptionsSync[1].json | 167 +++--- ...entTest.canListMessagesWithOptions[1].json | 167 +++--- ...est.canListReadReceiptsWithContext[1].json | 4 +- ...readClientTest.canListReadReceipts[1].json | 4 +- ...dClientTest.canSendReadReceiptSync[1].json | 146 ++--- ...canSendReadReceiptWithResponseSync[1].json | 146 ++--- ....canSendThenGetMessageWithResponse[1].json | 146 ++--- ...adClientTest.canSendThenGetMessage[1].json | 146 ++--- ...endThenListReadReceiptsWithOptions[1].json | 163 +++--- ...ndThenListReadReceiptsWithResponse[1].json | 163 +++--- ...ntTest.canSendThenListReadReceipts[1].json | 163 +++--- ...SendTypingNotificationWithResponse[1].json | 125 ++-- ...ientTest.canSendTypingNotification[1].json | 125 ++-- ...nUpdateExistingMessageWithResponse[1].json | 161 +++--- ...lientTest.canUpdateExistingMessage[1].json | 161 +++--- ...ntTest.canUpdateThreadWithResponse[1].json | 140 ++--- ...atThreadClientTest.canUpdateThread[1].json | 140 ++--- ...ntTest.throwsExceptionOnBadRequest[1].json | 4 +- .../swagger/README.md | 9 +- .../azure-communication-common/CHANGELOG.md | 4 + .../azure-communication-identity/CHANGELOG.md | 4 + .../azure-communication-identity/pom.xml | 2 +- .../CHANGELOG.md | 4 + .../azure-communication-phonenumbers/pom.xml | 2 +- .../azure-communication-sms/CHANGELOG.md | 4 + .../azure-communication-sms/pom.xml | 2 +- .../azure-security-confidentialledger/pom.xml | 2 +- .../azure-resourcemanager-confluent/pom.xml | 2 +- .../pom.xml | 2 +- ...mqpAnnotatedMessageJavaDocCodeSamples.java | 7 +- .../azure-core-tracing-opentelemetry/pom.xml | 2 +- sdk/cosmos/azure-cosmos-encryption/pom.xml | 2 +- .../cosmos/spark/SparkE2EQueryITest.scala | 51 -- sdk/cosmos/azure-cosmos/pom.xml | 2 +- .../azure-resourcemanager-datafactory/pom.xml | 4 +- .../pom.xml | 2 +- .../azure-iot-deviceupdate/pom.xml | 4 +- .../azure-digitaltwins-core/pom.xml | 2 +- .../pom.xml | 2 +- .../azure-messaging-eventgrid/pom.xml | 2 +- .../pom.xml | 4 +- .../azure-messaging-eventhubs/pom.xml | 2 +- .../eventhubs/EventHubClientBuilder.java | 73 +++ .../eventhubs/IoTHubConnectionSample.java | 535 ++++++++++++++++++ .../eventhubs/EventHubClientBuilderTest.java | 126 ++++- .../eventhubs/IntegrationTestBase.java | 6 +- .../azure-verticals-agrifood-farming/pom.xml | 2 +- .../azure-ai-formrecognizer/pom.xml | 2 +- .../azure-resourcemanager-hdinsight/pom.xml | 2 +- sdk/identity/azure-identity/CHANGELOG.md | 6 + .../pom.xml | 2 +- .../pom.xml | 2 +- .../pom.xml | 2 +- .../azure-security-keyvault-keys/pom.xml | 2 +- .../azure-security-keyvault-secrets/pom.xml | 2 +- .../azure-resourcemanager-maintenance/pom.xml | 2 +- sdk/maps/azure-resourcemanager-maps/pom.xml | 2 +- .../azure-ai-metricsadvisor-perf/pom.xml | 2 +- .../azure-ai-metricsadvisor/CHANGELOG.md | 5 +- .../azure-ai-metricsadvisor/pom.xml | 4 +- sdk/metricsadvisor/pom.xml | 2 +- .../azure-mixedreality-authentication/pom.xml | 2 +- .../azure-iot-modelsrepository/pom.xml | 2 +- sdk/monitor/azure-monitor-query/CHANGELOG.md | 9 +- sdk/monitor/azure-monitor-query/README.md | 4 + sdk/monitor/azure-monitor-query/pom.xml | 2 +- .../azure-resourcemanager-netapp/pom.xml | 2 +- .../azure-analytics-purview-catalog/pom.xml | 2 +- .../azure-analytics-purview-scanning/pom.xml | 2 +- sdk/quantum/azure-quantum-jobs/pom.xml | 4 +- .../pom.xml | 2 +- .../pom.xml | 2 +- .../azure-resourcemanager-appplatform/pom.xml | 2 +- .../azure-resourcemanager-compute/pom.xml | 2 +- .../pom.xml | 2 +- .../azure-resourcemanager-samples/pom.xml | 4 +- .../azure-resourcemanager-test/pom.xml | 2 +- .../azure-data-schemaregistry-avro/pom.xml | 2 +- .../azure-data-schemaregistry/pom.xml | 2 +- .../azure-search-documents/CHANGELOG.md | 32 +- sdk/search/azure-search-documents/README.md | 2 +- sdk/search/azure-search-documents/pom.xml | 2 +- .../models/AsciiFoldingTokenFilter.java | 6 +- .../models/CjkBigramTokenFilter.java | 6 +- .../models/ClassicTokenizer.java | 6 +- .../models/CommonGramTokenFilter.java | 6 +- .../DictionaryDecompounderTokenFilter.java | 6 +- .../models/EdgeNGramTokenFilter.java | 6 +- .../models/EdgeNGramTokenFilterV2.java | 6 +- .../models/EdgeNGramTokenizer.java | 6 +- .../models/ElisionTokenFilter.java | 6 +- .../models/KeepTokenFilter.java | 6 +- .../models/KeywordMarkerTokenFilter.java | 6 +- .../models/KeywordTokenizer.java | 6 +- .../models/KeywordTokenizerV2.java | 6 +- .../models/LengthTokenFilter.java | 6 +- .../models/LexicalTokenizer.java | 4 +- .../models/LimitTokenFilter.java | 6 +- .../models/LuceneStandardTokenizer.java | 6 +- .../models/LuceneStandardTokenizerV2.java | 6 +- .../MicrosoftLanguageStemmingTokenizer.java | 6 +- .../models/MicrosoftLanguageTokenizer.java | 6 +- .../models/NGramTokenFilter.java | 6 +- .../models/NGramTokenFilterV2.java | 6 +- .../implementation/models/NGramTokenizer.java | 6 +- .../models/PathHierarchyTokenizerV2.java | 6 +- .../models/PatternCaptureTokenFilter.java | 6 +- .../models/PatternReplaceTokenFilter.java | 6 +- .../models/PatternTokenizer.java | 6 +- .../models/PhoneticTokenFilter.java | 6 +- .../models/ShingleTokenFilter.java | 6 +- .../models/SnowballTokenFilter.java | 6 +- .../models/StemmerOverrideTokenFilter.java | 6 +- .../models/StemmerTokenFilter.java | 6 +- .../models/StopwordsTokenFilter.java | 6 +- .../models/SynonymTokenFilter.java | 6 +- .../implementation/models/TokenFilter.java | 4 +- .../models/TruncateTokenFilter.java | 6 +- .../models/UaxUrlEmailTokenizer.java | 6 +- .../models/UniqueTokenFilter.java | 6 +- .../models/WordDelimiterTokenFilter.java | 6 +- .../models/BM25SimilarityAlgorithm.java | 4 +- .../documents/indexes/models/CharFilter.java | 4 +- .../models/ClassicSimilarityAlgorithm.java | 4 +- .../models/CognitiveServicesAccount.java | 4 +- .../models/CognitiveServicesAccountKey.java | 4 +- .../indexes/models/ConditionalSkill.java | 4 +- .../indexes/models/CustomAnalyzer.java | 4 +- .../models/CustomEntityLookupSkill.java | 4 +- .../indexes/models/CustomNormalizer.java | 4 +- .../models/DataChangeDetectionPolicy.java | 4 +- .../models/DataDeletionDetectionPolicy.java | 4 +- .../DefaultCognitiveServicesAccount.java | 4 +- .../models/DocumentExtractionSkill.java | 4 +- .../models/EntityRecognitionSkill.java | 4 +- .../HighWaterMarkChangeDetectionPolicy.java | 4 +- .../indexes/models/ImageAnalysisSkill.java | 4 +- .../models/KeyPhraseExtractionSkill.java | 4 +- .../models/LanguageDetectionSkill.java | 4 +- .../indexes/models/LexicalAnalyzer.java | 4 +- .../indexes/models/LexicalNormalizer.java | 4 +- .../models/LuceneStandardAnalyzer.java | 4 +- .../indexes/models/MappingCharFilter.java | 4 +- .../documents/indexes/models/MergeSkill.java | 4 +- .../documents/indexes/models/OcrSkill.java | 4 +- .../indexes/models/PatternAnalyzer.java | 4 +- .../models/PatternReplaceCharFilter.java | 4 +- ...rKnowledgeStoreBlobProjectionSelector.java | 36 +- ...rKnowledgeStoreFileProjectionSelector.java | 37 +- ...nowledgeStoreObjectProjectionSelector.java | 37 +- ...dexerKnowledgeStoreProjectionSelector.java | 2 +- ...KnowledgeStoreTableProjectionSelector.java | 33 ++ .../indexes/models/SearchIndexerSkill.java | 4 +- .../indexes/models/SentimentSkill.java | 4 +- .../documents/indexes/models/ShaperSkill.java | 4 +- .../indexes/models/SimilarityAlgorithm.java | 4 +- ...ftDeleteColumnDeletionDetectionPolicy.java | 4 +- .../documents/indexes/models/SplitSkill.java | 4 +- .../SqlIntegratedChangeTrackingPolicy.java | 4 +- .../indexes/models/StopAnalyzer.java | 4 +- .../indexes/models/TextTranslationSkill.java | 4 +- .../documents/indexes/models/WebApiSkill.java | 4 +- .../src/samples/README.md | 2 +- .../azure-search-documents/swagger/README.md | 1 + .../java/SearchServiceCustomizations.java | 65 ++- sdk/search/azure-search-perf/pom.xml | 2 +- sdk/search/pom.xml | 2 +- .../azure-messaging-servicebus/pom.xml | 2 +- .../servicebus/ServiceBusMessageBatch.java | 23 +- .../ServiceBusSenderAsyncClient.java | 29 +- .../servicebus/ServiceBusProcessorTest.java | 4 +- sdk/spring/azure-identity-spring/pom.xml | 2 +- .../pom.xml | 2 +- .../azure-spring-boot-starter-storage/pom.xml | 4 +- sdk/spring/azure-spring-boot/pom.xml | 6 +- sdk/spring/azure-spring-cloud-storage/pom.xml | 2 +- .../pom.xml | 2 +- .../azure-storage-blob-batch/CHANGELOG.md | 3 + sdk/storage/azure-storage-blob-batch/pom.xml | 8 +- .../CHANGELOG.md | 3 + .../azure-storage-blob-changefeed/pom.xml | 8 +- .../CHANGELOG.md | 3 + .../azure-storage-blob-cryptography/pom.xml | 14 +- .../azure-storage-blob-nio/CHANGELOG.md | 3 + sdk/storage/azure-storage-blob-nio/pom.xml | 6 +- sdk/storage/azure-storage-blob/CHANGELOG.md | 3 + sdk/storage/azure-storage-blob/pom.xml | 10 +- sdk/storage/azure-storage-common/CHANGELOG.md | 3 + sdk/storage/azure-storage-common/pom.xml | 4 +- .../azure-storage-file-datalake/CHANGELOG.md | 3 + .../azure-storage-file-datalake/pom.xml | 8 +- .../azure-storage-file-share/CHANGELOG.md | 3 + sdk/storage/azure-storage-file-share/pom.xml | 6 +- .../azure-storage-internal-avro/CHANGELOG.md | 3 + .../azure-storage-internal-avro/pom.xml | 6 +- sdk/storage/azure-storage-perf/pom.xml | 6 +- sdk/storage/azure-storage-queue/CHANGELOG.md | 3 + sdk/storage/azure-storage-queue/pom.xml | 8 +- sdk/storage/pom.xml | 20 +- .../pom.xml | 2 +- .../azure-analytics-synapse-artifacts/pom.xml | 2 +- .../pom.xml | 2 +- .../pom.xml | 2 +- .../azure-analytics-synapse-spark/pom.xml | 2 +- .../com/azure/data/tables/BuilderHelper.java | 3 - .../azure/data/tables/TableAsyncClient.java | 110 +++- .../com/azure/data/tables/TableClient.java | 19 +- .../data/tables/TableServiceAsyncClient.java | 1 - .../tables/implementation/TablesImpl.java | 8 +- .../models/SignedIdentifiersWrapper.java | 36 ++ .../tables/models/TableAccessPolicies.java | 31 + .../tables/models/TableSignedIdentifier.java | 26 +- .../data/tables/TableAsyncClientTest.java | 85 +++ .../tables/TableServiceAsyncClientTest.java | 25 + ...ncClientTest.setAndListAccessPolicies.json | 70 +++ ...Test.setAndListMultipleAccessPolicies.json | 70 +++ ...eServiceAsyncClientTest.getProperties.json | 25 + ...eServiceAsyncClientTest.getStatistics.json | 25 + .../azure-data-tables/swagger/README.md | 2 +- .../azure-ai-textanalytics/pom.xml | 2 +- .../azure-ai-documenttranslator/pom.xml | 2 +- .../azure-messaging-webpubsub/pom.xml | 2 +- 321 files changed, 6886 insertions(+), 4972 deletions(-) create mode 100644 sdk/eventhubs/azure-messaging-eventhubs/src/samples/java/com/azure/messaging/eventhubs/IoTHubConnectionSample.java create mode 100644 sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/models/SignedIdentifiersWrapper.java create mode 100644 sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableAccessPolicies.java create mode 100644 sdk/tables/azure-data-tables/src/test/resources/session-records/TableAsyncClientTest.setAndListAccessPolicies.json create mode 100644 sdk/tables/azure-data-tables/src/test/resources/session-records/TableAsyncClientTest.setAndListMultipleAccessPolicies.json create mode 100644 sdk/tables/azure-data-tables/src/test/resources/session-records/TableServiceAsyncClientTest.getProperties.json create mode 100644 sdk/tables/azure-data-tables/src/test/resources/session-records/TableServiceAsyncClientTest.getStatistics.json diff --git a/common/smoke-tests/pom.xml b/common/smoke-tests/pom.xml index a0034c0239852..ca308ce1fad89 100644 --- a/common/smoke-tests/pom.xml +++ b/common/smoke-tests/pom.xml @@ -124,7 +124,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 @@ -148,7 +148,7 @@ com.azure azure-storage-blob - 12.11.1 + 12.12.0 diff --git a/eng/jacoco-test-coverage/pom.xml b/eng/jacoco-test-coverage/pom.xml index 5981e820f11d6..936013fbc564a 100644 --- a/eng/jacoco-test-coverage/pom.xml +++ b/eng/jacoco-test-coverage/pom.xml @@ -49,7 +49,7 @@ com.azure azure-ai-metricsadvisor - 1.0.0-beta.4 + 1.0.0-beta.5 com.azure @@ -64,22 +64,22 @@ com.azure azure-communication-common - 1.0.2 + 1.1.0-beta.1 com.azure azure-communication-identity - 1.1.1 + 1.2.0-beta.1 com.azure azure-communication-sms - 1.0.3 + 1.1.0-beta.1 com.azure azure-communication-phonenumbers - 1.0.3 + 1.1.0-beta.1 com.azure @@ -194,7 +194,7 @@ com.azure azure-identity - 1.3.1 + 1.4.0-beta.1 com.azure @@ -229,7 +229,7 @@ com.azure azure-search-documents - 11.4.0-beta.3 + 11.5.0-beta.1 com.azure @@ -254,52 +254,52 @@ com.azure azure-storage-common - 12.12.0 + 12.13.0-beta.1 com.azure azure-storage-blob - 12.12.0 + 12.13.0-beta.1 com.azure azure-storage-blob-batch - 12.10.0 + 12.11.0-beta.1 com.azure azure-storage-blob-changefeed - 12.0.0-beta.7 + 12.0.0-beta.8 com.azure azure-storage-blob-cryptography - 12.12.0 + 12.13.0-beta.1 com.azure azure-storage-blob-nio - 12.0.0-beta.7 + 12.0.0-beta.8 com.azure azure-storage-file-share - 12.10.0 + 12.11.0-beta.1 com.azure azure-storage-file-datalake - 12.6.0 + 12.7.0-beta.1 com.azure azure-storage-internal-avro - 12.0.5 + 12.1.0-beta.1 com.azure azure-storage-queue - 12.10.0 + 12.11.0-beta.1 com.azure diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index f257781c0c889..ffb9e8bb8cee8 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -40,7 +40,7 @@ com.azure:azure-ai-anomalydetector;3.0.0-beta.2;3.0.0-beta.3 com.azure:azure-ai-formrecognizer;3.0.8;3.1.0 com.azure:azure-ai-formrecognizer-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-ai-documenttranslator;1.0.0-beta.1;1.0.0-beta.2 -com.azure:azure-ai-metricsadvisor;1.0.0-beta.3;1.0.0-beta.4 +com.azure:azure-ai-metricsadvisor;1.0.0-beta.4;1.0.0-beta.5 com.azure:azure-ai-metricsadvisor-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-ai-textanalytics;5.0.6;5.1.0-beta.8 com.azure:azure-ai-textanalytics-perf;1.0.0-beta.1;1.0.0-beta.1 @@ -51,12 +51,11 @@ com.azure:azure-analytics-synapse-artifacts;1.0.0-beta.4;1.0.0-beta.5 com.azure:azure-analytics-synapse-spark;1.0.0-beta.3;1.0.0-beta.4 com.azure:azure-analytics-synapse-managedprivateendpoints;1.0.0-beta.3;1.0.0-beta.4 com.azure:azure-analytics-synapse-monitoring;1.0.0-beta.3;1.0.0-beta.4 -com.azure:azure-communication-callingserver;1.0.0;1.0.0-beta.1 com.azure:azure-communication-chat;1.0.0;1.1.0-beta.1 -com.azure:azure-communication-common;1.0.2;1.0.2 -com.azure:azure-communication-sms;1.0.1;1.0.3 -com.azure:azure-communication-identity;1.1.0;1.1.1 -com.azure:azure-communication-phonenumbers;1.0.1;1.0.3 +com.azure:azure-communication-common;1.0.2;1.1.0-beta.1 +com.azure:azure-communication-sms;1.0.3;1.1.0-beta.1 +com.azure:azure-communication-identity;1.1.1;1.2.0-beta.1 +com.azure:azure-communication-phonenumbers;1.0.3;1.1.0-beta.1 com.azure:azure-containers-containerregistry;1.0.0-beta.2;1.0.0-beta.3 com.azure:azure-core;1.17.0;1.18.0-beta.1 com.azure:azure-core-amqp;2.0.6;2.1.0-beta.1 @@ -84,7 +83,7 @@ com.azure:azure-data-schemaregistry-avro;1.0.0-beta.4;1.0.0-beta.5 com.azure:azure-data-tables;12.0.0-beta.7;12.0.0-beta.8 com.azure:azure-digitaltwins-core;1.1.1;1.2.0-beta.1 com.azure:azure-e2e;1.0.0-beta.1;1.0.0-beta.1 -com.azure:azure-identity;1.3.0;1.3.1 +com.azure:azure-identity;1.3.1;1.4.0-beta.1 com.azure:azure-identity-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-iot-deviceupdate;1.0.0-beta.1;1.0.0-beta.2 com.azure:azure-iot-modelsrepository;1.0.0-beta.1;1.0.0-beta.2 @@ -102,7 +101,7 @@ com.azure:azure-mixedreality-remoterendering;1.0.0;1.1.0-beta.1 com.azure:azure-monitor-opentelemetry-exporter;1.0.0-beta.4;1.0.0-beta.5 com.azure:azure-monitor-query;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-quantum-jobs;1.0.0-beta.1;1.0.0-beta.2 -com.azure:azure-search-documents;11.3.2;11.4.0-beta.3 +com.azure:azure-search-documents;11.4.0;11.5.0-beta.1 com.azure:azure-search-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-security-attestation;1.0.0-beta.1;1.0.0-beta.2 com.azure:azure-security-confidentialledger;1.0.0-beta.2;1.0.0-beta.2 @@ -115,17 +114,17 @@ com.azure:azure-security-keyvault-secrets;4.2.8;4.3.0-beta.7 com.azure:azure-sdk-template;1.2.1-beta.2;1.2.1-beta.16 com.azure:azure-spring-data-cosmos;3.7.0;3.8.0-beta.1 com.azure:azure-spring-data-cosmos-test;3.0.0-beta.1;3.0.0-beta.1 -com.azure:azure-storage-blob;12.11.1;12.12.0 -com.azure:azure-storage-blob-batch;12.9.1;12.10.0 -com.azure:azure-storage-blob-changefeed;12.0.0-beta.6;12.0.0-beta.7 -com.azure:azure-storage-blob-cryptography;12.11.1;12.12.0 -com.azure:azure-storage-blob-nio;12.0.0-beta.6;12.0.0-beta.7 -com.azure:azure-storage-common;12.11.1;12.12.0 -com.azure:azure-storage-file-share;12.9.1;12.10.0 -com.azure:azure-storage-file-datalake;12.5.1;12.6.0 -com.azure:azure-storage-internal-avro;12.0.4;12.0.5 +com.azure:azure-storage-blob;12.12.0;12.13.0-beta.1 +com.azure:azure-storage-blob-batch;12.10.0;12.11.0-beta.1 +com.azure:azure-storage-blob-changefeed;12.0.0-beta.7;12.0.0-beta.8 +com.azure:azure-storage-blob-cryptography;12.12.0;12.13.0-beta.1 +com.azure:azure-storage-blob-nio;12.0.0-beta.7;12.0.0-beta.8 +com.azure:azure-storage-common;12.12.0;12.13.0-beta.1 +com.azure:azure-storage-file-share;12.10.0;12.11.0-beta.1 +com.azure:azure-storage-file-datalake;12.6.0;12.7.0-beta.1 +com.azure:azure-storage-internal-avro;12.0.5;12.1.0-beta.1 com.azure:azure-storage-perf;1.0.0-beta.1;1.0.0-beta.1 -com.azure:azure-storage-queue;12.9.1;12.10.0 +com.azure:azure-storage-queue;12.10.0;12.11.0-beta.1 com.azure:azure-template-perf;1.0.0-beta.1;1.0.0-beta.1 com.azure:azure-media-videoanalyzer-edge;1.0.0-beta.3;1.0.0-beta.4 com.azure:azure-verticals-agrifood-farming;1.0.0-beta.2;1.0.0-beta.3 diff --git a/sdk/anomalydetector/azure-ai-anomalydetector/pom.xml b/sdk/anomalydetector/azure-ai-anomalydetector/pom.xml index 9bd5e281b0af6..9921233c5af20 100644 --- a/sdk/anomalydetector/azure-ai-anomalydetector/pom.xml +++ b/sdk/anomalydetector/azure-ai-anomalydetector/pom.xml @@ -74,7 +74,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/appconfiguration/azure-data-appconfiguration/pom.xml b/sdk/appconfiguration/azure-data-appconfiguration/pom.xml index 300b0ebb732ef..68e9af38c1caf 100644 --- a/sdk/appconfiguration/azure-data-appconfiguration/pom.xml +++ b/sdk/appconfiguration/azure-data-appconfiguration/pom.xml @@ -90,7 +90,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/appconfiguration/azure-spring-cloud-appconfiguration-config/pom.xml b/sdk/appconfiguration/azure-spring-cloud-appconfiguration-config/pom.xml index 201dde0f9e5bc..21fe269153628 100644 --- a/sdk/appconfiguration/azure-spring-cloud-appconfiguration-config/pom.xml +++ b/sdk/appconfiguration/azure-spring-cloud-appconfiguration-config/pom.xml @@ -72,7 +72,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 com.azure diff --git a/sdk/appconfiguration/spring-cloud-azure-appconfiguration-config/pom.xml b/sdk/appconfiguration/spring-cloud-azure-appconfiguration-config/pom.xml index a5c464da66da5..879c78794235a 100644 --- a/sdk/appconfiguration/spring-cloud-azure-appconfiguration-config/pom.xml +++ b/sdk/appconfiguration/spring-cloud-azure-appconfiguration-config/pom.xml @@ -72,7 +72,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 com.azure diff --git a/sdk/attestation/azure-security-attestation/pom.xml b/sdk/attestation/azure-security-attestation/pom.xml index e7b0d89d1a7c9..5e17d5cc110e4 100644 --- a/sdk/attestation/azure-security-attestation/pom.xml +++ b/sdk/attestation/azure-security-attestation/pom.xml @@ -67,7 +67,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/boms/azure-spring-boot-bom/pom.xml b/sdk/boms/azure-spring-boot-bom/pom.xml index 949b7a9c75b0a..03802e18c67e2 100644 --- a/sdk/boms/azure-spring-boot-bom/pom.xml +++ b/sdk/boms/azure-spring-boot-bom/pom.xml @@ -40,13 +40,13 @@ ${project.version} ${project.version} 1.17.0 - 1.3.0 + 1.3.1 4.2.8 1.9.1 0.0.7 3.7.0 - 12.11.1 - 12.9.1 + 12.12.0 + 12.10.0 diff --git a/sdk/boms/azure-spring-cloud-dependencies/pom.xml b/sdk/boms/azure-spring-cloud-dependencies/pom.xml index eeff9b2a3e38c..285ca8919d1c0 100644 --- a/sdk/boms/azure-spring-cloud-dependencies/pom.xml +++ b/sdk/boms/azure-spring-cloud-dependencies/pom.xml @@ -50,7 +50,7 @@ 5.7.1 1.7.1 3.6.1 - 12.9.1 + 12.10.0 diff --git a/sdk/communication/azure-communication-chat/CHANGELOG.md b/sdk/communication/azure-communication-chat/CHANGELOG.md index cea00d286a693..6b8f166188e50 100644 --- a/sdk/communication/azure-communication-chat/CHANGELOG.md +++ b/sdk/communication/azure-communication-chat/CHANGELOG.md @@ -3,6 +3,7 @@ ## 1.1.0-beta.1 (Unreleased) - Added method `ChatThreadAsyncClient.listParticipants(ListParticipantsOptions listParticipantsOptions)` - Added method `ChatThreadAsyncClient.listReadReceipts(ListReadReceiptOptions listReadReceiptOptions)` +- Added support for metadata in messages. ## 1.0.1 (2021-05-27) - Dependency versions updated. diff --git a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/ChatServiceVersion.java b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/ChatServiceVersion.java index 7076b95e2d682..b7c15a28475fd 100644 --- a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/ChatServiceVersion.java +++ b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/ChatServiceVersion.java @@ -9,7 +9,8 @@ * The versions of Chat Service supported by this client library. */ public enum ChatServiceVersion implements ServiceVersion { - V2021_03_07("2021-03-07"); + V2021_03_07("2021-03-07"), + V2021_04_05_preview6("2021-04-05-preview6"); private final String version; @@ -34,6 +35,6 @@ public String getVersion() { */ public static ChatServiceVersion getLatest() { - return V2021_03_07; + return V2021_04_05_preview6; } } diff --git a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/implementation/AzureCommunicationChatServiceImplBuilder.java b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/implementation/AzureCommunicationChatServiceImplBuilder.java index 34b1d64d13ea9..eab653bbd6e4e 100644 --- a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/implementation/AzureCommunicationChatServiceImplBuilder.java +++ b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/implementation/AzureCommunicationChatServiceImplBuilder.java @@ -190,7 +190,7 @@ public AzureCommunicationChatServiceImplBuilder addPolicy(HttpPipelinePolicy cus */ public AzureCommunicationChatServiceImpl buildClient() { if (apiVersion == null) { - this.apiVersion = "2021-03-07"; + this.apiVersion = "2021-04-05-preview6"; } if (pipeline == null) { this.pipeline = createHttpPipeline(); diff --git a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/implementation/converters/ChatMessageConverter.java b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/implementation/converters/ChatMessageConverter.java index a74fced5e86ce..fc5ee5af47940 100644 --- a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/implementation/converters/ChatMessageConverter.java +++ b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/implementation/converters/ChatMessageConverter.java @@ -26,7 +26,8 @@ public static ChatMessage convert(com.azure.communication.chat.implementation.mo .setCreatedOn(obj.getCreatedOn()) .setDeletedOn(obj.getDeletedOn()) .setEditedOn(obj.getEditedOn()) - .setSenderDisplayName(obj.getSenderDisplayName()); + .setSenderDisplayName(obj.getSenderDisplayName()) + .setMetadata(obj.getMetadata()); if (obj.getSenderCommunicationIdentifier() != null) { chatMessage.setSender( diff --git a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/implementation/models/ChatMessage.java b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/implementation/models/ChatMessage.java index 19f030249a9d9..c195a87824310 100644 --- a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/implementation/models/ChatMessage.java +++ b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/implementation/models/ChatMessage.java @@ -8,6 +8,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; +import java.util.Map; /** Chat message. */ @Fluent @@ -79,6 +80,12 @@ public final class ChatMessage { @JsonProperty(value = "editedOn") private OffsetDateTime editedOn; + /* + * Message metadata. + */ + @JsonProperty(value = "metadata") + private Map metadata; + /** * Get the id property: The id of the chat message. This id is server generated. * @@ -290,4 +297,24 @@ public ChatMessage setEditedOn(OffsetDateTime editedOn) { this.editedOn = editedOn; return this; } + + /** + * Get the metadata property: Message metadata. + * + * @return the metadata value. + */ + public Map getMetadata() { + return this.metadata; + } + + /** + * Set the metadata property: Message metadata. + * + * @param metadata the metadata value to set. + * @return the ChatMessage object itself. + */ + public ChatMessage setMetadata(Map metadata) { + this.metadata = metadata; + return this; + } } diff --git a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatMessage.java b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatMessage.java index 7d8e84b774812..ac85cfd0ec697 100644 --- a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatMessage.java +++ b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/ChatMessage.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; +import java.util.Map; /** The ChatMessage model. */ @Fluent @@ -73,6 +74,12 @@ public final class ChatMessage { @JsonProperty(value = "editedOn") private OffsetDateTime editedOn; + /* + * Message metadata. + */ + @JsonProperty(value = "metadata") + private Map metadata; + /** * Get the id property: The id of the chat message. This id is server generated. * @@ -268,4 +275,24 @@ public ChatMessage setEditedOn(OffsetDateTime editedOn) { this.editedOn = editedOn; return this; } + + /** + * Get the metadata property: Message metadata. + * + * @return the metadata value. + */ + public Map getMetadata() { + return this.metadata; + } + + /** + * Set the metadata property: Message metadata. + * + * @param metadata the metadata value to set. + * @return the ChatMessage object itself. + */ + public ChatMessage setMetadata(Map metadata) { + this.metadata = metadata; + return this; + } } diff --git a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/SendChatMessageOptions.java b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/SendChatMessageOptions.java index 6a8ad5a10b6bd..65393ce625894 100644 --- a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/SendChatMessageOptions.java +++ b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/SendChatMessageOptions.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; /** Details of the message to send. */ @Fluent @@ -29,6 +30,12 @@ public final class SendChatMessageOptions { @JsonProperty(value = "type") private ChatMessageType type; + /* + * Message metadata. + */ + @JsonProperty(value = "metadata") + private Map metadata; + /** * Get the content property: Chat message content. * @@ -90,4 +97,24 @@ public SendChatMessageOptions setType(ChatMessageType type) { this.type = type; return this; } + + /** + * Get the metadata property: Message metadata. + * + * @return the metadata value. + */ + public Map getMetadata() { + return this.metadata; + } + + /** + * Set the metadata property: Message metadata. + * + * @param metadata the metadata value to set. + * @return the SendChatMessageOptions object itself. + */ + public SendChatMessageOptions setMetadata(Map metadata) { + this.metadata = metadata; + return this; + } } diff --git a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/UpdateChatMessageOptions.java b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/UpdateChatMessageOptions.java index db7fd0fe5d772..b1972a1973474 100644 --- a/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/UpdateChatMessageOptions.java +++ b/sdk/communication/azure-communication-chat/src/main/java/com/azure/communication/chat/models/UpdateChatMessageOptions.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.Map; /** Request payload for updating a chat message. */ @Fluent @@ -16,6 +17,12 @@ public final class UpdateChatMessageOptions { @JsonProperty(value = "content") private String content; + /* + * Message metadata. + */ + @JsonProperty(value = "metadata") + private Map metadata; + /** * Get the content property: Chat message content. * @@ -35,4 +42,24 @@ public UpdateChatMessageOptions setContent(String content) { this.content = content; return this; } + + /** + * Get the metadata property: Message metadata. + * + * @return the metadata value. + */ + public Map getMetadata() { + return this.metadata; + } + + /** + * Set the metadata property: Message metadata. + * + * @param metadata the metadata value to set. + * @return the UpdateChatMessageOptions object itself. + */ + public UpdateChatMessageOptions setMetadata(Map metadata) { + this.metadata = metadata; + return this; + } } diff --git a/sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/ChatThreadAsyncClientTest.java b/sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/ChatThreadAsyncClientTest.java index 37c9f7df11ed0..addfd3ecfdd88 100644 --- a/sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/ChatThreadAsyncClientTest.java +++ b/sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/ChatThreadAsyncClientTest.java @@ -4,6 +4,7 @@ package com.azure.communication.chat; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; @@ -375,10 +376,7 @@ public Mono send(HttpRequest request) { public void canSendThenGetHtmlMessage(HttpClient httpClient) { // Arrange setupTest(httpClient, "canSendThenGetHtmlMessage"); - SendChatMessageOptions messageRequest = new SendChatMessageOptions() - .setType(ChatMessageType.HTML) - .setSenderDisplayName("John") - .setContent("
test
"); + SendChatMessageOptions messageRequest = ChatOptionsProvider.sendMessageOptions(ChatMessageType.HTML, "
test
"); // Action & Assert StepVerifier @@ -457,6 +455,7 @@ public void canSendThenGetMessage(HttpClient httpClient) { assertEquals(message.getContent().getMessage(), messageRequest.getContent()); assertEquals(message.getType(), messageRequest.getType()); assertEquals(message.getSenderDisplayName(), messageRequest.getSenderDisplayName()); + assertTrue(message.getMetadata().equals(messageRequest.getMetadata())); }) .verifyComplete(); } @@ -480,6 +479,7 @@ public void canSendThenGetMessageWithResponse(HttpClient httpClient) { ChatMessage message = getResponse.getValue(); assertEquals(message.getContent().getMessage(), messageRequest.getContent()); assertEquals(message.getSenderDisplayName(), messageRequest.getSenderDisplayName()); + assertTrue(message.getMetadata().equals(messageRequest.getMetadata())); }) .verifyComplete(); } @@ -609,6 +609,12 @@ public void canUpdateExistingMessage(HttpClient httpClient) { ) .assertNext(message -> { assertEquals(message.getContent(), updateMessageRequest.getContent()); + + assertFalse(message.getMetadata().containsKey("tags")); + assertEquals(message.getMetadata().get("deliveryMode"), updateMessageRequest.getMetadata().get("deliveryMode")); + assertEquals(message.getMetadata().get("onedriveReferences"), updateMessageRequest.getMetadata().get("onedriveReferences")); + assertEquals(message.getMetadata().get("amsreferences"), messageRequest.getMetadata().get("amsreferences")); + assertEquals(message.getMetadata().get("key"), messageRequest.getMetadata().get("key")); }); } @@ -659,6 +665,12 @@ public void canUpdateExistingMessageWithResponse(HttpClient httpClient) { ) .assertNext(message -> { assertEquals(message.getContent().getMessage(), updateMessageRequest.getContent()); + + assertFalse(message.getMetadata().containsKey("tags")); + assertEquals(message.getMetadata().get("deliveryMode"), updateMessageRequest.getMetadata().get("deliveryMode")); + assertEquals(message.getMetadata().get("onedriveReferences"), updateMessageRequest.getMetadata().get("onedriveReferences")); + assertEquals(message.getMetadata().get("amsreferences"), messageRequest.getMetadata().get("amsreferences")); + assertEquals(message.getMetadata().get("key"), messageRequest.getMetadata().get("key")); }) .verifyComplete(); } diff --git a/sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/ChatThreadClientTest.java b/sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/ChatThreadClientTest.java index 448dfcbb28de1..3b96e61a6c68e 100644 --- a/sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/ChatThreadClientTest.java +++ b/sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/ChatThreadClientTest.java @@ -4,6 +4,7 @@ package com.azure.communication.chat; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertThrows; @@ -286,6 +287,7 @@ public void canSendThenGetMessage(HttpClient httpClient) { ChatMessage message = chatThreadClient.getMessage(response.getId()); assertEquals(message.getContent().getMessage(), messageRequest.getContent()); assertEquals(message.getSenderDisplayName(), messageRequest.getSenderDisplayName()); + assertTrue(message.getMetadata().equals(messageRequest.getMetadata())); } @ParameterizedTest @@ -301,6 +303,7 @@ public void canSendThenGetMessageWithResponse(HttpClient httpClient) { ChatMessage message = chatThreadClient.getMessageWithResponse(response.getId(), Context.NONE).getValue(); assertEquals(message.getContent().getMessage(), messageRequest.getContent()); assertEquals(message.getSenderDisplayName(), messageRequest.getSenderDisplayName()); + assertTrue(message.getMetadata().equals(messageRequest.getMetadata())); } @ParameterizedTest @@ -344,6 +347,12 @@ public void canUpdateExistingMessage(HttpClient httpClient) { ChatMessage message = chatThreadClient.getMessage(response.getId()); assertEquals(message.getContent().getMessage(), updateMessageRequest.getContent()); + + assertFalse(message.getMetadata().containsKey("tags")); + assertEquals(message.getMetadata().get("deliveryMode"), updateMessageRequest.getMetadata().get("deliveryMode")); + assertEquals(message.getMetadata().get("onedriveReferences"), updateMessageRequest.getMetadata().get("onedriveReferences")); + assertEquals(message.getMetadata().get("amsreferences"), messageRequest.getMetadata().get("amsreferences")); + assertEquals(message.getMetadata().get("key"), messageRequest.getMetadata().get("key")); } @ParameterizedTest @@ -361,6 +370,12 @@ public void canUpdateExistingMessageWithResponse(HttpClient httpClient) { ChatMessage message = chatThreadClient.getMessage(response.getId()); assertEquals(message.getContent().getMessage(), updateMessageRequest.getContent()); + + assertFalse(message.getMetadata().containsKey("tags")); + assertEquals(message.getMetadata().get("deliveryMode"), updateMessageRequest.getMetadata().get("deliveryMode")); + assertEquals(message.getMetadata().get("onedriveReferences"), updateMessageRequest.getMetadata().get("onedriveReferences")); + assertEquals(message.getMetadata().get("amsreferences"), messageRequest.getMetadata().get("amsreferences")); + assertEquals(message.getMetadata().get("key"), messageRequest.getMetadata().get("key")); } @ParameterizedTest diff --git a/sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/implementation/ChatOptionsProvider.java b/sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/implementation/ChatOptionsProvider.java index ae56f79872103..c9d2244037a6b 100644 --- a/sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/implementation/ChatOptionsProvider.java +++ b/sdk/communication/azure-communication-chat/src/test/java/com/azure/communication/chat/implementation/ChatOptionsProvider.java @@ -42,10 +42,15 @@ public static Iterable addParticipantsOptions(String userId1, S } public static SendChatMessageOptions sendMessageOptions() { + return sendMessageOptions(ChatMessageType.TEXT, "Content"); + } + + public static SendChatMessageOptions sendMessageOptions(ChatMessageType type, String content) { SendChatMessageOptions options = new SendChatMessageOptions(); - options.setContent("Content"); + options.setContent(content); options.setSenderDisplayName("Tester"); - options.setType(ChatMessageType.TEXT); + options.setType(type); + options.setMetadata(generateMessageMetadata()); return options; } @@ -53,6 +58,7 @@ public static SendChatMessageOptions sendMessageOptions() { public static UpdateChatMessageOptions updateMessageOptions() { UpdateChatMessageOptions options = new UpdateChatMessageOptions(); options.setContent("Update Test"); + options.setMetadata(generateUpdatedMessageMetadata()); return options; } @@ -64,4 +70,27 @@ private static ChatParticipant generateParticipant(String id, String displayName return chatParticipant; } + + private static Map generateMessageMetadata() { + return new HashMap() { + { + put("tags", "tags value"); + put("deliveryMode", "deliveryMode value"); + put("onedriveReferences", "onedriveReferences"); + put("amsreferences", "[\\\"test url file 3\\\"]"); + put("key", "value key"); + } + }; + } + + private static Map generateUpdatedMessageMetadata() { + return new HashMap() { + { + put("tags", ""); + put("deliveryMode", "deliveryMode value - updated"); + put("onedriveReferences", "onedriveReferences - updated"); + put("amsreferences", "[\\\"test url file 3\\\"]"); + } + }; + } } diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canCreateNewThreadWithoutSettingRepeatabilityID[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canCreateNewThreadWithoutSettingRepeatabilityID[1].json index 29c5796e368d5..09307b7b63579 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canCreateNewThreadWithoutSettingRepeatabilityID[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canCreateNewThreadWithoutSettingRepeatabilityID[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:45 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:19 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "qn2mOUpZAU+iZ/M4qXzpvA.0", - "X-Azure-Ref" : "0su9YYAAAAACMe2ZAWPt6RJzSSF3lbt2AWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-f517-99bf-a43a0d000639\"}}", - "x-ms-client-request-id" : "ca51fee1-c5fa-4909-b631-a9c05aaf264d", + "X-Processing-Time" : "28ms", + "MS-CV" : "vVsh+QrjsUyN8aWFM5y1pw.0", + "X-Azure-Ref" : "07wLAYAAAAACJGhKgyqaWRbErD95qBXyiV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1d5d-f40f-343a0d0017f3\"}}", + "x-ms-client-request-id" : "1057549b-9ee7-4d41-b3e3-c6aae0300b24", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,90 +27,94 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:46 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:20 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "jv5tMBMicU2v6gmdJHARww.0", - "X-Azure-Ref" : "0su9YYAAAAAAAkDGIMTQwQYfaca+qQ9lCWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-f56b-92fd-8b3a0d000448\"}}", - "x-ms-client-request-id" : "0e2b2f65-777e-4d4f-a74a-fc65dd0a0be1", + "X-Processing-Time" : "23ms", + "MS-CV" : "zmIwtlCrUUWJyjJP32mW3g.0", + "X-Azure-Ref" : "07wLAYAAAAABxDtuJHVFhTadSaG3zz4koV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1d9e-ac00-343a0d00dca0\"}}", + "x-ms-client-request-id" : "d1684470-7ca5-4fc8-b5e2-3ffc229b27d6", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-f517-99bf-a43a0d000639/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1d5d-f40f-343a0d0017f3/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:45 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:20 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "138ms", - "MS-CV" : "tIG8jeU0/EyjEIoK4S0A2g.0", - "X-Azure-Ref" : "0su9YYAAAAADpAf9t9ClsQpFgEmkWiJG1WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:45.7516052+00:00\"}", - "x-ms-client-request-id" : "43e96989-4e31-4f97-beaf-0669b9561bc0", + "X-Processing-Time" : "27ms", + "MS-CV" : "gG//oG8iSkKxUMXDiJi6UQ.0", + "X-Azure-Ref" : "08ALAYAAAAADTdW/nRN5HTb7ywAKkPZnHV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:19.09581+00:00\"}", + "x-ms-client-request-id" : "8e074dd9-1b3b-4b9c-96c9-fc477ef1bac1", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "1213ms", - "MS-CV" : "HkbEfxhjj0+3uGevQKk5GA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0su9YYAAAAADxcKtDwNoySq6lcbA7LUZLWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:yC6WdMFnY1KF3Z6yBzS_CwPsOEOcQCnfGOGbqo2eY9M1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:46Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-f517-99bf-a43a0d000639\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-f517-99bf-a43a0d000639\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:47 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:20 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "455ms", + "MS-CV" : "vzMWawS+V0SKF7qJYjRRGg.0", + "X-Azure-Ref" : "08ALAYAAAAADH7Ql6Sq6zQIfik6qMolisV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:A8aJuSOgIQlxLGRJQVJVFPp5Jl7CNZc782VwUMRxQCs1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:20Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1d5d-f40f-343a0d0017f3\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1d5d-f40f-343a0d0017f3\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AyC6WdMFnY1KF3Z6yBzS_CwPsOEOcQCnfGOGbqo2eY9M1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AA8aJuSOgIQlxLGRJQVJVFPp5Jl7CNZc782VwUMRxQCs1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "642ms", - "MS-CV" : "RYv7X33DFk+/6KQM0LTq9g.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0tO9YYAAAAACcUfe9HAEDRLrawmZZJFhcWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:oxDqDhtAgEfuX6ITkhCwNtxFo6iEg6F-Wy0byy5qNvM1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:48Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-f517-99bf-a43a0d000639\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-f517-99bf-a43a0d000639\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:47 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:21 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "648ms", + "MS-CV" : "bQ04iiDcbU2u3AQ4NqHZFg.0", + "X-Azure-Ref" : "08ALAYAAAAABPY9b01XI3QL1g4eCFoaN4V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:gjHcWkegz299sZF57U3PXXZO401kbpNlxEAQaYpIDlk1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:20Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1d5d-f40f-343a0d0017f3\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1d5d-f40f-343a0d0017f3\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AoxDqDhtAgEfuX6ITkhCwNtxFo6iEg6F-Wy0byy5qNvM1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AgjHcWkegz299sZF57U3PXXZO401kbpNlxEAQaYpIDlk1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canCreateThreadWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canCreateThreadWithResponse[1].json index 0d0185d333817..fb71567c0b9a3 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canCreateThreadWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canCreateThreadWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:41 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:16 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "uNEi3UL+2kGfCPvTyms3eg.0", - "X-Azure-Ref" : "0re9YYAAAAADW29zsIw+KSpg33YvhmpVOWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-e293-defd-8b3a0d0004a6\"}}", - "x-ms-client-request-id" : "43c467db-afbe-442d-8fc2-ca8d1afe82cd", + "X-Processing-Time" : "22ms", + "MS-CV" : "vMUEfyWr4E6o6tzH4dxuhA.0", + "X-Azure-Ref" : "07ALAYAAAAABANCop0QxTS6Z2fB/uiUN0V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-0feb-ac00-343a0d00dc9a\"}}", + "x-ms-client-request-id" : "c5aba9be-5a41-4444-b2d3-7cf3f444eeff", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:41 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:16 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "0W+r95vWl0qUcffoYK6HiQ.0", - "X-Azure-Ref" : "0re9YYAAAAAB8G89ul0EgSLkrRXePHJBZWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-e2e7-99bf-a43a0d000633\"}}", - "x-ms-client-request-id" : "8354c53c-2d3c-495b-8f88-5afc8ba947da", + "X-Processing-Time" : "21ms", + "MS-CV" : "jhPZ8+KRqEqZLSx/+1c5iA.0", + "X-Azure-Ref" : "07ALAYAAAAACrPC8Te6XYRYbUNnHWFsRRV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1021-f40f-343a0d0017ed\"}}", + "x-ms-client-request-id" : "8699454b-36ff-4e22-a4d3-cb0bca02400f", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-e293-defd-8b3a0d0004a6/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-0feb-ac00-343a0d00dc9a/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:41 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:16 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "158ms", - "MS-CV" : "rz1LfEwv5kWOw75xzR6H0A.0", - "X-Azure-Ref" : "0re9YYAAAAAAKMxSu5jPyR4wNnyLvAhmOWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:41.0351327+00:00\"}", - "x-ms-client-request-id" : "17723b0f-41c4-4830-bea6-0dd7a1097a74", + "X-Processing-Time" : "27ms", + "MS-CV" : "TAJLzKqreUW4e6sXxsdrpQ.0", + "X-Azure-Ref" : "07ALAYAAAAACNG+AZR8ctTaoAcS3vhc6YV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:15.6472254+00:00\"}", + "x-ms-client-request-id" : "6d2764ea-2861-4da0-ba98-f26222db1309", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "607ms", - "MS-CV" : "EoygGCj0HkKT9SJgU+/XKg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0ru9YYAAAAACROaC4nmLPTJ6mYaqRCXgbWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:nnyfEqhHGhWr9BEPBDmaFX-pvldvrpw6lFz9LDqPl_81@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:42Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-e293-defd-8b3a0d0004a6\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-e293-defd-8b3a0d0004a6\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:41 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:17 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "516ms", + "MS-CV" : "bA+LiPVN/UGXlPS4ug8K6Q.0", + "X-Azure-Ref" : "07ALAYAAAAAC9WgNI2S8wRKNYcHlanjDjV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:X7lp83fGVJB7eXR6WgmErhGKqHZIkTKT3mCNL_eiKWw1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:16Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-0feb-ac00-343a0d00dc9a\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-0feb-ac00-343a0d00dc9a\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AnnyfEqhHGhWr9BEPBDmaFX-pvldvrpw6lFz9LDqPl_81@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AX7lp83fGVJB7eXR6WgmErhGKqHZIkTKT3mCNL_eiKWw1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canCreateThread[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canCreateThread[1].json index b686167a8f1e6..0a20940bc0df4 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canCreateThread[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canCreateThread[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:42 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:17 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "+XT4BBZpWE+Eh59AOgf40w.0", - "X-Azure-Ref" : "0r+9YYAAAAAD93uuJe/X9RrSlkYWKuynMWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-e98b-99bf-a43a0d000635\"}}", - "x-ms-client-request-id" : "170666d6-0234-44e6-a359-64c0a649af89", + "X-Processing-Time" : "23ms", + "MS-CV" : "AKACNHrPCUuVkyRoUKvAMQ.0", + "X-Azure-Ref" : "07QLAYAAAAAAFh+sJpxv8S7H2f0e4Iq2OV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-14c8-f40f-343a0d0017ef\"}}", + "x-ms-client-request-id" : "ea76e9c5-e5fb-4873-88d0-74554716472b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:43 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:17 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "70ms", - "MS-CV" : "zd6EhbuKa0eZqAKIGofMSQ.0", - "X-Azure-Ref" : "0r+9YYAAAAABtTnvBxs9cRoU/zTit4A4DWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-ea1b-92fd-8b3a0d000445\"}}", - "x-ms-client-request-id" : "f98e8b62-52cc-4d96-9e55-11c21eec55a0", + "X-Processing-Time" : "24ms", + "MS-CV" : "hI4ATr233kO63qSL4n2q4Q.0", + "X-Azure-Ref" : "07QLAYAAAAABvrs7s+GrqRJm+rUTMYC5FV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-14ff-ac00-343a0d00dc9c\"}}", + "x-ms-client-request-id" : "22e745b0-4c53-47c3-80a4-a3bed125112b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-e98b-99bf-a43a0d000635/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-14c8-f40f-343a0d0017ef/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:43 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:17 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "137ms", - "MS-CV" : "/CSu8jnui0+BhqBFNOCKaw.0", - "X-Azure-Ref" : "0r+9YYAAAAAD/L4YVBoVoSKr7NSM3QJCzWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:42.8545208+00:00\"}", - "x-ms-client-request-id" : "9f75a935-90c1-4cb3-bb84-8f33c5b1bf46", + "X-Processing-Time" : "29ms", + "MS-CV" : "hp3h92hrMUK1qTEgDztoLA.0", + "X-Azure-Ref" : "07QLAYAAAAABW+slX2Df7QosPf9s3xcRKV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:16.888931+00:00\"}", + "x-ms-client-request-id" : "3ce9b914-9506-4bac-81a6-f0ab0884797f", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "727ms", - "MS-CV" : "b1o5PavwPUGm/VBd+NRtAw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0r+9YYAAAAADWmtSTeIogT4eRyf7VJjcDWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:IWTcej9N9cyVaQHQeEypvqnVJI5njLaCv5WBHNkM_rA1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:43Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-e98b-99bf-a43a0d000635\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-e98b-99bf-a43a0d000635\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:44 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:18 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "599ms", + "MS-CV" : "ABatf2iB20iCL1/2pgs48g.0", + "X-Azure-Ref" : "07QLAYAAAAACrlQc5j64CSaH06/iJLtOwV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:_gSTZw_HKcAxwd3rRNiSzfBdrKsWycewWu6b-dqMBxs1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:17Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-14c8-f40f-343a0d0017ef\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-14c8-f40f-343a0d0017ef\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AIWTcej9N9cyVaQHQeEypvqnVJI5njLaCv5WBHNkM_rA1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A_gSTZw_HKcAxwd3rRNiSzfBdrKsWycewWu6b-dqMBxs1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canDeleteChatThreadWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canDeleteChatThreadWithResponse[1].json index e9bb76787cc21..bcecf80001ecb 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canDeleteChatThreadWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canDeleteChatThreadWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:37 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:11 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "/QFfNii9ckeVjaxoAmCAfQ.0", - "X-Azure-Ref" : "0qe9YYAAAAADX3I/ctGqORrEjwgpejoVWWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d13f-defd-8b3a0d0004a3\"}}", - "x-ms-client-request-id" : "f708fdaa-4544-451e-8cbb-cb814d1a1cab", + "X-Processing-Time" : "23ms", + "MS-CV" : "zLc9c+H1VUWPyXPyPc921Q.0", + "X-Azure-Ref" : "05wLAYAAAAAB3QuJrDp+QSoJlTpyw9p8tV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-fa7e-ac00-343a0d00dc95\"}}", + "x-ms-client-request-id" : "9cfad350-4d1e-4f16-9786-f0b6236d1135", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,85 +27,89 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:36 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:11 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "uorQGGZm3U2J192vufQnJw.0", - "X-Azure-Ref" : "0qe9YYAAAAAA6prGxzF4zQq7OCqcMXPEKWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d192-99bf-a43a0d000630\"}}", - "x-ms-client-request-id" : "818fd628-476a-47ab-9c11-456f9c0d458b", + "X-Processing-Time" : "24ms", + "MS-CV" : "DK2nivRwtEyt+pTMjKeGsQ.0", + "X-Azure-Ref" : "05wLAYAAAAACT6Ao6BLQ8Q57HtcClIxKoV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-fab4-f40f-343a0d0017ea\"}}", + "x-ms-client-request-id" : "1e269ef5-3991-475a-ae62-367e442a3f34", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d13f-defd-8b3a0d0004a3/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-fa7e-ac00-343a0d00dc95/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:37 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:11 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "160ms", - "MS-CV" : "xOStK83XIUCMd+y4hH8r/Q.0", - "X-Azure-Ref" : "0qe9YYAAAAADdXYTKtzZ6RqsTeAObhDGXWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:36.5974559+00:00\"}", - "x-ms-client-request-id" : "f1339840-a7ee-4d5d-a32c-52b42b412e1b", + "X-Processing-Time" : "31ms", + "MS-CV" : "/6sma57ckkuYoqP9egcrmw.0", + "X-Azure-Ref" : "05wLAYAAAAAC5+kZPhofkQIAQCh26edGOV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:10.1651351+00:00\"}", + "x-ms-client-request-id" : "e36e4b25-a04c-441c-8583-d82eaed69b59", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "603ms", - "MS-CV" : "jKvV2DDQqUOR4t7lh97IIw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0qe9YYAAAAAArmfIcvJyLT53BmaXvg/4uWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:i5dSPmQ2zupTKK9hkCl_-tcWScznFLdiSl8KlBClm1U1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:37Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d13f-defd-8b3a0d0004a3\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d13f-defd-8b3a0d0004a3\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:37 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:12 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "663ms", + "MS-CV" : "84e7VONBx0GSeHIu//0AqQ.0", + "X-Azure-Ref" : "05wLAYAAAAADQgPzHGQJKS6dBJulKLUzqV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:kOlsRtIIY4wZ9rR28P_jx0A9MEZ1sq4OfJNVxnDtZ8U1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:11Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-fa7e-ac00-343a0d00dc95\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-fa7e-ac00-343a0d00dc95\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3Ai5dSPmQ2zupTKK9hkCl_-tcWScznFLdiSl8KlBClm1U1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AkOlsRtIIY4wZ9rR28P_jx0A9MEZ1sq4OfJNVxnDtZ8U1@thread.v2" }, "Exception" : null }, { "Method" : "DELETE", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:i5dSPmQ2zupTKK9hkCl_-tcWScznFLdiSl8KlBClm1U1@thread.v2?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:kOlsRtIIY4wZ9rR28P_jx0A9MEZ1sq4OfJNVxnDtZ8U1@thread.v2?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "282ms", - "MS-CV" : "7hP0If5Kh02QEspfTA3Tng.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "260ms", + "MS-CV" : "lqAQH2I7O0mlfyd1T4yBvg.0", "retry-after" : "0", - "X-Azure-Ref" : "0qu9YYAAAAAAnuOrKtiajT5EcGmKMF+sAWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "06ALAYAAAAADqUUcdea4ATKydoDnIOeeZV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:27:38 GMT" + "Date" : "Tue, 08 Jun 2021 23:53:12 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canDeleteChatThread[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canDeleteChatThread[1].json index 6fb46dfe08b34..b4ab36fea963a 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canDeleteChatThread[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canDeleteChatThread[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:34 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:10 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "NQM0kLQaxUeoSS/3cfN2IQ.0", - "X-Azure-Ref" : "0p+9YYAAAAAAiTz8ZPpCHSKL5ZooBvSn5WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-caf2-99bf-a43a0d00062d\"}}", - "x-ms-client-request-id" : "6cd016aa-e19d-4b77-b773-6497338dfe8c", + "X-Processing-Time" : "23ms", + "MS-CV" : "HMdFWAcxckCn8VkSmQ88JA.0", + "X-Azure-Ref" : "05gLAYAAAAABuNqSSGrbXTLYaiWPly+ILV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f73d-f40f-343a0d0017e9\"}}", + "x-ms-client-request-id" : "0335f25b-42ad-4ed6-8812-323d7c01cec4", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,85 +27,89 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:35 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:10 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "Zb1EQ0lIRUiMu59X+8sL5A.0", - "X-Azure-Ref" : "0p+9YYAAAAAAc0znMZsjkRa9AS1w7yOzlWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-cb4a-defd-8b3a0d0004a2\"}}", - "x-ms-client-request-id" : "daeb894f-e953-4202-a8f3-6ec4a31b0161", + "X-Processing-Time" : "27ms", + "MS-CV" : "bJmhk/u1xkavqooksqj8jQ.0", + "X-Azure-Ref" : "05gLAYAAAAABlrRQoKazSSrZG1A+fhOlFV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f775-ac00-343a0d00dc93\"}}", + "x-ms-client-request-id" : "f422972c-1c2c-44ae-9362-9aa783ec897c", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-caf2-99bf-a43a0d00062d/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f73d-f40f-343a0d0017e9/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:35 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:10 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "126ms", - "MS-CV" : "7hdU0wjeukSxaOApm6aESg.0", - "X-Azure-Ref" : "0p+9YYAAAAAAEka+lGEETToAf2ZyZOxjzWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:34.9555947+00:00\"}", - "x-ms-client-request-id" : "082cf355-2ea6-4812-b388-139ed577fc93", + "X-Processing-Time" : "31ms", + "MS-CV" : "4XWcyp/Ro06d1xBQJ54Ziw.0", + "X-Azure-Ref" : "05gLAYAAAAAD/5XtqWw+wRZ54CGxaXCzyV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:09.3354494+00:00\"}", + "x-ms-client-request-id" : "eb11f452-4b1e-4880-99eb-5f9c6d0cba9e", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "840ms", - "MS-CV" : "eYXQl0pV0UmeaI5S3keAag.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0p+9YYAAAAACOTVcm0nnHSpI+DhYFBM4mWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:FFS0NZkexaweAW9I_vhCPHWJcy_YxL9zKGLj-YDzuQ01@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:36Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-caf2-99bf-a43a0d00062d\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-caf2-99bf-a43a0d00062d\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:36 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:10 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "335ms", + "MS-CV" : "XD0CmWN49U6BtaaNIwGyUA.0", + "X-Azure-Ref" : "05gLAYAAAAADUMCxbh8KqToxHrLzO+IfnV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:9PD-vEO-YzSIobiGMkIwebABYsju8YkZtnsoU1sV5iE1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:10Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f73d-f40f-343a0d0017e9\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f73d-f40f-343a0d0017e9\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AFFS0NZkexaweAW9I_vhCPHWJcy_YxL9zKGLj-YDzuQ01@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A9PD-vEO-YzSIobiGMkIwebABYsju8YkZtnsoU1sV5iE1@thread.v2" }, "Exception" : null }, { "Method" : "DELETE", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:FFS0NZkexaweAW9I_vhCPHWJcy_YxL9zKGLj-YDzuQ01@thread.v2?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:9PD-vEO-YzSIobiGMkIwebABYsju8YkZtnsoU1sV5iE1@thread.v2?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "293ms", - "MS-CV" : "hLEBbJmKo0GcMD9zk2GQHA.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "227ms", + "MS-CV" : "ug6HvDAOtU6MIeDqbIlMVg.0", "retry-after" : "0", - "X-Azure-Ref" : "0qO9YYAAAAABo+ziOvsAUTZ8SUJ+/dpEZWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "05gLAYAAAAADIec5UTEm3R4AyD9UIVaV5V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:27:36 GMT" + "Date" : "Tue, 08 Jun 2021 23:53:10 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canGetChatThreadClient[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canGetChatThreadClient[1].json index 8ebbb227e49ca..8d597b6b6d99e 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canGetChatThreadClient[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canGetChatThreadClient[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:48 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:21 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "NVMg/aSCPUixmpSsZ4KhRA.0", - "X-Azure-Ref" : "0tO9YYAAAAACLbuVhryh4R7mHgkHHLX5LWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-fe3b-92fd-8b3a0d000449\"}}", - "x-ms-client-request-id" : "f5e94130-b160-46ce-af17-ede2a38e853f", + "X-Processing-Time" : "28ms", + "MS-CV" : "uGkHRd/r30OVRe9hI3uf+A.0", + "X-Azure-Ref" : "08QLAYAAAAACpv6wsEyrvQ4irCfTfB58yV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-22ab-ac00-343a0d00dca1\"}}", + "x-ms-client-request-id" : "546f91f3-380a-48be-a891-a5bc503888a5", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,44 +27,46 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:48 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:21 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "dEVzP0N1qk+zhZCSk14zMQ.0", - "X-Azure-Ref" : "0tO9YYAAAAAAeDylC0NfcRKVau7EodgfHWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-fe91-99bf-a43a0d00063a\"}}", - "x-ms-client-request-id" : "412e7882-5ec1-4d36-a529-8ef9638726c5", + "X-Processing-Time" : "22ms", + "MS-CV" : "ZUHijG6I0E2Ay1hpX8ImNQ.0", + "X-Azure-Ref" : "08QLAYAAAAABrNlR0APvwRKaUARu2jOJTV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-22e2-f40f-343a0d0017f4\"}}", + "x-ms-client-request-id" : "d932e1a1-1f78-45b5-a96f-35d48f138303", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-fe3b-92fd-8b3a0d000449/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-22ab-ac00-343a0d00dca1/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:48 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:21 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "149ms", - "MS-CV" : "0uV4RRL09ka009LY5tKBbA.0", - "X-Azure-Ref" : "0tO9YYAAAAACjTZ24dLTSRKYZaC33JfB8WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:48.1046139+00:00\"}", - "x-ms-client-request-id" : "0a577e56-de41-46e1-a60b-d0946964d1e3", + "X-Processing-Time" : "31ms", + "MS-CV" : "OESMW3qNwU6OZZczoPOIfQ.0", + "X-Azure-Ref" : "08QLAYAAAAAALEm1ljrUURq4oUOwV/iWTV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:20.447674+00:00\"}", + "x-ms-client-request-id" : "4b092bd3-06a7-454f-9762-d930086d610f", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canGetExistingChatThreadWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canGetExistingChatThreadWithResponse[1].json index 7f2fadfda72d1..90fad12e03e34 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canGetExistingChatThreadWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canGetExistingChatThreadWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:44 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:18 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "Wfaukp69IEWl/QUJx70j7w.0", - "X-Azure-Ref" : "0se9YYAAAAADYYlaVIl+JTYgq5T0bHF5FWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-efd9-92fd-8b3a0d000447\"}}", - "x-ms-client-request-id" : "87133a2f-d4cc-416d-93bd-8947f87ecdbc", + "X-Processing-Time" : "22ms", + "MS-CV" : "iTL7hp+NckeapnpMJW7Tbg.0", + "X-Azure-Ref" : "07gLAYAAAAADYb6WYdug6ToFXRlmt/+2qV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1908-ac00-343a0d00dc9f\"}}", + "x-ms-client-request-id" : "2708b1bb-96c2-43c0-9d44-e946c67b22b7", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,87 +27,91 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:44 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:18 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "uocup7ysY0uhBm1KMCt2Ag.0", - "X-Azure-Ref" : "0se9YYAAAAABkC4SUHRTmT4LEITEsggnaWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-f02c-99bf-a43a0d000637\"}}", - "x-ms-client-request-id" : "03aff78d-dc0e-4273-898f-0eee5d7bdf92", + "X-Processing-Time" : "21ms", + "MS-CV" : "GjMlSNwV2k+U4KRtPodyRw.0", + "X-Azure-Ref" : "07gLAYAAAAAB2BqHzRdm4R6zCZBU5P/zhV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-193b-f40f-343a0d0017f1\"}}", + "x-ms-client-request-id" : "91413322-e180-41ae-ad7b-49736faa590f", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-efd9-92fd-8b3a0d000447/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1908-ac00-343a0d00dc9f/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:45 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:18 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "149ms", - "MS-CV" : "EqgDTfoC4kyNo9VEElN7ew.0", - "X-Azure-Ref" : "0se9YYAAAAAC2f6hhcDoLQY/MXcITCj88WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:44.419686+00:00\"}", - "x-ms-client-request-id" : "f9332766-1c6e-449d-a5c2-9e7eccee4135", + "X-Processing-Time" : "29ms", + "MS-CV" : "Lix5DwH1602YhC/aCd+CuA.0", + "X-Azure-Ref" : "07gLAYAAAAACoYnVPNCLeTaW/JjYGf6vUV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:17.9810334+00:00\"}", + "x-ms-client-request-id" : "a3a271a1-bbd2-4aa6-89eb-991245f93e60", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "755ms", - "MS-CV" : "v3iltPn0j0ao9xr+YYQl0w.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0se9YYAAAAADKjcCDwbLGSZjTh6mepq82WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:AsEz8tSeoJxK2DRZbYbA0a0Ojig8fs8Xw_G_WZZlpm01@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:45Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-efd9-92fd-8b3a0d000447\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-efd9-92fd-8b3a0d000447\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:45 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:19 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "653ms", + "MS-CV" : "7jXN4kWIgEqW0S2N5bTlRA.0", + "X-Azure-Ref" : "07wLAYAAAAAD3CRZRyRW5QrDQi9mfaXY+V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:JopNXDjHoR_9NL5A2rRmNZWnqJXqW3mfu--e__gBVjk1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:19Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1908-ac00-343a0d00dc9f\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1908-ac00-343a0d00dc9f\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AAsEz8tSeoJxK2DRZbYbA0a0Ojig8fs8Xw_G_WZZlpm01@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AJopNXDjHoR_9NL5A2rRmNZWnqJXqW3mfu--e__gBVjk1@thread.v2" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:AsEz8tSeoJxK2DRZbYbA0a0Ojig8fs8Xw_G_WZZlpm01@thread.v2?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:JopNXDjHoR_9NL5A2rRmNZWnqJXqW3mfu--e__gBVjk1@thread.v2?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "108ms", - "MS-CV" : "+UngIQ8jc0uTogtU7TG/KQ.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "188ms", + "MS-CV" : "E2wKhnQKnE27ot3nGVfsJQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0su9YYAAAAAAM5EZ7L3l2SaCHRMZdSX8kWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "07wLAYAAAAAAj+TRHYChTTbXbu4VeYAt7V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"19:AsEz8tSeoJxK2DRZbYbA0a0Ojig8fs8Xw_G_WZZlpm01@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:45Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-efd9-92fd-8b3a0d000447\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-efd9-92fd-8b3a0d000447\"}}}", - "Date" : "Mon, 22 Mar 2021 19:27:46 GMT", + "Body" : "{\"id\":\"19:JopNXDjHoR_9NL5A2rRmNZWnqJXqW3mfu--e__gBVjk1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:19Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1908-ac00-343a0d00dc9f\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1908-ac00-343a0d00dc9f\"}}}", + "Date" : "Tue, 08 Jun 2021 23:53:19 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canGetExistingChatThread[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canGetExistingChatThread[1].json index 9e731267b98db..0c7c911391ed7 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canGetExistingChatThread[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canGetExistingChatThread[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:30 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:08 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "gMM31csQ00ir/m2rliEuIg.0", - "X-Azure-Ref" : "0o+9YYAAAAAAaeabJhOpvRrvXmEY7Zoc+WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-bc49-defd-8b3a0d00049c\"}}", - "x-ms-client-request-id" : "9302b980-b863-49f3-b11c-cc4f1eb03f2f", + "X-Processing-Time" : "24ms", + "MS-CV" : "6FJEF+HHBESFM+a2/G8u5Q.0", + "X-Azure-Ref" : "05ALAYAAAAAAAipphAK/CS6cjEL+K0pJJV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f22e-ac00-343a0d00dc90\"}}", + "x-ms-client-request-id" : "cf55dc8d-ae15-460e-b970-1b0413b062a8", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,87 +27,91 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:31 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:08 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "2joPQseHSE6HQqGakyjS6Q.0", - "X-Azure-Ref" : "0o+9YYAAAAACtqV5nCbw+Tbbs10OxqDAjWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-bca0-99bf-a43a0d000629\"}}", - "x-ms-client-request-id" : "ba33c2ca-6100-40ef-907f-885355ad4198", + "X-Processing-Time" : "23ms", + "MS-CV" : "Pn1w4BmMpUCVDn+IxSGCog.0", + "X-Azure-Ref" : "05ALAYAAAAACLWoPhj0WKTqhydjAtM19CV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f268-f40f-343a0d0017e6\"}}", + "x-ms-client-request-id" : "b02c17fb-58a1-42b8-81c4-b2ff48b007a1", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-bc49-defd-8b3a0d00049c/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f22e-ac00-343a0d00dc90/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:31 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:09 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "157ms", - "MS-CV" : "i3m8GXcp6UyNz6FU88+WRw.0", - "X-Azure-Ref" : "0pO9YYAAAAAAdqIssmElTRL7isH4+z+ldWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:31.2390946+00:00\"}", - "x-ms-client-request-id" : "88db3251-57f8-4819-85dc-0725bdf710c3", + "X-Processing-Time" : "27ms", + "MS-CV" : "HWFKEolHM0SMgMM2hC+HEw.0", + "X-Azure-Ref" : "05ALAYAAAAAARYnxYBlMXSrzo9bm2HrUkV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:08.0361893+00:00\"}", + "x-ms-client-request-id" : "4fa4e38a-bced-4eba-9f24-ea065cef4dae", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "1514ms", - "MS-CV" : "Rp3Uo1qOg0y9F6myn+XhqA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0pO9YYAAAAADj5Awn5D1oSLYMDIbyxNb2WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:wZsLReSDyNqXSVPq5EGgbl-uo0s6D2vuGqQqjq-jvxw1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:33Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-bc49-defd-8b3a0d00049c\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-bc49-defd-8b3a0d00049c\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:33 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:09 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "345ms", + "MS-CV" : "PY5R0nhy0UafXNXhPTexxQ.0", + "X-Azure-Ref" : "05QLAYAAAAACdjLBseDNpSrzr7orA/JGJV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:4fVkjSjickNrFAqj0vnx7Bd6_lDc7am9KSCB1S--PJE1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:09Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f22e-ac00-343a0d00dc90\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f22e-ac00-343a0d00dc90\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AwZsLReSDyNqXSVPq5EGgbl-uo0s6D2vuGqQqjq-jvxw1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A4fVkjSjickNrFAqj0vnx7Bd6_lDc7am9KSCB1S--PJE1@thread.v2" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:wZsLReSDyNqXSVPq5EGgbl-uo0s6D2vuGqQqjq-jvxw1@thread.v2?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4fVkjSjickNrFAqj0vnx7Bd6_lDc7am9KSCB1S--PJE1@thread.v2?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "485ms", - "MS-CV" : "md/QhKgsakmcDz+YcLXmag.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "81ms", + "MS-CV" : "BuIHMgUy4EeL5otSl8CpsQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0pu9YYAAAAACfSNf9qF6gRbq+ww9MnFi/WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "05QLAYAAAAAAdbCtK58gpSa6KThRbkqK6V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"19:wZsLReSDyNqXSVPq5EGgbl-uo0s6D2vuGqQqjq-jvxw1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:33Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-bc49-defd-8b3a0d00049c\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-bc49-defd-8b3a0d00049c\"}}}", - "Date" : "Mon, 22 Mar 2021 19:27:34 GMT", + "Body" : "{\"id\":\"19:4fVkjSjickNrFAqj0vnx7Bd6_lDc7am9KSCB1S--PJE1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:09Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f22e-ac00-343a0d00dc90\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f22e-ac00-343a0d00dc90\"}}}", + "Date" : "Tue, 08 Jun 2021 23:53:09 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canListChatThreadsWithMaxPageSize[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canListChatThreadsWithMaxPageSize[1].json index 28cc6bc54a379..eb1b817faae95 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canListChatThreadsWithMaxPageSize[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canListChatThreadsWithMaxPageSize[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:42 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:17 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "84YTm9pcFk+P6cq0/mFd6Q.0", - "X-Azure-Ref" : "0ru9YYAAAAAAg1m/nByY9Q6yW2CBFODIEWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-e6ed-defd-8b3a0d0004a7\"}}", - "x-ms-client-request-id" : "fdec5722-e79e-435d-b18d-9369b4d6ef7e", + "X-Processing-Time" : "25ms", + "MS-CV" : "LqETQHbmckiKkaCmYpy21g.0", + "X-Azure-Ref" : "07QLAYAAAAAAH7RyKIqZmRrwArpc1ShEFV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-12c8-ac00-343a0d00dc9b\"}}", + "x-ms-client-request-id" : "a21a00ca-cf79-4c61-8159-1d80806134d8", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,44 +27,46 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:42 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:17 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "whASvBoj1U2XxqknV1bMew.0", - "X-Azure-Ref" : "0ru9YYAAAAABTFueCT4XlTYZ0SEcKPblzWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-e742-99bf-a43a0d000634\"}}", - "x-ms-client-request-id" : "889a6d92-69e7-4809-9af9-73912d2b239c", + "X-Processing-Time" : "24ms", + "MS-CV" : "R16Q+S6bLkyDHW4qVkJCjQ.0", + "X-Azure-Ref" : "07QLAYAAAAACBns8TuoXtRYQKOHpqhr6JV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-12fc-f40f-343a0d0017ee\"}}", + "x-ms-client-request-id" : "d57e1378-2997-4407-a39a-f206bf25014d", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-e6ed-defd-8b3a0d0004a7/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-12c8-ac00-343a0d00dc9b/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:43 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:17 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "157ms", - "MS-CV" : "KdOP8JIOQ0egsVEDU81N+g.0", - "X-Azure-Ref" : "0ru9YYAAAAAAEBtYpz0AfRbDWVfy/xrZTWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:42.3886116+00:00\"}", - "x-ms-client-request-id" : "df0f82ca-dde6-4fb6-ac56-ffa4a9500e32", + "X-Processing-Time" : "29ms", + "MS-CV" : "7XPRR6DJU0SdwOy0O1Nlvw.0", + "X-Azure-Ref" : "07QLAYAAAAAAsNZeRUjQgTaJihhD6XqIpV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:16.684671+00:00\"}", + "x-ms-client-request-id" : "23cfce95-ed25-40dc-bdf1-3d7a3af4848d", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canListChatThreads[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canListChatThreads[1].json index a19f8b8b460da..8ecb886e9bfb1 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canListChatThreads[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canListChatThreads[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:37 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:12 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "18ms", - "MS-CV" : "jTaosFhLgkW19Df9a2yqXA.0", - "X-Azure-Ref" : "0qu9YYAAAAACWQZf9gTMMSa+AfOe5TA4WWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d6af-99bf-a43a0d000631\"}}", - "x-ms-client-request-id" : "bbeb1a36-1653-4d45-8931-52a9f0a41951", + "X-Processing-Time" : "23ms", + "MS-CV" : "1ArySr4MPUKUjesPCuj6Rw.0", + "X-Azure-Ref" : "06ALAYAAAAADab490ZTuhRJ6Tkz7aDeL1V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-004d-f40f-343a0d0017eb\"}}", + "x-ms-client-request-id" : "e318c4b9-a9ce-41fb-ab42-786fd3f10acd", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,44 +27,46 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:38 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:12 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "G53gf/8lnEiReUqlJWkmwg.0", - "X-Azure-Ref" : "0qu9YYAAAAACLpGEPohilQ50cDXxtsvZOWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d705-defd-8b3a0d0004a4\"}}", - "x-ms-client-request-id" : "07794a24-360e-4cd9-b2a4-ff7412cd2f06", + "X-Processing-Time" : "23ms", + "MS-CV" : "duFg6sxSZkykXhyQR7VI5g.0", + "X-Azure-Ref" : "06ALAYAAAAABeM7fqo0kiTq4g4Y/mTUtsV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-0083-ac00-343a0d00dc97\"}}", + "x-ms-client-request-id" : "76dc11b4-542b-4de4-b29d-c50fbb4c2509", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d6af-99bf-a43a0d000631/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-004d-f40f-343a0d0017eb/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:38 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:12 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "149ms", - "MS-CV" : "OodR1ZRS6Ee66SsCwxsISQ.0", - "X-Azure-Ref" : "0qu9YYAAAAAA67zL02MdaR4yuUZ9vh4tlWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:37.9805235+00:00\"}", - "x-ms-client-request-id" : "489c49bf-ead5-4cb0-92d4-06fe0326900f", + "X-Processing-Time" : "30ms", + "MS-CV" : "PISY0QnR+kq436aZu/uzKw.0", + "X-Azure-Ref" : "06ALAYAAAAADm2ShR/TseRpdNwPBt/XufV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:11.6485213+00:00\"}", + "x-ms-client-request-id" : "dc312dac-0744-412d-bf30-e4204b8af36a", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canProcessInvalidParticipantsOnCreateChatThread[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canProcessInvalidParticipantsOnCreateChatThread[1].json index c83769988747b..60219dc7fdb98 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canProcessInvalidParticipantsOnCreateChatThread[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canProcessInvalidParticipantsOnCreateChatThread[1].json @@ -1,9 +1,9 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canRepeatCreateThread[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canRepeatCreateThread[1].json index 9ff23532100ec..d7d4f2c55aac9 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canRepeatCreateThread[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.canRepeatCreateThread[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:38 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:12 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "M/V5AMyylUWGWL+tfAJFag.0", - "X-Azure-Ref" : "0q+9YYAAAAACRHJpbajXoS6b/iVVPguwnWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d84a-defd-8b3a0d0004a5\"}}", - "x-ms-client-request-id" : "760b85b7-a144-4ce9-a94f-ab84d5fecf3d", + "X-Processing-Time" : "23ms", + "MS-CV" : "ujx38n69TkS6ZYMD6yk10Q.0", + "X-Azure-Ref" : "06ALAYAAAAABAy7qhaxjoTZdFT9+D+ehlV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-0132-ac00-343a0d00dc98\"}}", + "x-ms-client-request-id" : "41c830fd-a04b-4be0-95b9-c380dac19119", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,112 +27,117 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:38 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:12 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "3DK/Jerzg06320w209UX7w.0", - "X-Azure-Ref" : "0q+9YYAAAAADSyAwN/M1RQ7wpCq3Nc4LaWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d8a0-99bf-a43a0d000632\"}}", - "x-ms-client-request-id" : "940b6708-6021-40f4-ad4b-f63ddec7cb42", + "X-Processing-Time" : "23ms", + "MS-CV" : "ZJpXZKKKC06fCb+/lDY5/w.0", + "X-Azure-Ref" : "06ALAYAAAAAB2gCGF9aN4SKsaeTgze2dsV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-0167-f40f-343a0d0017ec\"}}", + "x-ms-client-request-id" : "9efbac9e-4b89-4a84-bc73-0f0874bddb85", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d84a-defd-8b3a0d0004a5/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-0132-ac00-343a0d00dc98/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:39 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:12 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "166ms", - "MS-CV" : "RezAMofxoUOVkmF61Awo7g.0", - "X-Azure-Ref" : "0q+9YYAAAAACgYJjX+0rcSpW9rm0B7N1aWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:38.4082498+00:00\"}", - "x-ms-client-request-id" : "ee18bbff-00da-463c-b8d2-781f17a80f64", + "X-Processing-Time" : "30ms", + "MS-CV" : "lra7tIDE6kqFdkOSR/DAFw.0", + "X-Azure-Ref" : "06ALAYAAAAADPln6oFrj4Q7Q3UxgSjJbzV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:11.8834242+00:00\"}", + "x-ms-client-request-id" : "a8fa9a83-9b40-4b8a-b6ec-c358c256131a", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "872ms", - "MS-CV" : "FRIjVhQm9kqXOv20eaO6dw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0q+9YYAAAAADXae0sGMyVRIgojCf7I9VfWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:1l6WJDyt2H5y5t9rkgGdZkbHhC7Qoct5AYC0tEI9aGA1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:39Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d84a-defd-8b3a0d0004a5\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d84a-defd-8b3a0d0004a5\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:39 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:13 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "508ms", + "MS-CV" : "K321pK6Ork2uV6QNaeDPRw.0", + "X-Azure-Ref" : "06ALAYAAAAAA+6GkAW4RJR42fkSUX6GeRV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:Xx8Ym7JPq4YoDue8CVjVbcjnEj_BGMt17KMDSsumYEU1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:13Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-0132-ac00-343a0d00dc98\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-0132-ac00-343a0d00dc98\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3A1l6WJDyt2H5y5t9rkgGdZkbHhC7Qoct5AYC0tEI9aGA1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AXx8Ym7JPq4YoDue8CVjVbcjnEj_BGMt17KMDSsumYEU1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "371ms", - "MS-CV" : "bxi6TL9q2UKYUTznuDp8pQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0rO9YYAAAAACaEQtcpHRtRYr46i3QmrNHWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:1l6WJDyt2H5y5t9rkgGdZkbHhC7Qoct5AYC0tEI9aGA1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:39Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d84a-defd-8b3a0d0004a5\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d84a-defd-8b3a0d0004a5\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:40 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:15 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "2415ms", + "MS-CV" : "QSPX/tGIvkuHqH1SDUC7Kw.0", + "X-Azure-Ref" : "06QLAYAAAAACaVkb60XmTRoiERXJ1V+yJV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:Xx8Ym7JPq4YoDue8CVjVbcjnEj_BGMt17KMDSsumYEU1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:13Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-0132-ac00-343a0d00dc98\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-0132-ac00-343a0d00dc98\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3A1l6WJDyt2H5y5t9rkgGdZkbHhC7Qoct5AYC0tEI9aGA1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AXx8Ym7JPq4YoDue8CVjVbcjnEj_BGMt17KMDSsumYEU1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "739ms", - "MS-CV" : "/rbBeS0HZkGFqQrwuyq6bg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0rO9YYAAAAABiQ+wARW0nR6h8rxkNwEj1WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:sie5cU9x96oXI4Cqs68Lfr9CTCZieDFK1ca_2yIdlY01@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:40Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d84a-defd-8b3a0d0004a5\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-d84a-defd-8b3a0d0004a5\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:40 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:16 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "503ms", + "MS-CV" : "QiZ1Pmwhe0m8seQEY9sg/A.0", + "X-Azure-Ref" : "06wLAYAAAAAAy1UbtuDNcRrTcwvOm9jk7V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:Y43XWnySB56CV7PUg1jmlaFa61-OK5sTohJMvmEF78g1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:16Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-0132-ac00-343a0d00dc98\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-0132-ac00-343a0d00dc98\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3Asie5cU9x96oXI4Cqs68Lfr9CTCZieDFK1ca_2yIdlY01@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AY43XWnySB56CV7PUg1jmlaFa61-OK5sTohJMvmEF78g1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotCreateThreadWithNullOptions[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotCreateThreadWithNullOptions[1].json index 4644dc05892a6..123cca526a249 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotCreateThreadWithNullOptions[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotCreateThreadWithNullOptions[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:35 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:10 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "554qVoCVxkOg9el+U6ZGGg.0", - "X-Azure-Ref" : "0p+9YYAAAAAAxM4nEOyn+SbzXkkEukA71WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-c936-defd-8b3a0d0004a1\"}}", - "x-ms-client-request-id" : "77590856-b9e0-48d6-90d3-393c3fdcc134", + "X-Processing-Time" : "22ms", + "MS-CV" : "kybst1vMx0Sm/1Syia8CEA.0", + "X-Azure-Ref" : "05QLAYAAAAABYYuVY02OwSJ6+PcqtFDu9V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f688-ac00-343a0d00dc92\"}}", + "x-ms-client-request-id" : "e849a87c-c88c-4630-ba4d-1d59ed807b54", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,44 +27,46 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:34 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:10 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "E9Oo3UxWlkuqrRHefJPm2g.0", - "X-Azure-Ref" : "0p+9YYAAAAADxGVzwn6wwR7hBo50+7/YRWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-c991-99bf-a43a0d00062c\"}}", - "x-ms-client-request-id" : "e74cd01e-5dcb-49e4-b454-32140f60d277", + "X-Processing-Time" : "24ms", + "MS-CV" : "T63AhqXg00+LgKZmxlJ1NA.0", + "X-Azure-Ref" : "05gLAYAAAAABybrjRC/8mRohbnM9Z43kAV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f6be-f40f-343a0d0017e8\"}}", + "x-ms-client-request-id" : "66b61f98-a958-4e4a-b3e5-5cd0a722dbda", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-c936-defd-8b3a0d0004a1/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f688-ac00-343a0d00dc92/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:35 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:10 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "161ms", - "MS-CV" : "aZU7khC4bUuDHmnG/nK1hQ.0", - "X-Azure-Ref" : "0p+9YYAAAAADnqtJoZZW3TJqAF2q+ZtT5WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:34.5511058+00:00\"}", - "x-ms-client-request-id" : "a4fd04a4-0df7-4269-ac15-ebd046d8a14d", + "X-Processing-Time" : "30ms", + "MS-CV" : "X/8B7jjW0U60Bjv5e9rERw.0", + "X-Azure-Ref" : "05gLAYAAAAABrC51s58iBRIaYqj0YRiJIV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:09.146805+00:00\"}", + "x-ms-client-request-id" : "6bd30a3e-6a0c-4a81-a0a9-e236d7ebb1bf", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotCreateThreadWithResponseWithNullOptions[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotCreateThreadWithResponseWithNullOptions[1].json index ad5a3f75fa6f7..f064649ae1988 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotCreateThreadWithResponseWithNullOptions[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotCreateThreadWithResponseWithNullOptions[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:43 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:18 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "/M4AEbhjqky7Wc7+4bgrKg.0", - "X-Azure-Ref" : "0sO9YYAAAAAD1tD8b+fg3QZ5nn5Kx0O6cWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-ee45-99bf-a43a0d000636\"}}", - "x-ms-client-request-id" : "eac7a6bb-c858-4c16-808a-1f7752c6aeaa", + "X-Processing-Time" : "111ms", + "MS-CV" : "hKrCfZhnVEaJoDAWei+vpg.0", + "X-Azure-Ref" : "07gLAYAAAAABye0rU9LQoQZRqefOQcNeEV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1848-f40f-343a0d0017f0\"}}", + "x-ms-client-request-id" : "5b67e877-2ad8-4208-bd80-22e8ea293371", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,44 +27,46 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:44 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:18 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "yGslzW02OE2WbU9aclMeeQ.0", - "X-Azure-Ref" : "0sO9YYAAAAACbpgeLGBh6Q6XJD1oToWgtWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-ee9a-92fd-8b3a0d000446\"}}", - "x-ms-client-request-id" : "9a18f338-7d5c-4597-bb5d-134712d4fd26", + "X-Processing-Time" : "24ms", + "MS-CV" : "qsNYLZVVOEC+EiYVzTt9hQ.0", + "X-Azure-Ref" : "07gLAYAAAAADwOHFUbMa1Qb77iCWqoU8GV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1881-ac00-343a0d00dc9e\"}}", + "x-ms-client-request-id" : "651e7ddf-d4c4-4416-a79a-eb837e756596", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-ee45-99bf-a43a0d000636/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-1848-f40f-343a0d0017f0/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:44 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:18 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "139ms", - "MS-CV" : "o8eRQe/AZEqg/6Hn2mo3dQ.0", - "X-Azure-Ref" : "0sO9YYAAAAAClhYqHYyZ0TbMjmBeF5CSQWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:44.0089138+00:00\"}", - "x-ms-client-request-id" : "f2186b0c-c6dd-4c94-8f1e-a259fdb650bc", + "X-Processing-Time" : "27ms", + "MS-CV" : "soVVzVVO/kanErKT3DxSZA.0", + "X-Azure-Ref" : "07gLAYAAAAADgLnnn4EI5SIZwQNZqygoHV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:17.7983689+00:00\"}", + "x-ms-client-request-id" : "07c77723-26d6-4959-8222-4fece40613b4", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotDeleteChatThreadWithNullId[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotDeleteChatThreadWithNullId[1].json index c910f199c8ee5..9d749afc4578a 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotDeleteChatThreadWithNullId[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotDeleteChatThreadWithNullId[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:34 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:09 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "IMO6aM0ZokGMzf+51Zi7hQ.0", - "X-Azure-Ref" : "0pu9YYAAAAAAIscJJKceLQY1/D4E1hfx8WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-c79f-99bf-a43a0d00062b\"}}", - "x-ms-client-request-id" : "0b366e1a-7b28-4cb9-b124-abaa410a732d", + "X-Processing-Time" : "23ms", + "MS-CV" : "4OZlUBdt2E+8i1zW1g7UBA.0", + "X-Azure-Ref" : "05QLAYAAAAABHmGBVz9apTYvhWiWAgcYWV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f5c4-f40f-343a0d0017e7\"}}", + "x-ms-client-request-id" : "2ef80cc9-296b-42bf-a2bb-69b140945654", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,44 +27,46 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:34 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:09 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "AkAnxwfi4UC5MXf4tAifag.0", - "X-Azure-Ref" : "0pu9YYAAAAACHkKgFrOAYRakfbEBmKjcoWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-c7f6-defd-8b3a0d0004a0\"}}", - "x-ms-client-request-id" : "f47f1ccd-282b-48a7-aa09-830745a65808", + "X-Processing-Time" : "24ms", + "MS-CV" : "gK4mJYVa5kyiGidW+ppciQ.0", + "X-Azure-Ref" : "05QLAYAAAAABuoXhRJ8BiSKTbeoTA279HV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f5fe-ac00-343a0d00dc91\"}}", + "x-ms-client-request-id" : "1cf4b754-1edd-4934-9556-522c97a0a8ab", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-c79f-99bf-a43a0d00062b/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f5c4-f40f-343a0d0017e7/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:34 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:09 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "128ms", - "MS-CV" : "pBtkaYcTNEKwyTpPVH3OZw.0", - "X-Azure-Ref" : "0pu9YYAAAAACRA5Tqb6T5Q43YVDsnF719WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:34.1054352+00:00\"}", - "x-ms-client-request-id" : "0f18eb5e-c011-4835-a8b9-d90ddeafd0d0", + "X-Processing-Time" : "32ms", + "MS-CV" : "vdTXVWvh90uWtH5w6iSAuA.0", + "X-Azure-Ref" : "05QLAYAAAAADJtoSpOoIOS7oKW8M0jqyiV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:08.9626805+00:00\"}", + "x-ms-client-request-id" : "c7e36846-8426-4a3a-a844-299525157819", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotDeleteChatThreadWithResponseWithNullId[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotDeleteChatThreadWithResponseWithNullId[1].json index 0e6e380295c3d..e70f0c839aeab 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotDeleteChatThreadWithResponseWithNullId[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatAsyncClientTest.cannotDeleteChatThreadWithResponseWithNullId[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:29 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:08 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "CuWoL06l10ixq38Y3eZhKQ.0", - "X-Azure-Ref" : "0ou9YYAAAAAC5/pNOAuZfSqaqAAYBrhsCWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-b744-99bf-a43a0d000628\"}}", - "x-ms-client-request-id" : "f4f7f0a1-91ae-49ba-86d7-ac07a4b943c5", + "X-Processing-Time" : "23ms", + "MS-CV" : "4zlSytL9vUCBDKqVtFLVjQ.0", + "X-Azure-Ref" : "05ALAYAAAAABKpchLoegmQqnVUwUw4vrYV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-ef72-f40f-343a0d0017e5\"}}", + "x-ms-client-request-id" : "735f81d5-8638-47c2-acba-496b8dccdd22", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,44 +27,46 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:30 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:08 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "20ms", - "MS-CV" : "+NF+Mw9I60SKsQ7ew0wi2g.0", - "X-Azure-Ref" : "0ou9YYAAAAADwh6UrpwwES5yn3qBHcFcCWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-b95c-defd-8b3a0d00049b\"}}", - "x-ms-client-request-id" : "c36c0b33-d4a3-49ab-bbeb-b1fc832a4a85", + "X-Processing-Time" : "22ms", + "MS-CV" : "DoE/6+51Nk+PR7x118xnYA.0", + "X-Azure-Ref" : "05ALAYAAAAAAn+3+nSN39Q5z+3Yx15f9NV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-f0ca-ac00-343a0d00dc8f\"}}", + "x-ms-client-request-id" : "0c206a2c-fc86-4259-9b83-6fc01503a142", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-b744-99bf-a43a0d000628/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dec-ef72-f40f-343a0d0017e5/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:30 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:08 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "130ms", - "MS-CV" : "PY4TBYI6L0u82gVca9L/Hw.0", - "X-Azure-Ref" : "0o+9YYAAAAACn+FM+yIc4TqnLbuWgbd0IWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:30.3884848+00:00\"}", - "x-ms-client-request-id" : "b6cff3c3-a6cb-4ff6-b3ff-1b5a3838b3e4", + "X-Processing-Time" : "28ms", + "MS-CV" : "R0gMM6WLfUqcA/CCN+w18A.0", + "X-Azure-Ref" : "05ALAYAAAAAD9ph+Y9zXjSY/TFggyOJzKV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:07.6331337+00:00\"}", + "x-ms-client-request-id" : "67ea8266-2541-4267-a86e-6e973a82e7a8", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canCreateThreadWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canCreateThreadWithResponse[1].json index d201527bcb1e9..bd8e1ffbcf4ff 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canCreateThreadWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canCreateThreadWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:53 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:25 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "64ms", - "MS-CV" : "50gSfWIpEUqDS3Ij/6qLFw.0", - "X-Azure-Ref" : "0uu9YYAAAAABs4mwELJnJSYaCWv24wGIWWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-1459-99bf-a43a0d00063e\"}}", - "x-ms-client-request-id" : "b9ea8998-28a1-402b-b070-8de3085bb6a5", + "X-Processing-Time" : "22ms", + "MS-CV" : "GxR6cmsufU+0hrOHROK9rg.0", + "X-Azure-Ref" : "09QLAYAAAAAA7JsqY5U5iTqja6sPOvBz/V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3415-f40f-343a0d0017fb\"}}", + "x-ms-client-request-id" : "d93bb210-c1a3-4a09-a9a2-0d029df27cc2", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:54 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:25 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "0VvYlkBNF0SYX1LuIFIRJA.0", - "X-Azure-Ref" : "0uu9YYAAAAABwG6V9KXqXSqehgc7dUc2rWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-14ab-defd-8b3a0d0004ae\"}}", - "x-ms-client-request-id" : "368436b3-979b-46c5-b7c2-5e79151ce873", + "X-Processing-Time" : "22ms", + "MS-CV" : "WRZdephxHU62iSjarDjC1A.0", + "X-Azure-Ref" : "09QLAYAAAAACnyQEf6pVERoIYeo8aAvMBV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-344c-ac00-343a0d00dca7\"}}", + "x-ms-client-request-id" : "0f0c7ad5-b8ad-426e-90a5-4105108beaea", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-1459-99bf-a43a0d00063e/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3415-f40f-343a0d0017fb/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:53 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:25 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "127ms", - "MS-CV" : "KNrNzcyOOkKMctQQu7TOig.0", - "X-Azure-Ref" : "0uu9YYAAAAAAxMaoIyEdqQJoC+5QNzxCRWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:53.7395361+00:00\"}", - "x-ms-client-request-id" : "89d0c11a-486a-4d52-986b-20fa8aeb18f0", + "X-Processing-Time" : "30ms", + "MS-CV" : "krvSVHjdnkiudn1CFxQg4Q.0", + "X-Azure-Ref" : "09QLAYAAAAAAr2y3TrHJDRoKQoRmlO5QLV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:24.9030929+00:00\"}", + "x-ms-client-request-id" : "836e956f-9d47-4224-8317-1f5e6994c0e0", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "545ms", - "MS-CV" : "u120MSeTUk26Yqw6fJ0h3g.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0uu9YYAAAAACpMhVoH9A6TqJVB9HTfojvWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:QRL3lOGAy6Cg7VjZsF9Xdba-Z-c-7k_4vfHg4sxx6Lo1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:54Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-1459-99bf-a43a0d00063e\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-1459-99bf-a43a0d00063e\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:55 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:26 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "392ms", + "MS-CV" : "CBeHJHuG+EOaLbT4kqZTog.0", + "X-Azure-Ref" : "09QLAYAAAAACTP6ZzO0OiQJJEZfYdB+b0V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:4ktqM9a2aVBirywuGaPZrmjyPXkU3nPcK5thQOdOAWk1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:25Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3415-f40f-343a0d0017fb\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3415-f40f-343a0d0017fb\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AQRL3lOGAy6Cg7VjZsF9Xdba-Z-c-7k_4vfHg4sxx6Lo1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A4ktqM9a2aVBirywuGaPZrmjyPXkU3nPcK5thQOdOAWk1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canCreateThread[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canCreateThread[1].json index 85fc0e56525e4..b6697f196370c 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canCreateThread[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canCreateThread[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:56 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:28 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "zK1FRP8Mf0iTWwbYhO/dag.0", - "X-Azure-Ref" : "0ve9YYAAAAAA4HfGivybHSZch9xUj9WKEWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-21df-99bf-a43a0d000640\"}}", - "x-ms-client-request-id" : "6fc066e5-770d-409d-929b-0223d2311f3f", + "X-Processing-Time" : "23ms", + "MS-CV" : "exfIrAaO7USUGc9igQQ1sg.0", + "X-Azure-Ref" : "0+ALAYAAAAACN2+bYc3p7QpvRC5u/QuKLV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3f2f-f40f-343a0d0017fd\"}}", + "x-ms-client-request-id" : "43d3d01a-ff14-49c3-b513-61b281caab4a", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:57 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:28 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "3v5Hel1aqEiSRv1udKMppA.0", - "X-Azure-Ref" : "0ve9YYAAAAADXQSuBhkqhT44I8iwRkaUrWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-2233-defd-8b3a0d0004b4\"}}", - "x-ms-client-request-id" : "46a28d59-f123-4b96-9968-a1b809244bf9", + "X-Processing-Time" : "24ms", + "MS-CV" : "Tv32fE1ab0yR4f1FpYyyvg.0", + "X-Azure-Ref" : "0+ALAYAAAAADIJMnVu/BERaOq+0SMclcFV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3f69-ac00-343a0d00dca9\"}}", + "x-ms-client-request-id" : "22f64c55-0cc1-438b-9173-1f99084a2118", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-21df-99bf-a43a0d000640/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3f2f-f40f-343a0d0017fd/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:57 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:28 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "138ms", - "MS-CV" : "bVF1Q2tvAEelIZZk9+GAJg.0", - "X-Azure-Ref" : "0vu9YYAAAAACjScvPmNzlTKGDOqprU5k9WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:57.2145747+00:00\"}", - "x-ms-client-request-id" : "50560adb-db68-4b8f-86f4-6838bc201ebe", + "X-Processing-Time" : "31ms", + "MS-CV" : "6dZSczjNq0m+mJRc+qEqqQ.0", + "X-Azure-Ref" : "0+ALAYAAAAABnEHHCrWv1SIHk4g4PzhlPV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:27.7557329+00:00\"}", + "x-ms-client-request-id" : "31bde423-7191-4c7f-b887-206214275a97", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "397ms", - "MS-CV" : "VzwglQJkOkmyuBE1kPjYOg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0vu9YYAAAAAAv9KEWzdo2SJJ+ockUqY7+WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:_5ivrOfoTJYRNlyM7kx7ia3VWTqNVRzIndzWB6BYd7M1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:58Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-21df-99bf-a43a0d000640\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-21df-99bf-a43a0d000640\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:58 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:29 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "415ms", + "MS-CV" : "hPP1Q0lC6USK6sAcuNexRw.0", + "X-Azure-Ref" : "0+ALAYAAAAACnOlaVb49nQpsrEtOPYCLOV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:PwI_ESyOCC8CsNO4Hoc_RXl8YCts5tzXj7CDGXoBPZc1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:28Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3f2f-f40f-343a0d0017fd\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3f2f-f40f-343a0d0017fd\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3A_5ivrOfoTJYRNlyM7kx7ia3VWTqNVRzIndzWB6BYd7M1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3APwI_ESyOCC8CsNO4Hoc_RXl8YCts5tzXj7CDGXoBPZc1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canDeleteChatThreadWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canDeleteChatThreadWithResponse[1].json index deeb8b662a81e..7e17cb7e2fd56 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canDeleteChatThreadWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canDeleteChatThreadWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:50 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:22 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "KXuwu5rXBkKZ8l4xPA7aoQ.0", - "X-Azure-Ref" : "0tu9YYAAAAAAtvHhnttY0SLvf3vO4XXV9WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-0568-92fd-8b3a0d00044b\"}}", - "x-ms-client-request-id" : "c6fd2229-3a5b-4808-a28a-3a42f3393b50", + "X-Processing-Time" : "24ms", + "MS-CV" : "V34/Oo/Emk61RF1YuR/3VA.0", + "X-Azure-Ref" : "08gLAYAAAAADInugyl0LwQIAeL/bR1oTNV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-26c4-ac00-343a0d00dca3\"}}", + "x-ms-client-request-id" : "7352b028-6a43-4b48-9e00-0bd488106ab4", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,85 +27,89 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:49 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:22 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "HhTFcWkDQU6xm84bbnhWiA.0", - "X-Azure-Ref" : "0tu9YYAAAAABoR/sQjqjDTb3XNM9kqOlAWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-05ba-99bf-a43a0d00063c\"}}", - "x-ms-client-request-id" : "c633fb76-14a9-4603-9c6a-9f48d3011e53", + "X-Processing-Time" : "26ms", + "MS-CV" : "ufUIsQlA0ESkpZWaSXqZkQ.0", + "X-Azure-Ref" : "08gLAYAAAAAAUQ4267rfFS4RO7zZWBY2fV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-26f7-f40f-343a0d0017f6\"}}", + "x-ms-client-request-id" : "eb73e7d9-5884-41f5-89b0-4cc01a2853db", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-0568-92fd-8b3a0d00044b/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-26c4-ac00-343a0d00dca3/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:50 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:22 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "163ms", - "MS-CV" : "3IMpaoZpkECiLn+s+KQmww.0", - "X-Azure-Ref" : "0tu9YYAAAAACohAEN3BSqTpg5/r6yep+WWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:50.1943777+00:00\"}", - "x-ms-client-request-id" : "91808384-8ce2-457f-adf7-57f5fdb7a9d8", + "X-Processing-Time" : "31ms", + "MS-CV" : "KgdlYDASR0exikOKtxTiAQ.0", + "X-Azure-Ref" : "08gLAYAAAAABBDucNLQ09RJqXLbXyQriQV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:21.4969251+00:00\"}", + "x-ms-client-request-id" : "2b7eee20-f773-403d-89e8-f6bd5a50eaaa", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "450ms", - "MS-CV" : "ZcaTX4J600287cP5tyS7Hw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0t+9YYAAAAAADrj8YhWpRR7jTozWSg0syWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:zGDRZQgTRN1M09RAffDblr2fMkuUPfldgl4QfCUvH481@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:51Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-0568-92fd-8b3a0d00044b\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-0568-92fd-8b3a0d00044b\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:50 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:23 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "666ms", + "MS-CV" : "amJIL7xX/Ua1vQDcOPW1Ug.0", + "X-Azure-Ref" : "08gLAYAAAAABZC9YE4jzIRaF6VlQzi4AVV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:h7xuOcKVF-HvY2Do9dHppoobGCGuZXl-pFPjrZjp7O01@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:22Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-26c4-ac00-343a0d00dca3\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-26c4-ac00-343a0d00dca3\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AzGDRZQgTRN1M09RAffDblr2fMkuUPfldgl4QfCUvH481@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3Ah7xuOcKVF-HvY2Do9dHppoobGCGuZXl-pFPjrZjp7O01@thread.v2" }, "Exception" : null }, { "Method" : "DELETE", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:zGDRZQgTRN1M09RAffDblr2fMkuUPfldgl4QfCUvH481@thread.v2?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:h7xuOcKVF-HvY2Do9dHppoobGCGuZXl-pFPjrZjp7O01@thread.v2?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "232ms", - "MS-CV" : "PytmvZoxTEGwwA8jyi6n7g.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "244ms", + "MS-CV" : "nF4xZxaBnUybohes4RrECA.0", "retry-after" : "0", - "X-Azure-Ref" : "0t+9YYAAAAAC80L+w+4s3RJ6/OLdm0E2vWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "08wLAYAAAAAB3viBkaD73TY5AY/6eG6uWV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:27:51 GMT" + "Date" : "Tue, 08 Jun 2021 23:53:23 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canDeleteChatThread[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canDeleteChatThread[1].json index 94505f1e71b71..07f3646411a44 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canDeleteChatThread[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canDeleteChatThread[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:48 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:21 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "vLizjgPS10SyaKgABAgSpA.0", - "X-Azure-Ref" : "0te9YYAAAAAAb/DS/4ebCRas+dBnJ0NGCWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-ffe0-99bf-a43a0d00063b\"}}", - "x-ms-client-request-id" : "1105011c-1d21-4948-805e-6f9dc98b6bef", + "X-Processing-Time" : "23ms", + "MS-CV" : "Eow5MkxacE2nTZJqGEZJIw.0", + "X-Azure-Ref" : "08QLAYAAAAAD6H5hORgDJRKFIpOz9FxbIV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-2364-f40f-343a0d0017f5\"}}", + "x-ms-client-request-id" : "5ffe621d-4a3b-413c-b7e5-18433bd84543", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,85 +27,89 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:49 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:21 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "ms0hUvQDak+SLeTxIh9FKw.0", - "X-Azure-Ref" : "0te9YYAAAAADoe8dIn2LYRpdmco2E3yHrWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-0034-92fd-8b3a0d00044a\"}}", - "x-ms-client-request-id" : "09c7a79c-22e0-4b73-a714-a842fd927332", + "X-Processing-Time" : "22ms", + "MS-CV" : "9uFCXQGXV0CpOAdZrjdhIw.0", + "X-Azure-Ref" : "08QLAYAAAAAAAN8vbOiaCRakoRcjPULYCV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-239b-ac00-343a0d00dca2\"}}", + "x-ms-client-request-id" : "5d9b2d14-6e0e-416a-9c5d-98bbdc9dc9f7", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-ffe0-99bf-a43a0d00063b/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-2364-f40f-343a0d0017f5/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:48 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:21 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "127ms", - "MS-CV" : "ZczHt0HuKUyZ9OrCY2IWjw.0", - "X-Azure-Ref" : "0te9YYAAAAAD1wxscdSTGTabcEuQQ+gqiWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:48.4994064+00:00\"}", - "x-ms-client-request-id" : "66e6528b-3219-45b4-884a-45b6f92746ee", + "X-Processing-Time" : "30ms", + "MS-CV" : "grQZ5Rw/N0KkMajvu4YXAQ.0", + "X-Azure-Ref" : "08QLAYAAAAAC6ZMWVCS+WRYFNvVc0OYKvV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:20.6323347+00:00\"}", + "x-ms-client-request-id" : "c5420864-57e9-40ad-912a-10e408fa841b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "824ms", - "MS-CV" : "oe+BS0ApjEiHUu5+sGsRwQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0te9YYAAAAACajzyLg9V7RZvTos1y2gguWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:aCysbo1iWPwhEXf0_Qc-F3fyJcgT20lilko-25ykrqk1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:49Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-ffe0-99bf-a43a0d00063b\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb49-ffe0-99bf-a43a0d00063b\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:50 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:21 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "329ms", + "MS-CV" : "Siji88fVk0OKPX1iD7Rzww.0", + "X-Azure-Ref" : "08QLAYAAAAAD1na5tIkL/SKLLfCIPTKHRV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:Ymcry1K0HG6-JwJlFxLkQ18WAW91Mtdnc475-4b0hjA1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:21Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-2364-f40f-343a0d0017f5\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-2364-f40f-343a0d0017f5\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AaCysbo1iWPwhEXf0_Qc-F3fyJcgT20lilko-25ykrqk1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AYmcry1K0HG6-JwJlFxLkQ18WAW91Mtdnc475-4b0hjA1@thread.v2" }, "Exception" : null }, { "Method" : "DELETE", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:aCysbo1iWPwhEXf0_Qc-F3fyJcgT20lilko-25ykrqk1@thread.v2?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:Ymcry1K0HG6-JwJlFxLkQ18WAW91Mtdnc475-4b0hjA1@thread.v2?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "134ms", - "MS-CV" : "1BxyT9CdQU6lfGbxbpWnlg.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "285ms", + "MS-CV" : "vifYoUJhlUmK86MA8Xc1wg.0", "retry-after" : "0", - "X-Azure-Ref" : "0tu9YYAAAAACpdYFAI7t4QpXqB44tt/98WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "08gLAYAAAAAC0UYevEuwURI6OELGz0TCaV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:27:49 GMT" + "Date" : "Tue, 08 Jun 2021 23:53:22 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canGetChatThreadClient[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canGetChatThreadClient[1].json index 18d4b1e239ac0..c20707039b751 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canGetChatThreadClient[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canGetChatThreadClient[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:57 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:29 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "XsVWtWfyeEip6u2Cy4g78Q.0", - "X-Azure-Ref" : "0vu9YYAAAAAC6xSihbGAkR4ion3u84eLxWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-2507-99bf-a43a0d000641\"}}", - "x-ms-client-request-id" : "d18af6b7-bb5d-43bf-b286-20950defd21d", + "X-Processing-Time" : "25ms", + "MS-CV" : "otYbKM3rwkWLnkDzVl7rgQ.0", + "X-Azure-Ref" : "0+QLAYAAAAAB/T9zkR0lXRJEEWpOFFEG/V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-41b4-f40f-343a0d0017fe\"}}", + "x-ms-client-request-id" : "428dda69-a9a5-411c-b238-d7dcece2159c", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,44 +27,46 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:58 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:29 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "8QAOjyxgVE6D5Popk1Y5jw.0", - "X-Azure-Ref" : "0vu9YYAAAAACZ49bf2M4ITIjV7kPK2K02WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-255a-defd-8b3a0d0004b6\"}}", - "x-ms-client-request-id" : "674dfe0d-60b3-4632-9461-f983e92209f3", + "X-Processing-Time" : "29ms", + "MS-CV" : "yfY1bAR36UC20w7MFbLWEg.0", + "X-Azure-Ref" : "0+QLAYAAAAAAmH/C8YDRnTKEYHJDZYmgLV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-41f3-ac00-343a0d00dcab\"}}", + "x-ms-client-request-id" : "23eea014-1427-45c8-a489-cb8757003bee", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-2507-99bf-a43a0d000641/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-41b4-f40f-343a0d0017fe/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:58 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:29 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "137ms", - "MS-CV" : "T1yFr9Uw9U2P0QhHJ7raTg.0", - "X-Azure-Ref" : "0vu9YYAAAAABd6/sWQ1W3SrI7v8+PY4f3WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:58.0256958+00:00\"}", - "x-ms-client-request-id" : "68826d21-13aa-45d7-b6ca-f1b10e88e003", + "X-Processing-Time" : "28ms", + "MS-CV" : "+DoNm2lEz0mDYiCB/r5Nsg.0", + "X-Azure-Ref" : "0+QLAYAAAAAC8Q7Fkj1w2SJvolS8YT0YDV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:28.3955429+00:00\"}", + "x-ms-client-request-id" : "32837c49-b2f6-47b5-9c91-9030dce1c9e8", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canListChatThreadsWithMaxPageSize[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canListChatThreadsWithMaxPageSize[1].json index 648c4348e3968..a0320fb2b1ed6 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canListChatThreadsWithMaxPageSize[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canListChatThreadsWithMaxPageSize[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:54 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:26 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "aFWenKvLOUWjoqoQrt4jKw.0", - "X-Azure-Ref" : "0u+9YYAAAAAAxKOiesjgeTKOADz9c0lLDWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-1808-99bf-a43a0d00063f\"}}", - "x-ms-client-request-id" : "b4b54c17-d053-47f5-9c43-55327d982252", + "X-Processing-Time" : "22ms", + "MS-CV" : "WLWQ7rX6QEW0ocC++R8S7w.0", + "X-Azure-Ref" : "09gLAYAAAAADKD4vRW1ovQ6RFXWnAeM/KV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3671-f40f-343a0d0017fc\"}}", + "x-ms-client-request-id" : "d65e01ac-8621-4578-88ca-14d00ce861bc", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,109 +27,114 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:55 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:26 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "PDcXHGkHJkeNE1B3Njt4PQ.0", - "X-Azure-Ref" : "0u+9YYAAAAAA+7WHjdu4IT5tA/P0h1LIMWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-185c-defd-8b3a0d0004b0\"}}", - "x-ms-client-request-id" : "5ee15883-3a45-48cd-ab82-a530e092bc80", + "X-Processing-Time" : "25ms", + "MS-CV" : "jDMc/Q1Bm0acXjWV/GDbGQ.0", + "X-Azure-Ref" : "09gLAYAAAAAAwvT4EUNFjRbNND5VdlRaQV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-36a7-ac00-343a0d00dca8\"}}", + "x-ms-client-request-id" : "8fb328d1-638b-4a97-aade-a88872df599a", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-1808-99bf-a43a0d00063f/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3671-f40f-343a0d0017fc/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:54 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:26 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "137ms", - "MS-CV" : "4hPqMk+u8EC/RcngPSilRA.0", - "X-Azure-Ref" : "0u+9YYAAAAAD4NAnbiVpxSq4ii5SamJElWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:54.6942682+00:00\"}", - "x-ms-client-request-id" : "69341c5c-249e-4147-b3b2-bf8b5d62010f", + "X-Processing-Time" : "31ms", + "MS-CV" : "TKrGH1AsEk+oN57nUxvZ6A.0", + "X-Azure-Ref" : "09gLAYAAAAABYn+t0g9YwQq/fWPWsmTykV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:25.5170054+00:00\"}", + "x-ms-client-request-id" : "e8b581c9-def9-4390-8d8f-8d8cb3a532a6", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "547ms", - "MS-CV" : "8G57I8lChkqIJ3ceZp/Tuw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0u+9YYAAAAAC2hZv+/GMLQ7OJWv+cg+pMWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:qK9JMOleiT3K89MKnEUsH8yytSK37EbPIVqWZpdMk4E1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:55Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-1808-99bf-a43a0d00063f\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-1808-99bf-a43a0d00063f\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:55 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:26 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "458ms", + "MS-CV" : "ce5q9Gkn+EyCgsLI46L/rg.0", + "X-Azure-Ref" : "09gLAYAAAAACpnACegIn4Q5Xnah5wl8vIV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:EziavvJpNQsb_cegL74Ito9dteKXUZW2yMUV6cMoQBg1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:26Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3671-f40f-343a0d0017fc\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3671-f40f-343a0d0017fc\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AqK9JMOleiT3K89MKnEUsH8yytSK37EbPIVqWZpdMk4E1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AEziavvJpNQsb_cegL74Ito9dteKXUZW2yMUV6cMoQBg1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "889ms", - "MS-CV" : "95FKQIMWOUCvtPKf6zUoWg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0vO9YYAAAAACQ/7jgPVe2TI1aJaPQxggdWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:xCdxsKop-h1dVrjBgVDpvbI_W1Qe023mKQJqpFqlO1k1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:56Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-1808-99bf-a43a0d00063f\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-1808-99bf-a43a0d00063f\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:56 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:27 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "856ms", + "MS-CV" : "aqQ4VZqyTEGX0Z3j7/MCiw.0", + "X-Azure-Ref" : "09wLAYAAAAADsyCkZqHvCS4ZRuApuFit1V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:qrcrNj63A2ysKX9wXWvCoib0KBm4SOcpu666ZSCxbq41@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:27Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3671-f40f-343a0d0017fc\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-3671-f40f-343a0d0017fc\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AxCdxsKop-h1dVrjBgVDpvbI_W1Qe023mKQJqpFqlO1k1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AqrcrNj63A2ysKX9wXWvCoib0KBm4SOcpu666ZSCxbq41@thread.v2" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?maxPageSize=10&api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?maxPageSize=10&api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "83ms", - "MS-CV" : "mhQrR6foL06diaMuEoUhkg.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "116ms", + "MS-CV" : "rrnU742eWUK3ll06QxJkQw.0", "retry-after" : "0", - "X-Azure-Ref" : "0ve9YYAAAAADLZh/OquojTIEoHAmbcxk+WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0+ALAYAAAAAAoWJP+/1NXT7CyV6R+qzK/V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"id\":\"19:xCdxsKop-h1dVrjBgVDpvbI_W1Qe023mKQJqpFqlO1k1@thread.v2\",\"topic\":\"Test\",\"lastMessageReceivedOn\":\"2021-03-22T19:27:56Z\"},{\"id\":\"19:qK9JMOleiT3K89MKnEUsH8yytSK37EbPIVqWZpdMk4E1@thread.v2\",\"topic\":\"Test\",\"lastMessageReceivedOn\":\"2021-03-22T19:27:56Z\"}]}", - "Date" : "Mon, 22 Mar 2021 19:27:57 GMT", + "Body" : "{\"value\":[{\"id\":\"19:qrcrNj63A2ysKX9wXWvCoib0KBm4SOcpu666ZSCxbq41@thread.v2\",\"topic\":\"Test\",\"lastMessageReceivedOn\":\"2021-06-08T23:53:27Z\"},{\"id\":\"19:EziavvJpNQsb_cegL74Ito9dteKXUZW2yMUV6cMoQBg1@thread.v2\",\"topic\":\"Test\",\"lastMessageReceivedOn\":\"2021-06-08T23:53:26Z\"}]}", + "Date" : "Tue, 08 Jun 2021 23:53:28 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canListChatThreads[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canListChatThreads[1].json index 33ace2e359f6c..88ae36d2f1096 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canListChatThreads[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatClientTest.canListChatThreads[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:51 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:23 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "F/SgdVGKI02pDA6kIg8f3Q.0", - "X-Azure-Ref" : "0uO9YYAAAAABbvj/wT9ZLSYZ+85QT2ZodWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-0aed-99bf-a43a0d00063d\"}}", - "x-ms-client-request-id" : "4494abc9-f12e-4681-b1d1-0a6637407b45", + "X-Processing-Time" : "22ms", + "MS-CV" : "LblE733Zp0G42Fx1ZXvG6Q.0", + "X-Azure-Ref" : "08wLAYAAAAADN1sf9IDcHSoA78vud3dhyV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-2b86-f40f-343a0d0017f7\"}}", + "x-ms-client-request-id" : "d2f04802-358f-4a88-9dfc-48060de63a78", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,109 +27,114 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:51 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:23 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "QkznPKxoYEKaNCoVaSxzLQ.0", - "X-Azure-Ref" : "0uO9YYAAAAADYs+bp45y0RaB+rG9mRAlHWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-0b3f-defd-8b3a0d0004ac\"}}", - "x-ms-client-request-id" : "5adef1b3-d439-4762-9aef-a710f854e35e", + "X-Processing-Time" : "24ms", + "MS-CV" : "NbXzdOv2Q0upFET7YW3heQ.0", + "X-Azure-Ref" : "08wLAYAAAAABisGueLcxVRrxeg1Nmq7QgV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-2bc4-ac00-343a0d00dca5\"}}", + "x-ms-client-request-id" : "049448e4-9812-4c5a-91e9-44ee2ce783c5", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-0aed-99bf-a43a0d00063d/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-2b86-f40f-343a0d0017f7/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:51 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:23 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "137ms", - "MS-CV" : "RLC/3+/KpkWGVTbgHh08qg.0", - "X-Azure-Ref" : "0uO9YYAAAAAA3Rb0W9wNjTpWPFFq0B51pWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:51.3365139+00:00\"}", - "x-ms-client-request-id" : "4cdd5c02-9f33-4d26-a263-2685a2e86159", + "X-Processing-Time" : "31ms", + "MS-CV" : "gf35z93/3EukRSIbyhn/Iw.0", + "X-Azure-Ref" : "08wLAYAAAAAAqqzq/sUW+Rpb5NTewcFLXV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:22.7248867+00:00\"}", + "x-ms-client-request-id" : "b804a2e1-89e3-4756-9de6-9c405c653e19", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "605ms", - "MS-CV" : "wLbIiAd9LUCI6vjfUxHnCQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0uO9YYAAAAADGRiGjFSqVRLGcbb85HTvHWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:jPLJJ78YESooQoYbZsMeaWBMTo7_8Toaw2BLLSvDi641@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:52Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-0aed-99bf-a43a0d00063d\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-0aed-99bf-a43a0d00063d\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:52 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:24 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "658ms", + "MS-CV" : "8awAjCdHPkOsVQoEtUEwDg.0", + "X-Azure-Ref" : "08wLAYAAAAABG5EkHrQu8RYYys3a+MbJFV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:KMrRPzATkNsJfmuomVEEmBV_BFXkosmnf8DMwaAq5TQ1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:24Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-2b86-f40f-343a0d0017f7\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-2b86-f40f-343a0d0017f7\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AjPLJJ78YESooQoYbZsMeaWBMTo7_8Toaw2BLLSvDi641@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AKMrRPzATkNsJfmuomVEEmBV_BFXkosmnf8DMwaAq5TQ1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "618ms", - "MS-CV" : "6HSAlIO2Z0yHqJC//6bKEg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0ue9YYAAAAAAMl9KvpZMFSpf9bc9QMky3WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:elitPN8979753QGedfEsq18xA_oeTapwFOWPOMIKNAY1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:53Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-0aed-99bf-a43a0d00063d\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-0aed-99bf-a43a0d00063d\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:52 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:24 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "613ms", + "MS-CV" : "bzayXDl1TEmcVtitpY7HeQ.0", + "X-Azure-Ref" : "09ALAYAAAAACvssfTGwrcQLRJguLPrjFVV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:RUl8KjYLccifyYl2NVa3bARh111WBB0qJ5rw6ew9gkE1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:24Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-2b86-f40f-343a0d0017f7\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-2b86-f40f-343a0d0017f7\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AelitPN8979753QGedfEsq18xA_oeTapwFOWPOMIKNAY1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3ARUl8KjYLccifyYl2NVa3bARh111WBB0qJ5rw6ew9gkE1@thread.v2" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "126ms", - "MS-CV" : "jRPOKjHpTk6ApAgB1hMIyg.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "105ms", + "MS-CV" : "Oios2n2EUkuTsjqC5KVupw.0", "retry-after" : "0", - "X-Azure-Ref" : "0uu9YYAAAAACAWXAtQWzJTpDHhYN0zV+0WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "09QLAYAAAAAC+CUAiXtB9QIzTkOCM6PjPV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"id\":\"19:elitPN8979753QGedfEsq18xA_oeTapwFOWPOMIKNAY1@thread.v2\",\"topic\":\"Test\",\"lastMessageReceivedOn\":\"2021-03-22T19:27:53Z\"},{\"id\":\"19:jPLJJ78YESooQoYbZsMeaWBMTo7_8Toaw2BLLSvDi641@thread.v2\",\"topic\":\"Test\",\"lastMessageReceivedOn\":\"2021-03-22T19:27:52Z\"}]}", - "Date" : "Mon, 22 Mar 2021 19:27:53 GMT", + "Body" : "{\"value\":[{\"id\":\"19:RUl8KjYLccifyYl2NVa3bARh111WBB0qJ5rw6ew9gkE1@thread.v2\",\"topic\":\"Test\",\"lastMessageReceivedOn\":\"2021-06-08T23:53:24Z\"},{\"id\":\"19:KMrRPzATkNsJfmuomVEEmBV_BFXkosmnf8DMwaAq5TQ1@thread.v2\",\"topic\":\"Test\",\"lastMessageReceivedOn\":\"2021-06-08T23:53:24Z\"}]}", + "Date" : "Tue, 08 Jun 2021 23:53:25 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListAndRemoveMembersAsync[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListAndRemoveMembersAsync[1].json index c5abdd5afcf16..5dcc8e8aa7812 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListAndRemoveMembersAsync[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListAndRemoveMembersAsync[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:46 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:07 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "ssnVo/Jkq0upeTd5B2v0IA.0", - "X-Azure-Ref" : "07+9YYAAAAADQuoUdymyHQorfRxv7LQtVWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-e25f-defd-8b3a0d0004fc\"}}", - "x-ms-client-request-id" : "6b03ffcb-af69-4e7e-a0ae-5b910382b847", + "X-Processing-Time" : "21ms", + "MS-CV" : "DrWQH6gYQ0aMx9bj4ruAOg.0", + "X-Azure-Ref" : "0HwPAYAAAAADXwXOPqBo8QrxhwT0KCflqV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d88d-6a0b-343a0d00c9c4\"}}", + "x-ms-client-request-id" : "a653bffe-eebc-422c-9ba1-b665ed6fa723", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,89 +27,93 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:46 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:07 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "YmD3VFFFXEiyHBuucTn/ig.0", - "X-Azure-Ref" : "07+9YYAAAAADfqhIi5kH+SaRfET4pcUZQWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-e2b1-b5bb-a43a0d000a5c\"}}", - "x-ms-client-request-id" : "95aeec0a-58ce-4cd2-b938-ad9b4697fc51", + "X-Processing-Time" : "25ms", + "MS-CV" : "BkDc9iEhLEu5QzkwDukdRw.0", + "X-Azure-Ref" : "0HwPAYAAAAACYZOKpurNaS4pNMOM1nyWUV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d8c1-0e04-343a0d00b6ff\"}}", + "x-ms-client-request-id" : "88591fd6-c318-4e5d-8929-0b79042939e1", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-e25f-defd-8b3a0d0004fc/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d88d-6a0b-343a0d00c9c4/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:46 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:07 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "148ms", - "MS-CV" : "HqqdQhLX90mrkdPI/rrRog.0", - "X-Azure-Ref" : "07+9YYAAAAADCaU0w3swETKvjAGSI5pvKWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:46.5041438+00:00\"}", - "x-ms-client-request-id" : "670f174f-8ab6-46bf-a4a6-d701542f2bd4", + "X-Processing-Time" : "30ms", + "MS-CV" : "cgebXglc1km+rpLcsYi0nw.0", + "X-Azure-Ref" : "0HwPAYAAAAABitgnL4J71R56vSQ1Xff7fV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:08.0150542+00:00\"}", + "x-ms-client-request-id" : "4dae71ce-e30c-403a-8f21-22fca5518d4d", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "910ms", - "MS-CV" : "ehZGzDCPZE+hTEu9qeztzQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "07+9YYAAAAABM/0R37nEoS5z+KnimvULrWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:ddIXjHp-oaD4rDzEp914fFhaoHgeZd10nv-PuVANcgQ1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:47Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-e25f-defd-8b3a0d0004fc\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-e25f-defd-8b3a0d0004fc\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:47 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:08 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "338ms", + "MS-CV" : "UJVy+umAQUGGGWwatHXr6g.0", + "X-Azure-Ref" : "0IAPAYAAAAABCAQlo2RmGRp4RLu76uOLrV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:_2nCjftnWirOaATXx1tCkLB8DBl9SxXeb-5SI2q7NlY1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:08Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d88d-6a0b-343a0d00c9c4\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d88d-6a0b-343a0d00c9c4\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AddIXjHp-oaD4rDzEp914fFhaoHgeZd10nv-PuVANcgQ1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A_2nCjftnWirOaATXx1tCkLB8DBl9SxXeb-5SI2q7NlY1@thread.v2" }, "Exception" : null }, { "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:47 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:08 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "QKVzvCtMjkaerQ9FZ/xAIw.0", - "X-Azure-Ref" : "08O9YYAAAAABnptGqTRG+SqCt9067OVOkWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-e7a1-defd-8b3a0d0004fe\"}}", - "x-ms-client-request-id" : "1d798310-7f9e-493a-81f6-be22c52bfc03", + "X-Processing-Time" : "25ms", + "MS-CV" : "RWbV2IfHVkSac3TOwgtTdA.0", + "X-Azure-Ref" : "0IAPAYAAAAACjkfJwnVzmT4F+Z8ey50A4V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-daaf-6a0b-343a0d00c9c5\"}}", + "x-ms-client-request-id" : "bc15bd11-1cc4-4774-a810-7f28872421b1", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -117,59 +122,62 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:48 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:08 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "TPU07teNTkSOYzaMnzP5Xw.0", - "X-Azure-Ref" : "08O9YYAAAAAC7SbikUP2BTL6zGknGrDBAWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-e7f5-b5bb-a43a0d000a5d\"}}", - "x-ms-client-request-id" : "6cc8b301-59d9-4651-b02d-1028b0715cc0", + "X-Processing-Time" : "24ms", + "MS-CV" : "mDBXALTUwU2r+0zMQyUBlg.0", + "X-Azure-Ref" : "0IAPAYAAAAACXaCnp//AMSZFg+Geyzl1GV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-dae4-0e04-343a0d00b700\"}}", + "x-ms-client-request-id" : "fc632caf-1f92-41a2-b6cd-481e0fb534fe", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:ddIXjHp-oaD4rDzEp914fFhaoHgeZd10nv-PuVANcgQ1@thread.v2/participants/:remove?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:_2nCjftnWirOaATXx1tCkLB8DBl9SxXeb-5SI2q7NlY1@thread.v2/participants/:remove?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "116ms", - "MS-CV" : "g2i7vJ0PekCM0PdrmbEU9w.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "161ms", + "MS-CV" : "nNWu2IcDE06Qz+rCi3FHww.0", "retry-after" : "0", - "X-Azure-Ref" : "08O9YYAAAAADQ0vjpt2CPTZQBHPai4dQPWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0IAPAYAAAAADGDdVijDQ7RYmwUsz6/lIRV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:28:48 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:08 GMT" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:ddIXjHp-oaD4rDzEp914fFhaoHgeZd10nv-PuVANcgQ1@thread.v2/participants/:remove?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:_2nCjftnWirOaATXx1tCkLB8DBl9SxXeb-5SI2q7NlY1@thread.v2/participants/:remove?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "157ms", - "MS-CV" : "p/jrSDUKkEysMK4h9f/TEw.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "202ms", + "MS-CV" : "JRelm8CLVESzFIoY46DcFw.0", "retry-after" : "0", - "X-Azure-Ref" : "08O9YYAAAAAAVBd8DnimwT7Gc6GvAG3CQWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0IAPAYAAAAABPJ7/vN7pBS6t1oSevEQzWV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:28:48 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:08 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListAndRemoveMembersWithOptionsAsync[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListAndRemoveMembersWithOptionsAsync[1].json index af09770de8999..07993387549de 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListAndRemoveMembersWithOptionsAsync[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListAndRemoveMembersWithOptionsAsync[1].json @@ -3,7 +3,7 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.1.0 (1.8.0_262; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { @@ -12,13 +12,13 @@ "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Thu, 27 May 2021 23:51:46 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:43 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "65ms", - "MS-CV" : "hqKed1k7x0S/mm6LYGzcSw.0", - "X-Azure-Ref" : "0kzCwYAAAAAChuA8zcmkMQYT4vvdf/WISV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-501f-6485-ceb1-a43a0d0027ee\"}}", - "x-ms-client-request-id" : "1fb6a2f3-9d13-44dd-9825-9aa4b6f8b89f", + "X-Processing-Time" : "25ms", + "MS-CV" : "863wQSyhtk6AiGMsRPVqeQ.0", + "X-Azure-Ref" : "0BwPAYAAAAADn7ME2WHXIRaDqDBrwd0f0V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-77ff-ac00-343a0d00dcbd\"}}", + "x-ms-client-request-id" : "1b2ba335-af02-469d-a40c-3e499dcc2692", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -27,7 +27,7 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.1.0 (1.8.0_262; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { @@ -36,22 +36,22 @@ "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Thu, 27 May 2021 23:51:47 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:43 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "111ms", - "MS-CV" : "Je2DwMX8yk6PS/W8Qa0JtQ.0", - "X-Azure-Ref" : "0kzCwYAAAAABI9YzwMZsyQ7RZMB7krrLBV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-501f-6519-740a-113a0d0032ad\"}}", - "x-ms-client-request-id" : "fa3f8778-a7de-4f26-8c66-8437cd626f60", + "X-Processing-Time" : "22ms", + "MS-CV" : "6Q/Q7+TzcUKkY4Jkw72/mQ.0", + "X-Azure-Ref" : "0BwPAYAAAAABlEvjXYRaISLjakWvvXaofV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-7835-f40f-343a0d001819\"}}", + "x-ms-client-request-id" : "d3c26b5b-f5e6-4b61-b4bc-18e914cdc53d", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-501f-6485-ceb1-a43a0d0027ee/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-77ff-ac00-343a0d00dcbd/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.1.0 (1.8.0_262; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { @@ -60,22 +60,22 @@ "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Thu, 27 May 2021 23:51:47 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:43 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "125ms", - "MS-CV" : "YjGZ7mhh8E6Rucg6dPGMAA.0", - "X-Azure-Ref" : "0kzCwYAAAAABYIwc+TdlCSLiyjspz8M40V1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-05-28T23:51:46.9935327+00:00\"}", - "x-ms-client-request-id" : "c8500a20-706c-4282-ae3f-43b4cf963cf8", + "X-Processing-Time" : "29ms", + "MS-CV" : "DlEL0QUGF0moK5Vqv314yA.0", + "X-Azure-Ref" : "0BwPAYAAAAAAxQOH1KjuSS5UFAtJTLWLaV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:42.2905115+00:00\"}", + "x-ms-client-request-id" : "d161e665-a127-45dd-940e-04fc7f8f8e11", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.1 (1.8.0_262; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { @@ -84,21 +84,21 @@ "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Thu, 27 May 2021 23:51:48 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:43 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "831ms", - "MS-CV" : "iLFmwh1kIEihViH/5X/rxA.0", - "X-Azure-Ref" : "0lDCwYAAAAAAaoMb88uUqRL44OB6f0ZNCV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "Body" : "{\"chatThread\":{\"id\":\"19:eXCI9r5t4PcEHdHM4pZi4mjbmVpQsF5gATSJIxz_mL41@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-05-27T23:51:48Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-501f-6485-ceb1-a43a0d0027ee\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-501f-6485-ceb1-a43a0d0027ee\"}}}}", + "X-Processing-Time" : "474ms", + "MS-CV" : "597xNRT9D0SWXr+IPKMdGQ.0", + "X-Azure-Ref" : "0BwPAYAAAAAABh0Ez1iMOT7rd/WqswzQhV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:5-JmIRqVOvCZ6YyVK-fNW9sC2EpLzcq9Vd5InpBWM9Y1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:43Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-77ff-ac00-343a0d00dcbd\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-77ff-ac00-343a0d00dcbd\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AeXCI9r5t4PcEHdHM4pZi4mjbmVpQsF5gATSJIxz_mL41@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A5-JmIRqVOvCZ6YyVK-fNW9sC2EpLzcq9Vd5InpBWM9Y1@thread.v2" }, "Exception" : null }, { "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.1.0 (1.8.0_262; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { @@ -107,13 +107,13 @@ "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Thu, 27 May 2021 23:51:48 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:43 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "62ms", - "MS-CV" : "RXFlmlhlMUGIlISTXhYtpQ.0", - "X-Azure-Ref" : "0lDCwYAAAAAAd6CZA9n1KR6EvuE7we8DcV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-501f-69c0-ceb1-a43a0d0027ef\"}}", - "x-ms-client-request-id" : "ec9d25d1-bc5e-4723-ab47-5a3aca20234b", + "X-Processing-Time" : "24ms", + "MS-CV" : "G/B7qli81UeiRywm/TTmCQ.0", + "X-Azure-Ref" : "0BwPAYAAAAABM6QsyVckTRbPpXSZS7yBdV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-7aab-ac00-343a0d00dcbf\"}}", + "x-ms-client-request-id" : "b9e63610-a016-4026-9596-3a662c98fa32", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -122,7 +122,7 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.1.0 (1.8.0_262; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { @@ -131,53 +131,53 @@ "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Thu, 27 May 2021 23:51:48 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:43 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "86ms", - "MS-CV" : "KVZRWdzijkCUR9JK1DndPg.0", - "X-Azure-Ref" : "0lTCwYAAAAACiK5KHtP2BSoA+i+C3ZzNxV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-501f-6a40-740a-113a0d0032af\"}}", - "x-ms-client-request-id" : "f00f8a1f-f26c-4a6e-ad26-8fe31ad313e5", + "X-Processing-Time" : "24ms", + "MS-CV" : "W6fZ7vbApEaQwfZ2i3floQ.0", + "X-Azure-Ref" : "0BwPAYAAAAAADG4pT6mYUQILZtaO2wCzkV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-7ae3-f40f-343a0d00181c\"}}", + "x-ms-client-request-id" : "3f1f52a1-66f5-45a9-80df-b9d201008ac0", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:eXCI9r5t4PcEHdHM4pZi4mjbmVpQsF5gATSJIxz_mL41@thread.v2/participants/:remove?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:5-JmIRqVOvCZ6YyVK-fNW9sC2EpLzcq9Vd5InpBWM9Y1@thread.v2/participants/:remove?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.1 (1.8.0_262; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", - "X-Processing-Time" : "176ms", - "MS-CV" : "h6KGMwolGk6sV5PEJpf/jg.0", + "X-Processing-Time" : "248ms", + "MS-CV" : "qITCi91aFU223vNs27pRyQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0lTCwYAAAAAA3yWMV3OwYT6KImV3TNXrZV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref" : "0BwPAYAAAAAAnnbTgeQY5RbqFxhZkMTWGV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Thu, 27 May 2021 23:51:48 GMT" + "Date" : "Tue, 08 Jun 2021 23:53:44 GMT" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:eXCI9r5t4PcEHdHM4pZi4mjbmVpQsF5gATSJIxz_mL41@thread.v2/participants/:remove?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:5-JmIRqVOvCZ6YyVK-fNW9sC2EpLzcq9Vd5InpBWM9Y1@thread.v2/participants/:remove?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.1 (1.8.0_262; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", - "X-Processing-Time" : "403ms", - "MS-CV" : "spA6zr1ZB0OHd9VnV0/K2g.0", + "X-Processing-Time" : "176ms", + "MS-CV" : "8hG/wEs//0ORq9v4S9djUA.0", "retry-after" : "0", - "X-Azure-Ref" : "0lTCwYAAAAACNNOLqovnwRoHfm01ydwNXV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Azure-Ref" : "0CAPAYAAAAABhtjl+/EjFRo2PEqdCkTMaV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Thu, 27 May 2021 23:51:49 GMT" + "Date" : "Tue, 08 Jun 2021 23:53:44 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListAndRemoveMembersWithResponseAsync[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListAndRemoveMembersWithResponseAsync[1].json index 59646d6367c3c..563b03d3b7f40 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListAndRemoveMembersWithResponseAsync[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListAndRemoveMembersWithResponseAsync[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:19 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:46 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "1nkjKdN9uE6BerEpUU3URw.0", - "X-Azure-Ref" : "00+9YYAAAAABfQ5TNiGL6R6beazmTe9w2WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-753e-b5bb-a43a0d000a30\"}}", - "x-ms-client-request-id" : "d6ca0cd7-a886-4333-9340-c7d0ca81e5c9", + "X-Processing-Time" : "22ms", + "MS-CV" : "qEorpeBF00GmL6X9MDLCIw.0", + "X-Azure-Ref" : "0CgPAYAAAAAAmogYhSeSiQYeW2E4ncdXVV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8592-f40f-343a0d001821\"}}", + "x-ms-client-request-id" : "4e3a648b-b87c-42de-a84a-efeaa0361da8", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,89 +27,93 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:18 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:46 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "vOWvbdQ/RkSRbV2UEMl/Bg.0", - "X-Azure-Ref" : "00+9YYAAAAAAlm6QUv0wFTaKxL3DySiQSWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-7595-defd-8b3a0d0004d1\"}}", - "x-ms-client-request-id" : "a65d8ac1-82d0-4002-a139-a41f01c3b989", + "X-Processing-Time" : "22ms", + "MS-CV" : "xi3/pEGP00ONoJM1R16zYA.0", + "X-Azure-Ref" : "0CgPAYAAAAABorGyjqNCeTo4n5o4G34WCV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-85cc-ac00-343a0d00dcc5\"}}", + "x-ms-client-request-id" : "22970f91-7c24-468a-b631-bf2c3a23f404", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-753e-b5bb-a43a0d000a30/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8592-f40f-343a0d001821/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:19 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:46 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "124ms", - "MS-CV" : "7M37Zzvhu0uCuPf5Dc0TeQ.0", - "X-Azure-Ref" : "00+9YYAAAAADcz+LroxUVRJbPkI1BQZSHWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:18.5476872+00:00\"}", - "x-ms-client-request-id" : "b2b16691-7dd2-422a-b761-24306efe847e", + "X-Processing-Time" : "31ms", + "MS-CV" : "CqJl5LtP+EWrVJ1fKQ715Q.0", + "X-Azure-Ref" : "0CgPAYAAAAAAwwwi3YeZ8Qob7Rr/yLWrjV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:45.8394667+00:00\"}", + "x-ms-client-request-id" : "800c90c6-2a71-473a-96a4-edba10c44800", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "525ms", - "MS-CV" : "9Q4+GXxflE2XJw8OYR4ZVg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "00+9YYAAAAABKITJlIlHxR6p16BbstlL4WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:a4dX0h-Lv5hWhgJ2OU1H3FmGm5rPeyPUaRR-5Kp2IfE1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:19Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-753e-b5bb-a43a0d000a30\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-753e-b5bb-a43a0d000a30\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:19 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:47 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "529ms", + "MS-CV" : "Hx9O37luoEWeqOcH6yYwoQ.0", + "X-Azure-Ref" : "0CgPAYAAAAAD6iCaDN4DtRIowX5m3K3ecV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:GMFAlZjmUcMULvCFJ3i7E6GuMOKhnUPE33AqYSFdpxk1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:46Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8592-f40f-343a0d001821\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8592-f40f-343a0d001821\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3Aa4dX0h-Lv5hWhgJ2OU1H3FmGm5rPeyPUaRR-5Kp2IfE1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AGMFAlZjmUcMULvCFJ3i7E6GuMOKhnUPE33AqYSFdpxk1@thread.v2" }, "Exception" : null }, { "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:19 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:47 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "Xv4REIoxtkatGsWPXOkbyw.0", - "X-Azure-Ref" : "01O9YYAAAAABlhNUUJIcBTbtGvXxHRLYqWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-78cf-b5bb-a43a0d000a31\"}}", - "x-ms-client-request-id" : "8c6ee4f3-d410-4774-b352-83a4f2934f06", + "X-Processing-Time" : "24ms", + "MS-CV" : "kvBUWZNOCUuLAtT/HTMgMA.0", + "X-Azure-Ref" : "0CwPAYAAAAABsfXavWKGmTbFlgyuf3tvbV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-88ba-0e04-343a0d00b6e0\"}}", + "x-ms-client-request-id" : "ff727e3b-a694-466e-a55a-a74d488ec548", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -117,59 +122,62 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:19 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:47 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "HhFw5vInLk+1zECUbsWFLg.0", - "X-Azure-Ref" : "01O9YYAAAAADU6zK1mfq/QqYPb1MNPixxWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-7921-defd-8b3a0d0004d2\"}}", - "x-ms-client-request-id" : "8fb61707-09c4-4a21-9c38-47c39b79ee00", + "X-Processing-Time" : "24ms", + "MS-CV" : "Fus7s5nAPEKP3wTwbmmqCg.0", + "X-Azure-Ref" : "0CwPAYAAAAAC4kU5ABHk4Q6NzwJ0D30AUV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-88f1-ac00-343a0d00dcc6\"}}", + "x-ms-client-request-id" : "71b2c121-c738-4565-a4e8-4c22c31853ce", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:a4dX0h-Lv5hWhgJ2OU1H3FmGm5rPeyPUaRR-5Kp2IfE1@thread.v2/participants/:remove?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:GMFAlZjmUcMULvCFJ3i7E6GuMOKhnUPE33AqYSFdpxk1@thread.v2/participants/:remove?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "119ms", - "MS-CV" : "Lc2JNlvEwE2WUPAmF5qMzg.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "113ms", + "MS-CV" : "HdwFplgQl0uVafE0h/mgjA.0", "retry-after" : "0", - "X-Azure-Ref" : "01O9YYAAAAABCAzuRj8vuTI9sdfGJGgreWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0CwPAYAAAAABBqgao8SkcQpqJX7Q+oR4sV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:28:20 GMT" + "Date" : "Tue, 08 Jun 2021 23:53:47 GMT" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:a4dX0h-Lv5hWhgJ2OU1H3FmGm5rPeyPUaRR-5Kp2IfE1@thread.v2/participants/:remove?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:GMFAlZjmUcMULvCFJ3i7E6GuMOKhnUPE33AqYSFdpxk1@thread.v2/participants/:remove?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "173ms", - "MS-CV" : "ylEm1KWqLkKMzhW7jdE9yA.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "120ms", + "MS-CV" : "RolzD56/J02l5Dmhkq8OTA.0", "retry-after" : "0", - "X-Azure-Ref" : "01O9YYAAAAABQerVoIC2LQrwAXj4XKSShWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0CwPAYAAAAAAuahb3zwPOTYogBh3Ca175V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:28:20 GMT" + "Date" : "Tue, 08 Jun 2021 23:53:47 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListWithContextAndRemoveMembersAsync[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListWithContextAndRemoveMembersAsync[1].json index f79c88399c5c5..dbe66f2b40273 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListWithContextAndRemoveMembersAsync[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListWithContextAndRemoveMembersAsync[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:40 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:03 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "vY/6gJ3Um0S1ljNKLWORBg.0", - "X-Azure-Ref" : "06O9YYAAAAAA2xpidxB9DSJj7wjEs4Z1RWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-c9ca-defd-8b3a0d0004f1\"}}", - "x-ms-client-request-id" : "24d18261-6122-4424-8005-c24dbf1b344a", + "X-Processing-Time" : "22ms", + "MS-CV" : "cDRWSPc4wkm/YYBro4cH2g.0", + "X-Azure-Ref" : "0GwPAYAAAAAA3MJLgdgwXRbU3YLIeBXu1V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c6a5-6a0b-343a0d00c9bb\"}}", + "x-ms-client-request-id" : "3fec0107-be2a-41b0-98a2-437ca12089b6", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,87 +27,91 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:40 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:03 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "FrHvnNhIaU+LGXcMVo+nDA.0", - "X-Azure-Ref" : "06O9YYAAAAADLJ7wm5CrWT5lsuTPe0cQ3WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-ca1c-b5bb-a43a0d000a52\"}}", - "x-ms-client-request-id" : "1cfb2f93-b01b-4a29-a98a-ef7f6b247b66", + "X-Processing-Time" : "21ms", + "MS-CV" : "ZAG7MrdK5kC46e0NhSeHGA.0", + "X-Azure-Ref" : "0GwPAYAAAAADmhOYHdkK6Q7uPeMicrb4HV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c6da-0e04-343a0d00b6f6\"}}", + "x-ms-client-request-id" : "ed7980ef-1568-4f71-aff5-dfc4fa2d425c", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-c9ca-defd-8b3a0d0004f1/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c6a5-6a0b-343a0d00c9bb/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:40 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:03 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "156ms", - "MS-CV" : "BK4z7flUbUCY32oWJKGU1w.0", - "X-Azure-Ref" : "06e9YYAAAAACaJDeVPBlGRbyXYVskA3LmWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:40.2183111+00:00\"}", - "x-ms-client-request-id" : "1496fdcc-97c1-4b0a-84b8-9ece7e62b239", + "X-Processing-Time" : "29ms", + "MS-CV" : "/li+3H9duESPBfU8aZ+/Ug.0", + "X-Azure-Ref" : "0GwPAYAAAAABoKpIlO3VERJna4LKHVTc8V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:02.4216613+00:00\"}", + "x-ms-client-request-id" : "1f7a545d-e5c8-4eba-aaae-db97de1e344e", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "332ms", - "MS-CV" : "aPcElThYL0eBrshfLXn8ug.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "06e9YYAAAAACOqoFDXjh4T74jA6TKf9d8WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:O6Nsv7OotJws6xNed2PYanbdFmgDNVoKgEFHc8k90yg1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:41Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-c9ca-defd-8b3a0d0004f1\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-c9ca-defd-8b3a0d0004f1\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:41 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:03 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "583ms", + "MS-CV" : "TGMQaxphF027YDVXwybCdQ.0", + "X-Azure-Ref" : "0GwPAYAAAAAACOIQO5FHcSZogd7lBBG9SV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:ukKz8eu04RsR3woIezzIkWJrtqyddaHa1aq5f_EPmCM1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:03Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c6a5-6a0b-343a0d00c9bb\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c6a5-6a0b-343a0d00c9bb\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AO6Nsv7OotJws6xNed2PYanbdFmgDNVoKgEFHc8k90yg1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AukKz8eu04RsR3woIezzIkWJrtqyddaHa1aq5f_EPmCM1@thread.v2" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:O6Nsv7OotJws6xNed2PYanbdFmgDNVoKgEFHc8k90yg1@thread.v2/participants?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:ukKz8eu04RsR3woIezzIkWJrtqyddaHa1aq5f_EPmCM1@thread.v2/participants?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "117ms", - "MS-CV" : "3Z5GVLc4t02Q14rMozUXVQ.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "211ms", + "MS-CV" : "zTIUhXGDSkSHdQcOC71qEQ.0", "retry-after" : "0", - "X-Azure-Ref" : "06e9YYAAAAAAEh4jYo44TQpHPjvyDOJodWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0HAPAYAAAAADU4mXZ4nDdTpdBNAuL7iY1V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-c9ca-defd-8b3a0d0004f1\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-c9ca-defd-8b3a0d0004f1\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-ca1c-b5bb-a43a0d000a52\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-ca1c-b5bb-a43a0d000a52\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", - "Date" : "Mon, 22 Mar 2021 19:28:41 GMT", + "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c6a5-6a0b-343a0d00c9bb\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c6a5-6a0b-343a0d00c9bb\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c6da-0e04-343a0d00b6f6\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c6da-0e04-343a0d00b6f6\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", + "Date" : "Tue, 08 Jun 2021 23:54:04 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListWithContextMembersAsync[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListWithContextMembersAsync[1].json index 102d0facd919f..e8c390c7a7490 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListWithContextMembersAsync[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddListWithContextMembersAsync[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:09 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:37 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "giUpAfUHekeY/PByBac6BQ.0", - "X-Azure-Ref" : "0yu9YYAAAAAAz0Wq9eZLuQpCPvnbBwVpmWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-5153-defd-8b3a0d0004c2\"}}", - "x-ms-client-request-id" : "0920ff5f-dce0-46db-984e-f56a69b7ba70", + "X-Processing-Time" : "28ms", + "MS-CV" : "EyYD69GXxUupQSc5WIzhMw.0", + "X-Azure-Ref" : "0AQPAYAAAAACBVnHD1bDeS5gWFhmAdh5AV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-6162-ac00-343a0d00dcb7\"}}", + "x-ms-client-request-id" : "c0a39c24-bbdd-4df7-b247-3b18ab57f226", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,89 +27,93 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:10 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:37 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "71Z0NXmbtEe7dH3984Y4gA.0", - "X-Azure-Ref" : "0yu9YYAAAAAD6AHkYfL3sSpKq1JqR9GYmWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-51a7-99bf-a43a0d00064b\"}}", - "x-ms-client-request-id" : "f9451fff-a018-4521-ab15-2ff463e433d1", + "X-Processing-Time" : "21ms", + "MS-CV" : "Uqj07Ofl/0CvZQkBmnjgSw.0", + "X-Azure-Ref" : "0AQPAYAAAAABJFcMEcgtaSaA4iA1w6mlSV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-61a2-f40f-343a0d00180e\"}}", + "x-ms-client-request-id" : "52f649dd-504f-48ae-b846-6cd5a1d49ec9", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-5153-defd-8b3a0d0004c2/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-6162-ac00-343a0d00dcb7/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:09 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:37 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "159ms", - "MS-CV" : "3fl53J295UqsLi+pp5n4nw.0", - "X-Azure-Ref" : "0yu9YYAAAAADCCNEQdBzmSrtv+TyXekKEWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:09.3834865+00:00\"}", - "x-ms-client-request-id" : "51f72e27-14f3-48ca-9df4-c3cb6c5e5624", + "X-Processing-Time" : "33ms", + "MS-CV" : "Jp+2xko8pUqPUTXf3LF2PA.0", + "X-Azure-Ref" : "0AQPAYAAAAADeLTt0T3eeSrWDz6VzqBc8V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:36.5165962+00:00\"}", + "x-ms-client-request-id" : "5e84a2dd-6cfe-4f78-926d-6ba44c120273", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "743ms", - "MS-CV" : "heJ4xNpPz0W4Nq7iDCp+9A.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0yu9YYAAAAACcQxFTKdh9Qo53OKhIo1EPWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:yMNAmqi3y2Qk8VmHOpRYsges96BMWiM2-d8foY7pdPY1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:10Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-5153-defd-8b3a0d0004c2\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-5153-defd-8b3a0d0004c2\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:11 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:37 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "540ms", + "MS-CV" : "2xczSystsE+MZs6gOKKGiQ.0", + "X-Azure-Ref" : "0AQPAYAAAAAD1LbUCNv8vSYvjmJ/mus79V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:Qw7b3eaqUkhpPnqBrfhRwUlAl-aqpIzE1Lv7QfBRrew1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:37Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-6162-ac00-343a0d00dcb7\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-6162-ac00-343a0d00dcb7\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AyMNAmqi3y2Qk8VmHOpRYsges96BMWiM2-d8foY7pdPY1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AQw7b3eaqUkhpPnqBrfhRwUlAl-aqpIzE1Lv7QfBRrew1@thread.v2" }, "Exception" : null }, { "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:10 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:38 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "QrIodDDyx06rOeWy8wtMHQ.0", - "X-Azure-Ref" : "0y+9YYAAAAACjyDpn4INpTq+sQU9OKfu7WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-5600-defd-8b3a0d0004c4\"}}", - "x-ms-client-request-id" : "90f4b00a-bee9-4be9-b1ec-eec9dd033223", + "X-Processing-Time" : "24ms", + "MS-CV" : "K3iZRJFJlkuoouRQk/sp2Q.0", + "X-Azure-Ref" : "0AgPAYAAAAAD6B/na7vR7S5IsfHxVqaLsV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-645a-ac00-343a0d00dcb8\"}}", + "x-ms-client-request-id" : "248001cf-5a82-4162-b3b0-0331cc700e15", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -117,21 +122,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:11 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:38 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "tsxG9Gn4x0ahBl0UToiafw.0", - "X-Azure-Ref" : "0y+9YYAAAAABH/8jul12UQ6fetANWX59OWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-5652-99bf-a43a0d00064c\"}}", - "x-ms-client-request-id" : "47e437b1-bdb1-4d11-b374-7e08446243b1", + "X-Processing-Time" : "23ms", + "MS-CV" : "tjqO6X4heEywUW2tNn5ggQ.0", + "X-Azure-Ref" : "0AgPAYAAAAAAX5ovCAwKvRoHzDVxTg3ooV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-648e-f40f-343a0d001810\"}}", + "x-ms-client-request-id" : "369add9e-308a-4b2a-a7cc-d43a21f41fa0", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddSingleParticipantAsync[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddSingleParticipantAsync[1].json index 4c426bb28ed02..11ab636632f38 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddSingleParticipantAsync[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddSingleParticipantAsync[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:39 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:02 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "NqpocrRvwkeRtU1Qk8d5SQ.0", - "X-Azure-Ref" : "05+9YYAAAAADyNBsPq6X3T5Flzh6s3P3YWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-c500-b5bb-a43a0d000a50\"}}", - "x-ms-client-request-id" : "974663e1-a39b-46cc-b584-03e116f4fe79", + "X-Processing-Time" : "23ms", + "MS-CV" : "BXDbNJMi1E2d7HbxS6Sz/w.0", + "X-Azure-Ref" : "0GgPAYAAAAAD8sVu43IdAT5PbPC5zJeQkV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c40d-0e04-343a0d00b6f4\"}}", + "x-ms-client-request-id" : "80cbdc03-0f9d-4a37-bfbd-336be24b3ff2", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,89 +27,93 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:39 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:02 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "gatu8mYtT0KcaAmEXJO1TA.0", - "X-Azure-Ref" : "05+9YYAAAAADBztqiV6zkTpn4gxj812qRWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-c554-eef0-8b3a0d000491\"}}", - "x-ms-client-request-id" : "1d6a5633-31b8-4757-b44d-2c18f7fb9ced", + "X-Processing-Time" : "21ms", + "MS-CV" : "nWM4FZG1jkeFAvTiuynfhg.0", + "X-Azure-Ref" : "0GgPAYAAAAADfwhK1U1kKR4YvmW8c4QgsV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c442-6a0b-343a0d00c9ba\"}}", + "x-ms-client-request-id" : "256e9a00-5f74-4577-8ead-e03d4e7412be", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-c500-b5bb-a43a0d000a50/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c40d-0e04-343a0d00b6f4/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:39 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:02 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "143ms", - "MS-CV" : "oRAmO/JjvEKvBzchRT7j5g.0", - "X-Azure-Ref" : "05+9YYAAAAAD1bekUWp0fSbvEAcroNNCnWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:38.9793539+00:00\"}", - "x-ms-client-request-id" : "19429292-18bb-4814-857f-9cb39d25f073", + "X-Processing-Time" : "30ms", + "MS-CV" : "TRe22OgsZkSLd0sGTDudUw.0", + "X-Azure-Ref" : "0GgPAYAAAAABCKBoEx5JwQbKz+6k186oSV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:01.7573623+00:00\"}", + "x-ms-client-request-id" : "a1ade391-459d-4541-a187-d30f9780cdd1", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "646ms", - "MS-CV" : "g377EqxylkqsTj2il1tuXA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "06O9YYAAAAAB1797AdjMySLNIUCOOf1wCWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:3LCoXT1TGhmo7Xbz7b34ttRYqHNrfUeDWqUM_FgzhwU1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:40Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-c500-b5bb-a43a0d000a50\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-c500-b5bb-a43a0d000a50\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:39 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:03 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "393ms", + "MS-CV" : "NzL6pEgtv02R3e0qyfgTQg.0", + "X-Azure-Ref" : "0GgPAYAAAAABoEHB+Q5qLQb+4dOGIWrCzV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:4WERD8R67NdNwEbhixxTvCkHQb2viUFk2X7LonrhZcc1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:02Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c40d-0e04-343a0d00b6f4\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c40d-0e04-343a0d00b6f4\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3A3LCoXT1TGhmo7Xbz7b34ttRYqHNrfUeDWqUM_FgzhwU1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A4WERD8R67NdNwEbhixxTvCkHQb2viUFk2X7LonrhZcc1@thread.v2" }, "Exception" : null }, { "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:40 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:03 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "67ms", - "MS-CV" : "nFuQ+1Xji0eHCztt2uih5g.0", - "X-Azure-Ref" : "06O9YYAAAAACFKQdy2SBjS5FFkY0n2veSWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-c950-b5bb-a43a0d000a51\"}}", - "x-ms-client-request-id" : "a14a5a11-4be2-4b3e-a345-fa14c627041b", + "X-Processing-Time" : "23ms", + "MS-CV" : "YM5wQ2Ype0q0R5EPhCLilw.0", + "X-Azure-Ref" : "0GwPAYAAAAABCYK53nRUVRrHFY/ENf6LbV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c65d-0e04-343a0d00b6f5\"}}", + "x-ms-client-request-id" : "bb0e180e-d5ca-41eb-98f7-b008005fdce6", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddSingleParticipantWithResponseAsync[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddSingleParticipantWithResponseAsync[1].json index 95adebfe77205..4e3432a26b2ae 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddSingleParticipantWithResponseAsync[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canAddSingleParticipantWithResponseAsync[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:16 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:44 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "ZehPdSNJoUub6NghfFa/ww.0", - "X-Azure-Ref" : "00O9YYAAAAACu4sNvKZVyRaty7liV3dIdWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6b28-defd-8b3a0d0004cd\"}}", - "x-ms-client-request-id" : "a47fb895-88f8-4af3-9af7-526c6fb3321e", + "X-Processing-Time" : "24ms", + "MS-CV" : "br8Dt8vbyEiOYejM4XV7+Q.0", + "X-Azure-Ref" : "0CAPAYAAAAACgEu/rhb0OTLb7xYU2utyyV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-7d12-ac00-343a0d00dcc1\"}}", + "x-ms-client-request-id" : "dd38c4ee-6442-474b-a970-dd026a0f3661", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,89 +27,93 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:16 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:44 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "86hk/6dsfUe8oayH2iIgJQ.0", - "X-Azure-Ref" : "00O9YYAAAAABJ5xiSJKS+SIaWGGnYNN93WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6c0c-b5bb-a43a0d000a2b\"}}", - "x-ms-client-request-id" : "53bd1935-935b-4d7e-905f-2ca189f6f377", + "X-Processing-Time" : "24ms", + "MS-CV" : "ol3YlZw8HE2VsJ0OW49MPg.0", + "X-Azure-Ref" : "0CAPAYAAAAAAXN2jQLucTTrKR3thP1JCgV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-7d45-f40f-343a0d00181e\"}}", + "x-ms-client-request-id" : "960aaba5-da25-4fc8-a6bd-6010917cd5aa", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6b28-defd-8b3a0d0004cd/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-7d12-ac00-343a0d00dcc1/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:16 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:44 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "160ms", - "MS-CV" : "vcS36lrQOU69csRH2yXYaA.0", - "X-Azure-Ref" : "00O9YYAAAAAB6+wlHoOfyTaMHi3WEddqKWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:16.1425718+00:00\"}", - "x-ms-client-request-id" : "b53ef5f8-036e-42db-8e4b-5a2673e0c78d", + "X-Processing-Time" : "28ms", + "MS-CV" : "Q8s04oNP5U6NUcAGe8FSvQ.0", + "X-Azure-Ref" : "0CAPAYAAAAACloiZ4ufgaTrNC5U/AJr0aV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:43.5854858+00:00\"}", + "x-ms-client-request-id" : "8328a4da-6de1-442b-85fb-bff7608a5fcd", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "388ms", - "MS-CV" : "GtDP6EDrJkWNA+V/E9f+eQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "00e9YYAAAAACQW+VRrPkfR7AwiMO//nOzWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:kVSPw--U9Tk0zWESJV69EvY8BUu7r-BqyXjCmpDvFPo1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:17Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6b28-defd-8b3a0d0004cd\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6b28-defd-8b3a0d0004cd\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:17 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:44 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "469ms", + "MS-CV" : "wnMA1h2IwkuHwKrBce7fEQ.0", + "X-Azure-Ref" : "0CAPAYAAAAAD1b2gQg6GiQqP5/JO+9Tx7V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:z0iXXA4eeYBvkfGPr7DC0DxKzM13iptwMZ-G3kTBePw1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:44Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-7d12-ac00-343a0d00dcc1\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-7d12-ac00-343a0d00dcc1\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AkVSPw--U9Tk0zWESJV69EvY8BUu7r-BqyXjCmpDvFPo1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3Az0iXXA4eeYBvkfGPr7DC0DxKzM13iptwMZ-G3kTBePw1@thread.v2" }, "Exception" : null }, { "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:17 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:45 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "FLQPKdq+aU+AXn26+Xkf8Q.0", - "X-Azure-Ref" : "00e9YYAAAAACxZVIDr2UNT6Lq3lH6vMvoWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6f08-defd-8b3a0d0004ce\"}}", - "x-ms-client-request-id" : "3405987a-c8db-466c-af5c-8c9fa551ee75", + "X-Processing-Time" : "23ms", + "MS-CV" : "46EkeHZi/UuldjxsJBse2g.0", + "X-Azure-Ref" : "0CQPAYAAAAACAvLzeYsNNRYucgytc/51HV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-7fac-ac00-343a0d00dcc3\"}}", + "x-ms-client-request-id" : "48663a2f-b85c-47d5-9ecf-ebd3055b5c00", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canDeleteExistingMessageWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canDeleteExistingMessageWithResponse[1].json index 422232b98a6ba..8413496d800b1 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canDeleteExistingMessageWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canDeleteExistingMessageWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:17 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:45 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "WmzYuDRpJkugA2+wxyuUVA.0", - "X-Azure-Ref" : "00e9YYAAAAAD8ju2BzzHCTJcKQr2SM/rcWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6f87-b5bb-a43a0d000a2d\"}}", - "x-ms-client-request-id" : "4303a87a-4c04-40b3-91d6-fc6fb8d93a5f", + "X-Processing-Time" : "23ms", + "MS-CV" : "h08tAdVoZ0mgYkjdU0er6w.0", + "X-Azure-Ref" : "0CQPAYAAAAADSbEA7gruuTo8HzKNX+x02V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-7ff2-f40f-343a0d00181f\"}}", + "x-ms-client-request-id" : "149b0471-7dca-4ca5-9d5e-c7b690c4a036", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,107 +27,112 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:17 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:45 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "Cfxz02PW5EKwmsWClWC1cQ.0", - "X-Azure-Ref" : "00e9YYAAAAABwHP/v/0HmS6ym5EFmQIgaWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6fde-defd-8b3a0d0004cf\"}}", - "x-ms-client-request-id" : "cd18b426-a076-4b25-8778-3665abceed63", + "X-Processing-Time" : "22ms", + "MS-CV" : "pajkO2gw/UOAsch4fyfewQ.0", + "X-Azure-Ref" : "0CQPAYAAAAACsuXHIR/7USqU60nD1m9wRV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8028-ac00-343a0d00dcc4\"}}", + "x-ms-client-request-id" : "432b5079-11fd-44da-a061-2c499fee0cbf", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6f87-b5bb-a43a0d000a2d/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-7ff2-f40f-343a0d00181f/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:17 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:45 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "131ms", - "MS-CV" : "Orbh/vn3fk6wqnz/McZvcQ.0", - "X-Azure-Ref" : "00e9YYAAAAACBL04a4mB3S7crwbIkrO7sWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:17.0902742+00:00\"}", - "x-ms-client-request-id" : "67153eb1-723c-44c1-8357-81b99b8d5583", + "X-Processing-Time" : "30ms", + "MS-CV" : "i9VZMU9xz0CD9/NNzrrY9w.0", + "X-Azure-Ref" : "0CQPAYAAAAACrhwLwPGtqRL8HOaHhmEB3V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:44.3228436+00:00\"}", + "x-ms-client-request-id" : "b913a92a-eff4-4c50-a34e-346d2eb80131", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "614ms", - "MS-CV" : "fPkTLCZ+1kqg8Lv8CI9KsQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "00u9YYAAAAABkeiOtqZBsQ7DGsArR0AWuWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:Rx3uBX05rXZghZ6k6wYlnur9SdmfC39C6C3h8pPyYK41@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:18Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6f87-b5bb-a43a0d000a2d\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6f87-b5bb-a43a0d000a2d\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:18 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:45 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "570ms", + "MS-CV" : "1nDTIqzwrE+vZyvxtP4aZg.0", + "X-Azure-Ref" : "0CQPAYAAAAADmiyW453MMTrirvxE3H3EEV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:cNFRueLgi6P7Em1jDFo3hLXvOBHLMGMFK3zVdltsDOY1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:45Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-7ff2-f40f-343a0d00181f\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-7ff2-f40f-343a0d00181f\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ARx3uBX05rXZghZ6k6wYlnur9SdmfC39C6C3h8pPyYK41@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AcNFRueLgi6P7Em1jDFo3hLXvOBHLMGMFK3zVdltsDOY1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:Rx3uBX05rXZghZ6k6wYlnur9SdmfC39C6C3h8pPyYK41@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:cNFRueLgi6P7Em1jDFo3hLXvOBHLMGMFK3zVdltsDOY1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "211ms", - "MS-CV" : "0RQQUfH17UaEPIV1wHGMfA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "00u9YYAAAAACOv9KeLz81TK680xmx6AzoWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441298902\"}", - "Date" : "Mon, 22 Mar 2021 19:28:18 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:46 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "453ms", + "MS-CV" : "qpmzApGRQUuwyq8dXgFnow.0", + "X-Azure-Ref" : "0CQPAYAAAAADSpXiJMDfPTZfqq1FbR3fXV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196426222\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ARx3uBX05rXZghZ6k6wYlnur9SdmfC39C6C3h8pPyYK41@thread.v2/messages/1616441298902" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AcNFRueLgi6P7Em1jDFo3hLXvOBHLMGMFK3zVdltsDOY1@thread.v2/messages/1623196426222" }, "Exception" : null }, { "Method" : "DELETE", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:Rx3uBX05rXZghZ6k6wYlnur9SdmfC39C6C3h8pPyYK41@thread.v2/messages/1616441298902?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:cNFRueLgi6P7Em1jDFo3hLXvOBHLMGMFK3zVdltsDOY1@thread.v2/messages/1623196426222?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "141ms", - "MS-CV" : "GUR17k8xHkmIT+dImK9BqA.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "145ms", + "MS-CV" : "AC7H0HateUCppjvvySZ5FA.0", "retry-after" : "0", - "X-Azure-Ref" : "00+9YYAAAAAA/0Fw3PjB+SqENvHS4GB9aWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0CgPAYAAAAACMiMrUiuyDSbtUa6AOtL8TV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:28:18 GMT" + "Date" : "Tue, 08 Jun 2021 23:53:46 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canDeleteExistingMessage[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canDeleteExistingMessage[1].json index f07818c8f4b82..40c85d324c61d 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canDeleteExistingMessage[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canDeleteExistingMessage[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:33 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:55 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "8TmMLQoTgEuDBlorUozJ5A.0", - "X-Azure-Ref" : "04e9YYAAAAAB64i2OXaebRYqLfiVZ2jGRWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-ad6d-defd-8b3a0d0004e5\"}}", - "x-ms-client-request-id" : "e37e991b-1dd0-4a49-9fff-063120569b3a", + "X-Processing-Time" : "25ms", + "MS-CV" : "xH6g5LYOgEC6Vnn6KDMmsA.0", + "X-Azure-Ref" : "0EwPAYAAAAAAfmR/DplMaSby/ERyePLRlV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-aa36-6a0b-343a0d00c9b4\"}}", + "x-ms-client-request-id" : "b5f6befa-3090-4286-adc1-998614f5a901", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,107 +27,112 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:33 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:55 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "31ms", - "MS-CV" : "+x1DkA6df0OQgtafPQUyqg.0", - "X-Azure-Ref" : "04e9YYAAAAAA7tX1aA9CfQbYKsQnJYQswWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-add2-b5bb-a43a0d000a44\"}}", - "x-ms-client-request-id" : "9e390710-f0a3-4404-94e4-36b8a4575de3", + "X-Processing-Time" : "25ms", + "MS-CV" : "NU/8jjW7/UmjH5SvOQ+Txw.0", + "X-Azure-Ref" : "0FAPAYAAAAAAakGR5TlEzTriuM22Bso9TV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-aa6c-0e04-343a0d00b6ee\"}}", + "x-ms-client-request-id" : "3654b2a4-2f5e-484a-973f-3d372a361207", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-ad6d-defd-8b3a0d0004e5/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-aa36-6a0b-343a0d00c9b4/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:33 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:56 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "146ms", - "MS-CV" : "BQdKoOxni0ywcvKG8exymg.0", - "X-Azure-Ref" : "04e9YYAAAAAAzcJJg13UzQo4S2P8IfSv2WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:32.9654072+00:00\"}", - "x-ms-client-request-id" : "b5cdf71a-1edc-4777-9f8e-f3276c8c63d2", + "X-Processing-Time" : "29ms", + "MS-CV" : "6X8xGJs+cU+qKG7yznCCtw.0", + "X-Azure-Ref" : "0FAPAYAAAAACNOUzatswvQYAUdDvDcTcBV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:55.1446226+00:00\"}", + "x-ms-client-request-id" : "cd76d51a-c886-40f0-b60f-94abd5951836", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "462ms", - "MS-CV" : "G+FpXEDBc0W1mtz71+JLSQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "04u9YYAAAAACUHlLWH92LRqvItbldSN1yWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:bWLaAYdDSvcsmfuASp63t7ZuS8EhC8HviAaJedml4TE1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:34Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-ad6d-defd-8b3a0d0004e5\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-ad6d-defd-8b3a0d0004e5\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:34 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:56 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "533ms", + "MS-CV" : "Zsq07C7u6UmM8+RucWq3Zg.0", + "X-Azure-Ref" : "0FAPAYAAAAABg1qYsiDEIQph+YH7syPcPV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:uPRjFrNwxcVO55140XfRe7sSpg6ivd-zMukYULYEJ_Q1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:56Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-aa36-6a0b-343a0d00c9b4\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-aa36-6a0b-343a0d00c9b4\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AbWLaAYdDSvcsmfuASp63t7ZuS8EhC8HviAaJedml4TE1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AuPRjFrNwxcVO55140XfRe7sSpg6ivd-zMukYULYEJ_Q1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:bWLaAYdDSvcsmfuASp63t7ZuS8EhC8HviAaJedml4TE1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:uPRjFrNwxcVO55140XfRe7sSpg6ivd-zMukYULYEJ_Q1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "184ms", - "MS-CV" : "rpRgJdMvfkGk0cngVozXgw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "04u9YYAAAAAB21dklFMg9Sp5Prwe13Fi7WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441314575\"}", - "Date" : "Mon, 22 Mar 2021 19:28:34 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:56 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "138ms", + "MS-CV" : "UccWElzfvkGX7zHX2gAaUw.0", + "X-Azure-Ref" : "0FAPAYAAAAABwYIW7W1HfQ5g4hC95uI+gV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196436792\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AbWLaAYdDSvcsmfuASp63t7ZuS8EhC8HviAaJedml4TE1@thread.v2/messages/1616441314575" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AuPRjFrNwxcVO55140XfRe7sSpg6ivd-zMukYULYEJ_Q1@thread.v2/messages/1623196436792" }, "Exception" : null }, { "Method" : "DELETE", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:bWLaAYdDSvcsmfuASp63t7ZuS8EhC8HviAaJedml4TE1@thread.v2/messages/1616441314575?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:uPRjFrNwxcVO55140XfRe7sSpg6ivd-zMukYULYEJ_Q1@thread.v2/messages/1623196436792?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "134ms", - "MS-CV" : "U0DhZp4YSkCAfT2cK0MswQ.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "203ms", + "MS-CV" : "gsGpLTBZ5kKErvDSjJCpcA.0", "retry-after" : "0", - "X-Azure-Ref" : "04u9YYAAAAAApOrJSd6/oQrVeypFg3PAxWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0FAPAYAAAAAC37mcdvHV4R5hCwaaXRmZrV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:28:34 GMT" + "Date" : "Tue, 08 Jun 2021 23:53:56 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListMessagesWithOptions[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListMessagesWithOptions[1].json index 828b51eb9bf78..afdc7e316d0f6 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListMessagesWithOptions[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListMessagesWithOptions[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:08 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:36 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "8VP+M76cYkeMEFauaLRDQw.0", - "X-Azure-Ref" : "0yO9YYAAAAABUniGc9P+lSZqG0m3acbHHWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-4c9f-defd-8b3a0d0004c0\"}}", - "x-ms-client-request-id" : "23309e0d-e1a5-4856-85ee-a5a1e7db6fc2", + "X-Processing-Time" : "31ms", + "MS-CV" : "Jl6ZdCkaFkSVTsnEBZXAog.0", + "X-Azure-Ref" : "0AAPAYAAAAAD+3S88sbNjTpmJBijuB1oRV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5e0a-ac00-343a0d00dcb5\"}}", + "x-ms-client-request-id" : "81cde51e-1c49-4ef5-b6cc-9b6e7aeac404", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:08 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:36 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "6SYO8jByl0Kv6rE1Ci6t3Q.0", - "X-Azure-Ref" : "0yO9YYAAAAAAnqg4+0W/kTaAVsFFmwk1+WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-4cf2-99bf-a43a0d00064a\"}}", - "x-ms-client-request-id" : "8f7d536c-0079-44ff-8274-be6a39d3e307", + "X-Processing-Time" : "24ms", + "MS-CV" : "RlHoKmbeM0unJAzcl4ORZw.0", + "X-Azure-Ref" : "0AAPAYAAAAAC+2RZNfuGLSbqcGCnqOJ99V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5e4b-f40f-343a0d00180b\"}}", + "x-ms-client-request-id" : "62d079d7-75c3-415d-9cf9-81144c19e473", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-4c9f-defd-8b3a0d0004c0/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5e0a-ac00-343a0d00dcb5/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:08 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:36 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "160ms", - "MS-CV" : "gE9XItJ0j0Gu6xP3qxQn7Q.0", - "X-Azure-Ref" : "0yO9YYAAAAADZI2YUIio0T5Cwn4fNnG/3WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:08.1893354+00:00\"}", - "x-ms-client-request-id" : "6e2da7b0-72f0-43aa-add6-d6899da8d9f7", + "X-Processing-Time" : "29ms", + "MS-CV" : "aktL2sgt+k2vz0Rh41kFDA.0", + "X-Azure-Ref" : "0AAPAYAAAAABU0j1GxiZ/Qofa0Vjhv/vfV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:35.6560257+00:00\"}", + "x-ms-client-request-id" : "1c7c52b2-830a-4e28-a7ce-8ff4103943a4", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "720ms", - "MS-CV" : "378ESqWG/Uy0CScg76xT1w.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0ye9YYAAAAAA7ph/sFVB/T57YDIXgtqRUWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:YNE22-OFNDY_BpP-92ZtOP0xi6SrjSLkSJI7WLGFDxs1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:09Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-4c9f-defd-8b3a0d0004c0\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-4c9f-defd-8b3a0d0004c0\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:09 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:37 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "630ms", + "MS-CV" : "EmTrDUPlu0WACBMAC3Mu0w.0", + "X-Azure-Ref" : "0AAPAYAAAAAANKY7sBLKNS4SbINCx1n0uV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:OV1X9GrzqpmpdmxrinXsTaQAvmLYwHM9ORDrlgjlkhI1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:36Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5e0a-ac00-343a0d00dcb5\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5e0a-ac00-343a0d00dcb5\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AYNE22-OFNDY_BpP-92ZtOP0xi6SrjSLkSJI7WLGFDxs1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AOV1X9GrzqpmpdmxrinXsTaQAvmLYwHM9ORDrlgjlkhI1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListMessages[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListMessages[1].json index def732b39607f..a60eb1deaca0c 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListMessages[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListMessages[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:26 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:50 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "C16o4ACAiUOxgdN6fF2kDw.0", - "X-Azure-Ref" : "02u9YYAAAAAD3C19KpA6USKJXvC+ypSh8WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-9293-defd-8b3a0d0004db\"}}", - "x-ms-client-request-id" : "59c5dafc-d388-48f7-aac7-ff078b273fb6", + "X-Processing-Time" : "26ms", + "MS-CV" : "8Y/lVJdWwEa8l37RNVW5vw.0", + "X-Azure-Ref" : "0DwPAYAAAAADjwfA1br3ZQagU+CVnx2esV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-96db-ac00-343a0d00dccb\"}}", + "x-ms-client-request-id" : "4af60550-d10f-4b89-b2a3-bbfd36c1af45", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:26 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:51 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "v0snGz+quEy7792vh/hjqg.0", - "X-Azure-Ref" : "02u9YYAAAAADr1aiZUEJOT4vj7L5Q4zzoWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-92e7-b5bb-a43a0d000a39\"}}", - "x-ms-client-request-id" : "cfd9a32f-66a1-46e2-946a-6ea8c7f36e76", + "X-Processing-Time" : "44ms", + "MS-CV" : "P4cerYtWGEK8JY2vBo3t9w.0", + "X-Azure-Ref" : "0DwPAYAAAAAAgUKtkWheES4wZsM+a0Wk8V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9724-0e04-343a0d00b6e8\"}}", + "x-ms-client-request-id" : "173972f7-5326-40b7-9ff0-12e26dd2b69f", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-9293-defd-8b3a0d0004db/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-96db-ac00-343a0d00dccb/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:26 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:51 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "158ms", - "MS-CV" : "BsKpDN4Kv0KqnXWKATd6+A.0", - "X-Azure-Ref" : "02u9YYAAAAACXaHOm2Y0HQYYxaRlJ0xCSWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:26.087383+00:00\"}", - "x-ms-client-request-id" : "51be1a06-39a9-4cd2-bc31-7adceb4044ac", + "X-Processing-Time" : "30ms", + "MS-CV" : "WyXqFF2VuECHNJyMoGW38w.0", + "X-Azure-Ref" : "0DwPAYAAAAABUJ4Te6sjGTJ7fdlROVK7GV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:50.2133849+00:00\"}", + "x-ms-client-request-id" : "a873cec3-ef6b-4e4a-9580-71c6b609b637", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "507ms", - "MS-CV" : "KzSpHb2BDUmD6O+/1p67+g.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "02+9YYAAAAADlxb3gfrpjQpUx+nQmPWaUWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:ax2GZxeIY4J6JdtxRgWx_DRfeHCdVbnkU2EA2tK_mTk1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:27Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-9293-defd-8b3a0d0004db\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-9293-defd-8b3a0d0004db\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:27 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:51 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "565ms", + "MS-CV" : "88LsY6INAE69NLcfGrM0ZA.0", + "X-Azure-Ref" : "0DwPAYAAAAAD7ATfbGoFiSaDMxNOQ6pQWV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:Rj0jYEDXDGWvR5NAePteBD6ZR2SMZOi96dWHSfsgC0Q1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:51Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-96db-ac00-343a0d00dccb\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-96db-ac00-343a0d00dccb\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3Aax2GZxeIY4J6JdtxRgWx_DRfeHCdVbnkU2EA2tK_mTk1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3ARj0jYEDXDGWvR5NAePteBD6ZR2SMZOi96dWHSfsgC0Q1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListReadReceiptsWithContext[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListReadReceiptsWithContext[1].json index 94bd6c5ab6c7a..4d369cfb5b571 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListReadReceiptsWithContext[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListReadReceiptsWithContext[1].json @@ -1,9 +1,9 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4b72178530934b7790135dd9359205e0@thread.v2/readReceipts?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4b72178530934b7790135dd9359205e0@thread.v2/readReceipts?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "retry-after" : "0", diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListReadReceiptsWithOptions[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListReadReceiptsWithOptions[1].json index 8bd9ef5dcae2d..1dfa3638653b6 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListReadReceiptsWithOptions[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListReadReceiptsWithOptions[1].json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4b72178530934b7790135dd9359205e0@thread.v2/readReceipts?maxPageSize=1&api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4b72178530934b7790135dd9359205e0@thread.v2/readReceipts?maxPageSize=1&api-version=2021-04-05-preview6", "Headers" : { "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListReadReceipts[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListReadReceipts[1].json index 94bd6c5ab6c7a..4d369cfb5b571 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListReadReceipts[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canListReadReceipts[1].json @@ -1,9 +1,9 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4b72178530934b7790135dd9359205e0@thread.v2/readReceipts?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4b72178530934b7790135dd9359205e0@thread.v2/readReceipts?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "retry-after" : "0", diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendReadReceiptWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendReadReceiptWithResponse[1].json index 684c6604554da..29fb41f7f79d2 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendReadReceiptWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendReadReceiptWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:24 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:49 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "a4gLi2QNM0+u3vn+/HhuPA.0", - "X-Azure-Ref" : "02e9YYAAAAABSyPVAKD2RS7ciSBaHvcx4WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-8c51-defd-8b3a0d0004d9\"}}", - "x-ms-client-request-id" : "4574abd0-ef9c-410c-a327-87af611ac2a1", + "X-Processing-Time" : "24ms", + "MS-CV" : "By6Me66l3E+0R95LU2S1Bg.0", + "X-Azure-Ref" : "0DQPAYAAAAAC/VgkCah8QQLItK8FdPlwpV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-92bf-ac00-343a0d00dcca\"}}", + "x-ms-client-request-id" : "906b14d9-b9f9-46c4-88be-bf78d539a2c7", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,109 +27,114 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:25 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:49 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "zdG1ROR95kydN2+YRnVezw.0", - "X-Azure-Ref" : "02e9YYAAAAADFSo4ZcDNXS4nLHP6zy7JCWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-8ca3-b5bb-a43a0d000a37\"}}", - "x-ms-client-request-id" : "98db38a9-58bc-4bf7-9d9a-b4c7d97475f6", + "X-Processing-Time" : "24ms", + "MS-CV" : "Le6sxuaAqUuz3tfCnaGWAw.0", + "X-Azure-Ref" : "0DgPAYAAAAAAGtvaDnMNkS4BfToZdVZOUV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-92f5-0e04-343a0d00b6e6\"}}", + "x-ms-client-request-id" : "6f9e2df9-223a-47b1-9518-03f6d0b9850f", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-8c51-defd-8b3a0d0004d9/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-92bf-ac00-343a0d00dcca/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:24 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:50 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "161ms", - "MS-CV" : "g1oPNjBj8UGntpwAOg45wQ.0", - "X-Azure-Ref" : "02e9YYAAAAABeOuMa1Z+7RrZRYQB26Z2IWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:24.4866573+00:00\"}", - "x-ms-client-request-id" : "81138126-b23a-4c55-b7b5-993d56d4687a", + "X-Processing-Time" : "28ms", + "MS-CV" : "geZCLs5LhkuZlPxrTL7bUg.0", + "X-Azure-Ref" : "0DgPAYAAAAAATVY6fsJ1nT7zflGEuXJ1IV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:49.1358906+00:00\"}", + "x-ms-client-request-id" : "438ec608-3394-4580-b68b-eacf7e6a7040", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "817ms", - "MS-CV" : "SOa/NqKNJEeuRXNf9dTBfg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "02e9YYAAAAACctdHvP3wsQJOad6XfEhsXWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:iBjtoB56vzbUmItgYCHqYtCNePXHw0YlT7aFGriS9Sg1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:25Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-8c51-defd-8b3a0d0004d9\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-8c51-defd-8b3a0d0004d9\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:26 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:50 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "512ms", + "MS-CV" : "TmnEhEl9/k26E7ppZs7+nA.0", + "X-Azure-Ref" : "0DgPAYAAAAAAmdCQc+8HFQrw6fKEGLKI5V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:ORgHfdJGTpXJM_6Ozm6owdgdrhxwYDnoUdnB9IK7tfM1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:50Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-92bf-ac00-343a0d00dcca\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-92bf-ac00-343a0d00dcca\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AiBjtoB56vzbUmItgYCHqYtCNePXHw0YlT7aFGriS9Sg1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AORgHfdJGTpXJM_6Ozm6owdgdrhxwYDnoUdnB9IK7tfM1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:iBjtoB56vzbUmItgYCHqYtCNePXHw0YlT7aFGriS9Sg1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:ORgHfdJGTpXJM_6Ozm6owdgdrhxwYDnoUdnB9IK7tfM1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "133ms", - "MS-CV" : "CwrGyrs/z02Fy3fg8cFiMg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "02u9YYAAAAAAKZUMsGAt1RIDAoT1cPFHYWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441306471\"}", - "Date" : "Mon, 22 Mar 2021 19:28:25 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:50 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "129ms", + "MS-CV" : "iXHJGXnJsEeoCiY8enpJ4Q.0", + "X-Azure-Ref" : "0DgPAYAAAAAB9O6SgYJxVS4/SagNLCDaOV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196430758\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AiBjtoB56vzbUmItgYCHqYtCNePXHw0YlT7aFGriS9Sg1@thread.v2/messages/1616441306471" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AORgHfdJGTpXJM_6Ozm6owdgdrhxwYDnoUdnB9IK7tfM1@thread.v2/messages/1623196430758" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:iBjtoB56vzbUmItgYCHqYtCNePXHw0YlT7aFGriS9Sg1@thread.v2/readReceipts?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:ORgHfdJGTpXJM_6Ozm6owdgdrhxwYDnoUdnB9IK7tfM1@thread.v2/readReceipts?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "content-length" : "0", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "116ms", - "MS-CV" : "Xghjm8PmcEeQfyeHc8Ei8g.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "137ms", + "MS-CV" : "MCVxdtPPv0yI2sYho2nD2w.0", "retry-after" : "0", - "X-Azure-Ref" : "02u9YYAAAAAA0wMpiO4CBRZYziwa3miXfWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", + "X-Azure-Ref" : "0DgPAYAAAAABH6b3jd23sSKfdsBSXmeGlV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:26 GMT" + "Date" : "Tue, 08 Jun 2021 23:53:50 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendReadReceipt[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendReadReceipt[1].json index a486fe6a0915d..3482f1f4215c3 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendReadReceipt[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendReadReceipt[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:14 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:41 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "0Qm6Op6nvkK/v6kERj6CZg.0", - "X-Azure-Ref" : "0zu9YYAAAAAC+R9iNQtnnS71CosSiOczoWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-64a8-defd-8b3a0d0004cb\"}}", - "x-ms-client-request-id" : "1deb6b97-29aa-4a25-aed8-c3955617d395", + "X-Processing-Time" : "23ms", + "MS-CV" : "Xi6TVoFfzUewvHOrxG1lMA.0", + "X-Azure-Ref" : "0BQPAYAAAAACmx7rmUEWiRZr157FXykeaV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-71e5-ac00-343a0d00dcbc\"}}", + "x-ms-client-request-id" : "27f8d80b-25b3-4c14-9820-bd28316953b5", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,109 +27,114 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:14 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:41 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "O0zqARENsUeom5iBNqsbCw.0", - "X-Azure-Ref" : "0z+9YYAAAAAC77NPQL80wRaXFWR700afhWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6500-99bf-a43a0d000650\"}}", - "x-ms-client-request-id" : "d6d8b807-8880-4264-9d38-eda8f0fd0108", + "X-Processing-Time" : "24ms", + "MS-CV" : "E7BpR/24uku1WZLZY/lUXw.0", + "X-Azure-Ref" : "0BQPAYAAAAACoOj/+nJLtQr8n+w4ULJtAV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-721e-f40f-343a0d001818\"}}", + "x-ms-client-request-id" : "065ded40-2857-4950-bd4f-63dc26852593", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-64a8-defd-8b3a0d0004cb/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-71e5-ac00-343a0d00dcbc/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:14 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:41 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "161ms", - "MS-CV" : "cFDANH6cJ0+64pmHcYeAFw.0", - "X-Azure-Ref" : "0z+9YYAAAAABGfth66DrgSbTPlxC2+mh1WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:14.3382416+00:00\"}", - "x-ms-client-request-id" : "3a05509e-d4fc-4af3-945b-41aa81c46348", + "X-Processing-Time" : "31ms", + "MS-CV" : "v7s8NFGm5Ei9Yk+Rro44dA.0", + "X-Azure-Ref" : "0BQPAYAAAAADii4UNMcVKRYvPPZH87gWkV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:40.7368805+00:00\"}", + "x-ms-client-request-id" : "3536294c-d3df-485c-bbf6-2a54e1d5c601", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "643ms", - "MS-CV" : "O7+EtPs6G0SF+ZhHx+gyXw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0z+9YYAAAAABokkeRDtEJTLRtvuHMh4uNWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:0a4bDqKlhjjee9dWNjUsZ_IFFzcwS6QpwsV54WMh9II1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:15Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-64a8-defd-8b3a0d0004cb\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-64a8-defd-8b3a0d0004cb\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:15 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:42 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "539ms", + "MS-CV" : "orwCRetM/E20SJTrXzFbQA.0", + "X-Azure-Ref" : "0BQPAYAAAAACtkdg6M35rR5eECtmG4FqYV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:DtXCLTXAlU4XuY3hEUXJH6KTG2daLgO5LfADHOHjjTU1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:41Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-71e5-ac00-343a0d00dcbc\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-71e5-ac00-343a0d00dcbc\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3A0a4bDqKlhjjee9dWNjUsZ_IFFzcwS6QpwsV54WMh9II1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3ADtXCLTXAlU4XuY3hEUXJH6KTG2daLgO5LfADHOHjjTU1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:0a4bDqKlhjjee9dWNjUsZ_IFFzcwS6QpwsV54WMh9II1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:DtXCLTXAlU4XuY3hEUXJH6KTG2daLgO5LfADHOHjjTU1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "253ms", - "MS-CV" : "rqznKPycD06jhUV6bNjazQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "00O9YYAAAAABfwDVvQ2I8SYYYC8pVa63OWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441296271\"}", - "Date" : "Mon, 22 Mar 2021 19:28:15 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:42 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "231ms", + "MS-CV" : "V5cwniIORkK+TnCynLN5YA.0", + "X-Azure-Ref" : "0BgPAYAAAAACW1CLYk6WVRaCotwcxsRrNV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196422467\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3A0a4bDqKlhjjee9dWNjUsZ_IFFzcwS6QpwsV54WMh9II1@thread.v2/messages/1616441296271" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3ADtXCLTXAlU4XuY3hEUXJH6KTG2daLgO5LfADHOHjjTU1@thread.v2/messages/1623196422467" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:0a4bDqKlhjjee9dWNjUsZ_IFFzcwS6QpwsV54WMh9II1@thread.v2/readReceipts?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:DtXCLTXAlU4XuY3hEUXJH6KTG2daLgO5LfADHOHjjTU1@thread.v2/readReceipts?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "content-length" : "0", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "203ms", - "MS-CV" : "Vv6dm32JN0OrLBRlKdOixg.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "501ms", + "MS-CV" : "VJjcxAouTECqyoxrxSSm0A.0", "retry-after" : "0", - "X-Azure-Ref" : "00O9YYAAAAACHh+pTP3+XRrhNiLcyloQ6WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", + "X-Azure-Ref" : "0BgPAYAAAAAAk774Oxdu2S4P/Gm5eH3TuV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:16 GMT" + "Date" : "Tue, 08 Jun 2021 23:53:42 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenGetHtmlMessage[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenGetHtmlMessage[1].json index 3037fd2a1e9e6..9a9a233f6c75c 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenGetHtmlMessage[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenGetHtmlMessage[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:34 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:57 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "p9rwfXsrZ0WJu/teWzUo6g.0", - "X-Azure-Ref" : "04u9YYAAAAADqDoAwhPzlRpZRaP14CWYSWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-b298-defd-8b3a0d0004e7\"}}", - "x-ms-client-request-id" : "c3c5a8da-d030-48df-b01a-0f274dadb50a", + "X-Processing-Time" : "24ms", + "MS-CV" : "aZ+Q+MqE+kyA+QA0+O+5SA.0", + "X-Azure-Ref" : "0FQPAYAAAAAAE0kqFg+ylQKrPLCYj4ZStV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-aeaf-6a0b-343a0d00c9b5\"}}", + "x-ms-client-request-id" : "85c89073-2a1c-4e7d-8c5a-b646093508af", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,109 +27,114 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:34 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:57 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "yaNcougSc0qIaymoPUCDjA.0", - "X-Azure-Ref" : "04+9YYAAAAADHzHtQYz2QQYWIDIipWqrUWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-b2e8-b5bb-a43a0d000a46\"}}", - "x-ms-client-request-id" : "10fa5c25-0c18-44d9-b468-1fb3e1b29e5d", + "X-Processing-Time" : "24ms", + "MS-CV" : "B35n8yD+Bki4aYFglt3mzw.0", + "X-Azure-Ref" : "0FQPAYAAAAABjmefwTXt3Sb6RAzzAmOmPV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-aeea-0e04-343a0d00b6ef\"}}", + "x-ms-client-request-id" : "a4ec51c6-838f-4091-a189-132aff861b56", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-b298-defd-8b3a0d0004e7/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-aeaf-6a0b-343a0d00c9b5/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:34 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:57 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "143ms", - "MS-CV" : "9a9AYstP6k+JVAfoX8jn9w.0", - "X-Azure-Ref" : "04+9YYAAAAABSwtYraMfwRKvFUSVaKraYWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:34.2653083+00:00\"}", - "x-ms-client-request-id" : "7b11cf54-9b4e-4de4-a9a7-9c27982aeed9", + "X-Processing-Time" : "28ms", + "MS-CV" : "KqLrywOdOEmaFrxWS3IXMA.0", + "X-Azure-Ref" : "0FQPAYAAAAADVuAamHkK5T5wMYQodirrXV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:56.2925748+00:00\"}", + "x-ms-client-request-id" : "f541ba29-a7cf-432b-9200-cc7febe2eb60", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "482ms", - "MS-CV" : "5utfPlS0XUq7k3nItotZgg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "04+9YYAAAAAATH077O33FQ7Ms+h96VgQZWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:uKSdlKCcDFd-0IWjuYB4KwG5KfUiyQdHRPhvH8kSTts1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:35Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-b298-defd-8b3a0d0004e7\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-b298-defd-8b3a0d0004e7\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:35 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:57 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "660ms", + "MS-CV" : "s2QKL2HpnE2bo3P4CF4d1w.0", + "X-Azure-Ref" : "0FQPAYAAAAABqmbqo+zMPRKnb2WMjnMPXV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:U_npVlc_DaYH6Y6lLpkLq2b4xPZXlGbT-BnT6yT1Rbs1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:57Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-aeaf-6a0b-343a0d00c9b5\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-aeaf-6a0b-343a0d00c9b5\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AuKSdlKCcDFd-0IWjuYB4KwG5KfUiyQdHRPhvH8kSTts1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AU_npVlc_DaYH6Y6lLpkLq2b4xPZXlGbT-BnT6yT1Rbs1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:uKSdlKCcDFd-0IWjuYB4KwG5KfUiyQdHRPhvH8kSTts1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:U_npVlc_DaYH6Y6lLpkLq2b4xPZXlGbT-BnT6yT1Rbs1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "186ms", - "MS-CV" : "DUbbYC9daE+CPAeeoFHPpg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "04+9YYAAAAAACzUBRltf+QLUoDWmGrHKiWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441315897\"}", - "Date" : "Mon, 22 Mar 2021 19:28:35 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:58 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "190ms", + "MS-CV" : "bxfmMXodE0+1ZmJsw2swdw.0", + "X-Azure-Ref" : "0FgPAYAAAAAAS4ov42r6GSovQa0qedxpFV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196438086\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AuKSdlKCcDFd-0IWjuYB4KwG5KfUiyQdHRPhvH8kSTts1@thread.v2/messages/1616441315897" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AU_npVlc_DaYH6Y6lLpkLq2b4xPZXlGbT-BnT6yT1Rbs1@thread.v2/messages/1623196438086" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:uKSdlKCcDFd-0IWjuYB4KwG5KfUiyQdHRPhvH8kSTts1@thread.v2/messages/1616441315897?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:U_npVlc_DaYH6Y6lLpkLq2b4xPZXlGbT-BnT6yT1Rbs1@thread.v2/messages/1623196438086?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "85ms", - "MS-CV" : "Px2InzZ/3UGghi/xwoUKQA.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "108ms", + "MS-CV" : "MTv+ZdYQOUWBT6RKjisG8g.0", "retry-after" : "0", - "X-Azure-Ref" : "05O9YYAAAAAB5lWn3hHa1SpmJupQAyt+hWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0FgPAYAAAAADISQA1ZEMpTZ4z38OVqVhiV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"1616441315897\",\"type\":\"html\",\"sequenceId\":\"3\",\"version\":\"1616441315897\",\"content\":{\"message\":\"
test
\"},\"senderDisplayName\":\"John\",\"createdOn\":\"2021-03-22T19:28:35Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-b298-defd-8b3a0d0004e7\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-b298-defd-8b3a0d0004e7\"}}}", - "Date" : "Mon, 22 Mar 2021 19:28:35 GMT", + "Body" : "{\"id\":\"1623196438086\",\"type\":\"html\",\"sequenceId\":\"3\",\"version\":\"1623196438086\",\"content\":{\"message\":\"
test
\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-06-08T23:53:58Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-aeaf-6a0b-343a0d00c9b5\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-aeaf-6a0b-343a0d00c9b5\"}},\"metadata\":{\"onedriveReferences\":\"onedriveReferences\",\"deliveryMode\":\"deliveryMode value\",\"amsreferences\":\"[\\\\\\\"test url file 3\\\\\\\"]\",\"key\":\"value key\"}}", + "Date" : "Tue, 08 Jun 2021 23:53:58 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenGetMessageWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenGetMessageWithResponse[1].json index ce0e83a2eedfe..6f6b40f2376ae 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenGetMessageWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenGetMessageWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:30 GMT", + "Date" : "Wed, 09 Jun 2021 05:42:15 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "eW9LU5IVG0Csr0y6IokEKg.0", - "X-Azure-Ref" : "03+9YYAAAAAAxPW6fxm/oTYVITdWHt9VgWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-a573-defd-8b3a0d0004e3\"}}", - "x-ms-client-request-id" : "2d9e96f0-cfd0-4f8d-b0cb-29dc359114eb", + "X-Processing-Time" : "72ms", + "MS-CV" : "ju//Fi1XTEq9Q/+RNKeDGw.0", + "X-Azure-Ref" : "0uFTAYAAAAACxj/8ZU7SrRp/pDNfVXvSyV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-939b-b5bb-a43a0d006d79\"}}", + "x-ms-client-request-id" : "17958183-f82a-4055-97ee-f0ed4ca48903", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,109 +27,114 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:31 GMT", + "Date" : "Wed, 09 Jun 2021 05:42:15 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "O/Pc/LVB4EiSLqCNgMJPDA.0", - "X-Azure-Ref" : "03+9YYAAAAABRWpOEx/KnQpFbc5x/j+qkWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-a5c5-b5bb-a43a0d000a41\"}}", - "x-ms-client-request-id" : "394715ae-8c42-4da9-ac79-0febe2362976", + "X-Processing-Time" : "70ms", + "MS-CV" : "LV9zGhVvrUipDx1kPkFhcQ.0", + "X-Azure-Ref" : "0uFTAYAAAAAAMEsuc6a7eSJjHB641OKCLV1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-9416-54b7-a43a0d0028a1\"}}", + "x-ms-client-request-id" : "04269fc1-3f91-4c56-89a6-dfa5d2676cbc", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-a573-defd-8b3a0d0004e3/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-939b-b5bb-a43a0d006d79/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:31 GMT", + "Date" : "Wed, 09 Jun 2021 05:42:16 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "149ms", - "MS-CV" : "2hCeGXZsQEmk8ckOPY6lLw.0", - "X-Azure-Ref" : "03+9YYAAAAABWpSbydFZkRrT8F1TSO9U3WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:30.9083348+00:00\"}", - "x-ms-client-request-id" : "d83918d1-65ca-40d6-82c4-b98757b36f90", + "X-Processing-Time" : "129ms", + "MS-CV" : "zf8VDYv3QEKDhDHL8N3tYg.0", + "X-Azure-Ref" : "0uFTAYAAAAABqqKFYmA/jS40xdSYckpu4V1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-10T05:42:15.5948633+00:00\"}", + "x-ms-client-request-id" : "ffa7119c-3fcc-42f5-9ed8-2d92f5d9a0d9", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "363ms", - "MS-CV" : "3feR2sGup0qpOK1+OB0uaQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "03+9YYAAAAAD+5eKqOykwR7FI+JBGoy1+WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:NklOK7az4fvkSy0SahOI--cp1X3pZTICYGRXCZDAesU1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:32Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-a573-defd-8b3a0d0004e3\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-a573-defd-8b3a0d0004e3\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:31 GMT", + "Date" : "Wed, 09 Jun 2021 05:42:16 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "542ms", + "MS-CV" : "LSeRsiSB+UWyt4NR8sIS8Q.0", + "X-Azure-Ref" : "0uFTAYAAAAAAYXiPOy88RRoEuQeQtkKj8V1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:wqrSf9UV01W4ZbnAKbV0s63ReUTA9kW013w1gM9YfCA1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-09T05:42:16Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-939b-b5bb-a43a0d006d79\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-939b-b5bb-a43a0d006d79\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ANklOK7az4fvkSy0SahOI--cp1X3pZTICYGRXCZDAesU1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AwqrSf9UV01W4ZbnAKbV0s63ReUTA9kW013w1gM9YfCA1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:NklOK7az4fvkSy0SahOI--cp1X3pZTICYGRXCZDAesU1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:wqrSf9UV01W4ZbnAKbV0s63ReUTA9kW013w1gM9YfCA1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "249ms", - "MS-CV" : "GwFJ/SpqXkGNLyzapDd9Mw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "04O9YYAAAAACGhgYC+4VLS4nk9KuI4SyvWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441312479\"}", - "Date" : "Mon, 22 Mar 2021 19:28:31 GMT", + "Date" : "Wed, 09 Jun 2021 05:42:16 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "153ms", + "MS-CV" : "jjgHSY1NJE2JNcPeKed7TQ.0", + "X-Azure-Ref" : "0uVTAYAAAAACq5lE6N4B8T7rM4PmMF5mJV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623217337258\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ANklOK7az4fvkSy0SahOI--cp1X3pZTICYGRXCZDAesU1@thread.v2/messages/1616441312479" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AwqrSf9UV01W4ZbnAKbV0s63ReUTA9kW013w1gM9YfCA1@thread.v2/messages/1623217337258" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:NklOK7az4fvkSy0SahOI--cp1X3pZTICYGRXCZDAesU1@thread.v2/messages/1616441312479?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:wqrSf9UV01W4ZbnAKbV0s63ReUTA9kW013w1gM9YfCA1@thread.v2/messages/1623217337258?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "97ms", - "MS-CV" : "yax9iLUlrUKiEMgLah78ww.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "107ms", + "MS-CV" : "OLeiGRuDEUK6YV/rbNV5Ng.0", "retry-after" : "0", - "X-Azure-Ref" : "04O9YYAAAAACNVfXmYvKQTrAZYp1Iao9FWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0uVTAYAAAAAC083V2ClDeRZX/xS9YGHXdV1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"1616441312479\",\"type\":\"text\",\"sequenceId\":\"3\",\"version\":\"1616441312479\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-03-22T19:28:32Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-a573-defd-8b3a0d0004e3\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-a573-defd-8b3a0d0004e3\"}}}", - "Date" : "Mon, 22 Mar 2021 19:28:32 GMT", + "Body" : "{\"id\":\"1623217337258\",\"type\":\"text\",\"sequenceId\":\"3\",\"version\":\"1623217337258\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-06-09T05:42:17Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-939b-b5bb-a43a0d006d79\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-939b-b5bb-a43a0d006d79\"}},\"metadata\":{\"onedriveReferences\":\"onedriveReferences\",\"deliveryMode\":\"deliveryMode value\",\"amsreferences\":\"[\\\\\\\"test url file 3\\\\\\\"]\",\"key\":\"value key\",\"tags\":\"tags value\"}}", + "Date" : "Wed, 09 Jun 2021 05:42:17 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenGetMessage[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenGetMessage[1].json index 5a978a2928ca0..8025beb83f4d2 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenGetMessage[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenGetMessage[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:59 GMT", + "Date" : "Wed, 09 Jun 2021 05:41:41 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "HZ1d/69Ry0OZUThiGZfdRg.0", - "X-Azure-Ref" : "0v+9YYAAAAAAedP/IwfZZRr0oNdWEgYEoWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-2a24-defd-8b3a0d0004b8\"}}", - "x-ms-client-request-id" : "e715f39f-731d-4aae-8fdd-a759e460d797", + "X-Processing-Time" : "69ms", + "MS-CV" : "xSfVnH7NAEWbJq9wwM84yQ.0", + "X-Azure-Ref" : "0llTAYAAAAAALuJFnhlV9TJi+Oemi0lnnV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-0e5b-54b7-a43a0d002876\"}}", + "x-ms-client-request-id" : "2bf4ca9a-7e11-4167-b68a-19abeaf94cb1", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,109 +27,114 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:59 GMT", + "Date" : "Wed, 09 Jun 2021 05:41:41 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "37ms", - "MS-CV" : "5My227KdY06u3569o325Cw.0", - "X-Azure-Ref" : "0wO9YYAAAAACj+K+ZcJtsRpDjk3bWt+9pWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-2a91-99bf-a43a0d000643\"}}", - "x-ms-client-request-id" : "ea181a7b-659e-4de3-ae17-dc8e48273363", + "X-Processing-Time" : "70ms", + "MS-CV" : "sjJmixVxz0CkxeBP0+ZRLQ.0", + "X-Azure-Ref" : "0llTAYAAAAABkN8s69FwERaljD99/JegKV1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-0ed6-99bf-a43a0d00496e\"}}", + "x-ms-client-request-id" : "bd85981b-a1e3-4ca2-a488-53be87e17ce6", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-2a24-defd-8b3a0d0004b8/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-0e5b-54b7-a43a0d002876/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:00 GMT", + "Date" : "Wed, 09 Jun 2021 05:41:42 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "161ms", - "MS-CV" : "9apbdBL0wkSzeM0JzlbwQw.0", - "X-Azure-Ref" : "0wO9YYAAAAAA//dchktQ0R6fitB0PShfEWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:59.3805706+00:00\"}", - "x-ms-client-request-id" : "dd4724ee-51ab-4eb3-a336-55c9ce1a67ea", + "X-Processing-Time" : "163ms", + "MS-CV" : "UnKHvcndXE2H6MaDMb/srg.0", + "X-Azure-Ref" : "0llTAYAAAAAAPKieW29IcTJLZ2O7jAJ1KV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-10T05:41:41.4997967+00:00\"}", + "x-ms-client-request-id" : "45db0c88-dba9-42eb-8051-978291b85208", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "804ms", - "MS-CV" : "SInvGdxzcEy4gPv7XjMV+g.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0wO9YYAAAAACYJCEWLT6vSr7BB4BFtd1mWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:f_Bx5-mw3hli88oiXcF9S_kiwi7y4ViMUl1lgP1yuYM1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:00Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-2a24-defd-8b3a0d0004b8\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-2a24-defd-8b3a0d0004b8\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:00 GMT", + "Date" : "Wed, 09 Jun 2021 05:41:42 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "574ms", + "MS-CV" : "MBcYqvgRmEGkGvmV0fuKGw.0", + "X-Azure-Ref" : "0llTAYAAAAADydaeC4xxeS5wwKaGm0L9JV1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:4bQg8tauxNwMJiquDIYfYsrLE7xnx1zbigW_VkZp3vU1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-09T05:41:42Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-0e5b-54b7-a43a0d002876\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-0e5b-54b7-a43a0d002876\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3Af_Bx5-mw3hli88oiXcF9S_kiwi7y4ViMUl1lgP1yuYM1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A4bQg8tauxNwMJiquDIYfYsrLE7xnx1zbigW_VkZp3vU1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:f_Bx5-mw3hli88oiXcF9S_kiwi7y4ViMUl1lgP1yuYM1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4bQg8tauxNwMJiquDIYfYsrLE7xnx1zbigW_VkZp3vU1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "214ms", - "MS-CV" : "/5gdqsXl4k+89eP+iGSUtw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0we9YYAAAAAAP0ddRVmjPQJyKZ9jynbJAWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441281365\"}", - "Date" : "Mon, 22 Mar 2021 19:28:01 GMT", + "Date" : "Wed, 09 Jun 2021 05:41:42 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "216ms", + "MS-CV" : "2v7rj9vcwkuqPSP7fJcswg.0", + "X-Azure-Ref" : "0l1TAYAAAAADttnbHGgg/QIoR+XLNt3LsV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623217303249\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3Af_Bx5-mw3hli88oiXcF9S_kiwi7y4ViMUl1lgP1yuYM1@thread.v2/messages/1616441281365" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A4bQg8tauxNwMJiquDIYfYsrLE7xnx1zbigW_VkZp3vU1@thread.v2/messages/1623217303249" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:f_Bx5-mw3hli88oiXcF9S_kiwi7y4ViMUl1lgP1yuYM1@thread.v2/messages/1616441281365?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4bQg8tauxNwMJiquDIYfYsrLE7xnx1zbigW_VkZp3vU1@thread.v2/messages/1623217303249?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "104ms", - "MS-CV" : "9GxgEk1IsEO3w//3pG+6KA.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "120ms", + "MS-CV" : "rnCjbW03XEKV/EUApsF+3g.0", "retry-after" : "0", - "X-Azure-Ref" : "0we9YYAAAAADrPFWEoA/ZTLZGccm9AB1KWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0l1TAYAAAAADUyh6au+M9Rr0MVJwCihFBV1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"1616441281365\",\"type\":\"text\",\"sequenceId\":\"3\",\"version\":\"1616441281365\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-03-22T19:28:01Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-2a24-defd-8b3a0d0004b8\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-2a24-defd-8b3a0d0004b8\"}}}", - "Date" : "Mon, 22 Mar 2021 19:28:00 GMT", + "Body" : "{\"id\":\"1623217303249\",\"type\":\"text\",\"sequenceId\":\"3\",\"version\":\"1623217303249\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-06-09T05:41:43Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-0e5b-54b7-a43a0d002876\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-0e5b-54b7-a43a0d002876\"}},\"metadata\":{\"onedriveReferences\":\"onedriveReferences\",\"deliveryMode\":\"deliveryMode value\",\"amsreferences\":\"[\\\\\\\"test url file 3\\\\\\\"]\",\"key\":\"value key\",\"tags\":\"tags value\"}}", + "Date" : "Wed, 09 Jun 2021 05:41:43 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenListReadReceiptsWithOptions[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenListReadReceiptsWithOptions[1].json index f4d102ff0a1b9..c52fee0a96f49 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenListReadReceiptsWithOptions[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenListReadReceiptsWithOptions[1].json @@ -3,7 +3,7 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.1.0 (1.8.0_262; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { @@ -12,13 +12,13 @@ "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Thu, 27 May 2021 23:52:12 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:00 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "61ms", - "MS-CV" : "TDyTtCHa6kqK44Rh3zuaJw.0", - "X-Azure-Ref" : "0rTCwYAAAAABLRDxBM+nLSayRS62sQnz1V1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-501f-c903-ceb1-a43a0d002804\"}}", - "x-ms-client-request-id" : "6fbc1025-c3ce-46f8-8a08-ea3588f27116", + "X-Processing-Time" : "28ms", + "MS-CV" : "4bGzgt7NZE6vbjSPTWHwSA.0", + "X-Azure-Ref" : "0GAPAYAAAAAAp92ZAcR9NRbfd4AJ1UUmPV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-ba80-6a0b-343a0d00c9b7\"}}", + "x-ms-client-request-id" : "93abecb2-0d5b-405a-8f2a-39ccf879f93c", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -27,7 +27,7 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.1.0 (1.8.0_262; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { @@ -36,22 +36,22 @@ "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Thu, 27 May 2021 23:52:13 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:00 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "85ms", - "MS-CV" : "wBhusif1zUitP9JUJIaPVw.0", - "X-Azure-Ref" : "0rTCwYAAAAAAU2eFs/5clTb91qKAtXWhAV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-501f-c981-740a-113a0d0032ca\"}}", - "x-ms-client-request-id" : "3ba392d9-5b8e-4bb5-946e-92804058d812", + "X-Processing-Time" : "21ms", + "MS-CV" : "90YSvUcw5kG5Z4bIss3Qgg.0", + "X-Azure-Ref" : "0GAPAYAAAAAAM+mMHEvhsQpHx71rtHIE/V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-bac0-0e04-343a0d00b6f1\"}}", + "x-ms-client-request-id" : "19dfb889-f0b4-4e2a-8d03-1485ce471470", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-501f-c903-ceb1-a43a0d002804/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-ba80-6a0b-343a0d00c9b7/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.1.0 (1.8.0_262; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { @@ -60,22 +60,22 @@ "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Thu, 27 May 2021 23:52:12 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:00 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "128ms", - "MS-CV" : "0kyf4J1soE+vLa6kr8qtEA.0", - "X-Azure-Ref" : "0rTCwYAAAAACjVRmvYejgS5oPr/ek1xuiV1NURURHRTA4MDYAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-05-28T23:52:12.7058272+00:00\"}", - "x-ms-client-request-id" : "ad929ad9-0bc4-41c5-ac6b-62f913ecc920", + "X-Processing-Time" : "29ms", + "MS-CV" : "kLHz2coDVUSG1XB8ZMeTzg.0", + "X-Azure-Ref" : "0GAPAYAAAAAAVyX2XmeL+SIOlxafI8OOLV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:59.3235326+00:00\"}", + "x-ms-client-request-id" : "c957716a-10e9-4a78-9839-d6098bb636fe", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.1 (1.8.0_262; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { @@ -84,14 +84,14 @@ "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Thu, 27 May 2021 23:52:14 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:00 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "1090ms", - "MS-CV" : "/1oul2Rdhki5+y7QmKlChw.0", - "X-Azure-Ref" : "0rTCwYAAAAADHT172YwkAS4ZpcZ60/6qBV1NURURHRTA4MDgAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", - "Body" : "{\"chatThread\":{\"id\":\"19:7x968SeTYz5JaYALO9u9dXAHVpWcvdf2PWwhYjaKdxk1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-05-27T23:52:13Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-501f-c903-ceb1-a43a0d002804\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-501f-c903-ceb1-a43a0d002804\"}}}}", + "X-Processing-Time" : "508ms", + "MS-CV" : "zjsecahZ7UOl7yYaLE8Y0Q.0", + "X-Azure-Ref" : "0GAPAYAAAAACFpxohcSnsRbBvOmXNHQ3ZV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:UyLIG3b71HdmkYqfuPFGneXmF9RuamwNMgaX4UF6Xi81@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:00Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-ba80-6a0b-343a0d00c9b7\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-ba80-6a0b-343a0d00c9b7\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A7x968SeTYz5JaYALO9u9dXAHVpWcvdf2PWwhYjaKdxk1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AUyLIG3b71HdmkYqfuPFGneXmF9RuamwNMgaX4UF6Xi81@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenListReadReceiptsWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenListReadReceiptsWithResponse[1].json index 373a04f29f0a9..4096c496b3e56 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenListReadReceiptsWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenListReadReceiptsWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:03 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:33 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "p9WBRgx+n0Sr6V/Wjtb3rg.0", - "X-Azure-Ref" : "0w+9YYAAAAABv9A3EwUvAQ6ImuSzpUuriWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-397a-defd-8b3a0d0004bb\"}}", - "x-ms-client-request-id" : "7a444ac7-3248-401b-bfed-7026017b62d5", + "X-Processing-Time" : "22ms", + "MS-CV" : "znjN/6qD5EeLIGWnkK984Q.0", + "X-Azure-Ref" : "0/QLAYAAAAABU/1kODKO3T4uKRerxGRjGV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-50be-ac00-343a0d00dcb1\"}}", + "x-ms-client-request-id" : "6144ca8f-0235-4372-aba8-eb11da5f9a2b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:04 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:33 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "bT4Mi+kWg0GmlhyLSfAykA.0", - "X-Azure-Ref" : "0xO9YYAAAAAAPqp4WMwkPTJ7cV90jRmDmWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-39d1-99bf-a43a0d000646\"}}", - "x-ms-client-request-id" : "51ad09d8-e257-4656-ad23-086c95467e70", + "X-Processing-Time" : "22ms", + "MS-CV" : "K9mKKloh5E2jED3d7EUmAg.0", + "X-Azure-Ref" : "0/QLAYAAAAAA76sP6XwhpRq6ohnVbvo0AV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-50f2-f40f-343a0d001805\"}}", + "x-ms-client-request-id" : "abd64c3d-7ffc-458d-99cd-86ff84b029f7", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-397a-defd-8b3a0d0004bb/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-50be-ac00-343a0d00dcb1/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:03 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:33 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "161ms", - "MS-CV" : "h5184b9kLky/EdyNnDZx/Q.0", - "X-Azure-Ref" : "0xO9YYAAAAAAKS6yA4MHmSpOUWjpUnhU5WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:03.2834903+00:00\"}", - "x-ms-client-request-id" : "2874a05e-7dc0-45c3-9353-cbb392983026", + "X-Processing-Time" : "27ms", + "MS-CV" : "R1FY6aO9jkm8pWAl+2/kxg.0", + "X-Azure-Ref" : "0/QLAYAAAAAB86ZlcMT31Rr1kMH/C3q4HV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:32.2456422+00:00\"}", + "x-ms-client-request-id" : "730ac584-5437-4a2e-aae5-b285ca5a669d", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "642ms", - "MS-CV" : "IKpqEIu43UuluIUGqgC8OA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0xO9YYAAAAAByZlT9Z+61TYEa7Kanl8unWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:kGKmjwVpKu5HYbp2hDQmvwre9-zVpqhULYaaie7VJRY1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:04Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-397a-defd-8b3a0d0004bb\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-397a-defd-8b3a0d0004bb\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:04 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:33 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "755ms", + "MS-CV" : "UL6K8D9Pa0uqnIUbM18DZg.0", + "X-Azure-Ref" : "0/QLAYAAAAAAXCA3AQRP1So3KYGblBygNV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:QKIZ87gKxU_F3_zEIUyOZNNwcYHRSAKMyp-A46C7nZ01@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:33Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-50be-ac00-343a0d00dcb1\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-50be-ac00-343a0d00dcb1\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AkGKmjwVpKu5HYbp2hDQmvwre9-zVpqhULYaaie7VJRY1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AQKIZ87gKxU_F3_zEIUyOZNNwcYHRSAKMyp-A46C7nZ01@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenListReadReceipts[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenListReadReceipts[1].json index 554fa5ded0999..bf1f0ae5d5ed0 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenListReadReceipts[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendThenListReadReceipts[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:27 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:51 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "Yhv/aJlRFUiGg8RSGpySfA.0", - "X-Azure-Ref" : "02+9YYAAAAADgHdqPrij8TZzfCiBSPvIhWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-9661-defd-8b3a0d0004dc\"}}", - "x-ms-client-request-id" : "87fd7765-9ee8-492d-892a-f1cf96738f88", + "X-Processing-Time" : "23ms", + "MS-CV" : "N0Es3kRvj0mXMID1WCyiLA.0", + "X-Azure-Ref" : "0DwPAYAAAAAAlNen7xmFTS7064MfXhQvuV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-99fb-ac00-343a0d00dccc\"}}", + "x-ms-client-request-id" : "4cf7fd53-3342-4f7a-8ab8-8434a9f4f04a", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:27 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:51 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "9ms", - "MS-CV" : "1A+vLwHMMEG/ECY3Z9EphA.0", - "X-Azure-Ref" : "02+9YYAAAAAD+SWDLfZWcSY15xcbQwKVRWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-96b2-b5bb-a43a0d000a3a\"}}", - "x-ms-client-request-id" : "d988983e-4633-4415-b387-2c99e7c73f38", + "X-Processing-Time" : "23ms", + "MS-CV" : "eqSkw/UirESeNvzLPpxGyA.0", + "X-Azure-Ref" : "0DwPAYAAAAABqLPbn+Us3Ros07qk1RlIRV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9a2e-0e04-343a0d00b6e9\"}}", + "x-ms-client-request-id" : "18cd8a2d-7d88-40f8-8069-7a35dfd11c8e", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-9661-defd-8b3a0d0004dc/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-99fb-ac00-343a0d00dccc/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:27 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:51 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "158ms", - "MS-CV" : "PGB3NjMNuk6EO5NokP0w5A.0", - "X-Azure-Ref" : "02+9YYAAAAABwIos6FO1TTakGuYpHi676WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:27.0591477+00:00\"}", - "x-ms-client-request-id" : "d1e9de8a-5531-4244-ad4a-b74c64127f72", + "X-Processing-Time" : "34ms", + "MS-CV" : "MB8VGjaAkEuJ7UEKeJeV0g.0", + "X-Azure-Ref" : "0DwPAYAAAAAAFmSOCjfzDRov/Fl4SzGf5V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:50.9914763+00:00\"}", + "x-ms-client-request-id" : "6f03344d-6026-4c74-9bcc-89b80b1278db", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "799ms", - "MS-CV" : "JjLeJZVJAE6coSc3uFCCaw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "03O9YYAAAAAAs3Zvzx9BkToKzak1UuwuvWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:FRpCZzny08KAlRPiS3NOG0QfPhOpWybhdufuzvhSFYQ1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:28Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-9661-defd-8b3a0d0004dc\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-9661-defd-8b3a0d0004dc\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:28 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:52 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "362ms", + "MS-CV" : "7rpKLjFVL0G8ipf74cALZg.0", + "X-Azure-Ref" : "0EAPAYAAAAAA8CrPkCIq+RYCXt1FGM84RV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:vsNx9Ke-aTvSuUMVNS7qdBEQgGOG0YD3ajGerCQyuLU1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:52Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-99fb-ac00-343a0d00dccc\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-99fb-ac00-343a0d00dccc\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AFRpCZzny08KAlRPiS3NOG0QfPhOpWybhdufuzvhSFYQ1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AvsNx9Ke-aTvSuUMVNS7qdBEQgGOG0YD3ajGerCQyuLU1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendTypingNotificationWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendTypingNotificationWithResponse[1].json index 320519353dd1a..2732187c17034 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendTypingNotificationWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendTypingNotificationWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:20 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:47 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "R2lqVucwq0GdCI9syymXtQ.0", - "X-Azure-Ref" : "01O9YYAAAAAAYFobPG1j9SLyU/CYvGLbpWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-7af8-b5bb-a43a0d000a33\"}}", - "x-ms-client-request-id" : "20af1d02-9dd0-42f0-a728-ae56e85537d5", + "X-Processing-Time" : "30ms", + "MS-CV" : "iBPl6LmbS0ed3suaVEG5qg.0", + "X-Azure-Ref" : "0CwPAYAAAAAB5DC9tPBBKQoxnxx2/fZVoV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8a6b-0e04-343a0d00b6e1\"}}", + "x-ms-client-request-id" : "00c535e5-930c-41e5-80f1-0e6ddea88dd7", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,86 +27,90 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:20 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:47 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "9ms", - "MS-CV" : "7Gvx6LTkHk2TnJpuwTXMsw.0", - "X-Azure-Ref" : "01O9YYAAAAAAZ+MSQL3blRqzvq0NknvtuWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-7b4a-defd-8b3a0d0004d3\"}}", - "x-ms-client-request-id" : "95db2066-d1dc-42e7-aec3-0eb54c6b1e17", + "X-Processing-Time" : "24ms", + "MS-CV" : "LN1GN5x0M0y0Nv/s9OyzyQ.0", + "X-Azure-Ref" : "0CwPAYAAAAAAP/fpixMScQLe2M1OzaNYyV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8aac-ac00-343a0d00dcc7\"}}", + "x-ms-client-request-id" : "cf7bf5b6-9ff9-47cd-8ca6-07111010bdc9", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-7af8-b5bb-a43a0d000a33/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8a6b-0e04-343a0d00b6e1/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:20 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:47 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "123ms", - "MS-CV" : "lM0eR5pyYk2FPCBoYbprSQ.0", - "X-Azure-Ref" : "01O9YYAAAAAA8MGGrRQKsSLTeR8MgC6FFWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:20.0078399+00:00\"}", - "x-ms-client-request-id" : "0213d1cb-4c20-42ba-a919-9407f5ca5778", + "X-Processing-Time" : "36ms", + "MS-CV" : "5u/WLGUAykq5Rb7wwnTmEQ.0", + "X-Azure-Ref" : "0CwPAYAAAAAASdEwrFx+ISqc2ik6XY3X/V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:47.0246785+00:00\"}", + "x-ms-client-request-id" : "21bbee9a-7ab7-4cfc-93d7-c19e7bb44da5", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "799ms", - "MS-CV" : "H4rXw0dfl0KqgGLPSUybMQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "01e9YYAAAAAC59hWPKDWrSKxZc3QXMVpiWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:vXT9KRAt3HPg1O2fRRJbfMosYKQKg96mwdC3LPTpZ-o1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:21Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-7af8-b5bb-a43a0d000a33\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-7af8-b5bb-a43a0d000a33\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:21 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:48 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "450ms", + "MS-CV" : "8RdELFiDEkutAAEbG2eTqQ.0", + "X-Azure-Ref" : "0DAPAYAAAAACdfgaV/vrMQrRDqzHY81qoV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:Xj4PufISsqneEX1APjufvW9BDRutz5uIfEMvvHY1lwA1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:48Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8a6b-0e04-343a0d00b6e1\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8a6b-0e04-343a0d00b6e1\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AvXT9KRAt3HPg1O2fRRJbfMosYKQKg96mwdC3LPTpZ-o1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AXj4PufISsqneEX1APjufvW9BDRutz5uIfEMvvHY1lwA1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:vXT9KRAt3HPg1O2fRRJbfMosYKQKg96mwdC3LPTpZ-o1@thread.v2/typing?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:Xj4PufISsqneEX1APjufvW9BDRutz5uIfEMvvHY1lwA1@thread.v2/typing?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "content-length" : "0", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "215ms", - "MS-CV" : "KYNWzHUtrUuE/IVsbh4r6Q.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "103ms", + "MS-CV" : "9snhpI1hx0uTtJp/k8i76Q.0", "retry-after" : "0", - "X-Azure-Ref" : "01e9YYAAAAAACSgCG4cbySYPgBHD+2+x3WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", + "X-Azure-Ref" : "0DAPAYAAAAACf4RpkJCqcRIQvRGadVIX/V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:21 GMT" + "Date" : "Tue, 08 Jun 2021 23:53:48 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendTypingNotification[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendTypingNotification[1].json index cf70f5a0dafa7..14e11f239bd05 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendTypingNotification[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canSendTypingNotification[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:36 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:00 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "T4MMaBXJQEi+P5f1yMuiOQ.0", - "X-Azure-Ref" : "05e9YYAAAAADbbsJB4u2CSo+weO7Ec3IOWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-bb7d-defd-8b3a0d0004ec\"}}", - "x-ms-client-request-id" : "55601a5c-0339-4632-97dc-be8259c0b240", + "X-Processing-Time" : "23ms", + "MS-CV" : "yFf1G00cRkafGlPPiTLgyA.0", + "X-Azure-Ref" : "0GAPAYAAAAAAzlBzeuCxrQ7JMNnWcQA5SV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-bd76-6a0b-343a0d00c9b8\"}}", + "x-ms-client-request-id" : "f5ca30c4-d14d-4b3b-aa2c-a9d2233e9736", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,86 +27,90 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:36 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:00 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "dPjZBzlWwUaZdJkwo37cLw.0", - "X-Azure-Ref" : "05e9YYAAAAAAW9igSGJd2QZJPlpYxGtT6WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-bbd0-b5bb-a43a0d000a4b\"}}", - "x-ms-client-request-id" : "6e44d3db-cf3c-4e9d-b889-f45752bffcea", + "X-Processing-Time" : "23ms", + "MS-CV" : "yu7UOJOeW0OkKFjhmJcvQw.0", + "X-Azure-Ref" : "0GAPAYAAAAACNWnKM/HakSYV7uzRvTkDXV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-bdaf-0e04-343a0d00b6f2\"}}", + "x-ms-client-request-id" : "11998d32-532a-4d35-aca7-683fd3357267", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-bb7d-defd-8b3a0d0004ec/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-bd76-6a0b-343a0d00c9b8/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:36 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:00 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "142ms", - "MS-CV" : "Ap6j05CcWE2yTadg56AJIw.0", - "X-Azure-Ref" : "05e9YYAAAAAB7xcIk44nhQpmMS8KNNegMWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:36.5425301+00:00\"}", - "x-ms-client-request-id" : "ac9828a4-baf1-45a9-82b3-664132f1b3bb", + "X-Processing-Time" : "30ms", + "MS-CV" : "RRYPnvwS20Ke+9Gv9Tht0w.0", + "X-Azure-Ref" : "0GQPAYAAAAABppz59lLy5QpPF4PcuedOsV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:00.0771425+00:00\"}", + "x-ms-client-request-id" : "01b478a9-58ad-4771-9ff2-76e5ecc691fc", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "494ms", - "MS-CV" : "RaJE+d2FeU6fIijiG+R9bw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "05e9YYAAAAACbbL8+lj7TTp7zFXh6td4IWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:79NDYHBl46PeEWzFtnJB7HleFcKnx232Mc7TtwP5ZPI1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:37Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-bb7d-defd-8b3a0d0004ec\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-bb7d-defd-8b3a0d0004ec\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:37 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:01 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "455ms", + "MS-CV" : "IS2sA/FODkCiYb1bHJ8RQQ.0", + "X-Azure-Ref" : "0GQPAYAAAAAC8uRtwLTPNR7gtNJeg9F6OV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:CH44DCTgIvopQUJoFyFybKyxalgOFqzTUNrfItwJokA1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:01Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-bd76-6a0b-343a0d00c9b8\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-bd76-6a0b-343a0d00c9b8\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3A79NDYHBl46PeEWzFtnJB7HleFcKnx232Mc7TtwP5ZPI1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3ACH44DCTgIvopQUJoFyFybKyxalgOFqzTUNrfItwJokA1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:79NDYHBl46PeEWzFtnJB7HleFcKnx232Mc7TtwP5ZPI1@thread.v2/typing?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:CH44DCTgIvopQUJoFyFybKyxalgOFqzTUNrfItwJokA1@thread.v2/typing?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "content-length" : "0", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "98ms", - "MS-CV" : "JXofsBn5nEW7lPfOXsYSPg.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "95ms", + "MS-CV" : "UHj2dr5VjU+fIkkMSXIzqA.0", "retry-after" : "0", - "X-Azure-Ref" : "05u9YYAAAAADVbBwEM0d7QKasOD+dEUjXWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", + "X-Azure-Ref" : "0GQPAYAAAAACF5WPBJWf6TLMZEbMyDpV+V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:37 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:01 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateExistingMessageWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateExistingMessageWithResponse[1].json index b80edee62487f..884d9868a6357 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateExistingMessageWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateExistingMessageWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:42 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:04 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "HS8lsOarskyLP2bpOol75w.0", - "X-Azure-Ref" : "06u9YYAAAAAChvq94r1WqRqidy+6x16NDWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-d210-b5bb-a43a0d000a54\"}}", - "x-ms-client-request-id" : "ba34c135-47e8-47e0-bc6d-fdbb085330d4", + "X-Processing-Time" : "24ms", + "MS-CV" : "i7fhETasKES39bU9D2vc6Q.0", + "X-Azure-Ref" : "0HAPAYAAAAADnqXiNt0DzQaQJUmn6xh+pV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-cd2f-0e04-343a0d00b6f8\"}}", + "x-ms-client-request-id" : "49eb47ab-c39c-4e16-a202-c06539b758a8", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,127 +27,133 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:42 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:04 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "nD5++sz2akyDLYrAByARfg.0", - "X-Azure-Ref" : "06+9YYAAAAAAqEq1b0z/yTaDox3rIxuETWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-d265-eef0-8b3a0d000492\"}}", - "x-ms-client-request-id" : "bf1b0d85-06f5-49d1-8dc6-0afb381737b0", + "X-Processing-Time" : "27ms", + "MS-CV" : "y5b0j9vzlEqI3IM2v6diiA.0", + "X-Azure-Ref" : "0HAPAYAAAAAD1lOV3A0ovS7gDggNC8a6hV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-cd69-6a0b-343a0d00c9be\"}}", + "x-ms-client-request-id" : "177f5e14-f74e-411b-bcf2-d23fdeed068e", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-d210-b5bb-a43a0d000a54/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-cd2f-0e04-343a0d00b6f8/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:42 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:04 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "126ms", - "MS-CV" : "5t/P9N2tN0mzs2bW96xVfQ.0", - "X-Azure-Ref" : "06+9YYAAAAADJ8sxbCDA/To8lujxTHcMTWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:42.3077296+00:00\"}", - "x-ms-client-request-id" : "1dc803a2-9ba6-4994-8317-c98678f52e8f", + "X-Processing-Time" : "29ms", + "MS-CV" : "PmL9EJVWV0q34RI5yfiW8A.0", + "X-Azure-Ref" : "0HQPAYAAAAACrdrXne7HyQLD+tWDJzCQdV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:04.0995466+00:00\"}", + "x-ms-client-request-id" : "27be00b0-a912-40b3-ac49-60dc3dbf92da", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "538ms", - "MS-CV" : "aP85uIswR023CmqNSVsKaA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "06+9YYAAAAAAYkynAd6eTTp4stKqrT0GuWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:p0xygFHI4JgeOhmLd1_vOwcKZy7lS_2khAGiHvrDuQE1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:43Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-d210-b5bb-a43a0d000a54\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-d210-b5bb-a43a0d000a54\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:43 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:05 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "660ms", + "MS-CV" : "+JwS5c+hUEebQTSEUlBF4A.0", + "X-Azure-Ref" : "0HQPAYAAAAACuI8i2YeZkSJtfJZcGbsk8V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:WawQXOf3JEd4K0TxGpm4WqYE9G9NE0I_T-eYKiIr8RQ1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:05Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-cd2f-0e04-343a0d00b6f8\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-cd2f-0e04-343a0d00b6f8\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3Ap0xygFHI4JgeOhmLd1_vOwcKZy7lS_2khAGiHvrDuQE1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AWawQXOf3JEd4K0TxGpm4WqYE9G9NE0I_T-eYKiIr8RQ1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:p0xygFHI4JgeOhmLd1_vOwcKZy7lS_2khAGiHvrDuQE1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:WawQXOf3JEd4K0TxGpm4WqYE9G9NE0I_T-eYKiIr8RQ1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "196ms", - "MS-CV" : "J1kESfgJ40yEnLwJfo5evg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "06+9YYAAAAABThYb71o/ETKQ7qM+oaGdXWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441323982\"}", - "Date" : "Mon, 22 Mar 2021 19:28:43 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:05 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "243ms", + "MS-CV" : "LvlMptJOrEa9N4cu4WOhzA.0", + "X-Azure-Ref" : "0HQPAYAAAAAC2nK7SA5G8S6ngCLOdP83AV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196445995\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3Ap0xygFHI4JgeOhmLd1_vOwcKZy7lS_2khAGiHvrDuQE1@thread.v2/messages/1616441323982" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AWawQXOf3JEd4K0TxGpm4WqYE9G9NE0I_T-eYKiIr8RQ1@thread.v2/messages/1623196445995" }, "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:p0xygFHI4JgeOhmLd1_vOwcKZy7lS_2khAGiHvrDuQE1@thread.v2/messages/1616441323982?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:WawQXOf3JEd4K0TxGpm4WqYE9G9NE0I_T-eYKiIr8RQ1@thread.v2/messages/1623196445995?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/merge-patch+json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "267ms", - "MS-CV" : "pTL78UY+AEaqxBnuw1U93g.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "212ms", + "MS-CV" : "7AKA1R9GOk6lrPPbo0Vn5w.0", "retry-after" : "0", - "X-Azure-Ref" : "07O9YYAAAAADkp7nYbBWWS5ogoyr2LIFmWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0HgPAYAAAAAAO6g8Krf9LSY4Kg0c08ttwV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:28:43 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:06 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:p0xygFHI4JgeOhmLd1_vOwcKZy7lS_2khAGiHvrDuQE1@thread.v2/messages/1616441323982?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:WawQXOf3JEd4K0TxGpm4WqYE9G9NE0I_T-eYKiIr8RQ1@thread.v2/messages/1623196445995?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "119ms", - "MS-CV" : "aeRqdkNVhE+PlZQtv+eKWQ.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "84ms", + "MS-CV" : "mzqbF1A2wEKxLwpsmJQoVQ.0", "retry-after" : "0", - "X-Azure-Ref" : "07O9YYAAAAAD9K+pKdXD4RqyjpboyVWQ9WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0HgPAYAAAAABztacMTMLBTLYO3a7atGwqV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"1616441323982\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1616441324349\",\"content\":{\"message\":\"Update Test\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-03-22T19:28:43Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-d210-b5bb-a43a0d000a54\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-d210-b5bb-a43a0d000a54\"}},\"editedOn\":\"2021-03-22T19:28:44Z\"}", - "Date" : "Mon, 22 Mar 2021 19:28:44 GMT", + "Body" : "{\"id\":\"1623196445995\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1623196446244\",\"content\":{\"message\":\"Update Test\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-06-08T23:54:05Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-cd2f-0e04-343a0d00b6f8\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-cd2f-0e04-343a0d00b6f8\"}},\"editedOn\":\"2021-06-08T23:54:06Z\",\"metadata\":{\"onedriveReferences\":\"onedriveReferences - updated\",\"deliveryMode\":\"deliveryMode value - updated\",\"amsreferences\":\"[\\\\\\\"test url file 3\\\\\\\"]\",\"key\":\"value key\"}}", + "Date" : "Tue, 08 Jun 2021 23:54:06 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateExistingMessage[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateExistingMessage[1].json index 57cded22aae79..121638a5d589c 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateExistingMessage[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateExistingMessage[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:45 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:07 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "KJmxDkTwa0SisjpJRQyVqQ.0", - "X-Azure-Ref" : "07e9YYAAAAAAvvs05AEX/RbxGawnroOI/WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-dcc6-defd-8b3a0d0004fa\"}}", - "x-ms-client-request-id" : "0984faf2-ef30-4f82-8e31-f853abb3b669", + "X-Processing-Time" : "23ms", + "MS-CV" : "sRVD5PLTkUW2W0FXSzfNqQ.0", + "X-Azure-Ref" : "0HwPAYAAAAADIJqK3WPZvQbRSbg2hHqtqV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d642-6a0b-343a0d00c9c3\"}}", + "x-ms-client-request-id" : "093b27a6-cdb2-46fb-9e03-c3c59b1deaa8", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:45 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:07 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "yO+4eIFJzESf2dYuMNFH6Q.0", - "X-Azure-Ref" : "07e9YYAAAAACV6sRoG7DPTb0jb/1INAwSWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-dd19-b5bb-a43a0d000a59\"}}", - "x-ms-client-request-id" : "d6a43016-87ab-4da5-a30d-c23348f74356", + "X-Processing-Time" : "23ms", + "MS-CV" : "vKI+hjq6qEyOqezmh/r0iQ.0", + "X-Azure-Ref" : "0HwPAYAAAAADWZbiuareDS7M4OgVzAfH8V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d678-0e04-343a0d00b6fe\"}}", + "x-ms-client-request-id" : "a962df2e-5f87-4588-a9bd-bef50ada5517", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-dcc6-defd-8b3a0d0004fa/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d642-6a0b-343a0d00c9c3/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:45 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:07 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "147ms", - "MS-CV" : "ODinUGLs9kuo9EQpt+/a2g.0", - "X-Azure-Ref" : "07e9YYAAAAAC44+h5LiuHSorxzAojqmk+WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:45.0695952+00:00\"}", - "x-ms-client-request-id" : "dbb6d9c4-9d6b-47e6-b5a4-4b20f9ed73cf", + "X-Processing-Time" : "27ms", + "MS-CV" : "DduEfiHLNkOSFm6Zp+SYNA.0", + "X-Azure-Ref" : "0HwPAYAAAAADO/r4sz+FCTb1E3KzbTod2V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:06.4160346+00:00\"}", + "x-ms-client-request-id" : "c7ce4862-e48d-44c2-8f12-c33fe19d0b49", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "961ms", - "MS-CV" : "w1WdAY6IeUeHzdInxl7SAw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "07u9YYAAAAAAPRwKTEm1pTLwtlWDCwluqWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:lNgHxKpg8GHX76TWNtGxfBs2qgdgy3D1IPrdu8mvo081@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:46Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-dcc6-defd-8b3a0d0004fa\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-dcc6-defd-8b3a0d0004fa\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:46 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:07 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "372ms", + "MS-CV" : "NjJeawGQdEuj8yHdUYbLFA.0", + "X-Azure-Ref" : "0HwPAYAAAAABY7cbaWtSbQbbxKadQ2HeNV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:4K3tM8zVlhjfdEguznOs4rdyQQxpz8g08XWFQnHRMP01@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:07Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d642-6a0b-343a0d00c9c3\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d642-6a0b-343a0d00c9c3\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AlNgHxKpg8GHX76TWNtGxfBs2qgdgy3D1IPrdu8mvo081@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A4K3tM8zVlhjfdEguznOs4rdyQQxpz8g08XWFQnHRMP01@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateThreadWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateThreadWithResponse[1].json index d95c59e7eb0e6..50c4b80d178df 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateThreadWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateThreadWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:11 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:38 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "Cma9ZLrKqkCZXZ+vzh5bFw.0", - "X-Azure-Ref" : "0y+9YYAAAAAAi1+tafv/JSrKGqIQrrZDIWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-56ba-defd-8b3a0d0004c5\"}}", - "x-ms-client-request-id" : "2ce220e0-8059-4a75-a4be-52cd5526c162", + "X-Processing-Time" : "25ms", + "MS-CV" : "scPpNtUDA0qrzVmnWDrWqQ.0", + "X-Azure-Ref" : "0AgPAYAAAAAA6gfOXXJfCR6D1jlpFl8TiV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-64c9-ac00-343a0d00dcb9\"}}", + "x-ms-client-request-id" : "4fe4019e-b80f-4de4-8f1e-e3e4423085c6", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,105 +27,110 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:11 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:38 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "Q1OZHf7HU0Wp2Et/aleWdQ.0", - "X-Azure-Ref" : "0y+9YYAAAAAAuArpMEuBEQpfRyVtDNG5BWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-570c-99bf-a43a0d00064d\"}}", - "x-ms-client-request-id" : "47aadd61-c1b5-4fd0-bdf4-12b7a37f30f7", + "X-Processing-Time" : "26ms", + "MS-CV" : "kl/EqHZ4Dkux6jv/U/FuNw.0", + "X-Azure-Ref" : "0AgPAYAAAAADzn7YaSGoJR7FZzF+dfU4cV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-6507-f40f-343a0d001811\"}}", + "x-ms-client-request-id" : "12a89a42-8310-4f7a-8a35-5bb9d24d2000", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-56ba-defd-8b3a0d0004c5/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-64c9-ac00-343a0d00dcb9/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:11 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:38 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "169ms", - "MS-CV" : "JUjAoP+ByUq5iNWLiVBP3Q.0", - "X-Azure-Ref" : "0y+9YYAAAAAAczIXR5UDvR4aK1gn56H57WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:10.7731171+00:00\"}", - "x-ms-client-request-id" : "a4ffe38f-55ef-47ae-8469-0194bafff85b", + "X-Processing-Time" : "29ms", + "MS-CV" : "gf/isXWZVEKEO5bA0whXWQ.0", + "X-Azure-Ref" : "0AgPAYAAAAABtbko6M1bwTptIMm28moJFV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:37.3855886+00:00\"}", + "x-ms-client-request-id" : "e13c7969-aac6-469a-97de-6086ec0baccd", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "640ms", - "MS-CV" : "CpOl8l6kiky9a+tb6VYf4Q.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0y+9YYAAAAACUJPKN7C6hSaRr1dFLdgQLWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:CUszcpQ6FEZ1bpMQW0ANYOhGdMMBK8KJcKI3xg4kGbQ1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:11Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-56ba-defd-8b3a0d0004c5\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-56ba-defd-8b3a0d0004c5\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:12 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:38 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "633ms", + "MS-CV" : "cfnGQBWrIUSixLSS0RMhBA.0", + "X-Azure-Ref" : "0AgPAYAAAAACxc9LCq2IwQr237C/wvXnzV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:naFMv5sDdmX9lhxPdezH0HlzVzprgEPmiyyexCcKIYs1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:38Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-64c9-ac00-343a0d00dcb9\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-64c9-ac00-343a0d00dcb9\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ACUszcpQ6FEZ1bpMQW0ANYOhGdMMBK8KJcKI3xg4kGbQ1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AnaFMv5sDdmX9lhxPdezH0HlzVzprgEPmiyyexCcKIYs1@thread.v2" }, "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:CUszcpQ6FEZ1bpMQW0ANYOhGdMMBK8KJcKI3xg4kGbQ1@thread.v2?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:naFMv5sDdmX9lhxPdezH0HlzVzprgEPmiyyexCcKIYs1@thread.v2?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/merge-patch+json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "255ms", - "MS-CV" : "kKQEZK4Jb0+EXR/FYnRIkQ.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "201ms", + "MS-CV" : "RZNL/4toUUuxGoxkZLjfVw.0", "retry-after" : "0", - "X-Azure-Ref" : "0zO9YYAAAAADjb5xI2WT1Rp6epnPMmPETWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0AwPAYAAAAAB8H8lCKgRgTY0gXDg+uMxcV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:28:12 GMT" + "Date" : "Tue, 08 Jun 2021 23:53:39 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:CUszcpQ6FEZ1bpMQW0ANYOhGdMMBK8KJcKI3xg4kGbQ1@thread.v2?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:naFMv5sDdmX9lhxPdezH0HlzVzprgEPmiyyexCcKIYs1@thread.v2?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "133ms", - "MS-CV" : "zuinN5cE2Uerb9K1eavrrQ.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "146ms", + "MS-CV" : "7qaJ6IWdrUGFdE7pYCQhWg.0", "retry-after" : "0", - "X-Azure-Ref" : "0zO9YYAAAAABJw9gz9D0cQZ7FyuEdbYqoWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0AwPAYAAAAACJXZ42RSoiRamPLvg4iE4rV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"19:CUszcpQ6FEZ1bpMQW0ANYOhGdMMBK8KJcKI3xg4kGbQ1@thread.v2\",\"topic\":\"Update Test\",\"createdOn\":\"2021-03-22T19:28:11Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-56ba-defd-8b3a0d0004c5\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-56ba-defd-8b3a0d0004c5\"}}}", - "Date" : "Mon, 22 Mar 2021 19:28:12 GMT", + "Body" : "{\"id\":\"19:naFMv5sDdmX9lhxPdezH0HlzVzprgEPmiyyexCcKIYs1@thread.v2\",\"topic\":\"Update Test\",\"createdOn\":\"2021-06-08T23:53:38Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-64c9-ac00-343a0d00dcb9\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-64c9-ac00-343a0d00dcb9\"}}}", + "Date" : "Tue, 08 Jun 2021 23:53:39 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateThread[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateThread[1].json index fa077b979de07..06d02a9ac88a4 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateThread[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.canUpdateThread[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:07 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:35 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "MBAEpPTOx0S6FNjVjwalmg.0", - "X-Azure-Ref" : "0x+9YYAAAAAC6lH6hJY1ZT7q7XyD7v3ZoWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-479d-defd-8b3a0d0004bf\"}}", - "x-ms-client-request-id" : "51cb2568-ac6a-432e-b66b-37e226672958", + "X-Processing-Time" : "22ms", + "MS-CV" : "rNYSjM41NEKcQyHmGnC2GQ.0", + "X-Azure-Ref" : "0/wLAYAAAAAC8i1c7GZ38QYR9/19as+GjV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5a48-ac00-343a0d00dcb4\"}}", + "x-ms-client-request-id" : "f6fa3dbd-ea0c-4f4a-8b0e-45a7133cb49c", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:07 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:35 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "62gC2l584UK/OiJdEBQxbw.0", - "X-Azure-Ref" : "0x+9YYAAAAADoU86dSXWPR4WJKgvN/NOcWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-47ef-99bf-a43a0d000649\"}}", - "x-ms-client-request-id" : "b3473bcd-61cb-4be2-88b4-e2468653ebc2", + "X-Processing-Time" : "23ms", + "MS-CV" : "Iu7iXb1JvECqJ9+2vR/6lw.0", + "X-Azure-Ref" : "0/wLAYAAAAAAbL6k0As97RJIm+btLC6ycV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5a7c-f40f-343a0d00180a\"}}", + "x-ms-client-request-id" : "2db280e5-a856-4085-aa3e-1398d962b845", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-479d-defd-8b3a0d0004bf/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5a48-ac00-343a0d00dcb4/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:07 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:35 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "161ms", - "MS-CV" : "QWeMb/ZFdU67TOLBOkFgDQ.0", - "X-Azure-Ref" : "0x+9YYAAAAABCF5VFq9d3R4jrLU2E50FtWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:06.8993442+00:00\"}", - "x-ms-client-request-id" : "515234fb-5247-41eb-9224-26bdac209657", + "X-Processing-Time" : "30ms", + "MS-CV" : "isSywKxYI0e2aHS293xFPg.0", + "X-Azure-Ref" : "0/wLAYAAAAADjp2tYT8sESY4J6eY2XckrV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:34.6837692+00:00\"}", + "x-ms-client-request-id" : "04fa4ab0-d06a-4a05-ab4a-723d5a03388b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "810ms", - "MS-CV" : "9vMVN+5r9UWP3TQP9FRoOQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0x+9YYAAAAABgjxJLrjTQR7a4bkXLVF7ZWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:KNOGFfP0RxZETekwz1bl1GOEQRq_9CnSbaXSCa-AmAI1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:08Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-479d-defd-8b3a0d0004bf\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-479d-defd-8b3a0d0004bf\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:08 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:36 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "737ms", + "MS-CV" : "jErv5EXh3UCRK6Aaodg9zA.0", + "X-Azure-Ref" : "0/wLAYAAAAAAdnqbfYZ4gSYA0EO0ea9NJV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:G2xhKfqz5_2sSFRS8dKr9kQLk7TM4zYnx03WVbUvTw01@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:35Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5a48-ac00-343a0d00dcb4\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5a48-ac00-343a0d00dcb4\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AKNOGFfP0RxZETekwz1bl1GOEQRq_9CnSbaXSCa-AmAI1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AG2xhKfqz5_2sSFRS8dKr9kQLk7TM4zYnx03WVbUvTw01@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotAddParticipantsWithNullOptions[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotAddParticipantsWithNullOptions[1].json index dd8a2a15394b7..5373f809453c6 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotAddParticipantsWithNullOptions[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotAddParticipantsWithNullOptions[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:23 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:49 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "SMnycqdBn0O+r2byw3X57g.0", - "X-Azure-Ref" : "01+9YYAAAAAAVg+mzyUttRpJ1mEoJlDpjWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-8671-defd-8b3a0d0004d6\"}}", - "x-ms-client-request-id" : "37795854-d2c0-4a0e-b984-93ed41f84160", + "X-Processing-Time" : "23ms", + "MS-CV" : "CWkltRAZpkGasJc5/x6ogw.0", + "X-Azure-Ref" : "0DQPAYAAAAAChsaWoGUwARbJ4M10THfmMV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9032-ac00-343a0d00dcc9\"}}", + "x-ms-client-request-id" : "2c494034-a812-43b1-9ff2-4f6e521e7319", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:23 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:49 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "0j3BKsxCikaMaAE3WElRPA.0", - "X-Azure-Ref" : "01+9YYAAAAAAEZfu323bEQ5f9O6IKw3rsWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-86c4-b5bb-a43a0d000a36\"}}", - "x-ms-client-request-id" : "0cb7b0df-75d1-4c36-b89a-29071cdef6ad", + "X-Processing-Time" : "23ms", + "MS-CV" : "BgV8rT9U6kCaC1Pvlg+g1g.0", + "X-Azure-Ref" : "0DQPAYAAAAACIA0S7MmNDRrdGeCy63XgUV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-907c-0e04-343a0d00b6e4\"}}", + "x-ms-client-request-id" : "ba38311b-7237-4667-9de1-5adc3cedd824", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-8671-defd-8b3a0d0004d6/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9032-ac00-343a0d00dcc9/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:23 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:49 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "160ms", - "MS-CV" : "14dS1Nsz8USlcBn5ehj7Xg.0", - "X-Azure-Ref" : "01+9YYAAAAABCk8+6c9aGQqPNHk/SrQzqWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:22.9816397+00:00\"}", - "x-ms-client-request-id" : "dabddcf7-967b-4887-a8e3-6be85d47f1f3", + "X-Processing-Time" : "30ms", + "MS-CV" : "un8X2ESuE0+kfKhvOMCBlw.0", + "X-Azure-Ref" : "0DQPAYAAAAAD4nPIzTVxSSJJec+2v7zbCV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:48.5052976+00:00\"}", + "x-ms-client-request-id" : "0649fc8b-ad6f-4b44-b27e-62a56f707e4c", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "1039ms", - "MS-CV" : "iTx8eeCdnUac3wDgeFUqZw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "02O9YYAAAAAADrjH6v+GlRYwdpidCGf3vWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:rCxtK8N_Wqz4kHdZgm8cWE88dPiqWsxbDo8m-DHawzk1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:24Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-8671-defd-8b3a0d0004d6\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-8671-defd-8b3a0d0004d6\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:24 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:49 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "406ms", + "MS-CV" : "IiqowOKaXEiFLgJmf0lLmw.0", + "X-Azure-Ref" : "0DQPAYAAAAABZ8vzTG6VSSIYS5CKi66a2V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:F40gk4zneWCBpTGteLMFvj2RlaIPZ4EREJYfoNLfe0w1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:49Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9032-ac00-343a0d00dcc9\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9032-ac00-343a0d00dcc9\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ArCxtK8N_Wqz4kHdZgm8cWE88dPiqWsxbDo8m-DHawzk1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AF40gk4zneWCBpTGteLMFvj2RlaIPZ4EREJYfoNLfe0w1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotAddParticipantsWithResponseWithNullOptions[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotAddParticipantsWithResponseWithNullOptions[1].json index 68e1f66fda348..95be5d4c2f108 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotAddParticipantsWithResponseWithNullOptions[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotAddParticipantsWithResponseWithNullOptions[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:01 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:31 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "o4u/1+NZQU2jAARXIz3Rzw.0", - "X-Azure-Ref" : "0we9YYAAAAADxqWcEewkxRp5efFQ2fzCRWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-3131-defd-8b3a0d0004b9\"}}", - "x-ms-client-request-id" : "b20f25cb-a41a-4818-bac9-0348f33f47bf", + "X-Processing-Time" : "23ms", + "MS-CV" : "fYO+GYpDe02JAs/6rm9fRA.0", + "X-Azure-Ref" : "0+wLAYAAAAAANciSrOYKnT4KKIV5nGfS7V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-49f8-ac00-343a0d00dcae\"}}", + "x-ms-client-request-id" : "6b210761-a9ca-41a8-98c3-6c54c6c8a8fd", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:00 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:31 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "gufA4xNqSUitcRIfoPtzcg.0", - "X-Azure-Ref" : "0we9YYAAAAABUFVbvnv7CS4UypIHrewjCWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-3184-99bf-a43a0d000644\"}}", - "x-ms-client-request-id" : "da953b94-0f31-4fb5-a77c-100c6467aafe", + "X-Processing-Time" : "22ms", + "MS-CV" : "i9MIsL6PPkqYnJkesvopbg.0", + "X-Azure-Ref" : "0+wLAYAAAAAAoJGj9LGoDQJq5ZC+denI5V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-4a31-f40f-343a0d001802\"}}", + "x-ms-client-request-id" : "e5775624-cf7b-409d-884b-b72948aee7fe", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-3131-defd-8b3a0d0004b9/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-49f8-ac00-343a0d00dcae/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:01 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:31 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "160ms", - "MS-CV" : "Vbh1xS42kEasKkOL2gOt8w.0", - "X-Azure-Ref" : "0we9YYAAAAAD/lqnvX5d3S6cERw0hW99PWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:01.1583339+00:00\"}", - "x-ms-client-request-id" : "dcf2b529-d0b7-4d60-bfd2-a84d258b19e0", + "X-Processing-Time" : "28ms", + "MS-CV" : "Tk75Ph/01kaNYqPRe1RPjQ.0", + "X-Azure-Ref" : "0+wLAYAAAAABg0yoy6dGOTZQWRz3YDpqOV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:30.5088966+00:00\"}", + "x-ms-client-request-id" : "333e8d92-4623-4a9f-a388-db77ded76977", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "760ms", - "MS-CV" : "C2GZDmQgF06TZLwr8Ir/mw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0wu9YYAAAAAB9PEqt61UQQ4WTRkz0wN45WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:kMqatO2Kak-TkLoIDrDydv0AC7v1x6hZr1nO3IvU-Xk1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:02Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-3131-defd-8b3a0d0004b9\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-3131-defd-8b3a0d0004b9\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:02 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:32 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "639ms", + "MS-CV" : "3tRcEEDxZEiuv/rIcbVV1A.0", + "X-Azure-Ref" : "0+wLAYAAAAADHUj+szfhiR5z2/gsmQ1BqV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:BCDRqQHynkbuDEjaSsCy-9Gizkc7r2blYIJiPuXG2po1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:31Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-49f8-ac00-343a0d00dcae\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-49f8-ac00-343a0d00dcae\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AkMqatO2Kak-TkLoIDrDydv0AC7v1x6hZr1nO3IvU-Xk1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3ABCDRqQHynkbuDEjaSsCy-9Gizkc7r2blYIJiPuXG2po1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotDeleteMessageNullId[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotDeleteMessageNullId[1].json index a51abbd606206..52fd20a7ec84d 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotDeleteMessageNullId[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotDeleteMessageNullId[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:58 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:29 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "pdXMNPNtv02UO/mEOKaSFg.0", - "X-Azure-Ref" : "0v+9YYAAAAAC/DbCz0PnnSpNlvHo5eYbRWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-26b0-defd-8b3a0d0004b7\"}}", - "x-ms-client-request-id" : "540dca80-347a-4479-a516-4a75650aa509", + "X-Processing-Time" : "24ms", + "MS-CV" : "4zYVt3lSfk6UiftoUN9oiQ.0", + "X-Azure-Ref" : "0+QLAYAAAAACXWTLmknp7SL8IMM4QmjM8V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-4272-ac00-343a0d00dcac\"}}", + "x-ms-client-request-id" : "db43b095-49b9-4828-886e-61a846c2224a", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:27:58 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:29 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "MuZIZFUP3keNUo1P0/tikw.0", - "X-Azure-Ref" : "0v+9YYAAAAAAcU+ZCvykWTaU8OH6xtFTfWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-2702-99bf-a43a0d000642\"}}", - "x-ms-client-request-id" : "b8dea893-3cc5-4b93-ac00-e44f4a7da31a", + "X-Processing-Time" : "29ms", + "MS-CV" : "ggJugWBO50ikEjb62/gOgg.0", + "X-Azure-Ref" : "0+QLAYAAAAABMl8CsD3fLRZqomFA1RpojV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-42af-f40f-343a0d0017ff\"}}", + "x-ms-client-request-id" : "b80e0932-bebd-4f23-95d9-2e752035607c", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-26b0-defd-8b3a0d0004b7/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-4272-ac00-343a0d00dcac/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:27:59 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:29 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "161ms", - "MS-CV" : "sCKNzF1rt0asXCNDhtoodA.0", - "X-Azure-Ref" : "0v+9YYAAAAACpDcaiNLfuQre2ZDZNSwX1WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:27:58.4691925+00:00\"}", - "x-ms-client-request-id" : "1fc50e3e-d606-4d80-b71e-d669bf3fa502", + "X-Processing-Time" : "32ms", + "MS-CV" : "NAwRGHt5UUqdBF9ytItcmg.0", + "X-Azure-Ref" : "0+QLAYAAAAACgzMguDCLGS4wYdpXhk1JxV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:28.5900872+00:00\"}", + "x-ms-client-request-id" : "1db6a4c6-5952-446d-a2df-90abbed2cb99", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "404ms", - "MS-CV" : "J58rZy1fnE+sB19odOZn9w.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0v+9YYAAAAADSvU/3t0b/TIcQmPS5AyADWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:ZOwwiwPu5tsrtltPsVvRNoHaqO_FGrxb1kY4tx92Kr81@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:27:59Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-26b0-defd-8b3a0d0004b7\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-26b0-defd-8b3a0d0004b7\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:27:58 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:30 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "504ms", + "MS-CV" : "WtKS10Ai5ESL/82t53ICdA.0", + "X-Azure-Ref" : "0+QLAYAAAAACJo2ltzjRYSKDUBmMf9x0UV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:rUuuUDHT3KSNn5xVYHE6-8ug7E_pLvp1q_By-3Vq4e41@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:29Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-4272-ac00-343a0d00dcac\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-4272-ac00-343a0d00dcac\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AZOwwiwPu5tsrtltPsVvRNoHaqO_FGrxb1kY4tx92Kr81@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3ArUuuUDHT3KSNn5xVYHE6-8ug7E_pLvp1q_By-3Vq4e41@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotDeleteMessageWithRepsonseNullId[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotDeleteMessageWithRepsonseNullId[1].json index 10be43225ef3a..4110a150c4f1a 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotDeleteMessageWithRepsonseNullId[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotDeleteMessageWithRepsonseNullId[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:43 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:06 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "dC1kgoTL3EOUWuMZXVAwIQ.0", - "X-Azure-Ref" : "07O9YYAAAAAARNtMly3jkS72D4Vf0C7QMWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-d87e-defd-8b3a0d0004f6\"}}", - "x-ms-client-request-id" : "ee4eb600-e69f-416c-9e9c-f578e5177034", + "X-Processing-Time" : "22ms", + "MS-CV" : "Wyr8lnfoXkCmO1eA+EUXgA.0", + "X-Azure-Ref" : "0HgPAYAAAAAAUBWY+W3G5T5STo2vJRIgBV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d316-6a0b-343a0d00c9c2\"}}", + "x-ms-client-request-id" : "62f5c30b-df7e-4930-b3ec-3ef45adfcb00", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:44 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:06 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "JdnRHotpx0W8WPLquIcL2A.0", - "X-Azure-Ref" : "07O9YYAAAAACgZ/kvcU9ESIzhzoHmEJs0WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-d8cf-b5bb-a43a0d000a57\"}}", - "x-ms-client-request-id" : "0bc9f4f1-524f-4f27-89a2-e8cee8fdd895", + "X-Processing-Time" : "25ms", + "MS-CV" : "8gfv37oIo0CafH4Cs2FPQA.0", + "X-Azure-Ref" : "0HgPAYAAAAACDYVo9qXcRRqNWXQpZ3xYkV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d354-0e04-343a0d00b6fd\"}}", + "x-ms-client-request-id" : "45719e28-5c32-4032-a9e3-8f5312bd6018", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-d87e-defd-8b3a0d0004f6/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d316-6a0b-343a0d00c9c2/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:44 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:06 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "147ms", - "MS-CV" : "vvY35XqKGkmAWL2o61Cs0A.0", - "X-Azure-Ref" : "07O9YYAAAAADCo2Jcz53sR5NffExIlyMTWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:43.9715307+00:00\"}", - "x-ms-client-request-id" : "ae2a09d0-36a2-4c83-b138-f81da276f9c0", + "X-Processing-Time" : "36ms", + "MS-CV" : "SMPTv2hPZkWBuZbgUbMuxQ.0", + "X-Azure-Ref" : "0HgPAYAAAAAA1Gia/v3MnSbnDcM+3n4zRV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:05.6212647+00:00\"}", + "x-ms-client-request-id" : "bb70494c-f50e-4663-8847-fcec0f57948a", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "649ms", - "MS-CV" : "02VjKt6wjUa3mxXR1UNu3g.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "07e9YYAAAAAD9irUgOz+uT6cTMw2KeqeqWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:LQGj-Cn94z57cikumZLWOWYEI4N8jiHCQbM9Mvvf3Q41@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:45Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-d87e-defd-8b3a0d0004f6\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-d87e-defd-8b3a0d0004f6\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:45 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:07 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "592ms", + "MS-CV" : "mcsSIdwnuEqFO4+oTk/4jQ.0", + "X-Azure-Ref" : "0HgPAYAAAAAChoSs4C/cKRLAigbRGOwUrV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:6uwFHLT9lD8PaQU65wKF_UNPezhjrWs3HLgnq-2zVgo1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:06Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d316-6a0b-343a0d00c9c2\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-d316-6a0b-343a0d00c9c2\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ALQGj-Cn94z57cikumZLWOWYEI4N8jiHCQbM9Mvvf3Q41@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A6uwFHLT9lD8PaQU65wKF_UNPezhjrWs3HLgnq-2zVgo1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotGetMessageNullId[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotGetMessageNullId[1].json index f25b6ee48a940..d43ec0316fa6e 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotGetMessageNullId[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotGetMessageNullId[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:06 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:34 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "hVvyaYsbvkeYrWLji5GMcg.0", - "X-Azure-Ref" : "0xu9YYAAAAABWP64du6lMQo6alhHlYfx/WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-4389-defd-8b3a0d0004be\"}}", - "x-ms-client-request-id" : "2e64daec-35a9-42f4-9971-0161e4095850", + "X-Processing-Time" : "23ms", + "MS-CV" : "AXztst4jQkir+fIAs/Y1rg.0", + "X-Azure-Ref" : "0/gLAYAAAAABgSfq76W7pQ7fgP3PVbcjRV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5763-ac00-343a0d00dcb3\"}}", + "x-ms-client-request-id" : "c1e6f3c2-28ee-434a-893a-494e956d6287", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:06 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:34 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "18ms", - "MS-CV" : "C2eMmZIqs0Kb6ruObrmH+A.0", - "X-Azure-Ref" : "0xu9YYAAAAACgsD4yyF+kR7OWTOE/af0GWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-43e4-99bf-a43a0d000648\"}}", - "x-ms-client-request-id" : "60f383ba-edcb-48bf-98cf-d40e2c5b48db", + "X-Processing-Time" : "24ms", + "MS-CV" : "GpRtIuQhSkmsELbCyCfbmw.0", + "X-Azure-Ref" : "0/gLAYAAAAAD/2XLEYiFOQZ/EK/XlyM1HV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5797-f40f-343a0d001808\"}}", + "x-ms-client-request-id" : "45965904-cab5-415e-a4e1-99abc42fc7ea", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-4389-defd-8b3a0d0004be/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5763-ac00-343a0d00dcb3/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:06 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:34 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "160ms", - "MS-CV" : "6J+BdV5AQUuo7sXtT8nV9g.0", - "X-Azure-Ref" : "0xu9YYAAAAADXRUMV0FmPSoPUUxK9Rc1sWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:05.8615974+00:00\"}", - "x-ms-client-request-id" : "73420409-2b26-4449-93b9-928b57609ac3", + "X-Processing-Time" : "29ms", + "MS-CV" : "IsZrnfOK80GrTIXW8TshdQ.0", + "X-Azure-Ref" : "0/gLAYAAAAACsOQB2lGJfRJHoI17jMb+UV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:33.9414137+00:00\"}", + "x-ms-client-request-id" : "800e2f58-4b46-49bd-bfd5-bf62cb8ccc1f", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "568ms", - "MS-CV" : "f5ADYBMGzEC4BoroC76LBg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0xu9YYAAAAABtENqkPk5KQKucLycGQ/kfWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:lykfxrcpRxdQO_WVq_z92pPuosDozse-vPJaSvjsFwM1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:06Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-4389-defd-8b3a0d0004be\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-4389-defd-8b3a0d0004be\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:07 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:35 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "531ms", + "MS-CV" : "EiIfjiocS0+GUL1gAZjddw.0", + "X-Azure-Ref" : "0/gLAYAAAAAC2xquwtL2iQbWnwknQA2y/V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:f4S2vz7helZiUcKMXqPebUZRDbvfNFpqbNnEBBdZ_rM1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:35Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5763-ac00-343a0d00dcb3\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-5763-ac00-343a0d00dcb3\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AlykfxrcpRxdQO_WVq_z92pPuosDozse-vPJaSvjsFwM1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3Af4S2vz7helZiUcKMXqPebUZRDbvfNFpqbNnEBBdZ_rM1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotGetMessageWithReponseNullId[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotGetMessageWithReponseNullId[1].json index 79998c33a8bfd..7d44ffd441226 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotGetMessageWithReponseNullId[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotGetMessageWithReponseNullId[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:29 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:53 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "dW+ynhJ27UGMR1ejj9XjfQ.0", - "X-Azure-Ref" : "03u9YYAAAAADT7JaOs4H2Q7aDcKx0bUG5WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-a159-defd-8b3a0d0004e1\"}}", - "x-ms-client-request-id" : "79bbbcb8-06e0-417f-a66a-0d7e7aba0544", + "X-Processing-Time" : "27ms", + "MS-CV" : "59jrbiKGnUej7NZ2sSPO+A.0", + "X-Azure-Ref" : "0EQPAYAAAAABhYkNYEVh0Rb6Lkap3zIPfV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9fb1-ac00-343a0d00dcce\"}}", + "x-ms-client-request-id" : "cc2e0c54-c164-4aac-9eae-56f13b71df38", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:30 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:53 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "14ms", - "MS-CV" : "rXe4I/nBa02SFKOlnK13FA.0", - "X-Azure-Ref" : "03u9YYAAAAADSNlWS6LntQJBIqKbbol9MWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-a1ad-b5bb-a43a0d000a40\"}}", - "x-ms-client-request-id" : "4a6d238c-3812-4f1a-a612-3f647c588f83", + "X-Processing-Time" : "24ms", + "MS-CV" : "sqYKbooMy0WFleU8oZPznA.0", + "X-Azure-Ref" : "0EQPAYAAAAAD/Z7X2G2deQ7TaoJgbroS9V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9fe7-0e04-343a0d00b6eb\"}}", + "x-ms-client-request-id" : "fd8ad836-70c6-44b9-9888-57488ca6097b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-a159-defd-8b3a0d0004e1/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9fb1-ac00-343a0d00dcce/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:30 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:53 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "152ms", - "MS-CV" : "n6+5p9vWvkSVoHvvMmGwBw.0", - "X-Azure-Ref" : "03u9YYAAAAACGTzXo0lN4SoGzn0J6dBOdWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:30.1045102+00:00\"}", - "x-ms-client-request-id" : "6fa50024-f5e3-4446-ac30-1c411a0bd4eb", + "X-Processing-Time" : "28ms", + "MS-CV" : "a6YzPkaJCE6s+hzcVR5/jw.0", + "X-Azure-Ref" : "0EQPAYAAAAABnJj5S7+gUSJ1jTeCEOvO2V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:52.4491548+00:00\"}", + "x-ms-client-request-id" : "950edb11-7a9d-4b1e-bf69-c5cf6ec70bf1", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "353ms", - "MS-CV" : "PY00mZIDs0WpDC0zBT2xzg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "03+9YYAAAAAAj9jO/0S/MT6VNWJeXDb0AWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:q5e23m5zhx2ejxEYdpR3QM-BkVQ_TbzuamIQT4hiBs81@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:31Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-a159-defd-8b3a0d0004e1\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-a159-defd-8b3a0d0004e1\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:31 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:53 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "528ms", + "MS-CV" : "P+wEAYeGE0KeeO8tXp1EzQ.0", + "X-Azure-Ref" : "0EQPAYAAAAADPMD/RePy3S4vtKPqabgXGV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:vKTUn5A2M3ltOGeT-IfaIlwTghzCI7gI_kC1yCbHf2A1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:53Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9fb1-ac00-343a0d00dcce\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9fb1-ac00-343a0d00dcce\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3Aq5e23m5zhx2ejxEYdpR3QM-BkVQ_TbzuamIQT4hiBs81@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AvKTUn5A2M3ltOGeT-IfaIlwTghzCI7gI_kC1yCbHf2A1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotRemoveParticipantWithNullUserWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotRemoveParticipantWithNullUserWithResponse[1].json index 7b4b03c267342..8fded401805a7 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotRemoveParticipantWithNullUserWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotRemoveParticipantWithNullUserWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:35 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:58 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "/5Klss5AU0iEw6m+RCy60Q.0", - "X-Azure-Ref" : "05O9YYAAAAAD9KKtF/XgyQp5raKtntvPKWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-b788-defd-8b3a0d0004e8\"}}", - "x-ms-client-request-id" : "6ec2017b-d968-4631-8ed2-9fe8fa7d0107", + "X-Processing-Time" : "25ms", + "MS-CV" : "b8AmSYviwkuGqs+KeSMIEQ.0", + "X-Azure-Ref" : "0FgPAYAAAAABU5TzQeaDtSohjl9qptsy9V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-b37d-6a0b-343a0d00c9b6\"}}", + "x-ms-client-request-id" : "a2a9f1e8-2202-42d6-a54b-2976c7ec5cae", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:35 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:58 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "foRddLTQ3E2NZh1DytLxRA.0", - "X-Azure-Ref" : "05O9YYAAAAAC+jEz/S2Q4QLVpB5FjGrJaWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-b7d8-b5bb-a43a0d000a49\"}}", - "x-ms-client-request-id" : "d407ded3-5166-4458-a013-d8b310609175", + "X-Processing-Time" : "23ms", + "MS-CV" : "NHfWFfZZyUOYcnQS4+S6qg.0", + "X-Azure-Ref" : "0FgPAYAAAAADK4fn3ivHtTK4rNsh2n17FV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-b3b3-0e04-343a0d00b6f0\"}}", + "x-ms-client-request-id" : "b430c795-344e-4c2f-aef0-cef2fb4ce47e", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-b788-defd-8b3a0d0004e8/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-b37d-6a0b-343a0d00c9b6/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:35 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:58 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "147ms", - "MS-CV" : "dc7NpZQOakKs8nXOUzRK3Q.0", - "X-Azure-Ref" : "05O9YYAAAAABchGhuhulSQ4SgRN2N1bX+WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:35.5317777+00:00\"}", - "x-ms-client-request-id" : "ba91b83c-a163-4ad5-b2d1-c8b939aa3f8f", + "X-Processing-Time" : "28ms", + "MS-CV" : "Pva92IabsE+eeU7EkJgD5g.0", + "X-Azure-Ref" : "0FgPAYAAAAABVUPWNmblpT7SCQZd8Mr08V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:57.5191906+00:00\"}", + "x-ms-client-request-id" : "81d3671a-338c-4023-b207-8ec97decaa14", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "568ms", - "MS-CV" : "PN0OiMUQpEW0SMNVun8uUw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "05O9YYAAAAAACugBgmx6XS4a/RkGpCKI4WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:9GZWzI4Ky-WjYzz80ecR3SHXJ9b0vahbe3kce4HfTvI1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:36Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-b788-defd-8b3a0d0004e8\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-b788-defd-8b3a0d0004e8\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:36 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:59 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "1585ms", + "MS-CV" : "KCWVzxpRW0C/K4AuXC584g.0", + "X-Azure-Ref" : "0FgPAYAAAAABz/blhmvkTTJKyDVS3/nCDV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:E1i6u9iGRfCuDwSM-w8f1uEHCgFgnzVCV2W5riPDyHo1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:59Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-b37d-6a0b-343a0d00c9b6\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-b37d-6a0b-343a0d00c9b6\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3A9GZWzI4Ky-WjYzz80ecR3SHXJ9b0vahbe3kce4HfTvI1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AE1i6u9iGRfCuDwSM-w8f1uEHCgFgnzVCV2W5riPDyHo1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotRemoveParticipantWithNullUser[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotRemoveParticipantWithNullUser[1].json index dcaabada282f1..83509a203a22c 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotRemoveParticipantWithNullUser[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotRemoveParticipantWithNullUser[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:21 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:48 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "Cn81Y5bCmkmohqWl7cUoVg.0", - "X-Azure-Ref" : "01u9YYAAAAACCTqBi2ZaCSK8vYHynqhRCWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-80c6-defd-8b3a0d0004d4\"}}", - "x-ms-client-request-id" : "58bc7118-45f6-4db7-9982-e8d32c36e55d", + "X-Processing-Time" : "25ms", + "MS-CV" : "gklc2ITWnUau8RofBWHQrw.0", + "X-Azure-Ref" : "0DAPAYAAAAAC98Yy5B4zVTZT5uljszylWV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8da5-ac00-343a0d00dcc8\"}}", + "x-ms-client-request-id" : "1c2e51e4-8769-404b-a9f5-2f4b6d63ac46", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:22 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:48 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "jVLSLtUtSEKFRfiVn7Q+zg.0", - "X-Azure-Ref" : "01u9YYAAAAAB6MXXk+oInQIQ0neKwCwwyWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-8118-b5bb-a43a0d000a34\"}}", - "x-ms-client-request-id" : "b10a3694-0440-4c89-99d7-c1e468672b9a", + "X-Processing-Time" : "23ms", + "MS-CV" : "dOcygwgBa0Swh+MlmBR3cw.0", + "X-Azure-Ref" : "0DAPAYAAAAAAjx1ulf/SpQbrgRCB9Em8UV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8ddb-0e04-343a0d00b6e3\"}}", + "x-ms-client-request-id" : "6c33c289-120b-41fe-95c6-430d42c4d819", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-80c6-defd-8b3a0d0004d4/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8da5-ac00-343a0d00dcc8/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:22 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:48 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "160ms", - "MS-CV" : "BGAFE6MkSUy7IfWMa+lkFw.0", - "X-Azure-Ref" : "01u9YYAAAAADzOzDP9JzbSaMYjOFGa94aWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:21.5306769+00:00\"}", - "x-ms-client-request-id" : "469abf44-ec6c-4f0e-8ac7-2cf1d12fe80f", + "X-Processing-Time" : "28ms", + "MS-CV" : "vEHmMEzFzEihcIsdQF/uog.0", + "X-Azure-Ref" : "0DAPAYAAAAAABvj6oE04eRJEWkT1iTD/wV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:47.8394157+00:00\"}", + "x-ms-client-request-id" : "c510ad2b-9237-4756-9113-cf8d2b221c0a", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "985ms", - "MS-CV" : "lsEkQAYBTkKmD6/6/i1RIQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "01u9YYAAAAAA6LDsdvt9dSr5tAKaVkUW0WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:LlF86tyrnxXD8THo0gB0VTujkAO6NpCiAr2Pw9ZVCFA1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:22Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-80c6-defd-8b3a0d0004d4\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-80c6-defd-8b3a0d0004d4\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:23 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:49 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "429ms", + "MS-CV" : "QsebCZTESkuTLAbtmw7Jhw.0", + "X-Azure-Ref" : "0DAPAYAAAAADOw/bC+QEsTLF5rS7ME4kDV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:1FkHeuE0vxiaBrLFgVshd3VQUyJyizr9NdItWy80sno1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:48Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8da5-ac00-343a0d00dcc8\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-8da5-ac00-343a0d00dcc8\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ALlF86tyrnxXD8THo0gB0VTujkAO6NpCiAr2Pw9ZVCFA1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A1FkHeuE0vxiaBrLFgVshd3VQUyJyizr9NdItWy80sno1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendMessageWithNullOptions[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendMessageWithNullOptions[1].json index cc34719232dca..64ec2bc5fabfb 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendMessageWithNullOptions[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendMessageWithNullOptions[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:12 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:39 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "ypJ5gsvTa0qsjxOSjybyMA.0", - "X-Azure-Ref" : "0ze9YYAAAAACzRrQUjxYBSZrVmJpro/O9WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-5d31-defd-8b3a0d0004c8\"}}", - "x-ms-client-request-id" : "50c5f5d5-2e9a-4a7a-ab08-266a45b3206f", + "X-Processing-Time" : "24ms", + "MS-CV" : "ECA+DHi2jUur1MbAR1axzA.0", + "X-Azure-Ref" : "0AwPAYAAAAACMlzUH6sY5RaCnmnMmmU2uV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-69c5-ac00-343a0d00dcba\"}}", + "x-ms-client-request-id" : "9e2c36db-a49c-4214-97b7-e783d38f90da", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:13 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:39 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "byp7QHaqWUSkZ0vhFguGUQ.0", - "X-Azure-Ref" : "0ze9YYAAAAABLHYQBqAjRRb6XJq3xAzleWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-5d87-99bf-a43a0d00064e\"}}", - "x-ms-client-request-id" : "a62ba169-8240-44c4-8a2c-a65a197f1dcb", + "X-Processing-Time" : "21ms", + "MS-CV" : "7MDTAk21J0G1WbyCrTSWmQ.0", + "X-Azure-Ref" : "0AwPAYAAAAAD//3nHzeCkQa5jlTIF/uiYV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-6a04-f40f-343a0d001813\"}}", + "x-ms-client-request-id" : "e3b9a7ca-07a0-433e-bfae-b48e2221d4fc", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-5d31-defd-8b3a0d0004c8/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-69c5-ac00-343a0d00dcba/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:12 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:39 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "160ms", - "MS-CV" : "yZIUteYQhk2LEBxRUstUnQ.0", - "X-Azure-Ref" : "0ze9YYAAAAADCwNs3AIIUR60Bxi4R3s6zWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:12.4244696+00:00\"}", - "x-ms-client-request-id" : "cda32375-76d7-4f33-80f1-62c473dbd80d", + "X-Processing-Time" : "28ms", + "MS-CV" : "TmfeRdKBLki4JekWlcy1aA.0", + "X-Azure-Ref" : "0AwPAYAAAAAB8V3v8JubGQaT2db8SVIoDV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:38.6541721+00:00\"}", + "x-ms-client-request-id" : "5766369f-16c8-4ca3-99d7-9a38f52b2af2", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "544ms", - "MS-CV" : "WFm8AsTO0kGzWMYaAsqg/A.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0ze9YYAAAAADXaRbvIQAUQ7Fa2GtrWJM7WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:DSH5Sdpbzq_yWVESsj7DUr4wsNcNlu5WRw7Qlia62z81@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:13Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-5d31-defd-8b3a0d0004c8\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-5d31-defd-8b3a0d0004c8\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:13 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:40 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "626ms", + "MS-CV" : "BdJJYQpEJ02MpGXCgHU74w.0", + "X-Azure-Ref" : "0AwPAYAAAAAD5551fcpEwQ4+YBlfv7YEEV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:OZTgWRhB8TrLoIQHelqCieeLUMVul-DU8o2IDWnDP9A1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:39Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-69c5-ac00-343a0d00dcba\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-69c5-ac00-343a0d00dcba\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ADSH5Sdpbzq_yWVESsj7DUr4wsNcNlu5WRw7Qlia62z81@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AOZTgWRhB8TrLoIQHelqCieeLUMVul-DU8o2IDWnDP9A1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendMessageWithResponseWithNullOptions[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendMessageWithResponseWithNullOptions[1].json index f95dc86c38344..fcf08740ad5cd 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendMessageWithResponseWithNullOptions[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendMessageWithResponseWithNullOptions[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:13 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:40 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "nSadiLbkNkKxE0NUvpX/3Q.0", - "X-Azure-Ref" : "0zu9YYAAAAAAR94isIUseSKsYUCS9bSweWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6131-defd-8b3a0d0004c9\"}}", - "x-ms-client-request-id" : "3ef2db1e-f9a1-4136-ab87-d412c83583ba", + "X-Processing-Time" : "21ms", + "MS-CV" : "fdD1zqrI3UeynAwTNOd1pQ.0", + "X-Azure-Ref" : "0BAPAYAAAAABodac37w76QoMvlD00ODKDV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-6d0b-ac00-343a0d00dcbb\"}}", + "x-ms-client-request-id" : "6b2b05a1-0c40-4ab2-bc39-6e6aa6a4a564", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:14 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:40 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "dDuj/VxLwkqKzhtvLqK9+Q.0", - "X-Azure-Ref" : "0zu9YYAAAAADYF48rdS5cRINIMzWDw8qVWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6185-99bf-a43a0d00064f\"}}", - "x-ms-client-request-id" : "77cc39a1-7eb5-46d5-ad7d-c422ea4480a5", + "X-Processing-Time" : "24ms", + "MS-CV" : "CqrFsHDlsUqZBZfmAJyOQg.0", + "X-Azure-Ref" : "0BAPAYAAAAADXuPILSE4XRY8rvoEw28JUV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-6d46-f40f-343a0d001815\"}}", + "x-ms-client-request-id" : "2a4e3b71-f81b-429c-9a04-7401cc771160", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6131-defd-8b3a0d0004c9/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-6d0b-ac00-343a0d00dcbb/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:13 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:40 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "161ms", - "MS-CV" : "+5dq44mihEaDgfRXrwDiVA.0", - "X-Azure-Ref" : "0zu9YYAAAAACe2YCp3rgBSK8rr9SP9lbOWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:13.4455183+00:00\"}", - "x-ms-client-request-id" : "4205d7fc-2793-4163-9796-59f28ace6a7f", + "X-Processing-Time" : "29ms", + "MS-CV" : "tKm0z+8eXU2h87piOWIZ2Q.0", + "X-Azure-Ref" : "0BAPAYAAAAABBiLrB/CUQSZu5uA0m1rjqV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:39.4922716+00:00\"}", + "x-ms-client-request-id" : "c7521c12-f768-4296-9a19-f32e1ae01f77", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "417ms", - "MS-CV" : "vbSdyuHYiUuNUbsT/SF27A.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0zu9YYAAAAACmLhuUuexVRZkeelmdCxXRWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:Sk-70Al9UeUSGr4p3kMQRLzzh-VaU4k34d8aErPOra41@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:14Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6131-defd-8b3a0d0004c9\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-6131-defd-8b3a0d0004c9\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:14 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:41 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "1017ms", + "MS-CV" : "rdqLagAyakWLnnElYpPKfw.0", + "X-Azure-Ref" : "0BAPAYAAAAABZr65Rcs5iQaw2J7g8Jy+hV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:YhP-sMT2jy7BBZys3Z9x5BBQo4gPFhGfT8RGwG6Ievs1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:40Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-6d0b-ac00-343a0d00dcbb\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-6d0b-ac00-343a0d00dcbb\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ASk-70Al9UeUSGr4p3kMQRLzzh-VaU4k34d8aErPOra41@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AYhP-sMT2jy7BBZys3Z9x5BBQo4gPFhGfT8RGwG6Ievs1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendReadReceiptWithNullMessageId[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendReadReceiptWithNullMessageId[1].json index 73ea6f57f1181..705296e2afff8 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendReadReceiptWithNullMessageId[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendReadReceiptWithNullMessageId[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:37 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:01 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "zHLOLzAaz0aiC0byx+KwmQ.0", - "X-Azure-Ref" : "05u9YYAAAAADBnVn8fV8EQ5JQ9SkjeBgiWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-bf96-b5bb-a43a0d000a4c\"}}", - "x-ms-client-request-id" : "c2b834af-4118-4e18-b27e-9ad5a8d803c3", + "X-Processing-Time" : "25ms", + "MS-CV" : "qv0R/61GiEKaP/dP7xD/7g.0", + "X-Azure-Ref" : "0GQPAYAAAAACGm/ywgYxXQpJd7W68mxWyV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c094-0e04-343a0d00b6f3\"}}", + "x-ms-client-request-id" : "38ba3419-13ef-4518-8fa7-2049d7e0686c", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:37 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:01 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "aHBm2In0RkOjrjVqmOfT2Q.0", - "X-Azure-Ref" : "05u9YYAAAAACVFptLLTP0RJayl+JajnLYWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-bfe9-defd-8b3a0d0004ef\"}}", - "x-ms-client-request-id" : "95b50a6a-7b10-43fb-b7ca-fc09c3fed9bc", + "X-Processing-Time" : "22ms", + "MS-CV" : "FBo1BNK4eUmIUDVoi65zag.0", + "X-Azure-Ref" : "0GQPAYAAAAAAcGS9Z0Ze2Q5hHhHiOaC+HV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c0cb-6a0b-343a0d00c9b9\"}}", + "x-ms-client-request-id" : "bf01bda0-7253-410e-a71a-95228e23051d", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-bf96-b5bb-a43a0d000a4c/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c094-0e04-343a0d00b6f3/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:38 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:01 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "162ms", - "MS-CV" : "hVNdTpz/rUGXzT5wwEHy/w.0", - "X-Azure-Ref" : "05u9YYAAAAACNvmUpTaInRJDPJBx2nS5TWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:37.6119617+00:00\"}", - "x-ms-client-request-id" : "7d5ba64c-3d14-4bb7-bb3c-bc0528c9588f", + "X-Processing-Time" : "32ms", + "MS-CV" : "zjsWGCEUHEOUzGtJEjW7Ig.0", + "X-Azure-Ref" : "0GQPAYAAAAAAppabTSm7ASpDhdoVN6ptoV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:00.8746999+00:00\"}", + "x-ms-client-request-id" : "dbb3b586-dab0-482c-a34b-0e110819cf6f", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "951ms", - "MS-CV" : "TGf83YSQRES+HIiE2nNy7w.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "05u9YYAAAAADpsyn5m85TRodA4H9UeBW8WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:8Ej7EwK3LANr7M1yIr7m6U45J7mQAjypppqKOLeNMs41@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:38Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-bf96-b5bb-a43a0d000a4c\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-bf96-b5bb-a43a0d000a4c\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:38 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:02 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "670ms", + "MS-CV" : "Jdhy2EDF60KgO2vRnZFf4g.0", + "X-Azure-Ref" : "0GQPAYAAAAAC6L1NuuWaKQ4S3K1nsJq2aV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:QdJo5OyUdOHBeEro_y3FhgfWYPvXCT-KEP58Ig9lc5M1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:01Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c094-0e04-343a0d00b6f3\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-c094-0e04-343a0d00b6f3\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3A8Ej7EwK3LANr7M1yIr7m6U45J7mQAjypppqKOLeNMs41@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AQdJo5OyUdOHBeEro_y3FhgfWYPvXCT-KEP58Ig9lc5M1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendReadReceiptWithResponseWithNullMessageId[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendReadReceiptWithResponseWithNullMessageId[1].json index a1636cef2aa2e..a44bec9e549a2 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendReadReceiptWithResponseWithNullMessageId[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotSendReadReceiptWithResponseWithNullMessageId[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:28 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:52 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "aNRcILvyRk2aRy8ZkMj0Fw.0", - "X-Azure-Ref" : "03O9YYAAAAAAKrY70UG8uRYXtETx7hcNAWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-9b55-defd-8b3a0d0004df\"}}", - "x-ms-client-request-id" : "f24aab5a-b077-45fd-a41e-305e1f5c7be0", + "X-Processing-Time" : "36ms", + "MS-CV" : "bvM/pDj5Rk26J3lT3QcbtA.0", + "X-Azure-Ref" : "0EAPAYAAAAAASECrP1nDtRY3govKgHkpyV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9c47-ac00-343a0d00dccd\"}}", + "x-ms-client-request-id" : "89ad091d-f4cf-4bdc-8004-10c94aba2e7c", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:28 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:52 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "za5hD7dYC0Op9+yS8YWj8Q.0", - "X-Azure-Ref" : "03e9YYAAAAABSQmW+kZyRQJ9iW7nus00PWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-9ba6-b5bb-a43a0d000a3e\"}}", - "x-ms-client-request-id" : "8efb0feb-ea21-4fc6-bc52-14e50517faca", + "X-Processing-Time" : "24ms", + "MS-CV" : "b2fO7DjIs02guVFSSb8aIA.0", + "X-Azure-Ref" : "0EAPAYAAAAABXIg8Ap7kpSIHKqHrb3VU+V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9c7c-0e04-343a0d00b6ea\"}}", + "x-ms-client-request-id" : "e8700028-285e-4e10-982a-9fdb1a28f13e", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-9b55-defd-8b3a0d0004df/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9c47-ac00-343a0d00dccd/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:28 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:52 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "160ms", - "MS-CV" : "ozDWCya6g0W7ONgv+75pDg.0", - "X-Azure-Ref" : "03e9YYAAAAABKuCGSZAJ4QaG2IRVAZQi2WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:28.3282852+00:00\"}", - "x-ms-client-request-id" : "3b722abf-6a0b-43ab-97e2-159aa50655b5", + "X-Processing-Time" : "28ms", + "MS-CV" : "Uek5h7fDN0eZ4buBV8R3MA.0", + "X-Azure-Ref" : "0EAPAYAAAAABwegrP6WcJQ5TcEvDeqhDhV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:51.5769126+00:00\"}", + "x-ms-client-request-id" : "3df5007b-b0f0-45f5-a165-691d14f8e20b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "1078ms", - "MS-CV" : "cV0Sm033s0OBAOU4wm8UoA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "03e9YYAAAAAA5DAjyreMMRLuxV5ZENLAFWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:cJV5o2X4lv1i2NFG-x2m8tLQRJezniUf_YfbylTe8cc1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:29Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-9b55-defd-8b3a0d0004df\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-9b55-defd-8b3a0d0004df\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:30 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:53 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "665ms", + "MS-CV" : "xH8/h0LA0UaeXCqQVDK5Rg.0", + "X-Azure-Ref" : "0EAPAYAAAAADnfwhhtY3vRKwIFU+b1mieV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:n-GO2tIZQLqNQLYPKBk44NlsXmyh-idfSFlOQ0ggNk01@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:52Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9c47-ac00-343a0d00dccd\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-9c47-ac00-343a0d00dccd\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AcJV5o2X4lv1i2NFG-x2m8tLQRJezniUf_YfbylTe8cc1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3An-GO2tIZQLqNQLYPKBk44NlsXmyh-idfSFlOQ0ggNk01@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateMessageNullId[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateMessageNullId[1].json index 5635525360a29..debbff51c8c1f 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateMessageNullId[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateMessageNullId[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:02 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:32 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "SkuHl4ZXOkaIpdxtkETNbA.0", - "X-Azure-Ref" : "0w+9YYAAAAADrNTTLwj4MSal662QgptCHWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-35fe-defd-8b3a0d0004ba\"}}", - "x-ms-client-request-id" : "7f52bf11-f1fa-47c7-a324-9ec8363262c6", + "X-Processing-Time" : "23ms", + "MS-CV" : "iXaObmF+j0aJCQfmaLS4KQ.0", + "X-Azure-Ref" : "0/ALAYAAAAAAzLCSzaVYnT5LQ/JC4INtOV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-4d4b-ac00-343a0d00dcaf\"}}", + "x-ms-client-request-id" : "9716182d-2912-4203-9954-4c390725a084", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:03 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:32 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "27ms", - "MS-CV" : "rVND2QFcV0u9FqokFu5gUw.0", - "X-Azure-Ref" : "0w+9YYAAAAAD5M8KXeOWOQ4zucCcULG21WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-365f-99bf-a43a0d000645\"}}", - "x-ms-client-request-id" : "331a78ef-f526-4edf-81de-5861cf59ca7b", + "X-Processing-Time" : "23ms", + "MS-CV" : "/JA3Xxhacka8M9lUuKjevA.0", + "X-Azure-Ref" : "0/ALAYAAAAADQ5T04QdiMQ7Z0j1wJQIqAV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-4d80-f40f-343a0d001803\"}}", + "x-ms-client-request-id" : "908ba79c-a574-43e1-819b-c0ded5a016be", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-35fe-defd-8b3a0d0004ba/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-4d4b-ac00-343a0d00dcaf/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:03 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:32 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "163ms", - "MS-CV" : "JrAYhp4wCka6GXc+74ioeg.0", - "X-Azure-Ref" : "0w+9YYAAAAACQVfJg+zQ/QKXPXRmeQE84WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:02.4030873+00:00\"}", - "x-ms-client-request-id" : "56d477be-71e8-46cb-8f62-c3bb93cdc37c", + "X-Processing-Time" : "29ms", + "MS-CV" : "cbqs4QbP+k2g+U8w3aIVsg.0", + "X-Azure-Ref" : "0/ALAYAAAAAA71LOCQQLYTK79iD+Tqn9UV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:31.3583878+00:00\"}", + "x-ms-client-request-id" : "f2d10d5d-48ac-4b28-be63-60f2d2132db0", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "398ms", - "MS-CV" : "9nGPPfUAUkWkyxFGpPzO2Q.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0w+9YYAAAAABiAUm17I/hTqPAG6yjlNzYWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:K8Z4rzJWtrSHgJEc8PlWnxyYvRd-j03AHE_Ona84Dt41@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:03Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-35fe-defd-8b3a0d0004ba\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-35fe-defd-8b3a0d0004ba\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:03 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:32 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "661ms", + "MS-CV" : "cHWtLkHWr0qyccgUUYWnOQ.0", + "X-Azure-Ref" : "0/ALAYAAAAAChis9XcT0DSLpMeGcC2LiSV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:7U4D9AG_fM2EMYlSS6e8i6Takkb9Lc7l-UtjZ2IQxaw1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:32Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-4d4b-ac00-343a0d00dcaf\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-4d4b-ac00-343a0d00dcaf\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AK8Z4rzJWtrSHgJEc8PlWnxyYvRd-j03AHE_Ona84Dt41@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A7U4D9AG_fM2EMYlSS6e8i6Takkb9Lc7l-UtjZ2IQxaw1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateMessageWithResponseNullId[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateMessageWithResponseNullId[1].json index 9014dc484f57b..8f0bf4ef07fb3 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateMessageWithResponseNullId[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateMessageWithResponseNullId[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:32 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:55 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "/HadvTwihkOeBgLCPM9cWg.0", - "X-Azure-Ref" : "04O9YYAAAAACUEMngQ5CSTqNxo4Q24vEuWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-aa43-defd-8b3a0d0004e4\"}}", - "x-ms-client-request-id" : "7be4eced-6ee2-4952-b659-a3137a8e9e7a", + "X-Processing-Time" : "30ms", + "MS-CV" : "zX+4IutYPEKJ/MysRYHClw.0", + "X-Azure-Ref" : "0EwPAYAAAAADLpM1Cb9UfR5nSeMmWk7t5V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-a78b-ac00-343a0d00dcd0\"}}", + "x-ms-client-request-id" : "ec77f95b-cb8c-44db-bb8c-61c0a9c10564", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:32 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:55 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "gpmKSYKbkEaQ7bXuvxY5fg.0", - "X-Azure-Ref" : "04O9YYAAAAACZ6RxNISvmS5IkbSsNsWMnWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-aa94-b5bb-a43a0d000a42\"}}", - "x-ms-client-request-id" : "3a89e241-a825-444e-b028-71046d3b5e8a", + "X-Processing-Time" : "23ms", + "MS-CV" : "AwHWxhqtbECWvK7cFnHj7w.0", + "X-Azure-Ref" : "0EwPAYAAAAACl1n5bGnJcRoxw7VOciBIcV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-a7be-0e04-343a0d00b6ed\"}}", + "x-ms-client-request-id" : "ebdca976-79db-4600-9f21-a2af4f7913cc", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-aa43-defd-8b3a0d0004e4/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-a78b-ac00-343a0d00dcd0/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:32 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:55 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "146ms", - "MS-CV" : "KijY4oFPskO4Xy7X7BXTsg.0", - "X-Azure-Ref" : "04O9YYAAAAABQv/P+y1IjRpnxspzFuH5TWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:32.1354383+00:00\"}", - "x-ms-client-request-id" : "7677e7cf-7809-4884-b6e6-d46c62bd3ff4", + "X-Processing-Time" : "29ms", + "MS-CV" : "ijGN9oLTUkehrJnCkdZuig.0", + "X-Azure-Ref" : "0EwPAYAAAAADI3NHc3DVGTKS6jXuX5hHEV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:54.4590813+00:00\"}", + "x-ms-client-request-id" : "45e18769-6632-4402-9ce5-71487e6c9bda", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "363ms", - "MS-CV" : "10q08mG4AkKs4jxv4LvToQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "04e9YYAAAAAAWhPUONUXqRYBvl1cAinH5WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:a3o0IjkBq35quHDQnyaPfNhz16pWw5pz24nHN-uVjAQ1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:33Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-aa43-defd-8b3a0d0004e4\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-aa43-defd-8b3a0d0004e4\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:33 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:55 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "387ms", + "MS-CV" : "DG/c2waOuEarXkaMX8fHlg.0", + "X-Azure-Ref" : "0EwPAYAAAAABk8MWaJwQwSr3uIVsgdcREV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:JGPjTWBamtTMKCY7fqlkS3B6SNv2hVpDNmkzQSziTkQ1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:55Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-a78b-ac00-343a0d00dcd0\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-a78b-ac00-343a0d00dcd0\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3Aa3o0IjkBq35quHDQnyaPfNhz16pWw5pz24nHN-uVjAQ1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AJGPjTWBamtTMKCY7fqlkS3B6SNv2hVpDNmkzQSziTkQ1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateThreadWithNullTopic[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateThreadWithNullTopic[1].json index b4cdc93b6130d..0d709f1920e8f 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateThreadWithNullTopic[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateThreadWithNullTopic[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:04 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:34 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "Wu2fLgaVb0O1a0JpbjiiBA.0", - "X-Azure-Ref" : "0xe9YYAAAAACqyOI/blSkQ60w0UnE4DuSWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-3ddb-defd-8b3a0d0004bd\"}}", - "x-ms-client-request-id" : "2904f9da-9170-4490-9c5c-b5bc0cf604ee", + "X-Processing-Time" : "21ms", + "MS-CV" : "BXGaF+BYFUKNYUnoO4x7eg.0", + "X-Azure-Ref" : "0/gLAYAAAAAA6H+apoIyIQJMLRkzZs8DYV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-548c-ac00-343a0d00dcb2\"}}", + "x-ms-client-request-id" : "463c4f5b-a0f5-443d-aa10-7098643e8d7e", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:05 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:34 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "xngnrx/fKUaoHmXQTFGhwA.0", - "X-Azure-Ref" : "0xe9YYAAAAABibBUy9RZLQql4+MQQkv5fWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-3e2f-99bf-a43a0d000647\"}}", - "x-ms-client-request-id" : "559de117-5820-4b14-be81-33a639b6a84f", + "X-Processing-Time" : "28ms", + "MS-CV" : "XvmgMUS2nUypwFPRugkAsg.0", + "X-Azure-Ref" : "0/gLAYAAAAAC2mGG878m3Srd9lYJnRNNuV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-54c3-f40f-343a0d001807\"}}", + "x-ms-client-request-id" : "554edf42-1d4d-405f-956e-713b9bac1f3c", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-3ddb-defd-8b3a0d0004bd/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-548c-ac00-343a0d00dcb2/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:05 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:34 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "163ms", - "MS-CV" : "vayQ6LCx1UeyNhgMLw3iDA.0", - "X-Azure-Ref" : "0xe9YYAAAAAARm7h8GVZeRopYs0wGJNW4WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:04.4056029+00:00\"}", - "x-ms-client-request-id" : "ab26fbf4-1764-4055-8df8-085e7515ba42", + "X-Processing-Time" : "29ms", + "MS-CV" : "7XvmAicQN0COM1/I6L3iOA.0", + "X-Azure-Ref" : "0/gLAYAAAAACbNQOHgF3QTKgXuL0RKmJ/V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:53:33.2235912+00:00\"}", + "x-ms-client-request-id" : "1c39a071-c31f-40a5-9012-47f365943ffe", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "975ms", - "MS-CV" : "QVh3EvDlEkufyIEm5EVf0w.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0xe9YYAAAAAAIcvV4bKddQq8Vhlclbn/pWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:mVnyfGfxPWoWXZIo8C9aszRxu74Q3Zmnee_OdtW4qNk1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:05Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-3ddb-defd-8b3a0d0004bd\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-3ddb-defd-8b3a0d0004bd\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:06 GMT", + "Date" : "Tue, 08 Jun 2021 23:53:34 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "507ms", + "MS-CV" : "yIg64fvW5kKvptp5ULOPvQ.0", + "X-Azure-Ref" : "0/gLAYAAAAAA0ldn39h/WQadBNnKBvffdV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:c_QlefQifE-60SinFTX3GLwna52-ZEMnG1wYwBZztVI1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:53:34Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-548c-ac00-343a0d00dcb2\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-548c-ac00-343a0d00dcb2\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AmVnyfGfxPWoWXZIo8C9aszRxu74Q3Zmnee_OdtW4qNk1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3Ac_QlefQifE-60SinFTX3GLwna52-ZEMnG1wYwBZztVI1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateThreadWithResponseWithNullTopic[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateThreadWithResponseWithNullTopic[1].json index 70858e08a1116..f9f45ab4c8b2d 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateThreadWithResponseWithNullTopic[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.cannotUpdateThreadWithResponseWithNullTopic[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:41 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:04 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "0wVBeYAVAEW72uZ80HW+Ig.0", - "X-Azure-Ref" : "06e9YYAAAAABUZsOTIbxCRbMF2oMOIMbVWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-cd75-b5bb-a43a0d000a53\"}}", - "x-ms-client-request-id" : "9a6ab60d-0f1f-4c0d-b496-8ebafe27c66f", + "X-Processing-Time" : "28ms", + "MS-CV" : "cq5DsCDKxUWTFZE65hXQ6A.0", + "X-Azure-Ref" : "0HAPAYAAAAADl2Gt2lPLhSrpElxNFvgNbV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-cab9-0e04-343a0d00b6f7\"}}", + "x-ms-client-request-id" : "44e6c85b-c944-491c-9c31-c6755972db22", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,68 +27,71 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:41 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:04 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "NmjmRmN+MkWb4nQCmWYQcA.0", - "X-Azure-Ref" : "06e9YYAAAAACH694V1t6hRIkdcshHBpBMWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-cdc9-defd-8b3a0d0004f4\"}}", - "x-ms-client-request-id" : "aa9fdb7a-4304-407c-8252-241ea679a04c", + "X-Processing-Time" : "24ms", + "MS-CV" : "e0JGeHsmSEW0ut6QuJJk+g.0", + "X-Azure-Ref" : "0HAPAYAAAAABNchiOTBBCQ5pGNAGoNCkrV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-caef-6a0b-343a0d00c9bc\"}}", + "x-ms-client-request-id" : "90940cfb-df9d-4016-b0f5-beb152d2fd9c", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-cd75-b5bb-a43a0d000a53/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-cab9-0e04-343a0d00b6f7/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:41 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:04 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "124ms", - "MS-CV" : "UcylSU90EE64QD+HrL3+Hw.0", - "X-Azure-Ref" : "06e9YYAAAAAAKTm6oELrgQ7fhc3osvUPfWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:41.1250354+00:00\"}", - "x-ms-client-request-id" : "250c4b48-a0ee-4e28-a468-9db8eaae7718", + "X-Processing-Time" : "36ms", + "MS-CV" : "uek6hrjnaU660GC8cQf7Sg.0", + "X-Azure-Ref" : "0HAPAYAAAAADxzS9LhLMqR7yLflHV8iUtV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:03.47382+00:00\"}", + "x-ms-client-request-id" : "c6fc394b-133d-4776-a58e-da2fa9be9302", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "782ms", - "MS-CV" : "EGT1jeqfHkmS/gQ1E0Tsrw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "06u9YYAAAAABqOlS5oKbTQIAnHLKrnaGsWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:8g011vExTAzAxUa37fid2iiVcKRydDdTqdsng65Gn_M1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:42Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-cd75-b5bb-a43a0d000a53\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-cd75-b5bb-a43a0d000a53\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:42 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:04 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "416ms", + "MS-CV" : "x0LS5itu502SUsb+iZn06w.0", + "X-Azure-Ref" : "0HAPAYAAAAACUgOphh/sDToHRspqyjGBaV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:jpDohOQcNCvUh31SgOriM09lHtNxqjb3JKU3LdN0nwI1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:04Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-cab9-0e04-343a0d00b6f7\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-cab9-0e04-343a0d00b6f7\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3A8g011vExTAzAxUa37fid2iiVcKRydDdTqdsng65Gn_M1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AjpDohOQcNCvUh31SgOriM09lHtNxqjb3JKU3LdN0nwI1@thread.v2" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.throwsExceptionOnBadRequest[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.throwsExceptionOnBadRequest[1].json index 50aa340d21465..6fc0639a63cb6 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.throwsExceptionOnBadRequest[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadAsyncClientTest.throwsExceptionOnBadRequest[1].json @@ -1,9 +1,9 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4b72178530934b7790135dd9359205e0@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4b72178530934b7790135dd9359205e0@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveMembersWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveMembersWithResponse[1].json index d82dd8e5c1afb..0556f89dba280 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveMembersWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveMembersWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:26 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:39 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "BaV0Sf2FDEiANMBYAQCj6A.0", - "X-Azure-Ref" : "0F/BYYAAAAABZZsPXHh2FR7Rdpm1U264eWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8098-b5bb-a43a0d000a9f\"}}", - "x-ms-client-request-id" : "9eef7763-4ce0-4976-bb42-4eb6ffc672c6", + "X-Processing-Time" : "23ms", + "MS-CV" : "YQIqoTfqcEuYuhK9CXgKGg.0", + "X-Azure-Ref" : "0PwPAYAAAAABQ3djomUYqR7U8jn9AH2GRV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-55e6-6a0b-343a0d00ca0e\"}}", + "x-ms-client-request-id" : "e07db1b5-c5cf-4988-89a2-f160c9f00c69", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:27 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:39 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "alc4W/Bx3E+cUzPsIRnriA.0", - "X-Azure-Ref" : "0F/BYYAAAAADRfuX8ky07SLLAvjVonOcQWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-80ea-defd-8b3a0d00052c\"}}", - "x-ms-client-request-id" : "9abdcaf4-2670-45bd-b712-d4984c085969", + "X-Processing-Time" : "21ms", + "MS-CV" : "CsYZo9eCI0WMEdsGc4a/yA.0", + "X-Azure-Ref" : "0PwPAYAAAAAASgj1puETPT4rSfByUuQlvV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5619-6a0b-343a0d00ca0f\"}}", + "x-ms-client-request-id" : "a116d7b9-d644-4f41-bc78-bc5237d2e318", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:26 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:39 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "mE9QSKqt+0G41LbhzturjQ.0", - "X-Azure-Ref" : "0F/BYYAAAAAB68wPfhm4+SZIeu+VmX/J8WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-813b-b5bb-a43a0d000aa0\"}}", - "x-ms-client-request-id" : "6baf7c8c-c5f4-4776-8174-f11996e801fd", + "X-Processing-Time" : "20ms", + "MS-CV" : "mW0V4R+4KEC8VsrbVt6jWA.0", + "X-Azure-Ref" : "0QAPAYAAAAACVaAn/TVS5TLJWBHe3K5bFV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-564c-6a0b-343a0d00ca10\"}}", + "x-ms-client-request-id" : "692cf199-de24-42e0-9236-788be3df400b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,89 +75,93 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:27 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:39 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "rs/EzVhMWkuOalGsA7+zFQ.0", - "X-Azure-Ref" : "0F/BYYAAAAAAEs1rccrnXR64jjGRLifyMWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-818d-eef0-8b3a0d0004b4\"}}", - "x-ms-client-request-id" : "e9f7ed35-7fca-40ba-9a3e-288a3b4eaeae", + "X-Processing-Time" : "22ms", + "MS-CV" : "cYi3CaNMYECjF98LN/jiKQ.0", + "X-Azure-Ref" : "0QAPAYAAAAACSdT3sYr9tRLJAwEJniB28V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-567f-6a0b-343a0d00ca11\"}}", + "x-ms-client-request-id" : "ecd526b2-2106-414c-bd9e-6a638233fbb6", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8098-b5bb-a43a0d000a9f/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-55e6-6a0b-343a0d00ca0e/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:28 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:39 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "144ms", - "MS-CV" : "Ih+Ql2vQ8EmoCtFDrZtwEA.0", - "X-Azure-Ref" : "0F/BYYAAAAADn1nNhw2TLQ4ifDQv+OQcWWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:27.1626806+00:00\"}", - "x-ms-client-request-id" : "2438f828-f387-4eec-af0a-0c51bb51d4f4", + "X-Processing-Time" : "30ms", + "MS-CV" : "PuZ1V8nMsU6/HxxvmmjEnQ.0", + "X-Azure-Ref" : "0QAPAYAAAAACl6FUw00GSSZcPUw0eGPHeV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:39.1983248+00:00\"}", + "x-ms-client-request-id" : "bd8ca7f5-5d54-4216-9d3a-0defdcdc8147", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "690ms", - "MS-CV" : "3X8SzMcw50S5D1ogxdOwQA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0GPBYYAAAAACine+3KozpQ4jOy3iXMI54WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:3T92JtqKVaJiNwtYSvFF1Mznc-KQMGFWjgy6sfrsXx81@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:28Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8098-b5bb-a43a0d000a9f\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8098-b5bb-a43a0d000a9f\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:28 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:40 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "557ms", + "MS-CV" : "GQGSS4vds0+vzXotaWSyIQ.0", + "X-Azure-Ref" : "0QAPAYAAAAABwMxgVQ9hFQ4hvkOv3y5+MV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:n3F2_KGPEy62-e3Az6lhml3hInBr2wyYDwKfrXyHeTs1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:40Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-55e6-6a0b-343a0d00ca0e\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-55e6-6a0b-343a0d00ca0e\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3A3T92JtqKVaJiNwtYSvFF1Mznc-KQMGFWjgy6sfrsXx81@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3An3F2_KGPEy62-e3Az6lhml3hInBr2wyYDwKfrXyHeTs1@thread.v2" }, "Exception" : null }, { "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:28 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:40 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "bXHUW3PmVEaJMtc0mbNleg.0", - "X-Azure-Ref" : "0GPBYYAAAAABfsjv4TqlHS7N8hXfnTW4WWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8578-b5bb-a43a0d000aa2\"}}", - "x-ms-client-request-id" : "a4fdcc11-1544-4d6c-be5c-e8cc16b321df", + "X-Processing-Time" : "25ms", + "MS-CV" : "uhQpS4+sM06SWwC05pir4A.0", + "X-Azure-Ref" : "0QAPAYAAAAAD5Qj0pvUyYRYSpgP8COz8QV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5948-6a0b-343a0d00ca12\"}}", + "x-ms-client-request-id" : "d7ae295e-5e3a-4772-b6a0-de7bc1bae87f", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -163,100 +170,105 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:28 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:40 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "Op8JfdGbVE2n/ftkVVtLMQ.0", - "X-Azure-Ref" : "0GPBYYAAAAAAcwHxPwhw4TJoHyzREK82+WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-85ca-defd-8b3a0d00052d\"}}", - "x-ms-client-request-id" : "72aa9656-3d8b-445d-89b3-8a44fc167945", + "X-Processing-Time" : "24ms", + "MS-CV" : "t7QjtVNu/0GRWHB/nzjaqA.0", + "X-Azure-Ref" : "0QAPAYAAAAAD4wIX0fO8rR5gxUB3pYIihV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-597c-6a0b-343a0d00ca13\"}}", + "x-ms-client-request-id" : "db2bb03d-22ef-40ad-b8d5-7af60d913664", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:3T92JtqKVaJiNwtYSvFF1Mznc-KQMGFWjgy6sfrsXx81@thread.v2/participants/:add?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:n3F2_KGPEy62-e3Az6lhml3hInBr2wyYDwKfrXyHeTs1@thread.v2/participants/:add?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "364ms", - "MS-CV" : "NHnAwL8cZUeUzpzmR+gL9Q.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "320ms", + "MS-CV" : "C0HMWrSDLEWYdtVImxvV4Q.0", "retry-after" : "0", - "X-Azure-Ref" : "0GfBYYAAAAAAYb+p8EcTmRY7vtC1Zey0cWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QAPAYAAAAACcgkMdh9NNR7iRKziH/0DAV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "201", "Body" : "{}", - "Date" : "Mon, 22 Mar 2021 19:29:29 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:41 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:3T92JtqKVaJiNwtYSvFF1Mznc-KQMGFWjgy6sfrsXx81@thread.v2/participants?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:n3F2_KGPEy62-e3Az6lhml3hInBr2wyYDwKfrXyHeTs1@thread.v2/participants?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "90ms", - "MS-CV" : "z4Kwa3g4A0e1e5N4a9uX7w.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "96ms", + "MS-CV" : "mhZfnVZHC0W3sXUuBBsllg.0", "retry-after" : "0", - "X-Azure-Ref" : "0GfBYYAAAAADB5s9GDY9xTKUnf10G8c5DWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QQPAYAAAAABnQC6h/hohT4wYlelYb/SHV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8098-b5bb-a43a0d000a9f\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8098-b5bb-a43a0d000a9f\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-80ea-defd-8b3a0d00052c\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-80ea-defd-8b3a0d00052c\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8578-b5bb-a43a0d000aa2\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8578-b5bb-a43a0d000aa2\"}},\"displayName\":\"Added Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-85ca-defd-8b3a0d00052d\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-85ca-defd-8b3a0d00052d\"}},\"displayName\":\"Added Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", - "Date" : "Mon, 22 Mar 2021 19:29:29 GMT", + "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-55e6-6a0b-343a0d00ca0e\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-55e6-6a0b-343a0d00ca0e\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5619-6a0b-343a0d00ca0f\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5619-6a0b-343a0d00ca0f\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5948-6a0b-343a0d00ca12\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5948-6a0b-343a0d00ca12\"}},\"displayName\":\"Added Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-597c-6a0b-343a0d00ca13\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-597c-6a0b-343a0d00ca13\"}},\"displayName\":\"Added Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", + "Date" : "Tue, 08 Jun 2021 23:54:41 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:3T92JtqKVaJiNwtYSvFF1Mznc-KQMGFWjgy6sfrsXx81@thread.v2/participants/:remove?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:n3F2_KGPEy62-e3Az6lhml3hInBr2wyYDwKfrXyHeTs1@thread.v2/participants/:remove?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "266ms", - "MS-CV" : "EWCEtxqtzUWUDBf9NBywWA.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "179ms", + "MS-CV" : "uQPdx9rvJUmPSjArdE7iZA.0", "retry-after" : "0", - "X-Azure-Ref" : "0GfBYYAAAAAA00ekDQjx7S4VvAoU3L24oWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QQPAYAAAAABLVqZ2g8HUQLNu7KmZSi45V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:29:29 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:41 GMT" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:3T92JtqKVaJiNwtYSvFF1Mznc-KQMGFWjgy6sfrsXx81@thread.v2/participants/:remove?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:n3F2_KGPEy62-e3Az6lhml3hInBr2wyYDwKfrXyHeTs1@thread.v2/participants/:remove?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "185ms", - "MS-CV" : "73ps9YDCy0iDq5IXM1SA7Q.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "162ms", + "MS-CV" : "TfKuD+NNoUSXlu13yNYdjg.0", "retry-after" : "0", - "X-Azure-Ref" : "0GfBYYAAAAADzyR3VGcF8TZ4YgoKwDyO0WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0QQPAYAAAAAD7nwsuHrtuQ6Z3iBDs9gN/V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:29:29 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:41 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveParticipantsWithOptions[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveParticipantsWithOptions[1].json index a85d8fb5deb24..ef52e5d1d16ea 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveParticipantsWithOptions[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveParticipantsWithOptions[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:04 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:22 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "msdobcyl/USz2saU7I/EBw.0", - "X-Azure-Ref" : "0AfBYYAAAAADJpiNcjwwEQ7q51Ou4wLx9WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2920-defd-8b3a0d000518\"}}", - "x-ms-client-request-id" : "7556ea6f-e26a-4d94-9039-1ff15bb26a34", + "X-Processing-Time" : "23ms", + "MS-CV" : "lLiLUBR9X0GNaKZpbHfVaw.0", + "X-Azure-Ref" : "0LgPAYAAAAADkwM66zXk/RYqEtAzdcnzEV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1155-6a0b-343a0d00c9da\"}}", + "x-ms-client-request-id" : "4a4845fd-7272-423e-a12e-eda29f835c94", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:04 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:22 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "INL5TzcJCkabjYVqCtaNCg.0", - "X-Azure-Ref" : "0AfBYYAAAAADbK6bDCV9gQIndNgX2gCJWWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2972-b5bb-a43a0d000a75\"}}", - "x-ms-client-request-id" : "20c6d363-b3b1-4740-8d74-d63ebe0ef24d", + "X-Processing-Time" : "23ms", + "MS-CV" : "HT6ULzFLjkGay5X9LRoBLg.0", + "X-Azure-Ref" : "0LgPAYAAAAABxJiB0gWHVRrH3KJ7kxiBVV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-118b-0e04-343a0d00b716\"}}", + "x-ms-client-request-id" : "ac27974e-d5de-491e-96ce-355da052623a", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:04 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:22 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "d/BEvCFQHEa16mb0zRzU1g.0", - "X-Azure-Ref" : "0AfBYYAAAAAClKkM2JLT3TrrjOEPnNokXWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-29c4-eef0-8b3a0d0004a2\"}}", - "x-ms-client-request-id" : "59cd35a1-47a7-4e90-a192-57b23e2e021f", + "X-Processing-Time" : "23ms", + "MS-CV" : "CCDmfa9He0GzA3FiLcrNeA.0", + "X-Azure-Ref" : "0LgPAYAAAAACc0yaIoiWpQbif5kRWrN15V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-11d1-6a0b-343a0d00c9db\"}}", + "x-ms-client-request-id" : "8933b46d-3387-48f3-93a3-8e28b5c63f5b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,89 +75,93 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:04 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:22 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "f0CThazHo0OY5l+r2O+PcA.0", - "X-Azure-Ref" : "0AfBYYAAAAADVe1mhwc5lTbNU5FPCeDw+WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2a15-b5bb-a43a0d000a76\"}}", - "x-ms-client-request-id" : "b6955150-eeb0-4662-a3a0-6c2f42be1daa", + "X-Processing-Time" : "25ms", + "MS-CV" : "L7T7jMqhb0q3JDSnZMHX3Q.0", + "X-Azure-Ref" : "0LgPAYAAAAADaQB9zSDvXRq451iql/kU4V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1299-f40f-343a0d00182a\"}}", + "x-ms-client-request-id" : "c70724ff-9cec-44dc-be96-68f59810ccdb", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2920-defd-8b3a0d000518/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1155-6a0b-343a0d00c9da/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:04 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:22 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "164ms", - "MS-CV" : "Wp8h/yDlgES5yq67a+MlHw.0", - "X-Azure-Ref" : "0AfBYYAAAAABfpaqrEatPQqjZEJhHNonFWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:04.7934725+00:00\"}", - "x-ms-client-request-id" : "1ff7f958-1642-4994-8fbd-317a620fb9e8", + "X-Processing-Time" : "32ms", + "MS-CV" : "8o3MnrQ+1UmasY0Zr0ecyA.0", + "X-Azure-Ref" : "0LgPAYAAAAAC+bqTEB2L9RKYlg94kdxoqV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:21.8167717+00:00\"}", + "x-ms-client-request-id" : "ad5c18d8-55f0-4545-b6e3-7babd06938b7", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "753ms", - "MS-CV" : "rV0kXnYfjk+8XnFpQzdWgg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0AfBYYAAAAACI9tkM07ovRpLCoXx0ninXWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:AkiqXGHehJqRQt6NKpMtWOp9Gfkuubq3yH4l4Ol_l181@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:05Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2920-defd-8b3a0d000518\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2920-defd-8b3a0d000518\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:05 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:23 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "597ms", + "MS-CV" : "efk0/kwbUUq0BDcsNKvSZw.0", + "X-Azure-Ref" : "0LgPAYAAAAAADuHYkkHT7TYj4akJZMPANV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:cpi5sEHbGLElbSR3hSKHYnmn97XPSuFN3Zi4w-YkvF41@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:22Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1155-6a0b-343a0d00c9da\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1155-6a0b-343a0d00c9da\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AAkiqXGHehJqRQt6NKpMtWOp9Gfkuubq3yH4l4Ol_l181@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3Acpi5sEHbGLElbSR3hSKHYnmn97XPSuFN3Zi4w-YkvF41@thread.v2" }, "Exception" : null }, { "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:05 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:23 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "wtiS7xS1rkCj/7jj3CENoA.0", - "X-Azure-Ref" : "0AvBYYAAAAACUzbI0LbihQIYaBNRd75DXWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2e79-eef0-8b3a0d0004a3\"}}", - "x-ms-client-request-id" : "06b72ce8-efc1-4f89-9f16-620954707576", + "X-Processing-Time" : "24ms", + "MS-CV" : "lfA8w2FQk0GeiUqe0DJF2Q.0", + "X-Azure-Ref" : "0LwPAYAAAAADIbqXg463AQJ6N1kEuKKxSV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1586-6a0b-343a0d00c9dc\"}}", + "x-ms-client-request-id" : "f8919d86-15cf-427a-8d46-e763c9549fc5", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -163,120 +170,126 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:06 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:23 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "sdB95yX3AU6gKGc+5nhMmA.0", - "X-Azure-Ref" : "0AvBYYAAAAACh1HQQDABpS5/pBpQzrXwDWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2eca-b5bb-a43a0d000a77\"}}", - "x-ms-client-request-id" : "33d10580-ac7b-4456-85cb-394436901d86", + "X-Processing-Time" : "153ms", + "MS-CV" : "AsCNZjZajEmqBRC2ex8/VA.0", + "X-Azure-Ref" : "0LwPAYAAAAACqliI3ff6+SoOBdE1lqTqnV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1642-f40f-343a0d00182b\"}}", + "x-ms-client-request-id" : "48d1ffbf-48f4-4cda-9351-c0f6f05118ec", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:AkiqXGHehJqRQt6NKpMtWOp9Gfkuubq3yH4l4Ol_l181@thread.v2/participants/:add?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:cpi5sEHbGLElbSR3hSKHYnmn97XPSuFN3Zi4w-YkvF41@thread.v2/participants/:add?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "244ms", - "MS-CV" : "N+r+2C90KESvuZDna3eXiA.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "323ms", + "MS-CV" : "UwxZQis+P0ScYzPF7EXlKg.0", "retry-after" : "0", - "X-Azure-Ref" : "0AvBYYAAAAACEr88l8QIhR5JwniIsjOPYWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0LwPAYAAAAABlMMu3gyF3TLEbzIpg9vs0V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "201", "Body" : "{}", - "Date" : "Mon, 22 Mar 2021 19:29:06 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:23 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:AkiqXGHehJqRQt6NKpMtWOp9Gfkuubq3yH4l4Ol_l181@thread.v2/participants?maxPageSize=2&api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:cpi5sEHbGLElbSR3hSKHYnmn97XPSuFN3Zi4w-YkvF41@thread.v2/participants?maxPageSize=2&api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "97ms", - "MS-CV" : "eBFXN9Ve+UKne6d2eOeW+w.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "163ms", + "MS-CV" : "HX9s9V+e/ESy+KWFv022cw.0", "retry-after" : "0", - "X-Azure-Ref" : "0A/BYYAAAAABplsealiyqRIZcVo2fijYTWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0MAPAYAAAAAAQBKyyTA17RbYsdA44jWVBV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2920-defd-8b3a0d000518\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2920-defd-8b3a0d000518\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2972-b5bb-a43a0d000a75\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2972-b5bb-a43a0d000a75\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}],\"nextLink\":\"https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19:AkiqXGHehJqRQt6NKpMtWOp9Gfkuubq3yH4l4Ol_l181@thread.v2/participants?skip=2&maxPageSize=2&api-version=2021-03-07\"}", - "Date" : "Mon, 22 Mar 2021 19:29:06 GMT", + "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1155-6a0b-343a0d00c9da\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1155-6a0b-343a0d00c9da\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-118b-0e04-343a0d00b716\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-118b-0e04-343a0d00b716\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}],\"nextLink\":\"https://chat-prod-e2e.communication.azure.com/chat/threads/19:cpi5sEHbGLElbSR3hSKHYnmn97XPSuFN3Zi4w-YkvF41@thread.v2/participants?skip=2&maxPageSize=2&api-version=2021-04-05-preview6\"}", + "Date" : "Tue, 08 Jun 2021 23:54:24 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:AkiqXGHehJqRQt6NKpMtWOp9Gfkuubq3yH4l4Ol_l181@thread.v2/participants?skip=2&maxPageSize=2&api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:cpi5sEHbGLElbSR3hSKHYnmn97XPSuFN3Zi4w-YkvF41@thread.v2/participants?skip=2&maxPageSize=2&api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "79ms", - "MS-CV" : "xvTPWe0ZqkuCETK/GX8vtw.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "165ms", + "MS-CV" : "C6ZPCgCesEazeHs7UKUHkw.0", "retry-after" : "0", - "X-Azure-Ref" : "0A/BYYAAAAAAK8hGUfdyfSK2aOByyo8P+WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0MAPAYAAAAAAZAI80iRNDQrxsCKfP/8brV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2e79-eef0-8b3a0d0004a3\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2e79-eef0-8b3a0d0004a3\"}},\"displayName\":\"Added Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2eca-b5bb-a43a0d000a77\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2eca-b5bb-a43a0d000a77\"}},\"displayName\":\"Added Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", - "Date" : "Mon, 22 Mar 2021 19:29:06 GMT", + "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1586-6a0b-343a0d00c9dc\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1586-6a0b-343a0d00c9dc\"}},\"displayName\":\"Added Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1642-f40f-343a0d00182b\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1642-f40f-343a0d00182b\"}},\"displayName\":\"Added Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", + "Date" : "Tue, 08 Jun 2021 23:54:24 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:AkiqXGHehJqRQt6NKpMtWOp9Gfkuubq3yH4l4Ol_l181@thread.v2/participants/:remove?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:cpi5sEHbGLElbSR3hSKHYnmn97XPSuFN3Zi4w-YkvF41@thread.v2/participants/:remove?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "296ms", - "MS-CV" : "KqANdI7/+0Wk9r9ohmjynQ.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "341ms", + "MS-CV" : "PJWtmVlsekCb5nGU3S4SVA.0", "retry-after" : "0", - "X-Azure-Ref" : "0A/BYYAAAAAB4/IYu5QcsR7kXCO4euZ4jWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0MAPAYAAAAACJq46GnUuGQYcqc8Y0rS1dV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:29:06 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:24 GMT" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:AkiqXGHehJqRQt6NKpMtWOp9Gfkuubq3yH4l4Ol_l181@thread.v2/participants/:remove?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:cpi5sEHbGLElbSR3hSKHYnmn97XPSuFN3Zi4w-YkvF41@thread.v2/participants/:remove?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "232ms", - "MS-CV" : "4AE2x0Q7JEKEwluY77dr1A.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "325ms", + "MS-CV" : "ON7dblcOAEqXGk1ajvf4nQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0A/BYYAAAAAA0gLI7HeB1RphR3rtOrPIwWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0MAPAYAAAAAC2Zfnz8VRLQ4JgMo6NURggV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:29:06 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:25 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveParticipantsWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveParticipantsWithResponse[1].json index bdca36e164a28..50f769c3fd20d 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveParticipantsWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveParticipantsWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:49 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:10 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "3pkaHIYC6kSvgjj/B4ni7Q.0", - "X-Azure-Ref" : "08u9YYAAAAACHk+tQ/9kGTL/YMIKBItTpWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-ef52-defd-8b3a0d000501\"}}", - "x-ms-client-request-id" : "7dee8436-3ee4-4986-acd5-e8a494dd95a6", + "X-Processing-Time" : "24ms", + "MS-CV" : "1t/vLoDNt02kiVhjB2hwZw.0", + "X-Azure-Ref" : "0IgPAYAAAAABJHLOt9c/4QZzal0ALphBzV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-e25a-6a0b-343a0d00c9c8\"}}", + "x-ms-client-request-id" : "7a5300b0-cc80-4425-9275-574fd0034d24", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:50 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:10 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "ZzEeMhedh06k2+UX5wY3YQ.0", - "X-Azure-Ref" : "08u9YYAAAAAAAEUFEt/P/Q6GI//H9q/UAWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-efa3-b5bb-a43a0d000a62\"}}", - "x-ms-client-request-id" : "d7949625-dd4a-4ba7-96dd-b52929df3374", + "X-Processing-Time" : "24ms", + "MS-CV" : "kS8dHObmXU+d9SoUt6Nzzg.0", + "X-Azure-Ref" : "0IgPAYAAAAADQzd09l9keSbHziRuNLOb8V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-e28f-0e04-343a0d00b703\"}}", + "x-ms-client-request-id" : "a273a6e0-dc12-4299-b131-e971700df0cf", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:49 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:10 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "Mzbc0NIE1U2uWTmPjvCV5Q.0", - "X-Azure-Ref" : "08u9YYAAAAAAx66SqGN4+S5nfcUkeH+suWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-eff4-eef0-8b3a0d000495\"}}", - "x-ms-client-request-id" : "50d493c9-eca8-4773-96ff-2501951cf31b", + "X-Processing-Time" : "22ms", + "MS-CV" : "2Od7aI+Ba0CrvgSz6lOUVQ.0", + "X-Azure-Ref" : "0IgPAYAAAAAAfc6IZ0V/3QaZQ1Nw4NubDV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-e2c7-6a0b-343a0d00c9c9\"}}", + "x-ms-client-request-id" : "9f042f11-fdf9-49ea-bc94-50b900d558c2", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,87 +75,91 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:50 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:10 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "WFfHv/OA1UCRBx2ZNGE6HQ.0", - "X-Azure-Ref" : "08u9YYAAAAAD59LfnpXH6Rq4fF1qNNLJIWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-f045-b5bb-a43a0d000a63\"}}", - "x-ms-client-request-id" : "b9696239-6bb8-49a1-adff-77924e8a13c7", + "X-Processing-Time" : "23ms", + "MS-CV" : "v1vWeEaFLEe6qYIfw1W4Ew.0", + "X-Azure-Ref" : "0IgPAYAAAAACmc6WkT5kuTLqySsDblvqiV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-e2fa-0e04-343a0d00b704\"}}", + "x-ms-client-request-id" : "6e644418-a5c9-4ea6-ba03-693a631aeae5", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-ef52-defd-8b3a0d000501/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-e25a-6a0b-343a0d00c9c8/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:50 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:10 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "160ms", - "MS-CV" : "leU2T1Fzz0ulhXEFL4U5WQ.0", - "X-Azure-Ref" : "08u9YYAAAAAA/lXaERi+5QInoFH9+enUhWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:49.9905501+00:00\"}", - "x-ms-client-request-id" : "7e4324bc-2b5f-4031-944b-cc80165e671c", + "X-Processing-Time" : "29ms", + "MS-CV" : "M6FnOMAqI0S4WewCpcDrvQ.0", + "X-Azure-Ref" : "0IgPAYAAAAAB66W4/NXzhR4XfC8yKzKjCV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:09.6224727+00:00\"}", + "x-ms-client-request-id" : "39fe9c86-ba30-4456-9bfd-9dda52b05339", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "538ms", - "MS-CV" : "pGSaN2md7kG+rTSLdtC5kA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "08+9YYAAAAADu3cb24EklRohQjV7KXz+tWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:5_vRdWWAiYYqFRIadNKctdmHITMNm-0sH-s-3jb390Y1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:51Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-ef52-defd-8b3a0d000501\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-ef52-defd-8b3a0d000501\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:51 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:10 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "507ms", + "MS-CV" : "rmA0yNbdzE+okrHAufj8dw.0", + "X-Azure-Ref" : "0IgPAYAAAAAAODJL0TrezRJVjKekFuF4YV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:_02rVBMzhLaPuWWse7F_w4NkrVXYgHas3kvQk9nY2wo1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:10Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-e25a-6a0b-343a0d00c9c8\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-e25a-6a0b-343a0d00c9c8\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3A5_vRdWWAiYYqFRIadNKctdmHITMNm-0sH-s-3jb390Y1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A_02rVBMzhLaPuWWse7F_w4NkrVXYgHas3kvQk9nY2wo1@thread.v2" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:5_vRdWWAiYYqFRIadNKctdmHITMNm-0sH-s-3jb390Y1@thread.v2/participants?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:_02rVBMzhLaPuWWse7F_w4NkrVXYgHas3kvQk9nY2wo1@thread.v2/participants?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "121ms", - "MS-CV" : "bXlAz9LHiEGLwaCuRAr0HA.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "240ms", + "MS-CV" : "Dck6bGnZPECx73ZpXEQVPA.0", "retry-after" : "0", - "X-Azure-Ref" : "08+9YYAAAAACjU4eKJVFfSI1KcQupK7ZRWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0IwPAYAAAAABCSw5iYHxiS5RkU1qGez/LV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-ef52-defd-8b3a0d000501\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-ef52-defd-8b3a0d000501\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-efa3-b5bb-a43a0d000a62\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-efa3-b5bb-a43a0d000a62\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", - "Date" : "Mon, 22 Mar 2021 19:28:50 GMT", + "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-e25a-6a0b-343a0d00c9c8\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-e25a-6a0b-343a0d00c9c8\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-e28f-0e04-343a0d00b703\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-e28f-0e04-343a0d00b703\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", + "Date" : "Tue, 08 Jun 2021 23:54:11 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveParticipants[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveParticipants[1].json index 702a6afea81d1..9ff58eeb71b8c 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveParticipants[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddListAndRemoveParticipants[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:01 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:19 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "xJHsXEXeAkWnRDZNiOxSOQ.0", - "X-Azure-Ref" : "0/u9YYAAAAADWZoLk90ljRpcUaFLjAcUwWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1f29-defd-8b3a0d000517\"}}", - "x-ms-client-request-id" : "16a514f2-7736-4b55-8a44-a1ae61f963a2", + "X-Processing-Time" : "23ms", + "MS-CV" : "O4txkk4+hUqlApf0zaueOQ.0", + "X-Azure-Ref" : "0KwPAYAAAAABM9McshhIJQY3bwtOcV2Z4V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-07ed-6a0b-343a0d00c9d7\"}}", + "x-ms-client-request-id" : "fcee3783-6e03-4d9e-a6d0-eac36a47085f", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:02 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:19 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "MUG4GPbW/k2qxYeuIQjnuQ.0", - "X-Azure-Ref" : "0/u9YYAAAAAANiWOQO4HpSK8UePgIKjeWWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1f79-b5bb-a43a0d000a72\"}}", - "x-ms-client-request-id" : "c418bb32-f4ec-409d-833c-6fc8d4798fc4", + "X-Processing-Time" : "25ms", + "MS-CV" : "wCglVQYksUqNIguNbEgbjQ.0", + "X-Azure-Ref" : "0LAPAYAAAAAD503jhHxckQ5H1bMkK6WvvV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0824-0e04-343a0d00b713\"}}", + "x-ms-client-request-id" : "ecbebbb3-28a5-4b49-a23c-c23cf3816b37", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:02 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:19 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "19ms", - "MS-CV" : "vUTJxQqwhUeAZSfkU3kKzA.0", - "X-Azure-Ref" : "0/u9YYAAAAACYoe3BLNvNTpQTxDFPFplXWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1fd4-eef0-8b3a0d0004a0\"}}", - "x-ms-client-request-id" : "3859f68d-5dd6-4d91-8913-073dc516d235", + "X-Processing-Time" : "24ms", + "MS-CV" : "nk/JYCWhJ0Go+GW1eWrsMw.0", + "X-Azure-Ref" : "0LAPAYAAAAADlvwZJzdgYTogkfHCAKeD8V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-085e-6a0b-343a0d00c9d8\"}}", + "x-ms-client-request-id" : "a7518290-39fd-46be-bdd7-978be3148cee", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,89 +75,93 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:02 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:19 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "X5ypDOfGJU2LjwBjDMBmUA.0", - "X-Azure-Ref" : "0/u9YYAAAAABSBpA2oNlUSLlFrxmaawg1WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2025-b5bb-a43a0d000a73\"}}", - "x-ms-client-request-id" : "bfdf5c93-1670-418c-b53d-450fa5ee0cf2", + "X-Processing-Time" : "22ms", + "MS-CV" : "4+2OBwZXgEKWMIHIC1BRlQ.0", + "X-Azure-Ref" : "0LAPAYAAAAADiZJdDvIH8Tq6aSY6TNqw2V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0893-0e04-343a0d00b714\"}}", + "x-ms-client-request-id" : "977d31e9-2914-4b09-ac14-981edcbd4d07", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1f29-defd-8b3a0d000517/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-07ed-6a0b-343a0d00c9d7/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:02 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:20 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "157ms", - "MS-CV" : "pM+ocyAWDkWY1sl7DDvEIQ.0", - "X-Azure-Ref" : "0/+9YYAAAAACwUwu500JhSbn6gUAXwTpDWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:02.2416608+00:00\"}", - "x-ms-client-request-id" : "75cc7e72-3904-4466-8d6e-7d0cf94b3c08", + "X-Processing-Time" : "171ms", + "MS-CV" : "1UVWDC+mB0yBq0JYEDXKtg.0", + "X-Azure-Ref" : "0LAPAYAAAAABfVZCZsZnhSK36Xzimuf3FV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:19.3931749+00:00\"}", + "x-ms-client-request-id" : "21056387-13b1-4ee0-b25e-8d0511336e2f", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "708ms", - "MS-CV" : "+ca4GsTB1kuzwVXflGiDmA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0/+9YYAAAAABkPfWgW9QPTbMNVL7537qtWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:PIfgw5bBC47CuegXxAZkbbEFBj1MN_YYOVqH_rT36i01@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:03Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1f29-defd-8b3a0d000517\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1f29-defd-8b3a0d000517\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:03 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:20 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "406ms", + "MS-CV" : "3HhVih+Kn0Gxjj04VOxoCw.0", + "X-Azure-Ref" : "0LAPAYAAAAAACaGBMipimQYHegm7xUSViV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:aXoucqFFbzfNJ4N9wkVl39Fwxn3EN0xiLAYb7Ia-fQw1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:20Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-07ed-6a0b-343a0d00c9d7\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-07ed-6a0b-343a0d00c9d7\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3APIfgw5bBC47CuegXxAZkbbEFBj1MN_YYOVqH_rT36i01@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AaXoucqFFbzfNJ4N9wkVl39Fwxn3EN0xiLAYb7Ia-fQw1@thread.v2" }, "Exception" : null }, { "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:03 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:20 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "vUpn/gJ+sUqv+WPNKFSRjg.0", - "X-Azure-Ref" : "0APBYYAAAAABSCneVm9UMRrJSdOlAfCPRWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2454-eef0-8b3a0d0004a1\"}}", - "x-ms-client-request-id" : "cb44f2fd-3a3f-4a99-9285-c03e71782352", + "X-Processing-Time" : "24ms", + "MS-CV" : "0GtDIqXTfk2F7PMOZIxgzg.0", + "X-Azure-Ref" : "0LAPAYAAAAAAK8pLdBcJYQrzTnjqEaguyV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0b54-6a0b-343a0d00c9d9\"}}", + "x-ms-client-request-id" : "62f52830-369f-4d4f-9c65-3e504c24c9e5", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -163,100 +170,105 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:03 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:20 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "xTViesSGsEiMsO90IMfZSA.0", - "X-Azure-Ref" : "0APBYYAAAAAA5vuSVQ53LR6eWh8FnPOMCWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-24a7-b5bb-a43a0d000a74\"}}", - "x-ms-client-request-id" : "45e428c8-0ccc-49eb-a7b0-140dbd25d905", + "X-Processing-Time" : "23ms", + "MS-CV" : "fIxvK05llEKyONzTNGF+gw.0", + "X-Azure-Ref" : "0LAPAYAAAAAAO/39MB6CmT6dnwCVddI1AV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0b88-0e04-343a0d00b715\"}}", + "x-ms-client-request-id" : "b033ad3a-c3c8-4c7f-a9d4-68ec28c815e8", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:PIfgw5bBC47CuegXxAZkbbEFBj1MN_YYOVqH_rT36i01@thread.v2/participants/:add?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:aXoucqFFbzfNJ4N9wkVl39Fwxn3EN0xiLAYb7Ia-fQw1@thread.v2/participants/:add?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "238ms", - "MS-CV" : "gFZoQOxKBkqP2RPgO5hQBQ.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "328ms", + "MS-CV" : "0NgLnPGzSUmUsxcmmE9IPg.0", "retry-after" : "0", - "X-Azure-Ref" : "0APBYYAAAAAD4LckO6vFsRLlqlKnIygyZWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0LAPAYAAAAAD+3Ho6NO6uQIgQkZ3XRS18V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "201", "Body" : "{}", - "Date" : "Mon, 22 Mar 2021 19:29:03 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:21 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:PIfgw5bBC47CuegXxAZkbbEFBj1MN_YYOVqH_rT36i01@thread.v2/participants?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:aXoucqFFbzfNJ4N9wkVl39Fwxn3EN0xiLAYb7Ia-fQw1@thread.v2/participants?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "138ms", - "MS-CV" : "cP3s5U3/xUuJx/RtVbXOsA.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "163ms", + "MS-CV" : "PHXIhMQJ/EOiwXw/TK19iw.0", "retry-after" : "0", - "X-Azure-Ref" : "0APBYYAAAAADaKAtHh7FERIyLytZdea0xWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0LQPAYAAAAADPn7lLaBfzRobfsewb+8IRV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1f29-defd-8b3a0d000517\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1f29-defd-8b3a0d000517\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1f79-b5bb-a43a0d000a72\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1f79-b5bb-a43a0d000a72\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2454-eef0-8b3a0d0004a1\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-2454-eef0-8b3a0d0004a1\"}},\"displayName\":\"Added Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-24a7-b5bb-a43a0d000a74\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-24a7-b5bb-a43a0d000a74\"}},\"displayName\":\"Added Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", - "Date" : "Mon, 22 Mar 2021 19:29:03 GMT", + "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-07ed-6a0b-343a0d00c9d7\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-07ed-6a0b-343a0d00c9d7\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0824-0e04-343a0d00b713\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0824-0e04-343a0d00b713\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0b54-6a0b-343a0d00c9d9\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0b54-6a0b-343a0d00c9d9\"}},\"displayName\":\"Added Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0b88-0e04-343a0d00b715\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0b88-0e04-343a0d00b715\"}},\"displayName\":\"Added Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", + "Date" : "Tue, 08 Jun 2021 23:54:21 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:PIfgw5bBC47CuegXxAZkbbEFBj1MN_YYOVqH_rT36i01@thread.v2/participants/:remove?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:aXoucqFFbzfNJ4N9wkVl39Fwxn3EN0xiLAYb7Ia-fQw1@thread.v2/participants/:remove?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "247ms", - "MS-CV" : "IImxpTlJzkKLGexiwJ1f8g.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "282ms", + "MS-CV" : "/L24mMN4dE+vHBzmxDUAGQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0APBYYAAAAABNVprV7wp7RKilx72EMXt0WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0LQPAYAAAAAAtjpkbVUJ3QJEBlHvnzx8MV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:29:04 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:21 GMT" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:PIfgw5bBC47CuegXxAZkbbEFBj1MN_YYOVqH_rT36i01@thread.v2/participants/:remove?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:aXoucqFFbzfNJ4N9wkVl39Fwxn3EN0xiLAYb7Ia-fQw1@thread.v2/participants/:remove?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "280ms", - "MS-CV" : "cd5vlRAIik2rMEJjhE2cyw.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "478ms", + "MS-CV" : "UBekL0K58EOKntHB+4tDuw.0", "retry-after" : "0", - "X-Azure-Ref" : "0APBYYAAAAACn7ZyGRJXETaP5t5b7t4VRWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0LQPAYAAAAACiJlYeWToQRpdrIEPs+c71V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:29:04 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:22 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddSingleParticipantWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddSingleParticipantWithResponse[1].json index 9fe5b1bfc697e..b11deec8fe862 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddSingleParticipantWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddSingleParticipantWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:20 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:34 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "gxbZ4FVFC0CCsLvlQ1aTOw.0", - "X-Azure-Ref" : "0EPBYYAAAAACsubMS6is8SrmpYffx8okrWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-663e-b5bb-a43a0d000a91\"}}", - "x-ms-client-request-id" : "a25ca478-4ef2-464e-b29f-44bf66f4e8b1", + "X-Processing-Time" : "21ms", + "MS-CV" : "mKHxqeKGxkq637F7pIaHvQ.0", + "X-Azure-Ref" : "0OgPAYAAAAAC1tH4nJQffT6Myft+djBeBV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-41b1-6a0b-343a0d00c9fa\"}}", + "x-ms-client-request-id" : "de6796ef-b90b-4e2c-8ee8-93683bbe49f9", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:21 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:34 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "mUIlnH5tT0SMSU1LV1jlwA.0", - "X-Azure-Ref" : "0EPBYYAAAAABAWd46msavR7p4/vDSIRsBWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6690-eef0-8b3a0d0004ae\"}}", - "x-ms-client-request-id" : "c7e8136b-4a51-4d63-9166-7bc9e4d7e672", + "X-Processing-Time" : "22ms", + "MS-CV" : "8EJhkKSk2ka3Bra07CHqsA.0", + "X-Azure-Ref" : "0OgPAYAAAAADK4nDrtZEMQqDf+C36g/s8V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-41e6-6a0b-343a0d00c9fb\"}}", + "x-ms-client-request-id" : "94e7bb08-f7d5-4b2e-be78-7bb21bccb888", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:20 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:34 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "SmSqIb9E+EC5pPSFhane4w.0", - "X-Azure-Ref" : "0EfBYYAAAAABHEo6WGWxbSJWx7vPXbqUdWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-66e0-b5bb-a43a0d000a92\"}}", - "x-ms-client-request-id" : "a8674499-0d3c-4c9c-80b0-1ce0657fcfd7", + "X-Processing-Time" : "19ms", + "MS-CV" : "mKVFZfpvLUSxkBc8aSz7wA.0", + "X-Azure-Ref" : "0OgPAYAAAAABSp+/t0eGmSJnPPQTp+SdCV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-4218-6a0b-343a0d00c9fc\"}}", + "x-ms-client-request-id" : "d0802bb2-92ef-4699-926d-579db2381730", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,131 +75,137 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:21 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:34 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "euW3TSnzAEWGMSGCjht4NA.0", - "X-Azure-Ref" : "0EfBYYAAAAABPiONBYtPHSodfeaAELrDfWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6734-defd-8b3a0d000526\"}}", - "x-ms-client-request-id" : "3a409f53-52df-4ccf-b36a-ad405ebe553e", + "X-Processing-Time" : "22ms", + "MS-CV" : "hvTC91B+fUW3FMiRM8vaJg.0", + "X-Azure-Ref" : "0OgPAYAAAAAAMrM9TcZB3S6Zjigc4IKtyV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-424b-6a0b-343a0d00c9fd\"}}", + "x-ms-client-request-id" : "6d5380d3-c3b6-4071-b842-29477affa67f", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-663e-b5bb-a43a0d000a91/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-41b1-6a0b-343a0d00c9fa/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:20 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:34 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "141ms", - "MS-CV" : "bKbXo6ubv0qMeq3y6wHeeQ.0", - "X-Azure-Ref" : "0EfBYYAAAAACGKF+t8kqHRazFcQvHjB9lWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:20.4167231+00:00\"}", - "x-ms-client-request-id" : "f4bfee22-3a45-41bd-b8d7-a556e12b0fd6", + "X-Processing-Time" : "27ms", + "MS-CV" : "AwREeG10BUWrRw8DsaIl7w.0", + "X-Azure-Ref" : "0OgPAYAAAAACQH/4xtx7oRZWr3JY6h25XV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:34.0385749+00:00\"}", + "x-ms-client-request-id" : "45ee76ad-8e9f-4dff-a1e4-d634e762f77a", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "696ms", - "MS-CV" : "lgpq7KUJKkCceNsR3qjegA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0EfBYYAAAAAAaGpHdCmrzSrPmNgg9AJFQWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:FJPtFGYxqmRKNQps20ZDFyFkWlJu0n9D1MZm3DCm0Fo1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:21Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-663e-b5bb-a43a0d000a91\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-663e-b5bb-a43a0d000a91\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:22 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:35 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "336ms", + "MS-CV" : "5pvdVXl8/EKAJVRr8/kSoQ.0", + "X-Azure-Ref" : "0OwPAYAAAAACCbw8nZPiiQro9jrWd+3mOV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:CELb-FTavcGpACHYaj7s8rWDtWWfhocAN3pty9zxUp41@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:35Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-41b1-6a0b-343a0d00c9fa\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-41b1-6a0b-343a0d00c9fa\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AFJPtFGYxqmRKNQps20ZDFyFkWlJu0n9D1MZm3DCm0Fo1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3ACELb-FTavcGpACHYaj7s8rWDtWWfhocAN3pty9zxUp41@thread.v2" }, "Exception" : null }, { "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:21 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:35 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "XoRVqMmTDUKY0j1BaHgCcQ.0", - "X-Azure-Ref" : "0EvBYYAAAAABFKJ/oIOUiSI6NbWGjC96oWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6b25-b5bb-a43a0d000a93\"}}", - "x-ms-client-request-id" : "e68e0bd9-3522-482e-a45e-b8d1c6426b1e", + "X-Processing-Time" : "20ms", + "MS-CV" : "H8bv9BiDlkeX5a0YX9rJNg.0", + "X-Azure-Ref" : "0OwPAYAAAAAD8tvEoWZGsT56faaoXPKoNV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-443e-6a0b-343a0d00c9fe\"}}", + "x-ms-client-request-id" : "d751490f-92bd-46ca-98f3-b45bc19b619d", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:FJPtFGYxqmRKNQps20ZDFyFkWlJu0n9D1MZm3DCm0Fo1@thread.v2/participants/:add?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:CELb-FTavcGpACHYaj7s8rWDtWWfhocAN3pty9zxUp41@thread.v2/participants/:add?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "198ms", - "MS-CV" : "1Ll0Gpb+z0Sv0tamxWAGug.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "229ms", + "MS-CV" : "Z/BhG7qFnka9RfUJ12jb3w.0", "retry-after" : "0", - "X-Azure-Ref" : "0EvBYYAAAAADweJ17EGzkQ6ussATdRZ+jWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0OwPAYAAAAADGVMP81qLLRLi4VvAyVTHUV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "201", "Body" : "{}", - "Date" : "Mon, 22 Mar 2021 19:29:22 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:35 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:FJPtFGYxqmRKNQps20ZDFyFkWlJu0n9D1MZm3DCm0Fo1@thread.v2/participants?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:CELb-FTavcGpACHYaj7s8rWDtWWfhocAN3pty9zxUp41@thread.v2/participants?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "98ms", - "MS-CV" : "TRPHTzl/GU67blxfzV8tuQ.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "192ms", + "MS-CV" : "wciywAUFDEW5C1lhT1Vaqw.0", "retry-after" : "0", - "X-Azure-Ref" : "0EvBYYAAAAAAPrbmLqRbLR56jbRpV/ieJWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0OwPAYAAAAABao+BOAKcuQpggAkoT5wWTV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-663e-b5bb-a43a0d000a91\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-663e-b5bb-a43a0d000a91\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6690-eef0-8b3a0d0004ae\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6690-eef0-8b3a0d0004ae\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6b25-b5bb-a43a0d000a93\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6b25-b5bb-a43a0d000a93\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", - "Date" : "Mon, 22 Mar 2021 19:29:21 GMT", + "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-41b1-6a0b-343a0d00c9fa\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-41b1-6a0b-343a0d00c9fa\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-41e6-6a0b-343a0d00c9fb\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-41e6-6a0b-343a0d00c9fb\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-443e-6a0b-343a0d00c9fe\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-443e-6a0b-343a0d00c9fe\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", + "Date" : "Tue, 08 Jun 2021 23:54:35 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddSingleParticipant[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddSingleParticipant[1].json index 9fabd56ec3f46..f99320417ec1e 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddSingleParticipant[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canAddSingleParticipant[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:22 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:35 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "qiDfMtL0+Ey55cQvuAFnuQ.0", - "X-Azure-Ref" : "0EvBYYAAAAABAcHbzsGmSS5mF9QB889iSWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6cfb-eef0-8b3a0d0004af\"}}", - "x-ms-client-request-id" : "eb4442fd-4e54-4bae-9fc4-94a7effe62e5", + "X-Processing-Time" : "23ms", + "MS-CV" : "LyuNXEL+bE6bsqqf4F1rCA.0", + "X-Azure-Ref" : "0PAPAYAAAAADDMBng8PlMRqdkb9e3Ud7wV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-467e-6a0b-343a0d00c9ff\"}}", + "x-ms-client-request-id" : "d5c82551-daf6-49fb-a6b7-4edebf60ac9a", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:21 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:35 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "J7RhkebzYk6dKy/l4xeFWw.0", - "X-Azure-Ref" : "0EvBYYAAAAAAF5rEyCCI7SqutyPTtnZ10WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6d4c-b5bb-a43a0d000a94\"}}", - "x-ms-client-request-id" : "38c33818-6861-4fa0-9671-ca5a3159f0e7", + "X-Processing-Time" : "23ms", + "MS-CV" : "eA5qFtn4mU292HckbOItwg.0", + "X-Azure-Ref" : "0PAPAYAAAAADJxeUCxfYkTL/QbgXwRg07V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-46b1-6a0b-343a0d00ca00\"}}", + "x-ms-client-request-id" : "b0ab2975-0363-482c-9ed4-92c2659bb824", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:22 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:35 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "Z8Qizlxnq0qTOo/EvriN+w.0", - "X-Azure-Ref" : "0EvBYYAAAAABdQzRrW816TK4+pMUWHf9uWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6da0-defd-8b3a0d000527\"}}", - "x-ms-client-request-id" : "921ded1c-911c-4668-89fd-6c5478b94b7c", + "X-Processing-Time" : "22ms", + "MS-CV" : "8OVeRDtCwkaimeTK0hHsng.0", + "X-Azure-Ref" : "0PAPAYAAAAABif0rpSyX8RrtaQpQ/HjkxV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-46e5-6a0b-343a0d00ca01\"}}", + "x-ms-client-request-id" : "e4920275-5a9a-442a-b5d4-4ab3992c243c", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,131 +75,137 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:22 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:35 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "+3GHzm8YcUemZR5QASNdlw.0", - "X-Azure-Ref" : "0EvBYYAAAAAA8aaepFRT9ToWZ+goc/Y2CWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6df0-b5bb-a43a0d000a96\"}}", - "x-ms-client-request-id" : "6c305232-8d4b-4fe7-acc2-21836b7d905d", + "X-Processing-Time" : "22ms", + "MS-CV" : "CpJJFoNC3U2PEBFmXicSwQ.0", + "X-Azure-Ref" : "0PAPAYAAAAAAR1ag28NeyQruHAR/ovhiUV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-471b-6a0b-343a0d00ca02\"}}", + "x-ms-client-request-id" : "434d9f8a-1e98-4eaf-a7e6-9a5ccd31ed2f", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6cfb-eef0-8b3a0d0004af/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-467e-6a0b-343a0d00c9ff/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:23 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:36 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "148ms", - "MS-CV" : "0JuVCglGakuVCMoJ8yuQ0w.0", - "X-Azure-Ref" : "0EvBYYAAAAADwK6L6N0zBToBqTAWdC3HUWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:22.1494724+00:00\"}", - "x-ms-client-request-id" : "11b29fd3-cdfe-4260-b612-81c301f56700", + "X-Processing-Time" : "28ms", + "MS-CV" : "VXQNV3v34ECeNPDp31HJ/Q.0", + "X-Azure-Ref" : "0PAPAYAAAAACeVqNZ9YTDSL4uuwuCI8mvV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:35.251863+00:00\"}", + "x-ms-client-request-id" : "89f99362-7f9e-4e3a-a144-f899cc951b29", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "611ms", - "MS-CV" : "9rHGev0S3E2Jw3mcQbilbA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0E/BYYAAAAABOfQQEoORUT6VHkHGOXNfWWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:TAEt9KxKQdAeSNeJvpKtsm6FNQl86gTh1VrwBwXu2KE1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:23Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6cfb-eef0-8b3a0d0004af\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6cfb-eef0-8b3a0d0004af\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:22 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:36 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "532ms", + "MS-CV" : "Ucui4NXTI0CAlDIMDjVZqQ.0", + "X-Azure-Ref" : "0PAPAYAAAAABLMGAInvVcTqvENwPjki/dV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:XN1GiNkMImnhysgx21VQBmMsrPaAd72mDvQLsPgGFj81@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:36Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-467e-6a0b-343a0d00c9ff\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-467e-6a0b-343a0d00c9ff\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ATAEt9KxKQdAeSNeJvpKtsm6FNQl86gTh1VrwBwXu2KE1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AXN1GiNkMImnhysgx21VQBmMsrPaAd72mDvQLsPgGFj81@thread.v2" }, "Exception" : null }, { "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:23 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:36 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "TsZ5Bj9ndkOZT7HZOkghwg.0", - "X-Azure-Ref" : "0E/BYYAAAAADx+j75CzYUTqv/AQF5JTUjWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-71b2-defd-8b3a0d000529\"}}", - "x-ms-client-request-id" : "3fb52b50-609f-4765-84e7-488f0478c467", + "X-Processing-Time" : "24ms", + "MS-CV" : "eHj0jff58kaMCzD3ve+ppA.0", + "X-Azure-Ref" : "0PAPAYAAAAAAAXBoyBdsSQIYuxbRQYpAcV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-49c2-6a0b-343a0d00ca03\"}}", + "x-ms-client-request-id" : "55d929d1-044c-40b1-acba-0e868b0e1740", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:TAEt9KxKQdAeSNeJvpKtsm6FNQl86gTh1VrwBwXu2KE1@thread.v2/participants/:add?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:XN1GiNkMImnhysgx21VQBmMsrPaAd72mDvQLsPgGFj81@thread.v2/participants/:add?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "283ms", - "MS-CV" : "f9uGhxjPCEamYkAjdUdapw.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "136ms", + "MS-CV" : "GPxRsgrAL0Ooz/tGymG3TQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0E/BYYAAAAAAyX8Irdt9rTJqc0ExnmDByWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0PAPAYAAAAABtADjulq9kSKBvRwND9XasV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "201", "Body" : "{}", - "Date" : "Mon, 22 Mar 2021 19:29:23 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:36 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:TAEt9KxKQdAeSNeJvpKtsm6FNQl86gTh1VrwBwXu2KE1@thread.v2/participants?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:XN1GiNkMImnhysgx21VQBmMsrPaAd72mDvQLsPgGFj81@thread.v2/participants?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "132ms", - "MS-CV" : "50BT+rjLnU26wQg4ABvX/w.0", + "api-supported-versions" : "2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "93ms", + "MS-CV" : "R7F4AxD9+EuXuhLZfNZKRg.0", "retry-after" : "0", - "X-Azure-Ref" : "0FPBYYAAAAAB5CKKXhtW2TZ/0Wj1f/ECmWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0PQPAYAAAAABSmOO9EkhiRol55VZvEgaAV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6cfb-eef0-8b3a0d0004af\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6cfb-eef0-8b3a0d0004af\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6d4c-b5bb-a43a0d000a94\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6d4c-b5bb-a43a0d000a94\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-71b2-defd-8b3a0d000529\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-71b2-defd-8b3a0d000529\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", - "Date" : "Mon, 22 Mar 2021 19:29:24 GMT", + "Body" : "{\"value\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-467e-6a0b-343a0d00c9ff\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-467e-6a0b-343a0d00c9ff\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-46b1-6a0b-343a0d00ca00\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-46b1-6a0b-343a0d00ca00\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-49c2-6a0b-343a0d00ca03\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-49c2-6a0b-343a0d00ca03\"}},\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}]}", + "Date" : "Tue, 08 Jun 2021 23:54:36 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canDeleteExistingMessageWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canDeleteExistingMessageWithResponse[1].json index e09cbb763011c..4622e5f6cb850 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canDeleteExistingMessageWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canDeleteExistingMessageWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:00 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:18 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "M7H9SoL9/EKXDqkb9y4ebg.0", - "X-Azure-Ref" : "0/O9YYAAAAADlXnOHRnqSR6jbysSxUjWiWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-17c2-eef0-8b3a0d00049f\"}}", - "x-ms-client-request-id" : "68a51440-2f64-4c20-a81b-994eb4ff4aa0", + "X-Processing-Time" : "24ms", + "MS-CV" : "TYmLxMU2MU2Mlu9XgRkS1A.0", + "X-Azure-Ref" : "0KgPAYAAAAAC9p/HbGQviTq7ATWjq6fLmV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0362-6a0b-343a0d00c9d5\"}}", + "x-ms-client-request-id" : "4307b195-1489-4ed5-b7b4-3f704d0375e1", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:00 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:18 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "4/HlDibpLku79n/yCm04oA.0", - "X-Azure-Ref" : "0/O9YYAAAAAC/+fAkErFOSZQD8G/w7ZB3WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1812-b5bb-a43a0d000a70\"}}", - "x-ms-client-request-id" : "9c37940b-c05f-4640-8b67-a481f41a7f93", + "X-Processing-Time" : "24ms", + "MS-CV" : "1AqGnVZzzEq4jDyflnbnXQ.0", + "X-Azure-Ref" : "0KgPAYAAAAAAyedVuDxjeTZdSAJTd0heLV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-039a-0e04-343a0d00b711\"}}", + "x-ms-client-request-id" : "836edc49-24c8-4410-baf1-aaa4eff4cc78", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:00 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:18 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "9ms", - "MS-CV" : "QiCjVvSdCUi31kbHHw71Ug.0", - "X-Azure-Ref" : "0/O9YYAAAAAC9rXnnwuzZRb6ln+JSZWhrWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1862-defd-8b3a0d000515\"}}", - "x-ms-client-request-id" : "b634ee14-80ca-4ecf-bceb-863a04a41569", + "X-Processing-Time" : "21ms", + "MS-CV" : "QLGBRG+zm0q1O3k59LnvSQ.0", + "X-Azure-Ref" : "0KgPAYAAAAADBcLzvrIbyRZGe8QPSnltgV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-03cd-6a0b-343a0d00c9d6\"}}", + "x-ms-client-request-id" : "d8c69abb-9b2a-48b0-9eb5-7510d1b4a44e", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,107 +75,112 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:00 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:18 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "K53xCzaw6Um8N23vC/OtAg.0", - "X-Azure-Ref" : "0/e9YYAAAAAAuzrPs72rAR5KGiVKjVnIhWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-18b2-b5bb-a43a0d000a71\"}}", - "x-ms-client-request-id" : "703c9213-3340-4e6d-ad93-ebb357806ddb", + "X-Processing-Time" : "23ms", + "MS-CV" : "O7G4WNesuk6iVdDFhTQMPg.0", + "X-Azure-Ref" : "0KgPAYAAAAABSxJlSxA+PQ4ARaJWmDl9zV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0401-0e04-343a0d00b712\"}}", + "x-ms-client-request-id" : "d862d28e-86f0-452c-bce0-d114e70a650e", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-17c2-eef0-8b3a0d00049f/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0362-6a0b-343a0d00c9d5/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:00 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:18 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "144ms", - "MS-CV" : "n/nXHnDGR0uqvRPQBOWIlA.0", - "X-Azure-Ref" : "0/e9YYAAAAABpx7CYcOenS7G3PKV4kLrqWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:00.3242719+00:00\"}", - "x-ms-client-request-id" : "5e0dbdce-f24c-4071-8595-88488de90590", + "X-Processing-Time" : "30ms", + "MS-CV" : "Rvg7Iu7jKEulewyB85ohMg.0", + "X-Azure-Ref" : "0KwPAYAAAAACJLBzmlHEsRarW+7WEBdiHV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:18.082554+00:00\"}", + "x-ms-client-request-id" : "3a7751ab-9d80-4432-b855-e2e00ba56ad0", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "790ms", - "MS-CV" : "dN0Pg4mgn0K4gBpVTC3Z/A.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0/e9YYAAAAACDEr4NSjulSphs5YmXHExqWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:VXKYgduecTKiKLeD5Hk95qTEhc35rH57MyzQ6ogc5q81@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:01Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-17c2-eef0-8b3a0d00049f\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-17c2-eef0-8b3a0d00049f\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:01 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:19 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "533ms", + "MS-CV" : "jiJXFEojrU6sJET9eTXqtw.0", + "X-Azure-Ref" : "0KwPAYAAAAABnb6scwwvVRrALMPW8RERLV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:890StCAp2sZA5sRXhHuK1cHTnwSeGDF9RT54O-0_txU1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:19Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0362-6a0b-343a0d00c9d5\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-0362-6a0b-343a0d00c9d5\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AVXKYgduecTKiKLeD5Hk95qTEhc35rH57MyzQ6ogc5q81@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A890StCAp2sZA5sRXhHuK1cHTnwSeGDF9RT54O-0_txU1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:VXKYgduecTKiKLeD5Hk95qTEhc35rH57MyzQ6ogc5q81@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:890StCAp2sZA5sRXhHuK1cHTnwSeGDF9RT54O-0_txU1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "204ms", - "MS-CV" : "LCcft+zm9UyJDgPL8+jsoQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0/u9YYAAAAAAhoHMdkK+JQ77VdyBFVHizWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441342315\"}", - "Date" : "Mon, 22 Mar 2021 19:29:01 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:19 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "126ms", + "MS-CV" : "esp7S82cMUuV9fGGNKarDA.0", + "X-Azure-Ref" : "0KwPAYAAAAADgJ5YrZV2nSKVe9cUBN7PSV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196459727\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AVXKYgduecTKiKLeD5Hk95qTEhc35rH57MyzQ6ogc5q81@thread.v2/messages/1616441342315" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A890StCAp2sZA5sRXhHuK1cHTnwSeGDF9RT54O-0_txU1@thread.v2/messages/1623196459727" }, "Exception" : null }, { "Method" : "DELETE", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:VXKYgduecTKiKLeD5Hk95qTEhc35rH57MyzQ6ogc5q81@thread.v2/messages/1616441342315?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:890StCAp2sZA5sRXhHuK1cHTnwSeGDF9RT54O-0_txU1@thread.v2/messages/1623196459727?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "232ms", - "MS-CV" : "n9hSHTFtrkOa56z7r8jFaw.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "124ms", + "MS-CV" : "LljM6NUP4kOxMDl2JAOLoA.0", "retry-after" : "0", - "X-Azure-Ref" : "0/u9YYAAAAAC7tzCkvp8CTarDBaR1KcEaWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0KwPAYAAAAACh+azgL9DDQbedTstjdSlHV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:29:02 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:19 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canDeleteExistingMessage[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canDeleteExistingMessage[1].json index 2cd00907dcee1..a3012309ee774 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canDeleteExistingMessage[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canDeleteExistingMessage[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:13 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:29 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "aKS7dffv8k2zhPSBE0rxog.0", - "X-Azure-Ref" : "0CvBYYAAAAADiVf/iYFUHSaBI9kcmJsDwWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-4d50-defd-8b3a0d00051f\"}}", - "x-ms-client-request-id" : "256c3a66-579a-44ff-bc8e-b9f69fa0632b", + "X-Processing-Time" : "23ms", + "MS-CV" : "PnC1cRbKDk20iZnIGiJpnQ.0", + "X-Azure-Ref" : "0NQPAYAAAAABil5JieiBhSYCYzBvbmOgQV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2c55-6a0b-343a0d00c9e7\"}}", + "x-ms-client-request-id" : "d74c6281-30f6-469d-b28a-82e977605903", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:13 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:29 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "FaMGUs8UbUWZpRSpE209cA.0", - "X-Azure-Ref" : "0CvBYYAAAAADHjwgYnA6JQ52qXvbhrzV0WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-4da1-b5bb-a43a0d000a84\"}}", - "x-ms-client-request-id" : "3ff10fed-59e8-4d9e-a15a-57db2e1d7905", + "X-Processing-Time" : "25ms", + "MS-CV" : "M4pS0HeM+kyPJhZTVrLXzA.0", + "X-Azure-Ref" : "0NQPAYAAAAAAXdUGvwaGhTay/xKdX9f36V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2c8c-6a0b-343a0d00c9e8\"}}", + "x-ms-client-request-id" : "e4d5775c-fa8d-4af7-bcdb-a91a741147e1", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:13 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:29 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "ncrGmkjaMUu6j9JrxQRUxw.0", - "X-Azure-Ref" : "0CvBYYAAAAAAbCU++vKBgQYQYcK6GNIDHWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-4df4-eef0-8b3a0d0004aa\"}}", - "x-ms-client-request-id" : "214005e8-7ef5-49dd-b05f-ac2114c51be3", + "X-Processing-Time" : "22ms", + "MS-CV" : "7PG/naupf0K2ih52baXg1Q.0", + "X-Azure-Ref" : "0NQPAYAAAAACOabUg8aV+Q79nHsSHgZ9hV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2cc5-6a0b-343a0d00c9e9\"}}", + "x-ms-client-request-id" : "78fd74dd-8c4c-4ddf-bd7f-e5089c6b369a", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,107 +75,112 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:13 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:29 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "yJ72YqCrc0mbQKmUM9cpEg.0", - "X-Azure-Ref" : "0CvBYYAAAAAD0ZNmN6yFlRYROmAC7riDeWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-4e47-b5bb-a43a0d000a85\"}}", - "x-ms-client-request-id" : "2f75fa41-d9f4-4e91-97ca-04759d537508", + "X-Processing-Time" : "24ms", + "MS-CV" : "zE/bEMNE30ud+3FNKb7O3Q.0", + "X-Azure-Ref" : "0NQPAYAAAAAChookHNaWoSp/rLmBnDS4WV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2cfa-6a0b-343a0d00c9ea\"}}", + "x-ms-client-request-id" : "7476a18e-1ae8-444b-8d48-b9ca9c99153d", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-4d50-defd-8b3a0d00051f/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2c55-6a0b-343a0d00c9e7/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:14 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:29 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "159ms", - "MS-CV" : "dJDUzX1HFkaFQDlyoMcpqg.0", - "X-Azure-Ref" : "0CvBYYAAAAABqW8Fv7ME1QZzrsCJk/5cMWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:14.0535607+00:00\"}", - "x-ms-client-request-id" : "a3cc6bca-2a44-4d3e-b434-977b28b4aac7", + "X-Processing-Time" : "30ms", + "MS-CV" : "I8UYtWhGb0SBW+HLsAaWCQ.0", + "X-Azure-Ref" : "0NQPAYAAAAAAQ6fQbFEB3Sb98rkctdBUyV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:28.5708515+00:00\"}", + "x-ms-client-request-id" : "544c7fe5-462d-4820-9e8b-ea68f8b0e87d", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "653ms", - "MS-CV" : "SiW7rJtm+EOG39bTj4IQAQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0C/BYYAAAAAB+ZhPuNVk1RrgJYEICaOxjWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:ngfg9yymDTrgT9ejVDzOhe6DkvPN7ULf4OsxQGrz5-M1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:15Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-4d50-defd-8b3a0d00051f\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-4d50-defd-8b3a0d00051f\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:14 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:30 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "648ms", + "MS-CV" : "tNclzsHBbkevLl03w+QOzg.0", + "X-Azure-Ref" : "0NQPAYAAAAAD7OdemaLthRLPLhezNjUAzV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:2aW5I6CC8Jbx-nioziYMx4ta_vi85NWm4kbOvA_Ddn41@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:29Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2c55-6a0b-343a0d00c9e7\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2c55-6a0b-343a0d00c9e7\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3Angfg9yymDTrgT9ejVDzOhe6DkvPN7ULf4OsxQGrz5-M1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A2aW5I6CC8Jbx-nioziYMx4ta_vi85NWm4kbOvA_Ddn41@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:ngfg9yymDTrgT9ejVDzOhe6DkvPN7ULf4OsxQGrz5-M1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:2aW5I6CC8Jbx-nioziYMx4ta_vi85NWm4kbOvA_Ddn41@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "135ms", - "MS-CV" : "LL8Lgx5tnEyOz5QEOGlYTQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0C/BYYAAAAACygE0arhc3TrThEqOCQEsjWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441355862\"}", - "Date" : "Mon, 22 Mar 2021 19:29:14 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:30 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "494ms", + "MS-CV" : "PqUay0OfuEqPJ6Dv9Ft/cg.0", + "X-Azure-Ref" : "0NgPAYAAAAACsv/3QIBroRKTymOQTF13BV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196470609\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3Angfg9yymDTrgT9ejVDzOhe6DkvPN7ULf4OsxQGrz5-M1@thread.v2/messages/1616441355862" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A2aW5I6CC8Jbx-nioziYMx4ta_vi85NWm4kbOvA_Ddn41@thread.v2/messages/1623196470609" }, "Exception" : null }, { "Method" : "DELETE", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:ngfg9yymDTrgT9ejVDzOhe6DkvPN7ULf4OsxQGrz5-M1@thread.v2/messages/1616441355862?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:2aW5I6CC8Jbx-nioziYMx4ta_vi85NWm4kbOvA_Ddn41@thread.v2/messages/1623196470609?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "141ms", - "MS-CV" : "3E0g0oqtU0GMADtiUa682A.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "322ms", + "MS-CV" : "R2m6SqWK5kqmCNqZLFMEgw.0", "retry-after" : "0", - "X-Azure-Ref" : "0C/BYYAAAAADzdrPFXvbESZJrTW7I3snqWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0NgPAYAAAAADmHBvZnHfiRLMbJnT2Oi7hV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:29:15 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:30 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canGetChatThreadPropertiesWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canGetChatThreadPropertiesWithResponse[1].json index 33052c3a4e2ec..42393460608a8 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canGetChatThreadPropertiesWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canGetChatThreadPropertiesWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:08 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:26 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "snihVPzosEyvLS9XiP2xjA.0", - "X-Azure-Ref" : "0BfBYYAAAAABC4K6SH69hSrsXbJaR9h6LWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-38ee-defd-8b3a0d00051c\"}}", - "x-ms-client-request-id" : "6ccbc4de-a789-4b7d-b3c5-b2147a9dec0d", + "X-Processing-Time" : "22ms", + "MS-CV" : "7ZuwiQInpU+UFq8TOyVnlw.0", + "X-Azure-Ref" : "0MgPAYAAAAADBRwIVU2ReRajlPWGiZsd8V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2064-6a0b-343a0d00c9df\"}}", + "x-ms-client-request-id" : "a5c661bb-9f72-4920-b229-569c55e355a8", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:08 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:26 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "pv9Y78No+Ee0xHMm6TcmfA.0", - "X-Azure-Ref" : "0BfBYYAAAAABdsI5fSgyaQZ745mrms/m0WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-3941-b5bb-a43a0d000a7a\"}}", - "x-ms-client-request-id" : "88d7a33e-5a4b-4f06-86fa-54e0d2d23f6f", + "X-Processing-Time" : "23ms", + "MS-CV" : "a5MTwg4TdUKWJSoP3V2WYA.0", + "X-Azure-Ref" : "0MgPAYAAAAADLpHh8rh7jQ4I8uWdeidF6V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-209b-f40f-343a0d00182e\"}}", + "x-ms-client-request-id" : "f283b616-3657-42c1-a845-0dc257a34f59", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:08 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:26 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "u1W4CVTAw0i+1lbI383GDw.0", - "X-Azure-Ref" : "0BfBYYAAAAABQDLLcSSIJRqC/MhnOt5FSWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-3995-eef0-8b3a0d0004a6\"}}", - "x-ms-client-request-id" : "4857db82-aefa-48f5-8461-53af8d7ed54b", + "X-Processing-Time" : "23ms", + "MS-CV" : "P3rHcb5J4UqzXu5HL0CHOA.0", + "X-Azure-Ref" : "0MgPAYAAAAADPRwAT0as4QIrUf3V4/PP9V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-20d2-6a0b-343a0d00c9e0\"}}", + "x-ms-client-request-id" : "1c5c46a3-3c30-4335-b2bf-5b66fcbec671", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,87 +75,91 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:08 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:26 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "jnRQKJQG8Eu0Mo7XxXyBFw.0", - "X-Azure-Ref" : "0BfBYYAAAAAAUDu7MZrtoTbmsHEVzPeb0WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-39e5-b5bb-a43a0d000a7b\"}}", - "x-ms-client-request-id" : "8990bf19-be80-43d4-ba59-30f3fc507c44", + "X-Processing-Time" : "22ms", + "MS-CV" : "QcTra1MTv0azTQ8Rwgx6eA.0", + "X-Azure-Ref" : "0MgPAYAAAAADkvT3MVsvOTItpB7Ymy0ZAV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-210c-f40f-343a0d00182f\"}}", + "x-ms-client-request-id" : "923540d2-69ad-48fd-b34d-03445a7a2f32", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-38ee-defd-8b3a0d00051c/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2064-6a0b-343a0d00c9df/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:08 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:26 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "160ms", - "MS-CV" : "TVOfgClxh0Oqk942ku4tDQ.0", - "X-Azure-Ref" : "0BfBYYAAAAACxIo5tMHWCQLqk244gJtK2WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:08.8385579+00:00\"}", - "x-ms-client-request-id" : "db99a7c4-f417-446b-8971-6d2774047e15", + "X-Processing-Time" : "30ms", + "MS-CV" : "1SBWsW9XS0OQAaEbgJ2Uqg.0", + "X-Azure-Ref" : "0MgPAYAAAAAAD+hv7cYt+QoSr0Q5Lh3CyV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:25.5100373+00:00\"}", + "x-ms-client-request-id" : "52ac4fff-839f-4b3a-b14e-1634a7775a54", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "975ms", - "MS-CV" : "C55dBXgpZE+WaaT8WhZ36A.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0BfBYYAAAAADleAUwT2BeQrsVzF24pui7WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:xHo1CYqzY9VwVL376eQGYZxVBjbpzndGgyJHTT4wdqQ1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:10Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-38ee-defd-8b3a0d00051c\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-38ee-defd-8b3a0d00051c\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:10 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:26 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "375ms", + "MS-CV" : "Ep/PLph8kU6Dx6RD0Fa2ZQ.0", + "X-Azure-Ref" : "0MgPAYAAAAADwfGDtIbReTIqGSjTClA41V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:kktNjmh1H4LZemYL_ums0SsXrC0nA-a0HF2yQDxO42Y1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:26Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2064-6a0b-343a0d00c9df\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2064-6a0b-343a0d00c9df\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AxHo1CYqzY9VwVL376eQGYZxVBjbpzndGgyJHTT4wdqQ1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AkktNjmh1H4LZemYL_ums0SsXrC0nA-a0HF2yQDxO42Y1@thread.v2" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:xHo1CYqzY9VwVL376eQGYZxVBjbpzndGgyJHTT4wdqQ1@thread.v2?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:kktNjmh1H4LZemYL_ums0SsXrC0nA-a0HF2yQDxO42Y1@thread.v2?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "95ms", - "MS-CV" : "0SfPDRiE8Uifmibq0UGIrA.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "81ms", + "MS-CV" : "NvBm0/KD60ObMOkl7vnDRg.0", "retry-after" : "0", - "X-Azure-Ref" : "0BvBYYAAAAADq4FYHvrdLT7ca5/VSCr7dWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0MgPAYAAAAAD1TGQYbAEfR7PdrbRBB/emV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"19:xHo1CYqzY9VwVL376eQGYZxVBjbpzndGgyJHTT4wdqQ1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:10Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-38ee-defd-8b3a0d00051c\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-38ee-defd-8b3a0d00051c\"}}}", - "Date" : "Mon, 22 Mar 2021 19:29:10 GMT", + "Body" : "{\"id\":\"19:kktNjmh1H4LZemYL_ums0SsXrC0nA-a0HF2yQDxO42Y1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:26Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2064-6a0b-343a0d00c9df\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2064-6a0b-343a0d00c9df\"}}}", + "Date" : "Tue, 08 Jun 2021 23:54:26 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canGetChatThreadProperties[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canGetChatThreadProperties[1].json index df4e160beb1a7..3248312872d06 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canGetChatThreadProperties[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canGetChatThreadProperties[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:16 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:31 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "WYUtvC4QAEikY36cAS7JDg.0", - "X-Azure-Ref" : "0DPBYYAAAAAC5SOppFFgdQ7KjMN8RzMKzWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-539f-eef0-8b3a0d0004ab\"}}", - "x-ms-client-request-id" : "f13ad817-e83f-4192-ae8e-9aad3c4e746e", + "X-Processing-Time" : "24ms", + "MS-CV" : "1OKfgmcb+kaBMcmywdEpAw.0", + "X-Azure-Ref" : "0NwPAYAAAAABIUQ+omKDiRa4mulmQNxckV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-338d-6a0b-343a0d00c9ec\"}}", + "x-ms-client-request-id" : "a4868f7e-43fb-42ee-a78c-69aab2915842", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:15 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:31 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "8qcNtCcPyUi8kcAbkbOr1w.0", - "X-Azure-Ref" : "0DPBYYAAAAADsEjti2POCQaz8Ct18HC4vWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-53ef-b5bb-a43a0d000a87\"}}", - "x-ms-client-request-id" : "e019b9fa-5995-4471-a8c7-d5357d605f83", + "X-Processing-Time" : "23ms", + "MS-CV" : "SZuLVF9kykOAVor0OeXiBg.0", + "X-Azure-Ref" : "0NwPAYAAAAABS2C00J5JVS7v1+mpEuzI3V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-33c2-6a0b-343a0d00c9ed\"}}", + "x-ms-client-request-id" : "358a2e7a-3e96-4e3d-9c87-7c21f9cdfe2e", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:16 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:31 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "SCbhSotXsUSvJNMNAryyJw.0", - "X-Azure-Ref" : "0DPBYYAAAAAARJhahcrHSSpRvHtRKoGWGWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-5443-defd-8b3a0d000522\"}}", - "x-ms-client-request-id" : "2b9aa2a1-5cbd-4628-b635-8cfd8110022f", + "X-Processing-Time" : "23ms", + "MS-CV" : "qH+yRvaTQUydBB5JqhElWA.0", + "X-Azure-Ref" : "0NwPAYAAAAABGA3b1NsvnR5oJbqXT6pFWV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-33f6-6a0b-343a0d00c9ee\"}}", + "x-ms-client-request-id" : "dd3cad30-ba77-4e1f-92f7-02294893c242", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,87 +75,91 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:15 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:31 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "bl/yUhvagkembzbAinvzIw.0", - "X-Azure-Ref" : "0DPBYYAAAAABFvIPVPUkDSLyHcaZpHxCEWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-5496-b5bb-a43a0d000a88\"}}", - "x-ms-client-request-id" : "77c97215-1bde-497c-a060-0c69d0bb74c0", + "X-Processing-Time" : "24ms", + "MS-CV" : "iPipsjvUNkCPtjTMR4Aw3w.0", + "X-Azure-Ref" : "0NwPAYAAAAACw2PILRy8sQbGqVTmf0iPOV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-342d-6a0b-343a0d00c9ef\"}}", + "x-ms-client-request-id" : "f7b7abb1-76e0-4975-94a0-a681a43c3aa2", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-539f-eef0-8b3a0d0004ab/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-338d-6a0b-343a0d00c9ec/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:16 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:31 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "147ms", - "MS-CV" : "Si4mXj5Q2EeNXWE2rH6gGg.0", - "X-Azure-Ref" : "0DPBYYAAAAACW8PmFPiU4QL8EbgbQf769WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:15.6579905+00:00\"}", - "x-ms-client-request-id" : "26a8990e-0227-4d47-8be0-06b9b099aaf7", + "X-Processing-Time" : "29ms", + "MS-CV" : "tDZgOz1rBkiSVc0UbG4M+w.0", + "X-Azure-Ref" : "0NwPAYAAAAACZPzqN+fpRRYKW3CIDh9S8V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:30.4062231+00:00\"}", + "x-ms-client-request-id" : "0ae10294-52f8-48f2-bf1d-2344d5e875b2", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "713ms", - "MS-CV" : "8ZiApTAOQE+JLdxP1eFutw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0DPBYYAAAAAA+EYVCdl1iT7aJY48GQCVXWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:mz6yKmu29b0TMz_eG0X-JAhsF8KqKWLE4aEHRjVo4541@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:16Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-539f-eef0-8b3a0d0004ab\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-539f-eef0-8b3a0d0004ab\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:16 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:31 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "374ms", + "MS-CV" : "cc8ztMuKNUSlPPmw/4Nf9A.0", + "X-Azure-Ref" : "0NwPAYAAAAACAI0zL6p0iSJyDvwHNTcwQV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:R4liDIMeZKumtFmzggjrqPz9M1mo_jqrOmwD0AMmHus1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:31Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-338d-6a0b-343a0d00c9ec\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-338d-6a0b-343a0d00c9ec\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3Amz6yKmu29b0TMz_eG0X-JAhsF8KqKWLE4aEHRjVo4541@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AR4liDIMeZKumtFmzggjrqPz9M1mo_jqrOmwD0AMmHus1@thread.v2" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:mz6yKmu29b0TMz_eG0X-JAhsF8KqKWLE4aEHRjVo4541@thread.v2?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:R4liDIMeZKumtFmzggjrqPz9M1mo_jqrOmwD0AMmHus1@thread.v2?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "144ms", - "MS-CV" : "xUkO3GSby0yGbZhd/IanUQ.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "81ms", + "MS-CV" : "mC7rJmvag06+u/gPjt/4rg.0", "retry-after" : "0", - "X-Azure-Ref" : "0DfBYYAAAAAAHtXBdU7CRRpS8PbOMiZmkWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0NwPAYAAAAABRebFKK6V2R7Hseekt+tkwV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"19:mz6yKmu29b0TMz_eG0X-JAhsF8KqKWLE4aEHRjVo4541@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:16Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-539f-eef0-8b3a0d0004ab\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-539f-eef0-8b3a0d0004ab\"}}}", - "Date" : "Mon, 22 Mar 2021 19:29:17 GMT", + "Body" : "{\"id\":\"19:R4liDIMeZKumtFmzggjrqPz9M1mo_jqrOmwD0AMmHus1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:31Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-338d-6a0b-343a0d00c9ec\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-338d-6a0b-343a0d00c9ec\"}}}", + "Date" : "Tue, 08 Jun 2021 23:54:31 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListMessagesWithOptionsSync[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListMessagesWithOptionsSync[1].json index 696ec9c4d9c3b..ac17a40a5e7f4 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListMessagesWithOptionsSync[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListMessagesWithOptionsSync[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:58 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:17 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "EJCya8e9C0qon1lqlEopNg.0", - "X-Azure-Ref" : "0++9YYAAAAAACAGTd+elaR4g6rR7qK4qxWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-112f-b5bb-a43a0d000a6e\"}}", - "x-ms-client-request-id" : "90d502d1-38f2-48a5-9c46-775ad154d14a", + "X-Processing-Time" : "24ms", + "MS-CV" : "HkG2q7S+o06YwCHJzplPwA.0", + "X-Azure-Ref" : "0KQPAYAAAAABvQ8grAvhuTI8Mo9gNq8+MV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe24-0e04-343a0d00b70f\"}}", + "x-ms-client-request-id" : "11307dc0-c561-4b94-b0b0-b328c1a2dea0", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:58 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:17 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "it0Nz7g9sUyAzJ8751nkrQ.0", - "X-Azure-Ref" : "0++9YYAAAAABhuKnyAzo2RLhdqwg5HvdJWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1181-eef0-8b3a0d00049d\"}}", - "x-ms-client-request-id" : "970a1143-ee60-401a-9f2a-b760469b8bdc", + "X-Processing-Time" : "22ms", + "MS-CV" : "Q5qDmEr3UEaEEH+A3JkUyg.0", + "X-Azure-Ref" : "0KQPAYAAAAACLZvEoPCHCQJUwiNXjs14LV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe58-6a0b-343a0d00c9d3\"}}", + "x-ms-client-request-id" : "6b55eb5c-f210-4f99-9835-96233dd8a36b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:58 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:17 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "9DFbqeejJkmdPq6vci6LvQ.0", - "X-Azure-Ref" : "0++9YYAAAAAB5484RrOURS4cV4OSlKWVVWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-11d0-b5bb-a43a0d000a6f\"}}", - "x-ms-client-request-id" : "bd8e7dda-25e6-443b-ae3a-974f0a968622", + "X-Processing-Time" : "23ms", + "MS-CV" : "Zd/0T1oi8EOHyjQSRWNFvQ.0", + "X-Azure-Ref" : "0KQPAYAAAAAB6wIkdNWbpTYyF3tyTuw92V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe8c-0e04-343a0d00b710\"}}", + "x-ms-client-request-id" : "78af137c-83af-455b-a465-4ba3880cb470", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,131 +75,137 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:58 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:17 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "aawQp0BLA0SHgZvOLnkXNw.0", - "X-Azure-Ref" : "0++9YYAAAAAD4frlauK61TaayOA+RqUaTWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1223-defd-8b3a0d00050c\"}}", - "x-ms-client-request-id" : "91d20ceb-5fb7-42fa-bc34-d2ae6fc5a657", + "X-Processing-Time" : "23ms", + "MS-CV" : "p3M9vLm+Z0a0omnlAv5RSQ.0", + "X-Azure-Ref" : "0KQPAYAAAAADKauIdqq/cRrfmwxMbYlCvV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fec1-6a0b-343a0d00c9d4\"}}", + "x-ms-client-request-id" : "1517da64-0bb3-4ea8-8366-5b062cbfc8cf", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-112f-b5bb-a43a0d000a6e/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe24-0e04-343a0d00b70f/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:59 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:17 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "126ms", - "MS-CV" : "sHIwLFqDEkGkrnk04rP/Ag.0", - "X-Azure-Ref" : "0++9YYAAAAAD6oFYTMpJFTIEGAKYq3OLQWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:58.624588+00:00\"}", - "x-ms-client-request-id" : "04720de3-9545-407d-a773-b2951f4701c5", + "X-Processing-Time" : "29ms", + "MS-CV" : "zm2iE4WP4EeC43rbdJf0gQ.0", + "X-Azure-Ref" : "0KQPAYAAAAACjJwYK+nLjTK89wohK3HYKV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:16.73248+00:00\"}", + "x-ms-client-request-id" : "bfd6c851-bcae-4173-9815-973634dcbd3e", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "603ms", - "MS-CV" : "KPuYUjSxNE++g8glb0RwWQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0++9YYAAAAAAFjHMGUdG6RKftbeHV2oaxWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:OefeBhxH6761XwJ2u4aPXMSZGltENofZwSI0jmVATE01@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:59Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-112f-b5bb-a43a0d000a6e\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-112f-b5bb-a43a0d000a6e\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:59 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:18 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "469ms", + "MS-CV" : "Wr+UBNqKMUerJ2S7j5VLwA.0", + "X-Azure-Ref" : "0KQPAYAAAAABFwGdLUGDIS5y/qugR2wctV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:EdXBrGK1qwdOBIvRhAaECiiNWI27E-qSmlbcx5F5ZuA1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:17Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe24-0e04-343a0d00b70f\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe24-0e04-343a0d00b70f\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AOefeBhxH6761XwJ2u4aPXMSZGltENofZwSI0jmVATE01@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AEdXBrGK1qwdOBIvRhAaECiiNWI27E-qSmlbcx5F5ZuA1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:OefeBhxH6761XwJ2u4aPXMSZGltENofZwSI0jmVATE01@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:EdXBrGK1qwdOBIvRhAaECiiNWI27E-qSmlbcx5F5ZuA1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "157ms", - "MS-CV" : "zYfRHzXKv0u6ncybfjXl0w.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0/O9YYAAAAAAVFB7IRx7PTJKLbXLqhF2lWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441340391\"}", - "Date" : "Mon, 22 Mar 2021 19:28:59 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:18 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "135ms", + "MS-CV" : "cWLZmfHoh0maEWhRk9L3hw.0", + "X-Azure-Ref" : "0KgPAYAAAAAA5uB7xZSIMRp9WiRUTTrwRV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196458316\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AOefeBhxH6761XwJ2u4aPXMSZGltENofZwSI0jmVATE01@thread.v2/messages/1616441340391" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AEdXBrGK1qwdOBIvRhAaECiiNWI27E-qSmlbcx5F5ZuA1@thread.v2/messages/1623196458316" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:OefeBhxH6761XwJ2u4aPXMSZGltENofZwSI0jmVATE01@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:EdXBrGK1qwdOBIvRhAaECiiNWI27E-qSmlbcx5F5ZuA1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "134ms", - "MS-CV" : "OPE8BqcLckiilNYvmLLFEQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0/O9YYAAAAAB2KvhOn8VcRJqpFPeMPYbQWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441340568\"}", - "Date" : "Mon, 22 Mar 2021 19:28:59 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:18 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "131ms", + "MS-CV" : "S2sX3DNL/0upwqKBTPADLw.0", + "X-Azure-Ref" : "0KgPAYAAAAABD/nMD4ruwTKsqEpdJQwjiV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196458491\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AOefeBhxH6761XwJ2u4aPXMSZGltENofZwSI0jmVATE01@thread.v2/messages/1616441340568" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AEdXBrGK1qwdOBIvRhAaECiiNWI27E-qSmlbcx5F5ZuA1@thread.v2/messages/1623196458491" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:OefeBhxH6761XwJ2u4aPXMSZGltENofZwSI0jmVATE01@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:EdXBrGK1qwdOBIvRhAaECiiNWI27E-qSmlbcx5F5ZuA1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "117ms", - "MS-CV" : "UHTU94U93kKtLFqknlv67w.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "170ms", + "MS-CV" : "H7VERv5hU0GUX0VnLMQdAQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0/O9YYAAAAAC5bumFG+zlQqWFpm+E5Nx9WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0KgPAYAAAAADn5fn7H8YoRZFtc5Id3lvMV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"id\":\"1616441340568\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1616441340568\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-03-22T19:29:00Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-112f-b5bb-a43a0d000a6e\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-112f-b5bb-a43a0d000a6e\"}}},{\"id\":\"1616441340391\",\"type\":\"text\",\"sequenceId\":\"3\",\"version\":\"1616441340391\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-03-22T19:29:00Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-112f-b5bb-a43a0d000a6e\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-112f-b5bb-a43a0d000a6e\"}}},{\"id\":\"1616441340014\",\"type\":\"topicUpdated\",\"sequenceId\":\"2\",\"version\":\"1616441340014\",\"content\":{\"topic\":\"Test\",\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-112f-b5bb-a43a0d000a6e\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-112f-b5bb-a43a0d000a6e\"}}},\"createdOn\":\"2021-03-22T19:29:00Z\"},{\"id\":\"1616441339919\",\"type\":\"participantAdded\",\"sequenceId\":\"1\",\"version\":\"1616441339919\",\"content\":{\"participants\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-112f-b5bb-a43a0d000a6e\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-112f-b5bb-a43a0d000a6e\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1181-eef0-8b3a0d00049d\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-1181-eef0-8b3a0d00049d\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}],\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-112f-b5bb-a43a0d000a6e\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-112f-b5bb-a43a0d000a6e\"}}},\"createdOn\":\"2021-03-22T19:28:59Z\"}]}", - "Date" : "Mon, 22 Mar 2021 19:29:00 GMT", + "Body" : "{\"value\":[{\"id\":\"1623196458491\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1623196458491\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-06-08T23:54:18Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe24-0e04-343a0d00b70f\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe24-0e04-343a0d00b70f\"}},\"metadata\":{\"onedriveReferences\":\"onedriveReferences\",\"deliveryMode\":\"deliveryMode value\",\"amsreferences\":\"[\\\\\\\"test url file 3\\\\\\\"]\",\"key\":\"value key\"}},{\"id\":\"1623196458316\",\"type\":\"text\",\"sequenceId\":\"3\",\"version\":\"1623196458316\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-06-08T23:54:18Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe24-0e04-343a0d00b70f\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe24-0e04-343a0d00b70f\"}},\"metadata\":{\"onedriveReferences\":\"onedriveReferences\",\"deliveryMode\":\"deliveryMode value\",\"amsreferences\":\"[\\\\\\\"test url file 3\\\\\\\"]\",\"key\":\"value key\"}},{\"id\":\"1623196458075\",\"type\":\"topicUpdated\",\"sequenceId\":\"2\",\"version\":\"1623196458075\",\"content\":{\"topic\":\"Test\",\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe24-0e04-343a0d00b70f\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe24-0e04-343a0d00b70f\"}}},\"createdOn\":\"2021-06-08T23:54:18Z\"},{\"id\":\"1623196458045\",\"type\":\"participantAdded\",\"sequenceId\":\"1\",\"version\":\"1623196458045\",\"content\":{\"participants\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe24-0e04-343a0d00b70f\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe24-0e04-343a0d00b70f\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe58-6a0b-343a0d00c9d3\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe58-6a0b-343a0d00c9d3\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}],\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe24-0e04-343a0d00b70f\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fe24-0e04-343a0d00b70f\"}}},\"createdOn\":\"2021-06-08T23:54:18Z\"}]}", + "Date" : "Tue, 08 Jun 2021 23:54:18 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListMessagesWithOptions[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListMessagesWithOptions[1].json index acda5c21c7998..fcea1833c7bbb 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListMessagesWithOptions[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListMessagesWithOptions[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:54 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:13 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "+BK2IGch+0OUh/pFGJ1LkQ.0", - "X-Azure-Ref" : "09+9YYAAAAABRfSX7pZibQZfz7cY21ATtWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0264-defd-8b3a0d000506\"}}", - "x-ms-client-request-id" : "bd1ffa9c-e9ca-4388-9d2b-b39b83c5d588", + "X-Processing-Time" : "22ms", + "MS-CV" : "PSTLEJ4WwECbaDOSTTwBEQ.0", + "X-Azure-Ref" : "0JgPAYAAAAADaCKFxap6BTZoLSvy6K4wSV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f0df-6a0b-343a0d00c9cf\"}}", + "x-ms-client-request-id" : "35f1d1a2-f60a-4966-8253-8d5929207e9d", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:54 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:14 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "L6ZEyx9ywUaHwh/Iy84bkA.0", - "X-Azure-Ref" : "09+9YYAAAAACITe9Y90jtRZS9uP6VG4LvWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-02b5-b5bb-a43a0d000a69\"}}", - "x-ms-client-request-id" : "a16f8a0b-3cd5-42dd-818f-11b2d996d316", + "X-Processing-Time" : "25ms", + "MS-CV" : "fXquAHqpw0K/6FCNDsFn8A.0", + "X-Azure-Ref" : "0JgPAYAAAAADqRaTuYwnCS4CQNgOYVdBUV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f11c-0e04-343a0d00b709\"}}", + "x-ms-client-request-id" : "e008d8ae-11db-4fc3-9076-12a94cd787e8", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:54 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:14 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "l2cqCdD7JUubJ0MkoSZQNA.0", - "X-Azure-Ref" : "09+9YYAAAAABy5nNYVB6JSa3yxXTY4M+dWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0308-eef0-8b3a0d000499\"}}", - "x-ms-client-request-id" : "ebfaa258-5e9a-452e-9216-54667b617939", + "X-Processing-Time" : "24ms", + "MS-CV" : "hwV10mIgrE6kwAVd4cr9nQ.0", + "X-Azure-Ref" : "0JgPAYAAAAADhrETwBq0ySL778F2r/snbV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f154-6a0b-343a0d00c9d0\"}}", + "x-ms-client-request-id" : "fb839d96-5f8a-4f07-a1ad-74aadc4b3843", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,131 +75,137 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:55 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:14 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "ZH2ZiT2odEWuFVVy5T9Hxw.0", - "X-Azure-Ref" : "09+9YYAAAAACn3mT4YqwzTZIKcq4EKFPdWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0358-b5bb-a43a0d000a6a\"}}", - "x-ms-client-request-id" : "1275bcad-b07a-48b5-b6d5-e86e185a9bbe", + "X-Processing-Time" : "27ms", + "MS-CV" : "C0e/5oFEtESqfA/Qcs0Hog.0", + "X-Azure-Ref" : "0JgPAYAAAAACZjektQZ9SQYoRmnQZKuS8V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f191-0e04-343a0d00b70a\"}}", + "x-ms-client-request-id" : "d0af8cb2-a512-4c79-9272-d48d81e770ae", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0264-defd-8b3a0d000506/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f0df-6a0b-343a0d00c9cf/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:55 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:14 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "160ms", - "MS-CV" : "Enf90B9DNE2JL0a3frlHnw.0", - "X-Azure-Ref" : "09+9YYAAAAADdvRYGE8/HQbX4IcB7qd7DWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:54.8736619+00:00\"}", - "x-ms-client-request-id" : "b9b8dde3-bce9-450a-bd05-3e91e5910092", + "X-Processing-Time" : "29ms", + "MS-CV" : "dnPZJkM0mU23Fx8PMoKAbg.0", + "X-Azure-Ref" : "0JgPAYAAAAADf69X88cAXT50MPV2xwRqhV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:13.3617448+00:00\"}", + "x-ms-client-request-id" : "069c5f09-66b5-4452-9395-36d3823435b4", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "641ms", - "MS-CV" : "gnvY71g2bkeFtmU1/sXXHw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "09+9YYAAAAADUkxkoAShaSbbiOkV0OuTLWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:Hu3ac0pWHvOrLDhlGqlmtCf1mtle_x6RIJ_XL6jFx6I1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:56Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0264-defd-8b3a0d000506\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0264-defd-8b3a0d000506\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:55 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:14 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "433ms", + "MS-CV" : "3hgKvG/dqkqsfu9jwQVhbw.0", + "X-Azure-Ref" : "0JgPAYAAAAABJUIaTSraTR5XvlxV6h6T/V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:vD5dR_RSMja9tKUiSkkOq84EvTKbv_mneF0-oBAikPc1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:14Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f0df-6a0b-343a0d00c9cf\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f0df-6a0b-343a0d00c9cf\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AHu3ac0pWHvOrLDhlGqlmtCf1mtle_x6RIJ_XL6jFx6I1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AvD5dR_RSMja9tKUiSkkOq84EvTKbv_mneF0-oBAikPc1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:Hu3ac0pWHvOrLDhlGqlmtCf1mtle_x6RIJ_XL6jFx6I1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:vD5dR_RSMja9tKUiSkkOq84EvTKbv_mneF0-oBAikPc1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "240ms", - "MS-CV" : "GCea3zfZdku3q2fh3jSuSw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0+O9YYAAAAAAG8PNLYWgnQqItU5YxdNHlWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441336740\"}", - "Date" : "Mon, 22 Mar 2021 19:28:56 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:14 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "186ms", + "MS-CV" : "GM9L4PmcV0ahiaQKrs/Q7w.0", + "X-Azure-Ref" : "0JgPAYAAAAABONinZOy6xR4IjvZBBw80FV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196454904\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AHu3ac0pWHvOrLDhlGqlmtCf1mtle_x6RIJ_XL6jFx6I1@thread.v2/messages/1616441336740" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AvD5dR_RSMja9tKUiSkkOq84EvTKbv_mneF0-oBAikPc1@thread.v2/messages/1623196454904" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:Hu3ac0pWHvOrLDhlGqlmtCf1mtle_x6RIJ_XL6jFx6I1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:vD5dR_RSMja9tKUiSkkOq84EvTKbv_mneF0-oBAikPc1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "155ms", - "MS-CV" : "TZpRCp1aMkyTyVXntF5zPg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0+O9YYAAAAADMTRA6f1V+TZif63cYuO2CWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441336937\"}", - "Date" : "Mon, 22 Mar 2021 19:28:56 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:15 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "1069ms", + "MS-CV" : "vjq3i2O32keF8DxWXqLNFw.0", + "X-Azure-Ref" : "0JwPAYAAAAAAK80LgCoB6T6U2AHh6zJmlV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196456003\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AHu3ac0pWHvOrLDhlGqlmtCf1mtle_x6RIJ_XL6jFx6I1@thread.v2/messages/1616441336937" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AvD5dR_RSMja9tKUiSkkOq84EvTKbv_mneF0-oBAikPc1@thread.v2/messages/1623196456003" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:Hu3ac0pWHvOrLDhlGqlmtCf1mtle_x6RIJ_XL6jFx6I1@thread.v2/messages?maxPageSize=10&startTime=2020-09-08T01%3A02%3A14.387Z&api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:vD5dR_RSMja9tKUiSkkOq84EvTKbv_mneF0-oBAikPc1@thread.v2/messages?maxPageSize=10&startTime=2020-09-08T01%3A02%3A14.387Z&api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "154ms", - "MS-CV" : "0hFAZ9a1u0maECx+VMQrxA.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "97ms", + "MS-CV" : "rcTUnJH15UuuvjgaEP+nVQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0+e9YYAAAAADoykr0C13WS5CLbGIqLw4tWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0KAPAYAAAAAAyV6E0dBEBTI6rejtLt6lMV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"id\":\"1616441336937\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1616441336937\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-03-22T19:28:56Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0264-defd-8b3a0d000506\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0264-defd-8b3a0d000506\"}}},{\"id\":\"1616441336740\",\"type\":\"text\",\"sequenceId\":\"3\",\"version\":\"1616441336740\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-03-22T19:28:56Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0264-defd-8b3a0d000506\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0264-defd-8b3a0d000506\"}}},{\"id\":\"1616441336350\",\"type\":\"topicUpdated\",\"sequenceId\":\"2\",\"version\":\"1616441336350\",\"content\":{\"topic\":\"Test\",\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0264-defd-8b3a0d000506\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0264-defd-8b3a0d000506\"}}},\"createdOn\":\"2021-03-22T19:28:56Z\"},{\"id\":\"1616441336285\",\"type\":\"participantAdded\",\"sequenceId\":\"1\",\"version\":\"1616441336285\",\"content\":{\"participants\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0264-defd-8b3a0d000506\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0264-defd-8b3a0d000506\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-02b5-b5bb-a43a0d000a69\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-02b5-b5bb-a43a0d000a69\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}],\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0264-defd-8b3a0d000506\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0264-defd-8b3a0d000506\"}}},\"createdOn\":\"2021-03-22T19:28:56Z\"}]}", - "Date" : "Mon, 22 Mar 2021 19:28:56 GMT", + "Body" : "{\"value\":[{\"id\":\"1623196456003\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1623196456003\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-06-08T23:54:16Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f0df-6a0b-343a0d00c9cf\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f0df-6a0b-343a0d00c9cf\"}},\"metadata\":{\"onedriveReferences\":\"onedriveReferences\",\"deliveryMode\":\"deliveryMode value\",\"amsreferences\":\"[\\\\\\\"test url file 3\\\\\\\"]\",\"key\":\"value key\"}},{\"id\":\"1623196454904\",\"type\":\"text\",\"sequenceId\":\"3\",\"version\":\"1623196454904\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-06-08T23:54:14Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f0df-6a0b-343a0d00c9cf\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f0df-6a0b-343a0d00c9cf\"}},\"metadata\":{\"onedriveReferences\":\"onedriveReferences\",\"deliveryMode\":\"deliveryMode value\",\"amsreferences\":\"[\\\\\\\"test url file 3\\\\\\\"]\",\"key\":\"value key\"}},{\"id\":\"1623196454665\",\"type\":\"topicUpdated\",\"sequenceId\":\"2\",\"version\":\"1623196454665\",\"content\":{\"topic\":\"Test\",\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f0df-6a0b-343a0d00c9cf\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f0df-6a0b-343a0d00c9cf\"}}},\"createdOn\":\"2021-06-08T23:54:14Z\"},{\"id\":\"1623196454635\",\"type\":\"participantAdded\",\"sequenceId\":\"1\",\"version\":\"1623196454635\",\"content\":{\"participants\":[{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f0df-6a0b-343a0d00c9cf\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f0df-6a0b-343a0d00c9cf\"}},\"displayName\":\"Tester 1\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"},{\"communicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f11c-0e04-343a0d00b709\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f11c-0e04-343a0d00b709\"}},\"displayName\":\"Tester 2\",\"shareHistoryTime\":\"1970-01-01T00:00:00Z\"}],\"initiatorCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f0df-6a0b-343a0d00c9cf\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f0df-6a0b-343a0d00c9cf\"}}},\"createdOn\":\"2021-06-08T23:54:14Z\"}]}", + "Date" : "Tue, 08 Jun 2021 23:54:16 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListReadReceiptsWithContext[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListReadReceiptsWithContext[1].json index 94bd6c5ab6c7a..4d369cfb5b571 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListReadReceiptsWithContext[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListReadReceiptsWithContext[1].json @@ -1,9 +1,9 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4b72178530934b7790135dd9359205e0@thread.v2/readReceipts?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4b72178530934b7790135dd9359205e0@thread.v2/readReceipts?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "retry-after" : "0", diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListReadReceipts[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListReadReceipts[1].json index 94bd6c5ab6c7a..4d369cfb5b571 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListReadReceipts[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canListReadReceipts[1].json @@ -1,9 +1,9 @@ { "networkCallRecords" : [ { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4b72178530934b7790135dd9359205e0@thread.v2/readReceipts?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4b72178530934b7790135dd9359205e0@thread.v2/readReceipts?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "retry-after" : "0", diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendReadReceiptSync[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendReadReceiptSync[1].json index 2f42a6ca6d8d5..f9cbb7cbf4f41 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendReadReceiptSync[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendReadReceiptSync[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:31 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:42 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "9ms", - "MS-CV" : "xSx7qRNWyUej9UJDiMKXIw.0", - "X-Azure-Ref" : "0G/BYYAAAAADmd2LNL1vQTZp7E4svT84mWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-9142-b5bb-a43a0d000aaa\"}}", - "x-ms-client-request-id" : "77a46882-37ae-4e0b-b4fd-b487f56af353", + "X-Processing-Time" : "24ms", + "MS-CV" : "uQ3Rz/GqJ0CI8rebE5OBtw.0", + "X-Azure-Ref" : "0QwPAYAAAAACHNc34iF+OTIZQlt9B8AbsV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-6242-6a0b-343a0d00ca16\"}}", + "x-ms-client-request-id" : "be23a539-e68b-4d74-ba05-bcaef3939a2f", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:31 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:43 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "eKj8yd6XdUyB/lj7Fx1U8w.0", - "X-Azure-Ref" : "0G/BYYAAAAADUbP/q8KKDSpbo4U74PScDWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-9196-eef0-8b3a0d0004b7\"}}", - "x-ms-client-request-id" : "334182e7-c872-4d6e-92c6-64cfb60ad816", + "X-Processing-Time" : "512ms", + "MS-CV" : "oHbjmzwcjUi/9j+QgkPU7A.0", + "X-Azure-Ref" : "0QwPAYAAAAAC92smQvz7xQa3TOydxLTzgV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-6460-0e04-343a0d00b723\"}}", + "x-ms-client-request-id" : "ff83f5fc-98b5-4b02-873b-25d4cfec17a0", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:32 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:43 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "mIQWLNSJtkWgsfbmhfm1pQ.0", - "X-Azure-Ref" : "0HPBYYAAAAABcgEM1BmtrR5VTshT79FrPWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-91e7-b5bb-a43a0d000aab\"}}", - "x-ms-client-request-id" : "c6620d60-5745-48a3-b38f-f11467a576b1", + "X-Processing-Time" : "23ms", + "MS-CV" : "Q57h5kDHekilW9cE/oHYfg.0", + "X-Azure-Ref" : "0QwPAYAAAAACx9xSKSb4UTL2274dSJXVfV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-6495-6a0b-343a0d00ca17\"}}", + "x-ms-client-request-id" : "8283eab2-ac51-4a77-9ded-d440e07cf8c0", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,109 +75,114 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:32 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:43 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "m6LhlDbGL0SRG7fynj+fEw.0", - "X-Azure-Ref" : "0HPBYYAAAAAALFcw4qntGSbvbS74O+valWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-9239-defd-8b3a0d000532\"}}", - "x-ms-client-request-id" : "69b20dad-bdad-489c-a2e5-1505dad34494", + "X-Processing-Time" : "21ms", + "MS-CV" : "6UNOLQ2xTkufm4ES1kIHTA.0", + "X-Azure-Ref" : "0QwPAYAAAAAAsht9RAA3FRqBvaOUmsBZZV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-64c9-0e04-343a0d00b724\"}}", + "x-ms-client-request-id" : "e67d0022-ee1f-41df-b878-2ff5ad06a053", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-9142-b5bb-a43a0d000aaa/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-6242-6a0b-343a0d00ca16/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:32 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:43 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "180ms", - "MS-CV" : "1LsgGEmdoEGFzDy9DZoMoA.0", - "X-Azure-Ref" : "0HPBYYAAAAAChVNpxJxhvSJI9xV+gRFM0WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:31.467006+00:00\"}", - "x-ms-client-request-id" : "c3e1ed84-a241-4fa9-af92-b1ba57fe123e", + "X-Processing-Time" : "28ms", + "MS-CV" : "QSWcpwy6v0CsyAmurwEu0A.0", + "X-Azure-Ref" : "0QwPAYAAAAACp+hS47BfSRbXX5q31d2BiV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:42.8584615+00:00\"}", + "x-ms-client-request-id" : "de28a1fa-763c-477c-b9de-1c036a30e2f6", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "692ms", - "MS-CV" : "E446S7ZxMkSIK0hk20/b4A.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0HPBYYAAAAACI8Nb9NumAT4CGT9rjkeidWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:cZwVS23tqwtuKhiW4FsdokNvbHHRoaJu8nOrS7-4Jyg1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:32Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-9142-b5bb-a43a0d000aaa\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-9142-b5bb-a43a0d000aaa\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:33 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:44 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "600ms", + "MS-CV" : "iGrFxrtG/0OaxpIC5Ixb1Q.0", + "X-Azure-Ref" : "0QwPAYAAAAAD8iKvYUCyiQJdJX4POolwqV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:XCSFx1DI5b21wYvwVwOjAgOX4D95lwSZwIyk8ZcLJLI1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:43Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-6242-6a0b-343a0d00ca16\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-6242-6a0b-343a0d00ca16\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AcZwVS23tqwtuKhiW4FsdokNvbHHRoaJu8nOrS7-4Jyg1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AXCSFx1DI5b21wYvwVwOjAgOX4D95lwSZwIyk8ZcLJLI1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:cZwVS23tqwtuKhiW4FsdokNvbHHRoaJu8nOrS7-4Jyg1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:XCSFx1DI5b21wYvwVwOjAgOX4D95lwSZwIyk8ZcLJLI1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "163ms", - "MS-CV" : "dFVbUgrzoUujuB8yP4uK5w.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0HfBYYAAAAAA+fTXucT31RZWn/CNlmmXGWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441373308\"}", - "Date" : "Mon, 22 Mar 2021 19:29:33 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:44 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "135ms", + "MS-CV" : "yePOtTOZkkab70qnItPVXQ.0", + "X-Azure-Ref" : "0RAPAYAAAAADesB83aZKnT5Pk3V76oHHAV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196484572\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AcZwVS23tqwtuKhiW4FsdokNvbHHRoaJu8nOrS7-4Jyg1@thread.v2/messages/1616441373308" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AXCSFx1DI5b21wYvwVwOjAgOX4D95lwSZwIyk8ZcLJLI1@thread.v2/messages/1623196484572" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:cZwVS23tqwtuKhiW4FsdokNvbHHRoaJu8nOrS7-4Jyg1@thread.v2/readReceipts?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:XCSFx1DI5b21wYvwVwOjAgOX4D95lwSZwIyk8ZcLJLI1@thread.v2/readReceipts?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "content-length" : "0", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "406ms", - "MS-CV" : "c1XKyECEqkGROGBPrX4e/A.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "121ms", + "MS-CV" : "vMCf/ttkskCI6g77jYm8tQ.0", "retry-after" : "0", - "X-Azure-Ref" : "0HfBYYAAAAADoUovSPxuoT7Up/ZPbocITWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", + "X-Azure-Ref" : "0RAPAYAAAAAD01HKICbH9Q4uUvrzmKY1SV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:33 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:44 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendReadReceiptWithResponseSync[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendReadReceiptWithResponseSync[1].json index b4cab802e6912..ceef37d50ea81 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendReadReceiptWithResponseSync[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendReadReceiptWithResponseSync[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:30 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:41 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "dBQSDTuJYk6IugfUTHzSZg.0", - "X-Azure-Ref" : "0GvBYYAAAAADVVP7PnQApSaPcyPZ7K37cWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8a41-b5bb-a43a0d000aa5\"}}", - "x-ms-client-request-id" : "a902b824-097f-4052-aba7-f96764129f0e", + "X-Processing-Time" : "27ms", + "MS-CV" : "H9eqs4NCcEadDhW4VwoUUA.0", + "X-Azure-Ref" : "0QQPAYAAAAABj5+yBgjVaQYJu3gjyEq4OV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5d3c-6a0b-343a0d00ca14\"}}", + "x-ms-client-request-id" : "42d9fb9e-5191-4a2e-a51b-305b5e126ad0", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:30 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:41 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "vC4Za0JsQUqMm+m/4NG4Hg.0", - "X-Azure-Ref" : "0GvBYYAAAAABEksofchOQQ7XybwqWrVG9WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8a93-eef0-8b3a0d0004b5\"}}", - "x-ms-client-request-id" : "3aa929a9-9fb6-45b1-9677-2ec2d0fd7c54", + "X-Processing-Time" : "23ms", + "MS-CV" : "/bYekIQOOUWtIbp7JD5/sQ.0", + "X-Azure-Ref" : "0QQPAYAAAAAAgPOK+1EcAR4ufTK148tO/V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5dd9-0e04-343a0d00b720\"}}", + "x-ms-client-request-id" : "fab9ecfe-ed9d-4677-aba8-87bab03c1ab2", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:30 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:41 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "aGt6tY8+mkGy82VNHbTvYg.0", - "X-Azure-Ref" : "0GvBYYAAAAAArlLxuI6wxTpW2rbYp/BbJWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8ae5-b5bb-a43a0d000aa6\"}}", - "x-ms-client-request-id" : "df0807a9-3f7c-4670-8e92-f5f0d35593e3", + "X-Processing-Time" : "23ms", + "MS-CV" : "AOar15j2mUi+sfj9F/pNkQ.0", + "X-Azure-Ref" : "0QgPAYAAAAAAx+JRt/ndLSaKLfVEchOzsV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5e0e-6a0b-343a0d00ca15\"}}", + "x-ms-client-request-id" : "cbbb196f-2c11-49b2-86cb-de66373ac805", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,109 +75,114 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:30 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:41 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "XPicqG2tYECFlI1c/MH4Nw.0", - "X-Azure-Ref" : "0GvBYYAAAAACV+M6bGhULT4wlgTE3wsHoWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8b39-defd-8b3a0d00052f\"}}", - "x-ms-client-request-id" : "56deca97-d75d-45b4-9fc2-1314c9495fb9", + "X-Processing-Time" : "23ms", + "MS-CV" : "27uhMl9gBEG8+loXGTWrYQ.0", + "X-Azure-Ref" : "0QgPAYAAAAABF0KyWavW3QabBGhQv7HOYV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5e42-0e04-343a0d00b721\"}}", + "x-ms-client-request-id" : "40cb3be7-e7ad-43d1-83bb-3c930173bfec", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8a41-b5bb-a43a0d000aa5/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5d3c-6a0b-343a0d00ca14/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:30 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:41 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "162ms", - "MS-CV" : "yTrPr57ETkWS9VmMXBV4fQ.0", - "X-Azure-Ref" : "0GvBYYAAAAABl6+ltQmt+Rqp3Rrcefy9RWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:29.657926+00:00\"}", - "x-ms-client-request-id" : "52eb5fe3-755a-4f01-b249-cc2dfa4702d6", + "X-Processing-Time" : "28ms", + "MS-CV" : "deBlyDnJzEm7Ic0iSvBRYQ.0", + "X-Azure-Ref" : "0QgPAYAAAAAALP2E0uTHZRIDVx1BdUudbV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:41.1827692+00:00\"}", + "x-ms-client-request-id" : "7c556c5c-e7fe-4dfe-96c9-11c8d2e2e470", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "741ms", - "MS-CV" : "clEOgWFc4U695Bom/0OqbA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0GvBYYAAAAADyiZi/t214R7HTbXV4v+JOWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:fQjD8b3gle1HfR5N3BUv7epVi7mRXo3IoU2Cjxv_FEc1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:30Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8a41-b5bb-a43a0d000aa5\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-8a41-b5bb-a43a0d000aa5\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:31 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:42 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "446ms", + "MS-CV" : "x0zO+1PM10GKrVQMjbp22w.0", + "X-Azure-Ref" : "0QgPAYAAAAADA/wHZq2xwRL/WEkXqd2TuV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:Df7nfDgjabQsn59KpZBLQkR3UoXRZ-troO5Pjd1Nahk1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:42Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5d3c-6a0b-343a0d00ca14\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5d3c-6a0b-343a0d00ca14\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AfQjD8b3gle1HfR5N3BUv7epVi7mRXo3IoU2Cjxv_FEc1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3ADf7nfDgjabQsn59KpZBLQkR3UoXRZ-troO5Pjd1Nahk1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:fQjD8b3gle1HfR5N3BUv7epVi7mRXo3IoU2Cjxv_FEc1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:Df7nfDgjabQsn59KpZBLQkR3UoXRZ-troO5Pjd1Nahk1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "218ms", - "MS-CV" : "TElA3XCBxUu3OqWDOhLjeA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0G/BYYAAAAAAtN6DRAR4fQII7h6scDJASWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441371556\"}", - "Date" : "Mon, 22 Mar 2021 19:29:31 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:42 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "237ms", + "MS-CV" : "mMUs/Nv42USOcQFPY3pnRg.0", + "X-Azure-Ref" : "0QgPAYAAAAAAv1BHQydKISpywdq6sOsaVV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196482800\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AfQjD8b3gle1HfR5N3BUv7epVi7mRXo3IoU2Cjxv_FEc1@thread.v2/messages/1616441371556" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3ADf7nfDgjabQsn59KpZBLQkR3UoXRZ-troO5Pjd1Nahk1@thread.v2/messages/1623196482800" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:fQjD8b3gle1HfR5N3BUv7epVi7mRXo3IoU2Cjxv_FEc1@thread.v2/readReceipts?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:Df7nfDgjabQsn59KpZBLQkR3UoXRZ-troO5Pjd1Nahk1@thread.v2/readReceipts?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "content-length" : "0", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "182ms", - "MS-CV" : "P+E+PZMc90CHndpaQwKd/g.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "121ms", + "MS-CV" : "LRTWexeNxEK4UCuHtKJu2Q.0", "retry-after" : "0", - "X-Azure-Ref" : "0G/BYYAAAAAA6UA51WT3uQYR1qEdqxjKQWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", + "X-Azure-Ref" : "0QgPAYAAAAAAkqzxCjOmzTZEUJVuqnfpHV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:31 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:42 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenGetMessageWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenGetMessageWithResponse[1].json index 821a243eb9adc..9cb1466720a20 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenGetMessageWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenGetMessageWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:12 GMT", + "Date" : "Wed, 09 Jun 2021 05:43:03 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "/cNfVLII80alV+VAyQv3fA.0", - "X-Azure-Ref" : "0CPBYYAAAAAAS16m8hFh+RpdXO9ybBLHFWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-474d-eef0-8b3a0d0004a9\"}}", - "x-ms-client-request-id" : "07da86bf-6dee-46a1-aae4-363b1403c532", + "X-Processing-Time" : "62ms", + "MS-CV" : "qNc+MsyzHEm8O1PllJlh0Q.0", + "X-Azure-Ref" : "051TAYAAAAACEVRVqQtZ/RJXTMUxl+tucV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2d-4d2a-99bf-a43a0d0049c1\"}}", + "x-ms-client-request-id" : "1553957b-6339-47e9-9828-50b634d2519c", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:12 GMT", + "Date" : "Wed, 09 Jun 2021 05:43:03 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "bkGIPlxDr0e8VCzJvYliVQ.0", - "X-Azure-Ref" : "0CfBYYAAAAAB4kEJkGwxzRINftLofDkvqWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-479f-b5bb-a43a0d000a81\"}}", - "x-ms-client-request-id" : "aa865c6a-dd04-443f-a9f2-d6c29fee1502", + "X-Processing-Time" : "70ms", + "MS-CV" : "dnvOKUasr0apngpCAHLnYQ.0", + "X-Azure-Ref" : "051TAYAAAAADUqsvCr+RDS7aAewUWzMUOV1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2d-4d98-54b7-a43a0d0028c7\"}}", + "x-ms-client-request-id" : "66969962-de31-4b24-b77c-f519a2375ae2", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:12 GMT", + "Date" : "Wed, 09 Jun 2021 05:43:03 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "24BRXUmDa0yRvCO4vkIS+g.0", - "X-Azure-Ref" : "0CfBYYAAAAAAeN/9qZRwBQ5m0/S490QeZWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-47f3-defd-8b3a0d00051e\"}}", - "x-ms-client-request-id" : "cbcd1f54-96bc-4375-a84c-224144833fbd", + "X-Processing-Time" : "68ms", + "MS-CV" : "vFDLcf9YKEyMkQkiYfrW7g.0", + "X-Azure-Ref" : "051TAYAAAAACzmZV1HKuWRpstA5Zn8tP5V1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2d-4e13-b5bb-a43a0d006da2\"}}", + "x-ms-client-request-id" : "ea4e3d42-441e-458e-93da-5722f586380b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,109 +75,114 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:12 GMT", + "Date" : "Wed, 09 Jun 2021 05:43:03 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "rF+GuhOwUE2BFDhIbz5ugw.0", - "X-Azure-Ref" : "0CfBYYAAAAAD8FboC+UwQR7YR0kboEJwWWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-4845-b5bb-a43a0d000a82\"}}", - "x-ms-client-request-id" : "79baa6c9-7dc0-4a6c-8417-d683b33340f3", + "X-Processing-Time" : "68ms", + "MS-CV" : "DQ6u6MPkyU6cJ6qhEP1yig.0", + "X-Azure-Ref" : "06FTAYAAAAAAvPNmQuEPWQJ7bvU1M//GjV1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2d-4e87-54b7-a43a0d0028c8\"}}", + "x-ms-client-request-id" : "5d3e166a-d375-4018-acc1-a64dbbb72729", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-474d-eef0-8b3a0d0004a9/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2d-4d2a-99bf-a43a0d0049c1/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:12 GMT", + "Date" : "Wed, 09 Jun 2021 05:43:03 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "146ms", - "MS-CV" : "KXyrg5Sg/Eauj3Qr24Fbkg.0", - "X-Azure-Ref" : "0CfBYYAAAAACewQDQZGNtTYvabINAxJc5WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:12.5035909+00:00\"}", - "x-ms-client-request-id" : "402a9a12-b633-4fee-abcf-71a5e94ab07d", + "X-Processing-Time" : "126ms", + "MS-CV" : "PQCTb/hIIUyU8lUM8dCuCg.0", + "X-Azure-Ref" : "06FTAYAAAAADb2UvhHDABRIVfz+lBvy6ZV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-10T05:43:03.3016521+00:00\"}", + "x-ms-client-request-id" : "80ed6f73-81b9-4dc4-93a9-738e6a846678", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "591ms", - "MS-CV" : "IW9mgCEhNUeHXe8aHgaBlg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0CfBYYAAAAABywKoeTnt0T5xW9W5XDSqrWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:YLnsW3mdXpPBIvP1sEOIGKZavs1NPyGl_2u2WZxLhF41@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:13Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-474d-eef0-8b3a0d0004a9\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-474d-eef0-8b3a0d0004a9\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:13 GMT", + "Date" : "Wed, 09 Jun 2021 05:43:04 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "814ms", + "MS-CV" : "+4Y/9ZCHYEyU4bQMFfb3HA.0", + "X-Azure-Ref" : "06FTAYAAAAAAti0ZtoR+6Q7lOCVTqEXW7V1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:UM3ISai7B8viVtKqkvXwTc284OFR1uFhsxKFdT2wfW41@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-09T05:43:04Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2d-4d2a-99bf-a43a0d0049c1\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2d-4d2a-99bf-a43a0d0049c1\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AYLnsW3mdXpPBIvP1sEOIGKZavs1NPyGl_2u2WZxLhF41@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AUM3ISai7B8viVtKqkvXwTc284OFR1uFhsxKFdT2wfW41@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:YLnsW3mdXpPBIvP1sEOIGKZavs1NPyGl_2u2WZxLhF41@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:UM3ISai7B8viVtKqkvXwTc284OFR1uFhsxKFdT2wfW41@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "177ms", - "MS-CV" : "XLPUPK6gZUC64OsQdm0LbQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0CvBYYAAAAADt9rG/Cr67R67uscuuExqXWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441354286\"}", - "Date" : "Mon, 22 Mar 2021 19:29:13 GMT", + "Date" : "Wed, 09 Jun 2021 05:43:04 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "201ms", + "MS-CV" : "r2FGPPORFUyBAfBgpHmVdw.0", + "X-Azure-Ref" : "06VTAYAAAAACup0Ri3EIKTauUDJej6+vQV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623217385295\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AYLnsW3mdXpPBIvP1sEOIGKZavs1NPyGl_2u2WZxLhF41@thread.v2/messages/1616441354286" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AUM3ISai7B8viVtKqkvXwTc284OFR1uFhsxKFdT2wfW41@thread.v2/messages/1623217385295" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:YLnsW3mdXpPBIvP1sEOIGKZavs1NPyGl_2u2WZxLhF41@thread.v2/messages/1616441354286?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:UM3ISai7B8viVtKqkvXwTc284OFR1uFhsxKFdT2wfW41@thread.v2/messages/1623217385295?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "92ms", - "MS-CV" : "tCLOaL313U2PWbUa2vMrmw.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "154ms", + "MS-CV" : "hTbYR/VHFEWf2NpGbIFJjw.0", "retry-after" : "0", - "X-Azure-Ref" : "0CvBYYAAAAAAFNnC4L9VBRJIFkv0nbZfwWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "06VTAYAAAAACfm98UC/AGQKF7P0ZOIeGoV1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"1616441354286\",\"type\":\"text\",\"sequenceId\":\"3\",\"version\":\"1616441354286\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-03-22T19:29:14Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-474d-eef0-8b3a0d0004a9\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-474d-eef0-8b3a0d0004a9\"}}}", - "Date" : "Mon, 22 Mar 2021 19:29:13 GMT", + "Body" : "{\"id\":\"1623217385295\",\"type\":\"text\",\"sequenceId\":\"3\",\"version\":\"1623217385295\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-06-09T05:43:05Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2d-4d2a-99bf-a43a0d0049c1\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2d-4d2a-99bf-a43a0d0049c1\"}},\"metadata\":{\"onedriveReferences\":\"onedriveReferences\",\"deliveryMode\":\"deliveryMode value\",\"amsreferences\":\"[\\\\\\\"test url file 3\\\\\\\"]\",\"key\":\"value key\",\"tags\":\"tags value\"}}", + "Date" : "Wed, 09 Jun 2021 05:43:04 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenGetMessage[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenGetMessage[1].json index 87c33da7d9a78..a404a44f07f3a 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenGetMessage[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenGetMessage[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:48 GMT", + "Date" : "Wed, 09 Jun 2021 05:42:34 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "QO49puVwWk2yS7YzzRpCiA.0", - "X-Azure-Ref" : "08e9YYAAAAABLpwdAVeVrTrL3cu0lSIsAWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-e9af-eef0-8b3a0d000494\"}}", - "x-ms-client-request-id" : "b08679e5-f9bc-49d1-b5a7-0ca3bfadf911", + "X-Processing-Time" : "72ms", + "MS-CV" : "FgHwiH54PkK529YKMbKy+Q.0", + "X-Azure-Ref" : "0y1TAYAAAAABA2oTmMujdQ7xb/vnLkfR0V1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-de4f-99bf-a43a0d0049a2\"}}", + "x-ms-client-request-id" : "d1d4c564-a227-4f78-b175-83e6610b1ca5", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:48 GMT", + "Date" : "Wed, 09 Jun 2021 05:42:34 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "+ymICTFvYUuFWVXzueKQew.0", - "X-Azure-Ref" : "08e9YYAAAAAAAobctmox4QK1tGaBUcfhxWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-e9ff-b5bb-a43a0d000a5f\"}}", - "x-ms-client-request-id" : "9c6d8f23-b1e8-4f7c-b961-38a188cb23c1", + "X-Processing-Time" : "64ms", + "MS-CV" : "mHc+CifX2kOV1qRcOPzyfA.0", + "X-Azure-Ref" : "0y1TAYAAAAADIr446EbRVSLoaDaZXaNpeV1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-dece-99bf-a43a0d0049a3\"}}", + "x-ms-client-request-id" : "2015247d-e0ec-4dab-bf87-daeb5c6d10bc", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:48 GMT", + "Date" : "Wed, 09 Jun 2021 05:42:35 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "XRUlEhorr06XTGAKrbRQyQ.0", - "X-Azure-Ref" : "08e9YYAAAAADlYkcJOsGeSpOoeyxhL2C7WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-ea53-defd-8b3a0d0004ff\"}}", - "x-ms-client-request-id" : "a769edc4-0806-4036-8646-e9416dc67d5b", + "X-Processing-Time" : "70ms", + "MS-CV" : "4N1lcJQifUOYSM5EcLhzJQ.0", + "X-Azure-Ref" : "0y1TAYAAAAACt6HpQ4Qw4T5F2O6S0OJDBV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-df50-b5bb-a43a0d006d8b\"}}", + "x-ms-client-request-id" : "17a23673-8b2c-4fa1-af2b-24fd0d089c48", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,109 +75,114 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:48 GMT", + "Date" : "Wed, 09 Jun 2021 05:42:35 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "VPQfxFzxg0+V5Bplkp7I3Q.0", - "X-Azure-Ref" : "08e9YYAAAAAA7wcK9qiu3SJQW5zdxgcuLWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-eaa4-b5bb-a43a0d000a60\"}}", - "x-ms-client-request-id" : "6f65efe0-9cb4-45d6-acf3-fe9f2b0368a3", + "X-Processing-Time" : "76ms", + "MS-CV" : "kF9xUITVrkGLJ9sdQQQNWw.0", + "X-Azure-Ref" : "0y1TAYAAAAADtur21B+AmQaGif5h7VjKmV1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-dfc8-54b7-a43a0d0028ab\"}}", + "x-ms-client-request-id" : "340b2d23-5e98-4618-9988-f8fb310d55e9", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-e9af-eef0-8b3a0d000494/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-de4f-99bf-a43a0d0049a2/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:48 GMT", + "Date" : "Wed, 09 Jun 2021 05:42:35 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "143ms", - "MS-CV" : "UNhltnnLLkG/oBS+ZOX2mQ.0", - "X-Azure-Ref" : "08e9YYAAAAAA62U2pFPWnQYgQcQLkFu9FWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:48.5314026+00:00\"}", - "x-ms-client-request-id" : "481835b0-c676-4aed-8aad-6144853fe04a", + "X-Processing-Time" : "134ms", + "MS-CV" : "g+OCN2af/EKGuzDaQlLzWA.0", + "X-Azure-Ref" : "0y1TAYAAAAAC9pMnAp+x0Sry2PxMXUJ3EV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-10T05:42:34.9863654+00:00\"}", + "x-ms-client-request-id" : "b28e8f91-d7ca-490e-9f2f-7c1fef3aa881", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "487ms", - "MS-CV" : "8H1bwrGvdUuFanssX1G3Rg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "08e9YYAAAAADAb30/iACkSZrdgrfrlVY0WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:MqpvePIs8ARxq3JB6VxFfpuj9nX0e3spDdKomi_37EI1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:49Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-e9af-eef0-8b3a0d000494\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-e9af-eef0-8b3a0d000494\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:49 GMT", + "Date" : "Wed, 09 Jun 2021 05:42:36 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "1090ms", + "MS-CV" : "PhfSGeBW0ECUv6a5m7SDrA.0", + "X-Azure-Ref" : "0zFTAYAAAAACtR/KNC2WwR7ddkcEa42A9V1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:rK_iMB_KQIX_NvZEZHB8fyHMQMzusfmFTXm0iH_zNNc1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-09T05:42:36Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-de4f-99bf-a43a0d0049a2\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-de4f-99bf-a43a0d0049a2\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AMqpvePIs8ARxq3JB6VxFfpuj9nX0e3spDdKomi_37EI1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3ArK_iMB_KQIX_NvZEZHB8fyHMQMzusfmFTXm0iH_zNNc1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:MqpvePIs8ARxq3JB6VxFfpuj9nX0e3spDdKomi_37EI1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:rK_iMB_KQIX_NvZEZHB8fyHMQMzusfmFTXm0iH_zNNc1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "186ms", - "MS-CV" : "2iYynfGg+kypR1aO8QJ01g.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "08u9YYAAAAADMCpOWbdbTSrPBCGJrJXCpWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441330228\"}", - "Date" : "Mon, 22 Mar 2021 19:28:49 GMT", + "Date" : "Wed, 09 Jun 2021 05:42:36 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "228ms", + "MS-CV" : "7SLFN+sG40e6YeEa6m9E5Q.0", + "X-Azure-Ref" : "0zVTAYAAAAABGtebu3RjkT5jBwXojhfbsV1NURURHRTA4MTkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623217357251\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AMqpvePIs8ARxq3JB6VxFfpuj9nX0e3spDdKomi_37EI1@thread.v2/messages/1616441330228" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3ArK_iMB_KQIX_NvZEZHB8fyHMQMzusfmFTXm0iH_zNNc1@thread.v2/messages/1623217357251" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:MqpvePIs8ARxq3JB6VxFfpuj9nX0e3spDdKomi_37EI1@thread.v2/messages/1616441330228?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:rK_iMB_KQIX_NvZEZHB8fyHMQMzusfmFTXm0iH_zNNc1@thread.v2/messages/1623217357251?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "92ms", - "MS-CV" : "/cOtTAPjtUi1odADi1Xnng.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "156ms", + "MS-CV" : "IxQsMDrAUEy8DX2xjNXETQ.0", "retry-after" : "0", - "X-Azure-Ref" : "08u9YYAAAAAD+jWXv8SDYToM5+n7cVYoHWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0zVTAYAAAAADDpxLtUDXNQbZUDEFWCMTzV1NURURHRTA4MDcAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"1616441330228\",\"type\":\"text\",\"sequenceId\":\"3\",\"version\":\"1616441330228\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-03-22T19:28:50Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-e9af-eef0-8b3a0d000494\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-e9af-eef0-8b3a0d000494\"}}}", - "Date" : "Mon, 22 Mar 2021 19:28:49 GMT", + "Body" : "{\"id\":\"1623217357251\",\"type\":\"text\",\"sequenceId\":\"3\",\"version\":\"1623217357251\",\"content\":{\"message\":\"Content\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-06-09T05:42:37Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-de4f-99bf-a43a0d0049a2\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8f2c-de4f-99bf-a43a0d0049a2\"}},\"metadata\":{\"onedriveReferences\":\"onedriveReferences\",\"deliveryMode\":\"deliveryMode value\",\"amsreferences\":\"[\\\\\\\"test url file 3\\\\\\\"]\",\"key\":\"value key\",\"tags\":\"tags value\"}}", + "Date" : "Wed, 09 Jun 2021 05:42:37 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenListReadReceiptsWithOptions[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenListReadReceiptsWithOptions[1].json index fe20ac03b7806..28dccb06bbd08 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenListReadReceiptsWithOptions[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenListReadReceiptsWithOptions[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:16 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:31 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "r7taJ5Ow+0WTZ377teOr0Q.0", - "X-Azure-Ref" : "0DfBYYAAAAAABXhYVYROVSas+g3r1KGNtWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-596b-b5bb-a43a0d000a8a\"}}", - "x-ms-client-request-id" : "5c0c3612-ce9c-4cea-be4f-a143a22d8131", + "X-Processing-Time" : "23ms", + "MS-CV" : "D//aUiG3hUq1kv1IWK8KCw.0", + "X-Azure-Ref" : "0NwPAYAAAAADBAsi9pwSiS4KqcbfK4j0ZV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-36ac-6a0b-343a0d00c9f0\"}}", + "x-ms-client-request-id" : "34ea5367-65a4-455b-8d07-93b5b050d234", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:17 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:31 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "Q0LOE3MJVkudZ93RZJzS2A.0", - "X-Azure-Ref" : "0DfBYYAAAAAA3T6DH3lS9RZSc1o/uN5MyWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-59be-defd-8b3a0d000523\"}}", - "x-ms-client-request-id" : "1ee481ea-85b7-4655-b697-74533036ebfb", + "X-Processing-Time" : "23ms", + "MS-CV" : "eJ2ND0KVgUSu/+4EOT+0Lg.0", + "X-Azure-Ref" : "0OAPAYAAAAADgWIa8nDqqS4NG6vWVkrPvV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-36e2-6a0b-343a0d00c9f1\"}}", + "x-ms-client-request-id" : "1b9f9c3a-d02a-4e4d-b29d-50fc4e662746", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:16 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:31 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "kbd0RRWoIki5xwl7plBmaw.0", - "X-Azure-Ref" : "0DfBYYAAAAADQqugL9KheR6WGiI6YHFPhWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-5a0e-b5bb-a43a0d000a8b\"}}", - "x-ms-client-request-id" : "ccbf50ef-68bb-4d63-be50-9cc6d2b4e092", + "X-Processing-Time" : "21ms", + "MS-CV" : "qbsgLuYIjUyL6hAIIa+PUQ.0", + "X-Azure-Ref" : "0OAPAYAAAAAD/mrCSa4i0RqqErecNtCm0V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-3715-6a0b-343a0d00c9f2\"}}", + "x-ms-client-request-id" : "bfc1878c-79aa-4a45-b464-0d60d03ad853", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,128 +75,134 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:17 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:31 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "CuryKuzJ9E+YvONG7B82Cw.0", - "X-Azure-Ref" : "0DfBYYAAAAABimIP5sTvSTYYRhAoMIhpcWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-5a61-eef0-8b3a0d0004ac\"}}", - "x-ms-client-request-id" : "d5d2e36c-c89b-4370-956b-e0fc1fd44965", + "X-Processing-Time" : "22ms", + "MS-CV" : "NGzr0Qlr60euCAA5tuWq0A.0", + "X-Azure-Ref" : "0OAPAYAAAAAAqd9SRRThlTbdEMppBiuNUV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-3747-6a0b-343a0d00c9f3\"}}", + "x-ms-client-request-id" : "ff31d90a-daf9-47b6-877b-94abe107202d", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-596b-b5bb-a43a0d000a8a/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-36ac-6a0b-343a0d00c9f0/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:17 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:31 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "129ms", - "MS-CV" : "KluguDNB/EKE2KiyIIxRNA.0", - "X-Azure-Ref" : "0DfBYYAAAAAC8yOUpDIIsT6sFbxCdGFQ5WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:17.1226144+00:00\"}", - "x-ms-client-request-id" : "c680f39b-1e26-41ff-8ff9-8fb6d0f8d663", + "X-Processing-Time" : "30ms", + "MS-CV" : "XCFjpcRcZ0SzmFUMmVImBQ.0", + "X-Azure-Ref" : "0OAPAYAAAAACqaubTDSlkSrxjy+dFT9/+V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:31.2025717+00:00\"}", + "x-ms-client-request-id" : "64f59604-0fdb-4629-b9fb-11b566c8618e", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "570ms", - "MS-CV" : "gnMP8diKxE+QOJUF/tmPsA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0DvBYYAAAAACO1EipCdfoRL7AMLQMoDIMWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:pIQ8PzHqhAmhxmOjs6w5ZncVavm5H08mQEPDUAb7hNU1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:18Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-596b-b5bb-a43a0d000a8a\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-596b-b5bb-a43a0d000a8a\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:18 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:32 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "478ms", + "MS-CV" : "y3B4jrbI7kmxrhlVUpLA4Q.0", + "X-Azure-Ref" : "0OAPAYAAAAAB2piLlDFayTp8vxUIIbgKUV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:fbWQAeQmf2Kq5WDpPF-YfZ-zLGfihOeS_nxry3ReDUI1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:32Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-36ac-6a0b-343a0d00c9f0\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-36ac-6a0b-343a0d00c9f0\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ApIQ8PzHqhAmhxmOjs6w5ZncVavm5H08mQEPDUAb7hNU1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AfbWQAeQmf2Kq5WDpPF-YfZ-zLGfihOeS_nxry3ReDUI1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:pIQ8PzHqhAmhxmOjs6w5ZncVavm5H08mQEPDUAb7hNU1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:fbWQAeQmf2Kq5WDpPF-YfZ-zLGfihOeS_nxry3ReDUI1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "117ms", - "MS-CV" : "MjAyHEHTB0mC6jxdgyosjA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0DvBYYAAAAADxPc0CDSb/TLtQX4BC6J6wWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441358817\"}", - "Date" : "Mon, 22 Mar 2021 19:29:17 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:32 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "259ms", + "MS-CV" : "KB2LCs18u0mKlTQ6y4YP/w.0", + "X-Azure-Ref" : "0OAPAYAAAAADKUcF4jIQmQobImBgrqZs+V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196472886\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ApIQ8PzHqhAmhxmOjs6w5ZncVavm5H08mQEPDUAb7hNU1@thread.v2/messages/1616441358817" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AfbWQAeQmf2Kq5WDpPF-YfZ-zLGfihOeS_nxry3ReDUI1@thread.v2/messages/1623196472886" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:pIQ8PzHqhAmhxmOjs6w5ZncVavm5H08mQEPDUAb7hNU1@thread.v2/readReceipts?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:fbWQAeQmf2Kq5WDpPF-YfZ-zLGfihOeS_nxry3ReDUI1@thread.v2/readReceipts?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "content-length" : "0", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "278ms", - "MS-CV" : "HVGJDaslgUCGiuWF2G4j1g.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "102ms", + "MS-CV" : "i/6tGyddfk65PT1guAy6iA.0", "retry-after" : "0", - "X-Azure-Ref" : "0DvBYYAAAAAAe6Jh9+B8NSKDypUw7K61eWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", + "X-Azure-Ref" : "0OQPAYAAAAAAN2y+T4mLTTLu4C4L5sWDwV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:19 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:32 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:pIQ8PzHqhAmhxmOjs6w5ZncVavm5H08mQEPDUAb7hNU1@thread.v2/readReceipts?maxPageSize=1&api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:fbWQAeQmf2Kq5WDpPF-YfZ-zLGfihOeS_nxry3ReDUI1@thread.v2/readReceipts?maxPageSize=1&api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "133ms", - "MS-CV" : "opRpWlzlgESxvVBI16/GEg.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "287ms", + "MS-CV" : "X3SzaynNqUK9MxXrWQVVLA.0", "retry-after" : "0", - "X-Azure-Ref" : "0D/BYYAAAAAAnzZ5hl2JvRJBrZMp1vMJNWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0OQPAYAAAAACkwyanK8f7RY8x4I+qH6N2V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-596b-b5bb-a43a0d000a8a\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-596b-b5bb-a43a0d000a8a\"}},\"chatMessageId\":\"1616441358817\",\"readOn\":\"2021-03-22T19:29:18Z\"}]}", - "Date" : "Mon, 22 Mar 2021 19:29:18 GMT", + "Body" : "{\"value\":[{\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-36ac-6a0b-343a0d00c9f0\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-36ac-6a0b-343a0d00c9f0\"}},\"chatMessageId\":\"1623196472886\",\"readOn\":\"2021-06-08T23:54:33Z\"}]}", + "Date" : "Tue, 08 Jun 2021 23:54:33 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenListReadReceiptsWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenListReadReceiptsWithResponse[1].json index 2f29d1af3f7b3..8283633ab304a 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenListReadReceiptsWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenListReadReceiptsWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:51 GMT", + "Date" : "Tue, 08 Jun 2021 21:44:32 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "VkHy/aZ1nEu4OvyEwA9hZg.0", - "X-Azure-Ref" : "08+9YYAAAAAA8K9JNnLm9RoWtsuoVyCBPWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-f47e-b5bb-a43a0d000a64\"}}", - "x-ms-client-request-id" : "543a9f3a-406c-44e5-a728-7c729be189c9", + "X-Processing-Time" : "86ms", + "MS-CV" : "ocjoNNc/bEOwSqnXzAzAHA.0", + "X-Azure-Ref" : "0wOS/YAAAAADm5JCs3RJ9Rpr0/p54FyHvV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8d77-3615-80f5-8b3a0d008514\"}}", + "x-ms-client-request-id" : "d45e7d4f-76f8-4144-a136-2909aae07fae", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:51 GMT", + "Date" : "Tue, 08 Jun 2021 21:44:32 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "7mRkgfXfIk6qzNgVqyTkXw.0", - "X-Azure-Ref" : "08+9YYAAAAABSuA4LPySCSKttpbeqPRHsWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-f4d2-eef0-8b3a0d000497\"}}", - "x-ms-client-request-id" : "db5504a3-702d-47ce-9404-25c1d84a809b", + "X-Processing-Time" : "78ms", + "MS-CV" : "/zUaaSu0XEeioulNJCoaJw.0", + "X-Azure-Ref" : "0weS/YAAAAAAYD8MsL/98QqzJYhE4EBOxV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8d77-36a6-b5bb-a43a0d00516b\"}}", + "x-ms-client-request-id" : "8679e0ff-2e04-4a20-a8a3-fc769f4dfb51", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:51 GMT", + "Date" : "Tue, 08 Jun 2021 21:44:32 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "EiF6l8VjXkWRFS+ZHilEvw.0", - "X-Azure-Ref" : "08+9YYAAAAAADsbmx6qh6QrAgMmVWPISkWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-f522-b5bb-a43a0d000a65\"}}", - "x-ms-client-request-id" : "2348a346-3e0c-4195-8b22-48f8965de0ca", + "X-Processing-Time" : "83ms", + "MS-CV" : "En34wKeYIkeWN9lXSK4JAA.0", + "X-Azure-Ref" : "0weS/YAAAAADi4T54klqHRKLL5WwL+Hk/V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8d77-3738-80f5-8b3a0d008515\"}}", + "x-ms-client-request-id" : "f629b382-a463-48e2-99c2-4dba249a1f3d", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,128 +75,134 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:51 GMT", + "Date" : "Tue, 08 Jun 2021 21:44:33 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "XEwx5NIsWEi2fnqrjWORZw.0", - "X-Azure-Ref" : "09O9YYAAAAADIIBMjEASXSI7xy4PuCYV8WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-f574-defd-8b3a0d000503\"}}", - "x-ms-client-request-id" : "24cf2ade-8ce6-4c1c-a294-4c1e884f68a2", + "X-Processing-Time" : "60ms", + "MS-CV" : "aW+Q50du10CZlV4AQ39Ptg.0", + "X-Azure-Ref" : "0weS/YAAAAAC+o/+l4W2MTr4HcoiDRpWTV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8d77-37c7-63b2-a43a0d002001\"}}", + "x-ms-client-request-id" : "8aa776d4-3fb3-4177-ac33-db00427f418b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-f47e-b5bb-a43a0d000a64/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8d77-3615-80f5-8b3a0d008514/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:51 GMT", + "Date" : "Tue, 08 Jun 2021 21:44:32 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "133ms", - "MS-CV" : "XjQ2rY77KEyR4HfGGgob+g.0", - "X-Azure-Ref" : "09O9YYAAAAAButACGK01ES7VXOSg8o0VcWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:51.2884942+00:00\"}", - "x-ms-client-request-id" : "d00246e1-e37d-4ba5-abeb-2582b28fb7f2", + "X-Processing-Time" : "153ms", + "MS-CV" : "dqK6GU3U2Uyit4jYyRU/SQ.0", + "X-Azure-Ref" : "0weS/YAAAAACDxkrmh+MSQ7KPa7vzqp7vV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T21:44:32.7390862+00:00\"}", + "x-ms-client-request-id" : "9a20b5c5-71e2-4ca3-9b68-ee99be54d525", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "787ms", - "MS-CV" : "Mr0418WfAE2O6k7fwWtAqQ.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "09O9YYAAAAAD3/u3pukwmR6gP1RIw2wyyWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:mwKt_Y2tcfXC_asL63Fd0miprCVRxhQviWPr2Bf28wE1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:52Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-f47e-b5bb-a43a0d000a64\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-f47e-b5bb-a43a0d000a64\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:52 GMT", + "Date" : "Tue, 08 Jun 2021 21:44:33 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "557ms", + "MS-CV" : "7m1cEHSKD0KhI/dC/RqttQ.0", + "X-Azure-Ref" : "0weS/YAAAAAC5H0CH184bTr8CzNeQmPUoV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:nTQNoie1rykv_sIc8l4ep6l-Gzvi6ueKFgfxI3Ue-so1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T21:44:33Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8d77-3615-80f5-8b3a0d008514\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8d77-3615-80f5-8b3a0d008514\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AmwKt_Y2tcfXC_asL63Fd0miprCVRxhQviWPr2Bf28wE1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AnTQNoie1rykv_sIc8l4ep6l-Gzvi6ueKFgfxI3Ue-so1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:mwKt_Y2tcfXC_asL63Fd0miprCVRxhQviWPr2Bf28wE1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:nTQNoie1rykv_sIc8l4ep6l-Gzvi6ueKFgfxI3Ue-so1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "247ms", - "MS-CV" : "Y3l3hbhbpkSjln37OHFX0g.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "09e9YYAAAAABQ4wDFKFQBR7xuEhtJwMLoWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441333253\"}", - "Date" : "Mon, 22 Mar 2021 19:28:52 GMT", + "Date" : "Tue, 08 Jun 2021 21:44:33 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "304ms", + "MS-CV" : "e/wI4Us1LEuw0/1YWpKXmQ.0", + "X-Azure-Ref" : "0wuS/YAAAAADA2GbelujFQK43Vsst78fBV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623188674542\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AmwKt_Y2tcfXC_asL63Fd0miprCVRxhQviWPr2Bf28wE1@thread.v2/messages/1616441333253" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AnTQNoie1rykv_sIc8l4ep6l-Gzvi6ueKFgfxI3Ue-so1@thread.v2/messages/1623188674542" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:mwKt_Y2tcfXC_asL63Fd0miprCVRxhQviWPr2Bf28wE1@thread.v2/readReceipts?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:nTQNoie1rykv_sIc8l4ep6l-Gzvi6ueKFgfxI3Ue-so1@thread.v2/readReceipts?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "content-length" : "0", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "130ms", - "MS-CV" : "BnmDOIgeWUWsz06W7EI9PA.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "286ms", + "MS-CV" : "tCnby/tJqEianmAYKBUz+A.0", "retry-after" : "0", - "X-Azure-Ref" : "09e9YYAAAAADhvIbZJ9nbRIatNdiIhRZTWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", + "X-Azure-Ref" : "0wuS/YAAAAAAfSc3X86KhSrBR0CDq7wEXV1NURURHRTA4MTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:52 GMT" + "Date" : "Tue, 08 Jun 2021 21:44:34 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:mwKt_Y2tcfXC_asL63Fd0miprCVRxhQviWPr2Bf28wE1@thread.v2/readReceipts?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:nTQNoie1rykv_sIc8l4ep6l-Gzvi6ueKFgfxI3Ue-so1@thread.v2/readReceipts?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "109ms", - "MS-CV" : "oLui/V+SOEmLGSZZBdqNLA.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "179ms", + "MS-CV" : "sxNwE/ZWVEipnMYHyz+7Gg.0", "retry-after" : "0", - "X-Azure-Ref" : "09e9YYAAAAACmL1j5dLhWSIxELdCcQH1oWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0w+S/YAAAAABcbDEKf00zSoUoh98dugRuV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-f47e-b5bb-a43a0d000a64\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-f47e-b5bb-a43a0d000a64\"}},\"chatMessageId\":\"1616441333253\",\"readOn\":\"2021-03-22T19:28:53Z\"}]}", - "Date" : "Mon, 22 Mar 2021 19:28:53 GMT", + "Body" : "{\"value\":[{\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8d77-3615-80f5-8b3a0d008514\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8d77-3615-80f5-8b3a0d008514\"}},\"chatMessageId\":\"1623188674542\",\"readOn\":\"2021-06-08T21:44:34Z\"}]}", + "Date" : "Tue, 08 Jun 2021 21:44:34 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenListReadReceipts[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenListReadReceipts[1].json index 217b5d64416b5..4237fa3611151 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenListReadReceipts[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendThenListReadReceipts[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:10 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:26 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "Nel1QsbLnkCsj20hE7IasQ.0", - "X-Azure-Ref" : "0B/BYYAAAAADHVg9wAKj5QK5Ha5pQqsGFWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-3f9a-b5bb-a43a0d000a7e\"}}", - "x-ms-client-request-id" : "3aab5090-ed89-4cf3-b563-e2a533c600a6", + "X-Processing-Time" : "20ms", + "MS-CV" : "P1VHmg3yGU+bAURwKI37zA.0", + "X-Azure-Ref" : "0MwPAYAAAAAAgNMORI9wxRKC9hG2DHTPsV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2385-f40f-343a0d001831\"}}", + "x-ms-client-request-id" : "64bc4a31-08b6-4358-b31c-996580344f1b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:10 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:26 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "6BBl0KNPcUi5p1yQZ/LC1w.0", - "X-Azure-Ref" : "0B/BYYAAAAADdudtlN0BwT5CnGTmxX2L3WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-3fee-eef0-8b3a0d0004a8\"}}", - "x-ms-client-request-id" : "390a0bc1-4d27-47bb-9837-b60a9cae9458", + "X-Processing-Time" : "24ms", + "MS-CV" : "o3Fx35m1ZEmQJB/hq34Y4Q.0", + "X-Azure-Ref" : "0MwPAYAAAAACo07c5+9T1R7bSCn0SiQBWV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-23b8-6a0b-343a0d00c9e1\"}}", + "x-ms-client-request-id" : "dfb3ad56-468c-4c9e-a0f2-4c4189a97f76", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:10 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:26 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "chBYESz8DEKOV9tgta8ccQ.0", - "X-Azure-Ref" : "0B/BYYAAAAAD6mp84fzl5T41wrT36h1sLWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-403f-b5bb-a43a0d000a7f\"}}", - "x-ms-client-request-id" : "f978ad9e-619e-41c5-a6ea-e93d19c907e5", + "X-Processing-Time" : "23ms", + "MS-CV" : "ryFgYrk+RU+sZZwzhTlEeQ.0", + "X-Azure-Ref" : "0MwPAYAAAAABtoGwNjMqWSK9w/rEMOdSCV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-23ea-f40f-343a0d001832\"}}", + "x-ms-client-request-id" : "22efc7bd-adde-4b1f-b7c1-2895ea29e450", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,128 +75,134 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:10 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:27 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "lor+x4oR9kuK5vl2DJ0ZPA.0", - "X-Azure-Ref" : "0B/BYYAAAAABteupjfVUzSKTQhXAfJn/FWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-4091-defd-8b3a0d00051d\"}}", - "x-ms-client-request-id" : "4db29192-2ac1-4a3f-bd38-47c829dc9a68", + "X-Processing-Time" : "23ms", + "MS-CV" : "m6clTFollUOJV+WTCCAc6g.0", + "X-Azure-Ref" : "0MwPAYAAAAABRj2FuMdO0R7vphGZaqDdRV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2420-6a0b-343a0d00c9e2\"}}", + "x-ms-client-request-id" : "ee0fb7f8-df78-468d-9cd4-ea2fbf53db28", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-3f9a-b5bb-a43a0d000a7e/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2385-f40f-343a0d001831/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:10 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:27 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "131ms", - "MS-CV" : "N/l9Qc1YjEuODbCjEH76KQ.0", - "X-Azure-Ref" : "0B/BYYAAAAAD/o28gRbSYTajaSxVveZsSWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:10.5152982+00:00\"}", - "x-ms-client-request-id" : "40b5f7cb-a34d-4170-a8e0-99eb80f36ab0", + "X-Processing-Time" : "30ms", + "MS-CV" : "ZRuO4UlYFkKe9EQexcG72Q.0", + "X-Azure-Ref" : "0MwPAYAAAAABA6ViBE7/MQoeSm8Hn2opMV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:26.3752713+00:00\"}", + "x-ms-client-request-id" : "7a50de0a-cf29-4a03-a077-eb15cfbd2592", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "681ms", - "MS-CV" : "RyOl0s9s30i45+QXY1Kqwg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0B/BYYAAAAAAjlEaLX8LgSpjb31gZpyFhWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:D7u-fO7-pXvdbQTy8Vk0ag_DzIQjzlG-_bAAKeFIejs1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:11Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-3f9a-b5bb-a43a0d000a7e\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-3f9a-b5bb-a43a0d000a7e\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:11 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:27 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "320ms", + "MS-CV" : "/jEi72FSrk+NII8pKTJnRA.0", + "X-Azure-Ref" : "0MwPAYAAAAABsO+gU9cUhSIC9f1i3qiJlV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:_E0oEmrPrFQsEBq0dBjwkDQjub4KbJwb-EhZCMJznNw1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:27Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2385-f40f-343a0d001831\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2385-f40f-343a0d001831\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AD7u-fO7-pXvdbQTy8Vk0ag_DzIQjzlG-_bAAKeFIejs1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A_E0oEmrPrFQsEBq0dBjwkDQjub4KbJwb-EhZCMJznNw1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:D7u-fO7-pXvdbQTy8Vk0ag_DzIQjzlG-_bAAKeFIejs1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:_E0oEmrPrFQsEBq0dBjwkDQjub4KbJwb-EhZCMJznNw1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "188ms", - "MS-CV" : "fjY2RJfOSkqqudJMCrxahg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0CPBYYAAAAAB2uypnOD8NQa3YCtrYLlV7WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441352319\"}", - "Date" : "Mon, 22 Mar 2021 19:29:11 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:27 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "145ms", + "MS-CV" : "upB7rEwFKU+PTnsv197L0w.0", + "X-Azure-Ref" : "0MwPAYAAAAABdc9LeDBkaTrBuhDujo1V7V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196467804\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AD7u-fO7-pXvdbQTy8Vk0ag_DzIQjzlG-_bAAKeFIejs1@thread.v2/messages/1616441352319" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A_E0oEmrPrFQsEBq0dBjwkDQjub4KbJwb-EhZCMJznNw1@thread.v2/messages/1623196467804" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:D7u-fO7-pXvdbQTy8Vk0ag_DzIQjzlG-_bAAKeFIejs1@thread.v2/readReceipts?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:_E0oEmrPrFQsEBq0dBjwkDQjub4KbJwb-EhZCMJznNw1@thread.v2/readReceipts?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "content-length" : "0", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "268ms", - "MS-CV" : "ds7WvIkTVUKBS0tnqNkksQ.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "121ms", + "MS-CV" : "E8SHhKfLZ06x76+jCeGoKw.0", "retry-after" : "0", - "X-Azure-Ref" : "0CPBYYAAAAACZmQ5m69F8Spy6m6Xmc9F+WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", + "X-Azure-Ref" : "0MwPAYAAAAADHO3paOMAwRbRKhBMXcYZIV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:11 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:27 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:D7u-fO7-pXvdbQTy8Vk0ag_DzIQjzlG-_bAAKeFIejs1@thread.v2/readReceipts?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:_E0oEmrPrFQsEBq0dBjwkDQjub4KbJwb-EhZCMJznNw1@thread.v2/readReceipts?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "155ms", - "MS-CV" : "J2RIenKMCkWz1HLfajUzew.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "174ms", + "MS-CV" : "yulAhEvyP0yQd11SAeZPrw.0", "retry-after" : "0", - "X-Azure-Ref" : "0CPBYYAAAAAAxYsCoXv9uRJzxEdrDHEfDWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0NAPAYAAAAAC06VvZP4fzTbd7Etxze5lpV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"value\":[{\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-3f9a-b5bb-a43a0d000a7e\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-3f9a-b5bb-a43a0d000a7e\"}},\"chatMessageId\":\"1616441352319\",\"readOn\":\"2021-03-22T19:29:12Z\"}]}", - "Date" : "Mon, 22 Mar 2021 19:29:12 GMT", + "Body" : "{\"value\":[{\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2385-f40f-343a0d001831\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-2385-f40f-343a0d001831\"}},\"chatMessageId\":\"1623196467804\",\"readOn\":\"2021-06-08T23:54:27Z\"}]}", + "Date" : "Tue, 08 Jun 2021 23:54:28 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendTypingNotificationWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendTypingNotificationWithResponse[1].json index 4384980d51f13..fca200a42067c 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendTypingNotificationWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendTypingNotificationWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:07 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:25 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "16ms", - "MS-CV" : "h5uqU/TZd06anhkejAP/BA.0", - "X-Azure-Ref" : "0A/BYYAAAAABGAjkqOrNySqM0s9xheKbfWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-337b-b5bb-a43a0d000a78\"}}", - "x-ms-client-request-id" : "83f9a8d4-7ba9-4ae6-a22a-4f1900d9c3e9", + "X-Processing-Time" : "22ms", + "MS-CV" : "qJkeTQGhXE+LHMltnvPsZw.0", + "X-Azure-Ref" : "0MQPAYAAAAABsG37HeD1fQpE9Qgsx1qNlV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1c45-f40f-343a0d00182c\"}}", + "x-ms-client-request-id" : "7ed33246-f9fb-4aa0-be2e-cd2f6ea1d1c6", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:07 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:25 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "tNxYsJ2jW0mP/eneMyPe1Q.0", - "X-Azure-Ref" : "0A/BYYAAAAACV0aZ98mVAQ7Ifj/2CMrKaWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-33cd-defd-8b3a0d00051b\"}}", - "x-ms-client-request-id" : "3cf100ae-3e85-47bf-b6af-66f2ddbd3054", + "X-Processing-Time" : "26ms", + "MS-CV" : "qPhb9XXFA0+CK1a3nSLXXA.0", + "X-Azure-Ref" : "0MQPAYAAAAAB0Mljwp50rTJ9fQiMA45/IV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1c7a-6a0b-343a0d00c9dd\"}}", + "x-ms-client-request-id" : "22367427-d8d7-4c25-8cc0-0edf7562c9d5", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:07 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:25 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "UtTfhpm5lUGVhsSg9CwN0Q.0", - "X-Azure-Ref" : "0BPBYYAAAAADx2GOtuA3fTbgjeKqdZ1ATWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-341d-b5bb-a43a0d000a79\"}}", - "x-ms-client-request-id" : "8361c5a7-cb5e-4f29-8c34-1f7afbeb4183", + "X-Processing-Time" : "23ms", + "MS-CV" : "XJVtS3TUJU64p4QmFTIzBA.0", + "X-Azure-Ref" : "0MQPAYAAAAABKfoqNzyeeR7jYtquZnEVJV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1cb2-f40f-343a0d00182d\"}}", + "x-ms-client-request-id" : "a4e19198-e2d5-4555-ba8d-69192703bcb7", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,86 +75,90 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:07 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:25 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "5mkIv3xyFkudQL86W/znZw.0", - "X-Azure-Ref" : "0BPBYYAAAAADGKMIThNmpSqjhhacxI3XFWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-3470-eef0-8b3a0d0004a4\"}}", - "x-ms-client-request-id" : "9614e6cf-0fdf-4c10-8710-362c728f8cc0", + "X-Processing-Time" : "24ms", + "MS-CV" : "/iw9bXRi2E6JdepArzq/2A.0", + "X-Azure-Ref" : "0MQPAYAAAAABSqGBTI/ZLQLJW2rZbroYSV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1cea-6a0b-343a0d00c9de\"}}", + "x-ms-client-request-id" : "6a05a527-50e7-46af-8a25-4d55bc6fbdc4", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-337b-b5bb-a43a0d000a78/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1c45-f40f-343a0d00182c/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:07 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:25 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "122ms", - "MS-CV" : "vu8TqGxyeE+QCP7xmeYkgA.0", - "X-Azure-Ref" : "0BPBYYAAAAACxvnXgfzPxQo7VEzY8ErE5WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:07.4028374+00:00\"}", - "x-ms-client-request-id" : "e447167b-93b4-4bc5-8529-c79d1675998a", + "X-Processing-Time" : "28ms", + "MS-CV" : "Pw4c/6aEh0Gq0zUP5pTwqg.0", + "X-Azure-Ref" : "0MQPAYAAAAADHMVBiBFrGSYMl5eZ9jsw/V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:24.4531547+00:00\"}", + "x-ms-client-request-id" : "83ad0aca-adfa-45d8-b0d9-d4d980566a68", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "641ms", - "MS-CV" : "oNcaHgZyoUmO3GWz61WDXw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0BPBYYAAAAACrPlsodGZWTZ40PsATBTqCWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:RGnGloxtmWwN52qN-8cqIqoray7wXe8azahPwFZIKns1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:08Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-337b-b5bb-a43a0d000a78\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-337b-b5bb-a43a0d000a78\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:08 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:25 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "499ms", + "MS-CV" : "VbWVXK6ATkCTOU+Ht7e1ZA.0", + "X-Azure-Ref" : "0MQPAYAAAAADG+fp9PkdNQoJnAHxRoGW1V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:G1Y-PpjGvt1VJYlcH_DKOgib52bzfTCzqJXXJW6YjRQ1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:25Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1c45-f40f-343a0d00182c\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-1c45-f40f-343a0d00182c\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ARGnGloxtmWwN52qN-8cqIqoray7wXe8azahPwFZIKns1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AG1Y-PpjGvt1VJYlcH_DKOgib52bzfTCzqJXXJW6YjRQ1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:RGnGloxtmWwN52qN-8cqIqoray7wXe8azahPwFZIKns1@thread.v2/typing?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:G1Y-PpjGvt1VJYlcH_DKOgib52bzfTCzqJXXJW6YjRQ1@thread.v2/typing?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "content-length" : "0", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "155ms", - "MS-CV" : "1w3zkxuMwU6YsUu4srtwvQ.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "196ms", + "MS-CV" : "kKFm5VCilkasgk8CUaX3Ow.0", "retry-after" : "0", - "X-Azure-Ref" : "0BfBYYAAAAAAefKh1ljsGSKkzYtFObqGSWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", + "X-Azure-Ref" : "0MgPAYAAAAADl/EZlFC6TTYNUsnIE+c/RV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:08 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:26 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendTypingNotification[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendTypingNotification[1].json index 885e2a6f8976b..7b1596d9dbc56 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendTypingNotification[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canSendTypingNotification[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:19 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:33 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "hxe/ecfTVUG/mz0tetvusg.0", - "X-Azure-Ref" : "0D/BYYAAAAAAyDK99j07LQ4o6ZlLugF74WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-605d-defd-8b3a0d000525\"}}", - "x-ms-client-request-id" : "48238454-c3d9-48ad-b637-ede414319adf", + "X-Processing-Time" : "23ms", + "MS-CV" : "rZVLjRTIBUu0S1V6/guGuw.0", + "X-Azure-Ref" : "0OQPAYAAAAABtm1iuyvjaQ6QhZj8EnifIV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-3cab-6a0b-343a0d00c9f4\"}}", + "x-ms-client-request-id" : "23df86d1-5dab-4535-b670-c2631d3aa652", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:18 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:33 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "mMv04gF1G0GcVdBZYy1g4w.0", - "X-Azure-Ref" : "0D/BYYAAAAABADqw+En5mSK6e1SlkE8dZWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-60ae-b5bb-a43a0d000a8d\"}}", - "x-ms-client-request-id" : "98804c38-becf-4a01-aed0-6a5ddedc9456", + "X-Processing-Time" : "23ms", + "MS-CV" : "yFNt1unWnkeNBtYRVrcEfg.0", + "X-Azure-Ref" : "0OQPAYAAAAACxfPhpRVySQLOxe2OFf4Q3V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-3cdf-6a0b-343a0d00c9f5\"}}", + "x-ms-client-request-id" : "83033bc8-2a2c-4be5-8276-75cd3aa8f794", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:19 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:33 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "K2HKEp0ZpEK3JkLlq75oAw.0", - "X-Azure-Ref" : "0D/BYYAAAAAD5xfqU8QvcR5Kms65ufAXcWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6100-eef0-8b3a0d0004ad\"}}", - "x-ms-client-request-id" : "c563e90a-c8f5-4929-a2b3-6f1a00d3d17a", + "X-Processing-Time" : "22ms", + "MS-CV" : "P5BJx2KXDEGHNlnFImQxLw.0", + "X-Azure-Ref" : "0OQPAYAAAAACSp+vakI9/SZS5awJ+YnbiV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-3d12-6a0b-343a0d00c9f6\"}}", + "x-ms-client-request-id" : "5f259a12-84f3-48d1-81d2-99dc26fa6c47", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,86 +75,90 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:18 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:33 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "6l/xe//1QUWTcluaDM0OSg.0", - "X-Azure-Ref" : "0D/BYYAAAAAD6hD+vZWR1Q4mBTF0LLRkJWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-6151-b5bb-a43a0d000a8e\"}}", - "x-ms-client-request-id" : "05d23b3d-5a1a-4dbc-a295-14bbc4c67a0b", + "X-Processing-Time" : "24ms", + "MS-CV" : "tY8o9jmA3ke6ZIFIhc73PA.0", + "X-Azure-Ref" : "0OQPAYAAAAACkm8/C/3vgR7hI2Zp9RADoV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-3d48-6a0b-343a0d00c9f7\"}}", + "x-ms-client-request-id" : "36bf73bd-cfad-40f2-b0ce-ca4230418572", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-605d-defd-8b3a0d000525/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-3cab-6a0b-343a0d00c9f4/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:19 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:33 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "161ms", - "MS-CV" : "kZbNpY5ti0uGPXHqGdZpjg.0", - "X-Azure-Ref" : "0D/BYYAAAAADy5he7oGCGTK8xyYN+uXRLWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:18.9321772+00:00\"}", - "x-ms-client-request-id" : "2baba8b9-506f-45f4-a5a4-bc3e167594ec", + "X-Processing-Time" : "30ms", + "MS-CV" : "0/HCZVLU1kurmiwGu9Kpkw.0", + "X-Azure-Ref" : "0OQPAYAAAAACz+AOP9+F+R7LXyw47MBgRV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:32.7389778+00:00\"}", + "x-ms-client-request-id" : "e85bed25-58b1-4295-a777-b8dfc66f9555", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "686ms", - "MS-CV" : "J37g59qxcUKRZILX0qnkYg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0D/BYYAAAAADflflP7AvGQ5sbtKf+onUeWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:WkLa7Af4q0TiGe2xqX9-xz_gsLDdTNVL4EecpH9EZes1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:20Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-605d-defd-8b3a0d000525\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-605d-defd-8b3a0d000525\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:19 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:34 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "839ms", + "MS-CV" : "uM/HnENbnUqRB8qheh3Gew.0", + "X-Azure-Ref" : "0OQPAYAAAAADt8AyOax0IQ6vD9y4Di5MGV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:8RZtcfiufQV_b8uhbDPJ4LqeAdAX_ukAbOjnosv5erY1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:33Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-3cab-6a0b-343a0d00c9f4\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-3cab-6a0b-343a0d00c9f4\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AWkLa7Af4q0TiGe2xqX9-xz_gsLDdTNVL4EecpH9EZes1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A8RZtcfiufQV_b8uhbDPJ4LqeAdAX_ukAbOjnosv5erY1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:WkLa7Af4q0TiGe2xqX9-xz_gsLDdTNVL4EecpH9EZes1@thread.v2/typing?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:8RZtcfiufQV_b8uhbDPJ4LqeAdAX_ukAbOjnosv5erY1@thread.v2/typing?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", + "content-length" : "0", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "177ms", - "MS-CV" : "j0nVXecW7Uem+AxZPWio7A.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "92ms", + "MS-CV" : "1XiD0CPjV06jn4JOTIqAqg.0", "retry-after" : "0", - "X-Azure-Ref" : "0EPBYYAAAAAAHZVlyA6oGR4LG5tqVzhRoWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Content-Length" : "0", + "X-Azure-Ref" : "0OgPAYAAAAAAjiOR4DPO/RpnZnBLYgE4sV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:20 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:34 GMT" }, "Exception" : null } ], diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateExistingMessageWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateExistingMessageWithResponse[1].json index 2460686e4241e..e21bcf135694b 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateExistingMessageWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateExistingMessageWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:23 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:37 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "13ms", - "MS-CV" : "EeLxq+hO1kOVuTCAFZi0Gg.0", - "X-Azure-Ref" : "0FPBYYAAAAAAjzWcEibzwTKqS3WVP2roIWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-73f6-b5bb-a43a0d000a99\"}}", - "x-ms-client-request-id" : "0079a0c5-1a59-4123-a165-b13976d9abf0", + "X-Processing-Time" : "22ms", + "MS-CV" : "jd4L5Mr/EU+jsL28EjQF1A.0", + "X-Azure-Ref" : "0PQPAYAAAAABAzyx9NSKGQ7x/NMEQ3iT/V1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-4b40-6a0b-343a0d00ca05\"}}", + "x-ms-client-request-id" : "4c50e836-2e4b-44c3-8c08-0e8ab3713d32", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:24 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:37 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "/q+Y6q3jBUqgqvca1NkR7w.0", - "X-Azure-Ref" : "0FPBYYAAAAAAGTvonlx0KTo+Yki0J39pMWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-7449-eef0-8b3a0d0004b2\"}}", - "x-ms-client-request-id" : "ee6b50e0-b819-44a3-8837-1c39f35ed8d2", + "X-Processing-Time" : "22ms", + "MS-CV" : "rNqXBGZHV0SxiW6uhvTyOw.0", + "X-Azure-Ref" : "0PQPAYAAAAACGKBNGgsamS6m4CIyNnsMbV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-4b75-6a0b-343a0d00ca06\"}}", + "x-ms-client-request-id" : "c1c0a61d-a9f2-40b9-83cf-5c85ccbfc518", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:23 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:37 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "jQFvKrsSdEyvo3IGY1uHvQ.0", - "X-Azure-Ref" : "0FPBYYAAAAADZTLUVxfBMS50jkCgbfkc6WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-7499-b5bb-a43a0d000a9a\"}}", - "x-ms-client-request-id" : "f8ed22c8-7c18-49ba-b375-82a9ebd28ba3", + "X-Processing-Time" : "23ms", + "MS-CV" : "u0QeEy0oeEWnrJ67oFzVpw.0", + "X-Azure-Ref" : "0PQPAYAAAAAC3+xCjTvJvTYk1Bl1zoJeHV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-4ba9-6a0b-343a0d00ca07\"}}", + "x-ms-client-request-id" : "522e4ce8-9425-48ac-a38b-67ac13cbaa59", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,127 +75,133 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:24 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:37 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "3kLlq+AKEkmGPxSK9FUu/w.0", - "X-Azure-Ref" : "0FPBYYAAAAABwhF8r73NwSqwQASxkg0YCWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-74ed-defd-8b3a0d00052a\"}}", - "x-ms-client-request-id" : "f0118fad-ee34-4be1-a942-9c3ef18cb28b", + "X-Processing-Time" : "22ms", + "MS-CV" : "vlEaXwBk/UShvg/NMlvEHQ.0", + "X-Azure-Ref" : "0PQPAYAAAAAAXji9mkcHMR7Yd4mQS3szJV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-4bdc-6a0b-343a0d00ca08\"}}", + "x-ms-client-request-id" : "1e009bfc-5b17-43ef-b5da-902801ee69cb", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-73f6-b5bb-a43a0d000a99/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-4b40-6a0b-343a0d00ca05/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:23 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:37 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "132ms", - "MS-CV" : "F8i7r12sIUa6VT80m8oU+A.0", - "X-Azure-Ref" : "0FPBYYAAAAAC5GkGCSoyqRpA6VErR71XBWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:23.920529+00:00\"}", - "x-ms-client-request-id" : "33bee837-b856-46db-a521-7843de02abb6", + "X-Processing-Time" : "27ms", + "MS-CV" : "NlkTxo+1UUm/xjx3rIV8IA.0", + "X-Azure-Ref" : "0PQPAYAAAAABvqkXF7/TeS75+MBfGQKCSV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:36.468358+00:00\"}", + "x-ms-client-request-id" : "f41149e1-eaed-4b8c-9e37-db12316b4af5", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "506ms", - "MS-CV" : "CgJPeD+1ZUyhr+LthIV2kw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0FPBYYAAAAAAak40kb/YJRLm6QJND3EvoWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:dZW53jOkTna487helD3TAPVkxWMu83YVXyf28bj4S101@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:25Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-73f6-b5bb-a43a0d000a99\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-73f6-b5bb-a43a0d000a99\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:25 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:37 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "320ms", + "MS-CV" : "CNsTgpPOm0+9/c2wLcVjag.0", + "X-Azure-Ref" : "0PQPAYAAAAACkvin4zB9PS7kE/PdGkphKV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:26-tFH8bFbCsSt5R7wnTaObEp98i6j2AhJH6BBREOGA1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:37Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-4b40-6a0b-343a0d00ca05\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-4b40-6a0b-343a0d00ca05\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AdZW53jOkTna487helD3TAPVkxWMu83YVXyf28bj4S101@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A26-tFH8bFbCsSt5R7wnTaObEp98i6j2AhJH6BBREOGA1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:dZW53jOkTna487helD3TAPVkxWMu83YVXyf28bj4S101@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:26-tFH8bFbCsSt5R7wnTaObEp98i6j2AhJH6BBREOGA1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "151ms", - "MS-CV" : "+xXY1d/5FE2zazMWaINF0A.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0FfBYYAAAAABEPB7a/+5wT7gztdfedsnsWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441365592\"}", - "Date" : "Mon, 22 Mar 2021 19:29:24 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:37 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "216ms", + "MS-CV" : "jTLSm8/DfkOs4RNGqzQZVw.0", + "X-Azure-Ref" : "0PQPAYAAAAABP3U0guGrERqhZhmReQL8KV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196477954\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AdZW53jOkTna487helD3TAPVkxWMu83YVXyf28bj4S101@thread.v2/messages/1616441365592" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3A26-tFH8bFbCsSt5R7wnTaObEp98i6j2AhJH6BBREOGA1@thread.v2/messages/1623196477954" }, "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:dZW53jOkTna487helD3TAPVkxWMu83YVXyf28bj4S101@thread.v2/messages/1616441365592?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:26-tFH8bFbCsSt5R7wnTaObEp98i6j2AhJH6BBREOGA1@thread.v2/messages/1623196477954?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/merge-patch+json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "286ms", - "MS-CV" : "Rm6/UA9Bs0GzGkh82h5FQQ.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "201ms", + "MS-CV" : "J1ShCgE350a4Z4x0X62r5A.0", "retry-after" : "0", - "X-Azure-Ref" : "0FfBYYAAAAAB5hGcvYoFKR7wQrQsZ7eUnWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0PgPAYAAAAADxbQKnc6BNTKflVySKy2vMV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:29:25 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:38 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:dZW53jOkTna487helD3TAPVkxWMu83YVXyf28bj4S101@thread.v2/messages/1616441365592?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:26-tFH8bFbCsSt5R7wnTaObEp98i6j2AhJH6BBREOGA1@thread.v2/messages/1623196477954?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "82ms", - "MS-CV" : "h9PqZuDrdU6q3Y1NzU6BEg.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "85ms", + "MS-CV" : "tQ9nEWcp1kyu04fvDdLKRA.0", "retry-after" : "0", - "X-Azure-Ref" : "0FfBYYAAAAABOI7ZLWQemRqGZylTnwLk3WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0PgPAYAAAAACJI2ULhjwIR79PzH6FUBZJV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"1616441365592\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1616441365841\",\"content\":{\"message\":\"Update Test\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-03-22T19:29:25Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-73f6-b5bb-a43a0d000a99\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-73f6-b5bb-a43a0d000a99\"}},\"editedOn\":\"2021-03-22T19:29:25Z\"}", - "Date" : "Mon, 22 Mar 2021 19:29:25 GMT", + "Body" : "{\"id\":\"1623196477954\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1623196478232\",\"content\":{\"message\":\"Update Test\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-06-08T23:54:37Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-4b40-6a0b-343a0d00ca05\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-4b40-6a0b-343a0d00ca05\"}},\"editedOn\":\"2021-06-08T23:54:38Z\",\"metadata\":{\"onedriveReferences\":\"onedriveReferences - updated\",\"deliveryMode\":\"deliveryMode value - updated\",\"amsreferences\":\"[\\\\\\\"test url file 3\\\\\\\"]\",\"key\":\"value key\"}}", + "Date" : "Tue, 08 Jun 2021 23:54:38 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateExistingMessage[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateExistingMessage[1].json index 380b2c5d422ad..78ef2cb7ba7bb 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateExistingMessage[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateExistingMessage[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:26 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:38 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "GPdT7TdDlEeXk2uwmLqsxA.0", - "X-Azure-Ref" : "0FvBYYAAAAADWX7Tu5mRWRIUQoEGrts34WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-7a9a-eef0-8b3a0d0004b3\"}}", - "x-ms-client-request-id" : "68e9916a-4ce8-4255-9eab-54977bb2bf12", + "X-Processing-Time" : "24ms", + "MS-CV" : "+YHKp+Aew0W825Y0sjdjvA.0", + "X-Azure-Ref" : "0PgPAYAAAAAD80TiQT6u+Qb8Qq76WdDK7V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5004-6a0b-343a0d00ca09\"}}", + "x-ms-client-request-id" : "c8bf0acb-85ef-4281-bcbc-3c1d376cebf6", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:25 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:38 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "iI3fQPfIUkmO19WzBg3kWA.0", - "X-Azure-Ref" : "0FvBYYAAAAAC6YfoARsNLQIhoTR1C9VccWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-7af0-b5bb-a43a0d000a9c\"}}", - "x-ms-client-request-id" : "d39cb08a-4dc4-4970-ab58-a0450ab1ab13", + "X-Processing-Time" : "24ms", + "MS-CV" : "WggO+7PC702eNmPRUtqpzA.0", + "X-Azure-Ref" : "0PgPAYAAAAAC/2KoaGuRpQJGjNHg6P5YAV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-503b-6a0b-343a0d00ca0a\"}}", + "x-ms-client-request-id" : "239f08d1-89c6-449b-be28-6a54cec7dfba", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:26 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:38 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "SwL5uXAdMEu9emGqxfP3pQ.0", - "X-Azure-Ref" : "0FvBYYAAAAAAwNT9C9UkWSYkdCOW4/nl3WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-7b43-defd-8b3a0d00052b\"}}", - "x-ms-client-request-id" : "67b670a8-d5a9-4ba7-aaa4-e5d8ec7a8cbc", + "X-Processing-Time" : "22ms", + "MS-CV" : "ShInDSpUaEuPsNfUg/J+5g.0", + "X-Azure-Ref" : "0PgPAYAAAAAD3sqrSUk1dQYujUZCOS4kYV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-506f-6a0b-343a0d00ca0b\"}}", + "x-ms-client-request-id" : "01f61775-0758-4f34-b05f-292c2783442a", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,127 +75,133 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:29:25 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:38 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "0Ribztip1kqr+oha363C0A.0", - "X-Azure-Ref" : "0FvBYYAAAAAAZ/kcdQUDYQq4TVYHQN7cjWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-7b93-b5bb-a43a0d000a9d\"}}", - "x-ms-client-request-id" : "4ce2b924-b180-44e8-9801-247d5031cb72", + "X-Processing-Time" : "21ms", + "MS-CV" : "0w7Zl4VDeE+Dz2nnkc5Exg.0", + "X-Azure-Ref" : "0PgPAYAAAAAAg7oPnFmx6TZiGdBrBMwIoV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-50a4-6a0b-343a0d00ca0c\"}}", + "x-ms-client-request-id" : "277e59a0-8c81-4ad8-a2fd-24380f573d25", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-7a9a-eef0-8b3a0d0004b3/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5004-6a0b-343a0d00ca09/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:29:26 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:38 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "145ms", - "MS-CV" : "QQjzdrTb502EKyPie6Zh4g.0", - "X-Azure-Ref" : "0FvBYYAAAAAAb0lMrz66AQIxs6/ShQRAtWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:29:25.6364707+00:00\"}", - "x-ms-client-request-id" : "37725916-a942-43f1-94d5-6bfba39b8299", + "X-Processing-Time" : "30ms", + "MS-CV" : "hrPb6XBU0UCJbnjeA4AmgQ.0", + "X-Azure-Ref" : "0PgPAYAAAAABZ2qfRLurJT7tnMlGy1VE8V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:37.6946676+00:00\"}", + "x-ms-client-request-id" : "5fcd94c7-9024-4323-86e2-444fbefc36a4", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "356ms", - "MS-CV" : "EntT1hYIokSdL0MT8WtgFg.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0FvBYYAAAAADt8kYZMtQfRZxUivtePfKbWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:5TMgZQAQsoUTGBsEKFVZMtepiHaPN50bZ84gIod80Wc1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:29:26Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-7a9a-eef0-8b3a0d0004b3\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-7a9a-eef0-8b3a0d0004b3\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:29:26 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:38 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "458ms", + "MS-CV" : "fin68iPYpkWXsrxN0AIlFQ.0", + "X-Azure-Ref" : "0PgPAYAAAAADAxRDN83CHQIKAV3flSbBNV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:S6sFK7M4rFbesWWJ5nuOhq5idyh7FHQ3ySMgVmJJjcU1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:38Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5004-6a0b-343a0d00ca09\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5004-6a0b-343a0d00ca09\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3A5TMgZQAQsoUTGBsEKFVZMtepiHaPN50bZ84gIod80Wc1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AS6sFK7M4rFbesWWJ5nuOhq5idyh7FHQ3ySMgVmJJjcU1@thread.v2" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:5TMgZQAQsoUTGBsEKFVZMtepiHaPN50bZ84gIod80Wc1@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:S6sFK7M4rFbesWWJ5nuOhq5idyh7FHQ3ySMgVmJJjcU1@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "179ms", - "MS-CV" : "F4dGA6L7bUaweMoYOAFWRA.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0F/BYYAAAAADSBLLzo+2xQY+6iJ40xSlmWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"id\":\"1616441367141\"}", - "Date" : "Mon, 22 Mar 2021 19:29:27 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:39 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "128ms", + "MS-CV" : "GkTj6IjDr0CShPkyyVLPqw.0", + "X-Azure-Ref" : "0PwPAYAAAAACHmh+ur4/1TakV3GFNdL7KV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"id\":\"1623196479267\"}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3A5TMgZQAQsoUTGBsEKFVZMtepiHaPN50bZ84gIod80Wc1@thread.v2/messages/1616441367141" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AS6sFK7M4rFbesWWJ5nuOhq5idyh7FHQ3ySMgVmJJjcU1@thread.v2/messages/1623196479267" }, "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:5TMgZQAQsoUTGBsEKFVZMtepiHaPN50bZ84gIod80Wc1@thread.v2/messages/1616441367141?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:S6sFK7M4rFbesWWJ5nuOhq5idyh7FHQ3ySMgVmJJjcU1@thread.v2/messages/1623196479267?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/merge-patch+json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "218ms", - "MS-CV" : "cAtn5XAyikOocFHcVZpDaQ.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "428ms", + "MS-CV" : "PlnuFmbv+kaaQux2CgCZIg.0", "retry-after" : "0", - "X-Azure-Ref" : "0F/BYYAAAAABk095kx0YoTLzU49gcYf7wWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0PwPAYAAAAACFHOfLH2QuTaM3/fOEWwgsV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:29:26 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:39 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:5TMgZQAQsoUTGBsEKFVZMtepiHaPN50bZ84gIod80Wc1@thread.v2/messages/1616441367141?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:S6sFK7M4rFbesWWJ5nuOhq5idyh7FHQ3ySMgVmJJjcU1@thread.v2/messages/1623196479267?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "90ms", - "MS-CV" : "y4b1YtJH1kW1G2+XbYMZRw.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "80ms", + "MS-CV" : "7RuU0jeDpE6HSVNg29nL9w.0", "retry-after" : "0", - "X-Azure-Ref" : "0F/BYYAAAAABcfbQQPA+sTLs8LqAsGCAVWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0PwPAYAAAAADeDnn4CVgERqiy77W0LyaxV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"1616441367141\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1616441367434\",\"content\":{\"message\":\"Update Test\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-03-22T19:29:27Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-7a9a-eef0-8b3a0d0004b3\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-7a9a-eef0-8b3a0d0004b3\"}},\"editedOn\":\"2021-03-22T19:29:27Z\"}", - "Date" : "Mon, 22 Mar 2021 19:29:27 GMT", + "Body" : "{\"id\":\"1623196479267\",\"type\":\"text\",\"sequenceId\":\"4\",\"version\":\"1623196479601\",\"content\":{\"message\":\"Update Test\"},\"senderDisplayName\":\"Tester\",\"createdOn\":\"2021-06-08T23:54:39Z\",\"senderCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5004-6a0b-343a0d00ca09\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8dee-5004-6a0b-343a0d00ca09\"}},\"editedOn\":\"2021-06-08T23:54:39Z\",\"metadata\":{\"onedriveReferences\":\"onedriveReferences - updated\",\"deliveryMode\":\"deliveryMode value - updated\",\"amsreferences\":\"[\\\\\\\"test url file 3\\\\\\\"]\",\"key\":\"value key\"}}", + "Date" : "Tue, 08 Jun 2021 23:54:39 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateThreadWithResponse[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateThreadWithResponse[1].json index effb6d191c011..99dcdbd09553a 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateThreadWithResponse[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateThreadWithResponse[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:56 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:16 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "g8lKsxuT8kiNHAJ2uqlhag.0", - "X-Azure-Ref" : "0+e9YYAAAAAA3w7KoLZNBT6e/o+ERZibCWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-09d6-b5bb-a43a0d000a6c\"}}", - "x-ms-client-request-id" : "f3841f42-23d7-4942-912a-97a3bc89a511", + "X-Processing-Time" : "24ms", + "MS-CV" : "I5WhJ91Dski7nRYL7lJS+g.0", + "X-Azure-Ref" : "0KAPAYAAAAABGvO4L0jaCR6VN4CO2jmtvV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f992-0e04-343a0d00b70c\"}}", + "x-ms-client-request-id" : "1cbf637c-f0ae-4719-852c-79802b3fc46b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:56 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:16 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "/sc7C7T1VEmmIhIZGt6lXw.0", - "X-Azure-Ref" : "0+e9YYAAAAACyouX+XiOoTqvQR623WgB3WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0a28-eef0-8b3a0d00049c\"}}", - "x-ms-client-request-id" : "8c817ed4-7bb4-4c01-a4ec-9a5899a4918b", + "X-Processing-Time" : "22ms", + "MS-CV" : "Yj5/tbRi3EygzGGgS0SGLA.0", + "X-Azure-Ref" : "0KAPAYAAAAAD4DoMXBl36S4/WzGE6L6D7V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f9c9-6a0b-343a0d00c9d1\"}}", + "x-ms-client-request-id" : "b0d34040-8fb9-4d27-9ccc-92da1227c6e3", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:56 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:16 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "10ms", - "MS-CV" : "gKN0BrGzWUm3PIrWoOBptw.0", - "X-Azure-Ref" : "0+e9YYAAAAABjE2dut35KQJsMOlTkmW7DWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0a78-b5bb-a43a0d000a6d\"}}", - "x-ms-client-request-id" : "e2c42d20-efb6-45ad-9316-6311ffbc71fa", + "X-Processing-Time" : "22ms", + "MS-CV" : "a5KpoYTe5EiV34rzurf8Fg.0", + "X-Azure-Ref" : "0KAPAYAAAAABho3BV/wkQT7ziu6ejkRyMV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f9fd-0e04-343a0d00b70d\"}}", + "x-ms-client-request-id" : "c6742fa5-062c-480e-8624-65aea0316d5b", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,105 +75,110 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:56 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:16 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "leN+O7N9NECun8aenlOV9w.0", - "X-Azure-Ref" : "0+e9YYAAAAABPfJjass38Sq3Z2EO3W2AAWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-0acc-defd-8b3a0d000509\"}}", - "x-ms-client-request-id" : "c1bf1f2f-0c4b-40f6-906f-02baee0981a3", + "X-Processing-Time" : "23ms", + "MS-CV" : "jWCKKOaboEWP6inPGNvVxw.0", + "X-Azure-Ref" : "0KAPAYAAAAADMsZAW/YsWQ6CQplvD5rRrV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-fa30-6a0b-343a0d00c9d2\"}}", + "x-ms-client-request-id" : "7a3dcbf7-dd6f-49e4-b9b7-8580691105d2", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-09d6-b5bb-a43a0d000a6c/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f992-0e04-343a0d00b70c/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:57 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:16 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "123ms", - "MS-CV" : "fKoQdSHGVUSJKX27BnDUlw.0", - "X-Azure-Ref" : "0+e9YYAAAAAAmNhlAB+hsSb4680lvpyZrWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:56.7429344+00:00\"}", - "x-ms-client-request-id" : "588c3a2c-12c4-4b6a-8b51-6e0fffce4f4f", + "X-Processing-Time" : "31ms", + "MS-CV" : "Ckue6cDEV0WbCNy1hYlnLA.0", + "X-Azure-Ref" : "0KAPAYAAAAACdxQq2dU8HT4hchzy2l9wcV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:15.5669114+00:00\"}", + "x-ms-client-request-id" : "1bcdf284-3ec2-4d20-acab-64b277858c9a", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "825ms", - "MS-CV" : "fzz5DQ+pNEu012Lj3XfTvw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "0+e9YYAAAAACWQa4ZnxWgQab4VgSnycM+WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:AM9ILiolkRlIHNnlUjrsrlHiP5waTkaiN1nvZv_VWys1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:57Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-09d6-b5bb-a43a0d000a6c\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-09d6-b5bb-a43a0d000a6c\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:57 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:16 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "519ms", + "MS-CV" : "mpKEQVt020avdV22NEnEUA.0", + "X-Azure-Ref" : "0KAPAYAAAAABHA4vC+PooQ5aN/BMFHSWyV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:XR_w8h_J1vh0Yz7GKy8SquyPRYRILo16zFB001BDIkU1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:16Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f992-0e04-343a0d00b70c\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f992-0e04-343a0d00b70c\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3AAM9ILiolkRlIHNnlUjrsrlHiP5waTkaiN1nvZv_VWys1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AXR_w8h_J1vh0Yz7GKy8SquyPRYRILo16zFB001BDIkU1@thread.v2" }, "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:AM9ILiolkRlIHNnlUjrsrlHiP5waTkaiN1nvZv_VWys1@thread.v2?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:XR_w8h_J1vh0Yz7GKy8SquyPRYRILo16zFB001BDIkU1@thread.v2?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/merge-patch+json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "309ms", - "MS-CV" : "n6FlLsAUe0G1AXcaHfnAYA.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "189ms", + "MS-CV" : "SjFgAuzpIk2J0aWB4t7F2Q.0", "retry-after" : "0", - "X-Azure-Ref" : "0+u9YYAAAAABo3yHIehgjTbN7CFjWeb82WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0KQPAYAAAAAB9L/TV9gerTaaxgD4ZPpEJV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:28:58 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:17 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:AM9ILiolkRlIHNnlUjrsrlHiP5waTkaiN1nvZv_VWys1@thread.v2?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:XR_w8h_J1vh0Yz7GKy8SquyPRYRILo16zFB001BDIkU1@thread.v2?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "127ms", - "MS-CV" : "dbHPywGHF0aivNqTRq/+Fw.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "86ms", + "MS-CV" : "HOmKbQ6EMEmwMIcbO8beQg.0", "retry-after" : "0", - "X-Azure-Ref" : "0+u9YYAAAAABljHfMpvK5QJiClBOtiBWSWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0KQPAYAAAAAAc6VEyE3LySIJn3FYXc4DeV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"19:AM9ILiolkRlIHNnlUjrsrlHiP5waTkaiN1nvZv_VWys1@thread.v2\",\"topic\":\"Update Test\",\"createdOn\":\"2021-03-22T19:28:57Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-09d6-b5bb-a43a0d000a6c\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4b-09d6-b5bb-a43a0d000a6c\"}}}", - "Date" : "Mon, 22 Mar 2021 19:28:58 GMT", + "Body" : "{\"id\":\"19:XR_w8h_J1vh0Yz7GKy8SquyPRYRILo16zFB001BDIkU1@thread.v2\",\"topic\":\"Update Test\",\"createdOn\":\"2021-06-08T23:54:16Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f992-0e04-343a0d00b70c\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-f992-0e04-343a0d00b70c\"}}}", + "Date" : "Tue, 08 Jun 2021 23:54:17 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateThread[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateThread[1].json index 9db924f1c84c4..9d69b1aa2826f 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateThread[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.canUpdateThread[1].json @@ -3,21 +3,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:53 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:12 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "pwd6qCaePESn9Ds009EXUw.0", - "X-Azure-Ref" : "09e9YYAAAAADVjHzvezPAQIM9nM+582LqWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-fc20-eef0-8b3a0d000498\"}}", - "x-ms-client-request-id" : "3335c110-39a9-45ca-9301-499c16e19183", + "X-Processing-Time" : "22ms", + "MS-CV" : "VOO2aJxx5EOqPH4VLbz6dg.0", + "X-Azure-Ref" : "0JAPAYAAAAAA4ZwMk3v6UQoeGbUtRBjWHV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-ebfc-6a0b-343a0d00c9cc\"}}", + "x-ms-client-request-id" : "bf2d5d4c-d69b-45b8-bc58-583d64bd5926", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -26,21 +27,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:53 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:12 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "9KTrnnGse0q2wLpq9ziD5w.0", - "X-Azure-Ref" : "09e9YYAAAAABwHtxNYUGcSrqhQBUZAAoaWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-fc70-b5bb-a43a0d000a67\"}}", - "x-ms-client-request-id" : "1f401d10-477b-4c06-878c-f1ef7d2715af", + "X-Processing-Time" : "27ms", + "MS-CV" : "7aU7WAuwM0WuRs26bVt8HQ.0", + "X-Azure-Ref" : "0JAPAYAAAAABF+JOnLd8+SLOn/l6zFZ6uV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-ec34-0e04-343a0d00b707\"}}", + "x-ms-client-request-id" : "033ae926-50e6-400a-b7c9-00a42ae9f506", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -49,21 +51,22 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:53 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:12 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "12ms", - "MS-CV" : "yFZrRX5hOU60+z4W5+iFHw.0", - "X-Azure-Ref" : "09e9YYAAAAAD2dssxxFQQS6dp6Rv5g1UfWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-fcc4-defd-8b3a0d000505\"}}", - "x-ms-client-request-id" : "fa3c194f-c082-4ed9-a12a-4ff25a3249a2", + "X-Processing-Time" : "23ms", + "MS-CV" : "9r3cN0snbkOK4LQKrLmfmw.0", + "X-Azure-Ref" : "0JAPAYAAAAACyvMA4sy5vQZwG7TJ6Mkn5V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-ec6a-6a0b-343a0d00c9cd\"}}", + "x-ms-client-request-id" : "df8b9e63-e6e9-4780-9171-8b3503794169", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, @@ -72,105 +75,110 @@ "Method" : "POST", "Uri" : "https://REDACTED.communication.azure.com/identities?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "201", - "Date" : "Mon, 22 Mar 2021 19:28:53 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:12 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "11ms", - "MS-CV" : "b/37SdG/60acc8mxC9PEMw.0", - "X-Azure-Ref" : "09u9YYAAAAADMC35+O1mLRp83YY62Dfr2WVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"identity\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-fd15-b5bb-a43a0d000a68\"}}", - "x-ms-client-request-id" : "d6086e96-d4eb-4fc2-a67e-7442dac638e7", + "X-Processing-Time" : "24ms", + "MS-CV" : "wF7fCm4s3Eaj6t8yN3h5bg.0", + "X-Azure-Ref" : "0JAPAYAAAAABuioNxTd83Rop0lkQZtLaGV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"identity\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-eca4-0e04-343a0d00b708\"}}", + "x-ms-client-request-id" : "ca0f28ee-0528-41d9-8c59-181e2afc44ec", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-fc20-eef0-8b3a0d000498/:issueAccessToken?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/identities/8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-ebfc-6a0b-343a0d00c9cc/:issueAccessToken?api-version=2021-03-07", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-identity/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-identity/1.1.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1", "retry-after" : "0", "StatusCode" : "200", - "Date" : "Mon, 22 Mar 2021 19:28:53 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:12 GMT", "Strict-Transport-Security" : "max-age=2592000", - "X-Processing-Time" : "151ms", - "MS-CV" : "Bjxv1YtCJU+MczocFMjffg.0", - "X-Azure-Ref" : "09u9YYAAAAAC3tpFQkVD2Tq1qL7F4/D8CWVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", - "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-03-23T19:28:53.260767+00:00\"}", - "x-ms-client-request-id" : "cd04cc9a-7609-4f68-899d-862fb6c63e8b", + "X-Processing-Time" : "36ms", + "MS-CV" : "VSvES5GJ4kmcxMnI2Y/8+Q.0", + "X-Azure-Ref" : "0JQPAYAAAAADvtuFAAvR9SKEBnhzzaHPJV1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"token\":\"REDACTED\",\"expiresOn\":\"2021-06-09T23:54:12.1043234+00:00\"}", + "x-ms-client-request-id" : "fb77bb59-27f2-4536-8169-39cc2b3dad72", "Content-Type" : "application/json; charset=utf-8", "Request-Context" : "appId=" }, "Exception" : null }, { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { "Transfer-Encoding" : "chunked", - "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "537ms", - "MS-CV" : "k/f3ULPq4EGo1FV++Ztajw.0", + "X-Cache" : "CONFIG_NOCACHE", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", "retry-after" : "0", - "X-Azure-Ref" : "09u9YYAAAAABai+pT+vANTJ68QeNTdVyNWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", "StatusCode" : "201", - "Body" : "{\"chatThread\":{\"id\":\"19:poUT_PRhp6NxmOe3Pr6a0Ggn0Ece4GE9Hdi8eglSYDw1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-03-22T19:28:54Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-fc20-eef0-8b3a0d000498\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-fc20-eef0-8b3a0d000498\"}}}}", - "Date" : "Mon, 22 Mar 2021 19:28:54 GMT", + "Date" : "Tue, 08 Jun 2021 23:54:13 GMT", + "Strict-Transport-Security" : "max-age=2592000", + "X-Processing-Time" : "406ms", + "MS-CV" : "ddhohqCcK0yQU4Y7HItTOQ.0", + "X-Azure-Ref" : "0JQPAYAAAAAC70Y6JFBuWR71+1cWKgwfjV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "Body" : "{\"chatThread\":{\"id\":\"19:HQq8BmpVLVRUFINLRt-y3MEf3LgBKGjD0fyeFlfWAok1@thread.v2\",\"topic\":\"Test\",\"createdOn\":\"2021-06-08T23:54:13Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-ebfc-6a0b-343a0d00c9cc\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-ebfc-6a0b-343a0d00c9cc\"}}}}", "Content-Type" : "application/json; charset=utf-8", - "Location" : "https://danielgerlagcommunication-communication.communication.azure.com/chat/threads/19%3ApoUT_PRhp6NxmOe3Pr6a0Ggn0Ece4GE9Hdi8eglSYDw1@thread.v2" + "Location" : "https://chat-prod-e2e.communication.azure.com/chat/threads/19%3AHQq8BmpVLVRUFINLRt-y3MEf3LgBKGjD0fyeFlfWAok1@thread.v2" }, "Exception" : null }, { "Method" : "PATCH", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:poUT_PRhp6NxmOe3Pr6a0Ggn0Ece4GE9Hdi8eglSYDw1@thread.v2?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:HQq8BmpVLVRUFINLRt-y3MEf3LgBKGjD0fyeFlfWAok1@thread.v2?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/merge-patch+json" }, "Response" : { + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "188ms", - "MS-CV" : "mALTK5O47Emr54D/uph85A.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "310ms", + "MS-CV" : "436zTgO8WESK/c8MTmtElA.0", "retry-after" : "0", - "X-Azure-Ref" : "09u9YYAAAAACJ4PXHNmVEQJT2rEz1jbQ7WVZSMzBFREdFMDMxMgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0JQPAYAAAAAA2XZWNfxh0R6uw0T1UN8c3V1NURURHRTA4MTUAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "204", - "Date" : "Mon, 22 Mar 2021 19:28:54 GMT" + "Date" : "Tue, 08 Jun 2021 23:54:13 GMT" }, "Exception" : null }, { "Method" : "GET", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:poUT_PRhp6NxmOe3Pr6a0Ggn0Ece4GE9Hdi8eglSYDw1@thread.v2?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:HQq8BmpVLVRUFINLRt-y3MEf3LgBKGjD0fyeFlfWAok1@thread.v2?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)" + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)" }, "Response" : { "Transfer-Encoding" : "chunked", + "X-Cache" : "CONFIG_NOCACHE", "Strict-Transport-Security" : "max-age=2592000", - "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07", - "X-Processing-Time" : "200ms", - "MS-CV" : "yunNtbwXjk6yEYomN2FfhA.0", + "api-supported-versions" : "2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6", + "X-Processing-Time" : "139ms", + "MS-CV" : "vPHX6Bo1RUCYOxWY3SxQpw.0", "retry-after" : "0", - "X-Azure-Ref" : "09+9YYAAAAADjh9kov6iES7pHVbwtViMfWVZSMzBFREdFMDQwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Azure-Ref" : "0JQPAYAAAAAC29m2nlgjPS66WhC2/5KsjV1NURURHRTA4MTAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", "StatusCode" : "200", - "Body" : "{\"id\":\"19:poUT_PRhp6NxmOe3Pr6a0Ggn0Ece4GE9Hdi8eglSYDw1@thread.v2\",\"topic\":\"Update Test\",\"createdOn\":\"2021-03-22T19:28:54Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-fc20-eef0-8b3a0d000498\",\"communicationUser\":{\"id\":\"8:acs:1eab3f4f-d350-4f15-b335-62845b16c91b_00000008-fb4a-fc20-eef0-8b3a0d000498\"}}}", - "Date" : "Mon, 22 Mar 2021 19:28:54 GMT", + "Body" : "{\"id\":\"19:HQq8BmpVLVRUFINLRt-y3MEf3LgBKGjD0fyeFlfWAok1@thread.v2\",\"topic\":\"Update Test\",\"createdOn\":\"2021-06-08T23:54:13Z\",\"createdByCommunicationIdentifier\":{\"rawId\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-ebfc-6a0b-343a0d00c9cc\",\"communicationUser\":{\"id\":\"8:acs:fa5c4fc3-a269-43e2-9eb6-0ca17b388993_0000000a-8ded-ebfc-6a0b-343a0d00c9cc\"}}}", + "Date" : "Tue, 08 Jun 2021 23:54:13 GMT", "Content-Type" : "application/json; charset=utf-8" }, "Exception" : null diff --git a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.throwsExceptionOnBadRequest[1].json b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.throwsExceptionOnBadRequest[1].json index 50aa340d21465..6fc0639a63cb6 100644 --- a/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.throwsExceptionOnBadRequest[1].json +++ b/sdk/communication/azure-communication-chat/src/test/resources/session-records/ChatThreadClientTest.throwsExceptionOnBadRequest[1].json @@ -1,9 +1,9 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4b72178530934b7790135dd9359205e0@thread.v2/messages?api-version=2021-03-07", + "Uri" : "https://REDACTED.communication.azure.com/chat/threads/19:4b72178530934b7790135dd9359205e0@thread.v2/messages?api-version=2021-04-05-preview6", "Headers" : { - "User-Agent" : "azsdk-java-azure-communication-chat/1.0.0-beta.7 (11.0.9; Windows 10; 10.0)", + "User-Agent" : "azsdk-java-azure-communication-chat/1.1.0-beta.1 (1.8.0_262; Windows 10; 10.0)", "Content-Type" : "application/json" }, "Response" : { diff --git a/sdk/communication/azure-communication-chat/swagger/README.md b/sdk/communication/azure-communication-chat/swagger/README.md index 7da3e910fd97f..5193d9773871b 100644 --- a/sdk/communication/azure-communication-chat/swagger/README.md +++ b/sdk/communication/azure-communication-chat/swagger/README.md @@ -21,18 +21,19 @@ There is one swagger for Chat management APIs. ```ps cd -autorest README.md --java --v4 --use=@autorest/java@4.0.11 --use=@autorest/modelerfour@4.15.442 +autorest README.md --java --v4 --use=@autorest/java@4.0.20 --use=@autorest/modelerfour@4.15.442 ``` ## Update generated files for chat service To update generated files for chat service, run the following command -> autorest README.md --java --v4 --use=@autorest/java@4.0.11 --use=@autorest/modelerfour@4.15.442 +> autorest README.md --java --v4 --use=@autorest/java@4.0.20 --use=@autorest/modelerfour@4.15.442 ### Code generation settings ``` yaml -tag: package-chat-2021-03-07 -require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/896d05e37dbb00712726620b8d679cc3c3be09fb/specification/communication/data-plane/Chat/readme.md +tag: package-chat-2021-04-05-preview6 +require: + - https://raw.githubusercontent.com/Azure/azure-rest-api-specs/896d05e37dbb00712726620b8d679cc3c3be09fb/specification/communication/data-plane/Chat/readme.md java: true output-folder: ..\ license-header: MICROSOFT_MIT_SMALL diff --git a/sdk/communication/azure-communication-common/CHANGELOG.md b/sdk/communication/azure-communication-common/CHANGELOG.md index d7b63ae0d7bfe..30c4a04d74f12 100644 --- a/sdk/communication/azure-communication-common/CHANGELOG.md +++ b/sdk/communication/azure-communication-common/CHANGELOG.md @@ -3,6 +3,10 @@ ## 1.0.2 (2021-06-08) - Updated 'azure-communication-common' version + +## 1.0.2 (2021-06-09) +Updated `azure-communication-common` version + ## 1.0.1 (2021-05-27) - Dependency versions updated. diff --git a/sdk/communication/azure-communication-identity/CHANGELOG.md b/sdk/communication/azure-communication-identity/CHANGELOG.md index d227a7b49e9ad..942cd76dfe50f 100644 --- a/sdk/communication/azure-communication-identity/CHANGELOG.md +++ b/sdk/communication/azure-communication-identity/CHANGELOG.md @@ -3,6 +3,10 @@ ## 1.1.1 (2021-06-08) - Updated 'azure-communication-identity' version + +## 1.1.1 (2021-06-09) +Updated `azure-communication-identity` version + ## 1.1.0 (2021-05-27) ### Added - New exception `IdentityErrorResponseException` was added for more descriptive server error messages. diff --git a/sdk/communication/azure-communication-identity/pom.xml b/sdk/communication/azure-communication-identity/pom.xml index ba2443edb0b1a..99b3393810c3a 100644 --- a/sdk/communication/azure-communication-identity/pom.xml +++ b/sdk/communication/azure-communication-identity/pom.xml @@ -116,7 +116,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md b/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md index 1f47f0a5f8745..2ea9955fede65 100644 --- a/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md +++ b/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md @@ -3,6 +3,10 @@ ## 1.0.3 (2021-06-08) - Updated 'azure-communication-phonenumbers' version + +## 1.0.3 (2021-06-09) +Updated `azure-communication-phonenumbers` version + ## 1.0.2 (2021-05-27) - Dependency versions updated. diff --git a/sdk/communication/azure-communication-phonenumbers/pom.xml b/sdk/communication/azure-communication-phonenumbers/pom.xml index 738d503c89f5c..92e5c6d92dbc1 100644 --- a/sdk/communication/azure-communication-phonenumbers/pom.xml +++ b/sdk/communication/azure-communication-phonenumbers/pom.xml @@ -116,7 +116,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/communication/azure-communication-sms/CHANGELOG.md b/sdk/communication/azure-communication-sms/CHANGELOG.md index a91186f265076..7980793937c21 100644 --- a/sdk/communication/azure-communication-sms/CHANGELOG.md +++ b/sdk/communication/azure-communication-sms/CHANGELOG.md @@ -3,6 +3,10 @@ ## 1.0.3 (2021-06-08) - Updated 'azure-communication-sms' version + +## 1.0.3 (2021-06-09) +Updated `azure-communication-sms` version + ## 1.0.2 (2021-05-27) - Dependency versions updated. diff --git a/sdk/communication/azure-communication-sms/pom.xml b/sdk/communication/azure-communication-sms/pom.xml index 99c20e7b409c4..1c0731918dc38 100644 --- a/sdk/communication/azure-communication-sms/pom.xml +++ b/sdk/communication/azure-communication-sms/pom.xml @@ -102,7 +102,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/confidentialledger/azure-security-confidentialledger/pom.xml b/sdk/confidentialledger/azure-security-confidentialledger/pom.xml index bc5ece276e2ce..db6ab142d398f 100644 --- a/sdk/confidentialledger/azure-security-confidentialledger/pom.xml +++ b/sdk/confidentialledger/azure-security-confidentialledger/pom.xml @@ -79,7 +79,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/confluent/azure-resourcemanager-confluent/pom.xml b/sdk/confluent/azure-resourcemanager-confluent/pom.xml index 62ee6bd218e3f..1c3656e3479ac 100644 --- a/sdk/confluent/azure-resourcemanager-confluent/pom.xml +++ b/sdk/confluent/azure-resourcemanager-confluent/pom.xml @@ -54,7 +54,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/containerregistry/azure-containers-containerregistry/pom.xml b/sdk/containerregistry/azure-containers-containerregistry/pom.xml index d8a58801811d4..c1d2bd5c7254b 100644 --- a/sdk/containerregistry/azure-containers-containerregistry/pom.xml +++ b/sdk/containerregistry/azure-containers-containerregistry/pom.xml @@ -90,7 +90,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/core/azure-core-amqp/src/samples/java/com/azure/core/amqp/models/AmqpAnnotatedMessageJavaDocCodeSamples.java b/sdk/core/azure-core-amqp/src/samples/java/com/azure/core/amqp/models/AmqpAnnotatedMessageJavaDocCodeSamples.java index a37e5b9a10c6d..31c426234899a 100644 --- a/sdk/core/azure-core-amqp/src/samples/java/com/azure/core/amqp/models/AmqpAnnotatedMessageJavaDocCodeSamples.java +++ b/sdk/core/azure-core-amqp/src/samples/java/com/azure/core/amqp/models/AmqpAnnotatedMessageJavaDocCodeSamples.java @@ -3,6 +3,9 @@ package com.azure.core.amqp.models; +import org.junit.jupiter.api.Test; +import java.nio.charset.StandardCharsets; + /** * Class contains sample code snippets that will be used in javadocs. */ @@ -10,8 +13,10 @@ public class AmqpAnnotatedMessageJavaDocCodeSamples { /** * Get message body from {@link AmqpAnnotatedMessage}. */ + @Test public void checkBodyType() { - AmqpAnnotatedMessage amqpAnnotatedMessage = null; + AmqpAnnotatedMessage amqpAnnotatedMessage = + new AmqpAnnotatedMessage(AmqpMessageBody.fromData("my-amqp-message".getBytes(StandardCharsets.UTF_8))); // BEGIN: com.azure.core.amqp.models.AmqpBodyType.checkBodyType // If client do not check `AmqpMessageBody.getBodyType()` and payload is not of type `AmqpMessageBodyType.DATA`, // calling `getFirstData()` or `getData()` on `AmqpMessageBody` will throw Runtime exception. diff --git a/sdk/core/azure-core-tracing-opentelemetry/pom.xml b/sdk/core/azure-core-tracing-opentelemetry/pom.xml index 4d1fc563f1f71..95a321a033cb3 100644 --- a/sdk/core/azure-core-tracing-opentelemetry/pom.xml +++ b/sdk/core/azure-core-tracing-opentelemetry/pom.xml @@ -109,7 +109,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/cosmos/azure-cosmos-encryption/pom.xml b/sdk/cosmos/azure-cosmos-encryption/pom.xml index 68d7a6ef754af..f8f0b9887d8cd 100644 --- a/sdk/cosmos/azure-cosmos-encryption/pom.xml +++ b/sdk/cosmos/azure-cosmos-encryption/pom.xml @@ -67,7 +67,7 @@ Licensed under the MIT License. com.azure azure-identity test - 1.3.0 + 1.3.1 com.azure diff --git a/sdk/cosmos/azure-cosmos-spark_3-1_2-12/src/test/scala/com/azure/cosmos/spark/SparkE2EQueryITest.scala b/sdk/cosmos/azure-cosmos-spark_3-1_2-12/src/test/scala/com/azure/cosmos/spark/SparkE2EQueryITest.scala index 8b18c09306eea..a814e5e0e4f80 100644 --- a/sdk/cosmos/azure-cosmos-spark_3-1_2-12/src/test/scala/com/azure/cosmos/spark/SparkE2EQueryITest.scala +++ b/sdk/cosmos/azure-cosmos-spark_3-1_2-12/src/test/scala/com/azure/cosmos/spark/SparkE2EQueryITest.scala @@ -524,57 +524,6 @@ class SparkE2EQueryITest } } - "spark query" can "when forceNullableProperties is false and rows have different schema" in { - val cosmosEndpoint = TestConfigurations.HOST - val cosmosMasterKey = TestConfigurations.MASTER_KEY - val samplingSize = 100 - val expectedResults = samplingSize * 2 - val container = cosmosClient.getDatabase(cosmosDatabase).getContainer(cosmosContainer) - - // Inserting documents with slightly different schema - for( _ <- 1 to expectedResults) { - val objectNode = Utils.getSimpleObjectMapper.createObjectNode() - val arr = objectNode.putArray("object_array") - val nested = Utils.getSimpleObjectMapper.createObjectNode() - nested.put("A", "test") - nested.put("B", "test") - arr.add(nested) - objectNode.put("id", UUID.randomUUID().toString) - container.createItem(objectNode).block() - } - - for( _ <- 1 to samplingSize) { - val objectNode2 = Utils.getSimpleObjectMapper.createObjectNode() - val arr = objectNode2.putArray("object_array") - val nested = Utils.getSimpleObjectMapper.createObjectNode() - nested.put("A", "test") - arr.add(nested) - objectNode2.put("id", UUID.randomUUID().toString) - container.createItem(objectNode2).block() - } - - val cfgWithInference = Map("spark.cosmos.accountEndpoint" -> cosmosEndpoint, - "spark.cosmos.accountKey" -> cosmosMasterKey, - "spark.cosmos.database" -> cosmosDatabase, - "spark.cosmos.container" -> cosmosContainer, - "spark.cosmos.read.inferSchema.enabled" -> "true", - "spark.cosmos.read.inferSchema.forceNullableProperties" -> "false", - "spark.cosmos.read.inferSchema.samplingSize" -> samplingSize.toString, - "spark.cosmos.read.inferSchema.query" -> "SELECT * FROM c ORDER BY c._ts", - "spark.cosmos.read.partitioning.strategy" -> "Restrictive" - ) - - val dfWithInference = spark.read.format("cosmos.oltp").options(cfgWithInference).load() - try { - dfWithInference.collect() - fail("Should have thrown an exception") - } - catch { - case inner: Exception => - inner.toString.contains("The 1th field 'B' of input row cannot be null") shouldBe true - } - } - "spark query" can "use custom sampling size" in { val cosmosEndpoint = TestConfigurations.HOST val cosmosMasterKey = TestConfigurations.MASTER_KEY diff --git a/sdk/cosmos/azure-cosmos/pom.xml b/sdk/cosmos/azure-cosmos/pom.xml index 61d14db1e72ad..b10ff63dde17d 100644 --- a/sdk/cosmos/azure-cosmos/pom.xml +++ b/sdk/cosmos/azure-cosmos/pom.xml @@ -70,7 +70,7 @@ Licensed under the MIT License. com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml b/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml index 8e4fc7cee986c..720a24acb0431 100644 --- a/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml +++ b/sdk/datafactory/azure-resourcemanager-datafactory/pom.xml @@ -54,7 +54,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test @@ -72,7 +72,7 @@ com.azure azure-storage-blob - 12.11.1 + 12.12.0 test diff --git a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/pom.xml b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/pom.xml index fa20c4206763d..a0504a4c6639c 100644 --- a/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/pom.xml +++ b/sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/pom.xml @@ -54,7 +54,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/pom.xml b/sdk/deviceupdate/azure-iot-deviceupdate/pom.xml index 5471693dde31f..9440fab640f50 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/pom.xml +++ b/sdk/deviceupdate/azure-iot-deviceupdate/pom.xml @@ -41,7 +41,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test @@ -72,7 +72,7 @@ com.azure azure-storage-blob - 12.11.1 + 12.12.0 test diff --git a/sdk/digitaltwins/azure-digitaltwins-core/pom.xml b/sdk/digitaltwins/azure-digitaltwins-core/pom.xml index d253456e30a15..4e42b5041fdcb 100644 --- a/sdk/digitaltwins/azure-digitaltwins-core/pom.xml +++ b/sdk/digitaltwins/azure-digitaltwins-core/pom.xml @@ -64,7 +64,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/pom.xml b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/pom.xml index 30b865ab03d1b..7faba6048cccb 100644 --- a/sdk/digitaltwins/azure-resourcemanager-digitaltwins/pom.xml +++ b/sdk/digitaltwins/azure-resourcemanager-digitaltwins/pom.xml @@ -54,7 +54,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/eventgrid/azure-messaging-eventgrid/pom.xml b/sdk/eventgrid/azure-messaging-eventgrid/pom.xml index f1790114ca496..1f97a9593de20 100644 --- a/sdk/eventgrid/azure-messaging-eventgrid/pom.xml +++ b/sdk/eventgrid/azure-messaging-eventgrid/pom.xml @@ -80,7 +80,7 @@ com.azure azure-storage-queue - 12.9.1 + 12.10.0 test diff --git a/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/pom.xml b/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/pom.xml index ff908bb87017c..e7c1f904728a3 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/pom.xml +++ b/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/pom.xml @@ -45,14 +45,14 @@ com.azure azure-storage-blob - 12.11.1 + 12.12.0 com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/eventhubs/azure-messaging-eventhubs/pom.xml b/sdk/eventhubs/azure-messaging-eventhubs/pom.xml index 40d7cdae47824..339c922333225 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs/pom.xml +++ b/sdk/eventhubs/azure-messaging-eventhubs/pom.xml @@ -49,7 +49,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubClientBuilder.java b/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubClientBuilder.java index ec959b903ac02..7e9bde9251ae7 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubClientBuilder.java +++ b/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventHubClientBuilder.java @@ -20,6 +20,8 @@ import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.annotation.ServiceClientProtocol; import com.azure.core.credential.TokenCredential; +import com.azure.core.credential.AzureNamedKeyCredential; +import com.azure.core.credential.AzureSasCredential; import com.azure.core.exception.AzureException; import com.azure.core.util.ClientOptions; import com.azure.core.util.Configuration; @@ -340,6 +342,77 @@ public EventHubClientBuilder credential(String fullyQualifiedNamespace, String e return this; } + /** + * Sets the credential information for which Event Hub instance to connect to, and how to authorize against it. + * + * @param fullyQualifiedNamespace The fully qualified name for the Event Hubs namespace. This is likely to be + * similar to {@literal "{your-namespace}.servicebus.windows.net}". + * @param eventHubName The name of the Event Hub to connect the client to. + * @param credential The shared access name and key credential to use for authorization. + * Access controls may be specified by the Event Hubs namespace or the requested Event Hub, + * depending on Azure configuration. + * + * @return The updated {@link EventHubClientBuilder} object. + * @throws IllegalArgumentException if {@code fullyQualifiedNamespace} or {@code eventHubName} is an empty + * string. + * @throws NullPointerException if {@code fullyQualifiedNamespace}, {@code eventHubName}, {@code credentials} is + * null. + */ + public EventHubClientBuilder credential(String fullyQualifiedNamespace, String eventHubName, + AzureNamedKeyCredential credential) { + + this.fullyQualifiedNamespace = Objects.requireNonNull(fullyQualifiedNamespace, + "'fullyQualifiedNamespace' cannot be null."); + this.eventHubName = Objects.requireNonNull(eventHubName, "'eventHubName' cannot be null."); + + if (CoreUtils.isNullOrEmpty(fullyQualifiedNamespace)) { + throw logger.logExceptionAsError(new IllegalArgumentException("'host' cannot be an empty string.")); + } else if (CoreUtils.isNullOrEmpty(eventHubName)) { + throw logger.logExceptionAsError(new IllegalArgumentException("'eventHubName' cannot be an empty string.")); + } + + Objects.requireNonNull(credential, "'credential' cannot be null."); + this.credentials = new EventHubSharedKeyCredential(credential.getAzureNamedKey().getName(), + credential.getAzureNamedKey().getKey(), ClientConstants.TOKEN_VALIDITY); + + return this; + } + + /** + * Sets the credential information for which Event Hub instance to connect to, and how to authorize against it. + * + * @param fullyQualifiedNamespace The fully qualified name for the Event Hubs namespace. This is likely to be + * similar to {@literal "{your-namespace}.servicebus.windows.net}". + * @param eventHubName The name of the Event Hub to connect the client to. + * @param credential The shared access signature credential to use for authorization. + * Access controls may be specified by the Event Hubs namespace or the requested Event Hub, + * depending on Azure configuration. + * + * @return The updated {@link EventHubClientBuilder} object. + * @throws IllegalArgumentException if {@code fullyQualifiedNamespace} or {@code eventHubName} is an empty + * string. + * @throws NullPointerException if {@code fullyQualifiedNamespace}, {@code eventHubName}, {@code credentials} is + * null. + */ + public EventHubClientBuilder credential(String fullyQualifiedNamespace, String eventHubName, + AzureSasCredential credential) { + + this.fullyQualifiedNamespace = Objects.requireNonNull(fullyQualifiedNamespace, + "'fullyQualifiedNamespace' cannot be null."); + this.eventHubName = Objects.requireNonNull(eventHubName, "'eventHubName' cannot be null."); + + if (CoreUtils.isNullOrEmpty(fullyQualifiedNamespace)) { + throw logger.logExceptionAsError(new IllegalArgumentException("'host' cannot be an empty string.")); + } else if (CoreUtils.isNullOrEmpty(eventHubName)) { + throw logger.logExceptionAsError(new IllegalArgumentException("'eventHubName' cannot be an empty string.")); + } + + Objects.requireNonNull(credential, "'credential' cannot be null."); + this.credentials = new EventHubSharedKeyCredential(credential.getSignature()); + + return this; + } + /** * Sets the proxy configuration to use for {@link EventHubAsyncClient}. When a proxy is configured, {@link * AmqpTransportType#AMQP_WEB_SOCKETS} must be used for the transport type. diff --git a/sdk/eventhubs/azure-messaging-eventhubs/src/samples/java/com/azure/messaging/eventhubs/IoTHubConnectionSample.java b/sdk/eventhubs/azure-messaging-eventhubs/src/samples/java/com/azure/messaging/eventhubs/IoTHubConnectionSample.java new file mode 100644 index 0000000000000..89097b67a56b8 --- /dev/null +++ b/sdk/eventhubs/azure-messaging-eventhubs/src/samples/java/com/azure/messaging/eventhubs/IoTHubConnectionSample.java @@ -0,0 +1,535 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.messaging.eventhubs; + +import com.azure.core.amqp.exception.AmqpErrorCondition; +import com.azure.core.amqp.exception.AmqpErrorContext; +import com.azure.core.amqp.exception.AmqpException; +import com.azure.core.credential.AccessToken; +import com.azure.core.util.AsyncCloseable; +import org.apache.qpid.proton.Proton; +import org.apache.qpid.proton.amqp.Symbol; +import org.apache.qpid.proton.amqp.messaging.Source; +import org.apache.qpid.proton.amqp.messaging.Target; +import org.apache.qpid.proton.amqp.transport.ErrorCondition; +import org.apache.qpid.proton.amqp.transport.ReceiverSettleMode; +import org.apache.qpid.proton.amqp.transport.SenderSettleMode; +import org.apache.qpid.proton.engine.BaseHandler; +import org.apache.qpid.proton.engine.Connection; +import org.apache.qpid.proton.engine.EndpointState; +import org.apache.qpid.proton.engine.Event; +import org.apache.qpid.proton.engine.Link; +import org.apache.qpid.proton.engine.Receiver; +import org.apache.qpid.proton.engine.Sasl; +import org.apache.qpid.proton.engine.Session; +import org.apache.qpid.proton.engine.SslDomain; +import org.apache.qpid.proton.engine.SslPeerDetails; +import org.apache.qpid.proton.engine.Transport; +import org.apache.qpid.proton.reactor.Reactor; +import reactor.core.publisher.Mono; +import reactor.core.publisher.Sinks; +import reactor.core.scheduler.Schedulers; + +import javax.crypto.Mac; +import javax.crypto.spec.SecretKeySpec; +import javax.net.ssl.SSLContext; +import java.io.IOException; +import java.io.UncheckedIOException; +import java.io.UnsupportedEncodingException; +import java.net.URI; +import java.net.URISyntaxException; +import java.net.URLEncoder; +import java.security.InvalidKeyException; +import java.security.NoSuchAlgorithmException; +import java.time.Duration; +import java.time.OffsetDateTime; +import java.time.ZoneOffset; +import java.util.Base64; +import java.util.Collections; +import java.util.HashMap; +import java.util.Locale; +import java.util.Map; +import java.util.Objects; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import java.util.stream.Collectors; + +import static java.nio.charset.StandardCharsets.UTF_8; + +/** + * This sample demonstrates how to convert an IoT Hub connection string to an Event Hubs connection string that points + * to the built-in messaging endpoint. The Event Hubs connection string is then used with the EventHubConsumerClient to + * receive events. + *

+ * More information about the built-in messaging endpoint can be found at: + * Read device-to-cloud + * messages from the built-in endpoint + * + * @see Generating + * security tokens. + */ +public final class IoTHubConnectionSample { + + /** + * Main method for sample. + * + * @param args Unused arguments. + * + * @throws IOException IOException if we could not open the reactor IO pipe. + */ + public static void main(String[] args) throws IOException { + // The IoT Hub connection string from the portal. Will look like: + final String iotHubConnectionString = + "HostName=.azure-devices.net;SharedAccessKeyName=;SharedAccessKey="; + + // Gets the Event Hubs connection string for this IoT hub. + // Cache the result of this operation so additional downstream subscribers can make use of the value + // instead of us having to create another reactor. + final Mono connectionStringMono = getConnectionString(iotHubConnectionString) + .cache(); + + // Leverage Mono.usingWhen so the producer client is disposed of after we finish using it. + // In production, users would probably cache the Mono's result, reusing the EventHubProducerAsyncClient and + // finally closing it. + final Mono runOperation = Mono.usingWhen( + connectionStringMono.map(connectionString -> { + System.out.println("Acquired Event Hubs compatible connection string."); + + return new EventHubClientBuilder() + .connectionString(connectionString) + .buildAsyncProducerClient(); + }), + producer -> { + System.out.println("Created producer client."); + + return producer.getEventHubProperties(); + }, + producer -> Mono.fromRunnable(() -> { + System.out.println("Disposing of producer client."); + producer.close(); + })); + + // Blocking here to turn this into a synchronous operation because we no longer need asynchronous operations. + final EventHubProperties eventHubProperties = runOperation.block(); + if (eventHubProperties == null) { + System.err.println("No properties were retrieved."); + return; + } + + final String partitionIds = eventHubProperties.getPartitionIds() + .stream() + .collect(Collectors.joining(", ")); + + System.out.printf("Event Hub Name: [%s]. Created At: %s. partitionIds: [%s]%n", eventHubProperties.getName(), + eventHubProperties.getCreatedAt(), partitionIds); + } + + /** + * Mono that completes with the corresponding Event Hubs connection string. + * + * @param iotHubConnectionString The IoT Hub connection string. In the format: "{@code + * HostName=.azure-devices.net;SharedAccessKeyName=;SharedAccessKey=}". + * + * @return A Mono that completes when the connection string is retrieved. Or errors if the transport, connection, or + * link could not be opened. + * + * @throws IllegalArgumentException If the connection string could not be parsed or the shared access key is + * invalid. + * @throws NullPointerException if the connection string was null or one of the IoT connection string components + * is null. + * @throws UnsupportedOperationException if the hashing algorithm could not be instantiated. + * @throws UncheckedIOException if proton-j could not be started. + */ + private static Mono getConnectionString(String iotHubConnectionString) { + final IoTConnectionStringProperties properties; + try { + properties = new IoTConnectionStringProperties(iotHubConnectionString); + } catch (IllegalArgumentException | NullPointerException error) { + return Mono.error(error); + } + + final String entityPath = "messages/events"; + final String username = properties.getSharedAccessKeyName() + "@sas.root." + properties.getIoTHubName(); + final String resource = properties.getHostname() + "/" + entityPath; + final AccessToken accessToken; + try { + accessToken = generateSharedAccessSignature(properties.getSharedAccessKeyName(), + properties.getSharedAccessKey(), resource, Duration.ofMinutes(10)); + } catch (UnsupportedOperationException | IllegalArgumentException | UnsupportedEncodingException error) { + return Mono.error(error); + } + + final Reactor reactor; + try { + reactor = Proton.reactor(); + } catch (IOException e) { + return Mono.error(new UncheckedIOException("Unable to create IO pipe for proton-j reactor.", e)); + } + + // Leverage Mono.usingWhen to dispose of the resources after we finish using them. + return Mono.usingWhen( + Mono.fromCallable(() -> { + final ProtonJHandler handler = new ProtonJHandler("iot-connection-id", properties.getHostname(), + username, accessToken); + + reactor.setHandler(handler); + + // reactor.run() is a blocking call, so we schedule this on another thread. It'll stop processing items + // when we call reactor.stop() later on. + Schedulers.boundedElastic().schedule(() -> reactor.run()); + + return handler; + }), + handler -> { + // Creating a receiver will trigger the amqp:link:redirect error containing the Event Hubs connection + // string in its error properties. + return handler.getReceiver(entityPath + "/$management") + .map(receiver -> { + System.out.println("IoTHub string was compatible with Event Hubs. Did not redirect."); + return properties.getRawConnectionString(); + }) + // Only recover on AMQP Exceptions that have the amqp:link:redirect error. + // Other errors are propagated downstream. + .onErrorResume(error -> { + return error instanceof AmqpException + && ((AmqpException) error).getErrorCondition() == AmqpErrorCondition.LINK_REDIRECT; + }, error -> { + final AmqpException amqpException = (AmqpException) error; + final Map errorInfo = amqpException.getContext().getErrorInfo(); + final String eventHubsHostname = (String) errorInfo.get("hostname"); + + if (eventHubsHostname == null) { + return Mono.error(new UnsupportedOperationException( + "Could not get Event Hubs connection string from error info.", error)); + } + + final String eventHubsConnection = String.format(Locale.ROOT, + "Endpoint=sb://%s/;EntityPath=%s;SharedAccessKeyName=%s;SharedAccessKey=%s", + eventHubsHostname, properties.getIoTHubName(), properties.getSharedAccessKeyName(), + properties.getSharedAccessKey()); + + return Mono.just(eventHubsConnection); + }); + }, + handler -> { + // After we're done fetching a compatible Event Hubs connection string, stop the reactor. + reactor.stop(); + return handler.closeAsync(); + }); + } + + private static class ProtonJHandler extends BaseHandler implements AsyncCloseable { + private static final int PORT = 5671; + + private final String hostname; + private final String username; + private final AccessToken token; + private final String connectionId; + private final Sinks.One connectionSink = Sinks.one(); + private final ConcurrentMap> receiverSinks = new ConcurrentHashMap<>(); + + ProtonJHandler(String connectionId, String hostname, String username, AccessToken token) { + this.connectionId = connectionId; + this.hostname = hostname; + this.username = username; + this.token = token; + } + + /** + * Gets an active connection. Completes with an error if the connection could not be opened. + * + * @return An active connection. Completes with an error if the connection could not be opened. + */ + Mono getConnection() { + return connectionSink.asMono().cache(); + } + + Mono getReceiver(String entityPath) { + System.out.println("Creating receiver: " + entityPath); + return getConnection().flatMap(activeConnection -> { + final Sinks.One receiverSink = receiverSinks.computeIfAbsent(entityPath, key -> { + final Session session = activeConnection.session(); + final Receiver receiver = session.receiver("receiver " + entityPath); + final Source source = new Source(); + source.setAddress(entityPath); + receiver.setSource(source); + + receiver.setTarget(new Target()); + receiver.setSenderSettleMode(SenderSettleMode.SETTLED); + receiver.setReceiverSettleMode(ReceiverSettleMode.SECOND); + + session.open(); + receiver.open(); + + return Sinks.one(); + }); + + return receiverSink.asMono(); + }); + } + + @Override + public void onLinkRemoteOpen(Event e) { + final Receiver link = e.getReceiver(); + if (link == null) { + System.out.printf("Was expecting a receiver. Did not get one. Type: %s. Name: %s%n", e.getLink(), + e.getLink().getName()); + return; + } + + if (link.getCondition() != null) { + // There will be an error soon. Not completing receiver. + return; + } else if (link.getRemoteState() != EndpointState.ACTIVE) { + // The link isn't active, don't complete sink yet. + System.out.println(link.getRemoteState() + ": Remote state is not open. " + link.getCondition()); + return; + } + + final String entityPath = link.getSource().getAddress(); + final Sinks.One sink = receiverSinks.remove(entityPath); + if (sink != null) { + sink.emitValue(e.getReceiver(), Sinks.EmitFailureHandler.FAIL_FAST); + } else { + System.err.printf("There was no corresponding receiver '%s' sink. Closing link.%n", entityPath); + link.close(); + } + } + + @Override + public void onLinkRemoteClose(Event e) { + final Link link = e.getLink(); + final ErrorCondition remoteCondition = link.getRemoteCondition(); + final AmqpErrorCondition errorCondition = AmqpErrorCondition.fromString( + remoteCondition.getCondition().toString()); + + @SuppressWarnings("unchecked") final Map errorInfo = remoteCondition.getInfo(); + final Map errorInfoMap = errorInfo != null + ? errorInfo.entrySet().stream().collect(HashMap::new, + (existing, entry) -> existing.put(entry.getKey().toString(), entry.getValue()), (HashMap::putAll)) + : Collections.emptyMap(); + + final AmqpErrorContext context = new AmqpErrorContext(hostname, errorInfoMap); + final AmqpException exception = new AmqpException(false, errorCondition, remoteCondition.getDescription(), + context); + + final String entityPath = link.getSource().getAddress(); + final Sinks.One sink = receiverSinks.remove(entityPath); + if (sink != null) { + sink.emitError(exception, Sinks.EmitFailureHandler.FAIL_FAST); + } else { + System.err.printf("There was no corresponding receiver '%s' sink. Closing link.%n", entityPath); + link.close(); + } + } + + @Override + public void onConnectionBound(Event e) { + final Transport transport = e.getTransport(); + final Sasl sasl = transport.sasl(); + sasl.plain(username, token.getToken()); + + final SslDomain sslDomain = Proton.sslDomain(); + sslDomain.init(SslDomain.Mode.CLIENT); + + try { + sslDomain.setSslContext(SSLContext.getDefault()); + } catch (NoSuchAlgorithmException error) { + connectionSink.emitError(new RuntimeException("Could not bind SslContext.", error), + Sinks.EmitFailureHandler.FAIL_FAST); + } + + final SslPeerDetails peerDetails = Proton.sslPeerDetails(hostname, PORT); + transport.ssl(sslDomain, peerDetails); + } + + @Override + public void onConnectionInit(Event e) { + final Connection connection = e.getConnection(); + connection.setHostname(hostname); + connection.setContainer(connectionId); + + final Map properties = new HashMap<>(); + connection.setProperties(properties); + connection.open(); + } + + @Override + public void onConnectionRemoteOpen(Event e) { + System.out.println("Connection state: " + e.getConnection().getRemoteState()); + final Connection connection = e.getConnection(); + connectionSink.emitValue(connection, Sinks.EmitFailureHandler.FAIL_FAST); + } + + @Override + public void onReactorInit(Event e) { + e.getReactor().connectionToHost(hostname, PORT, this); + } + + @Override + public void onTransportError(Event event) { + final AmqpErrorContext context = new AmqpErrorContext(hostname); + ErrorCondition condition = event.getTransport().getCondition(); + if (condition != null) { + final AmqpException exception = new AmqpException(false, + AmqpErrorCondition.fromString(condition.getCondition().toString()), condition.getDescription(), + context); + + connectionSink.emitError(exception, Sinks.EmitFailureHandler.FAIL_FAST); + } else { + connectionSink.emitError(new AmqpException(false, "Error (no description returned).", context), + Sinks.EmitFailureHandler.FAIL_FAST); + } + } + + @Override + public Mono closeAsync() { + return connectionSink + .asMono() + .flatMap(connection -> Mono.fromRunnable(() -> connection.close())); + } + } + + /** + * Generates a shared access signature. Details for generating security tokens can be found at: + * Security + * tokens + * + * @param policyName Name of the shared access key policy. + * @param sharedAccessKey Value of the shared access key. + * @param resourceUri URI of the resource to access. Does not have the scheme in it. + * @param tokenDuration Duration of the token. + * + * @return An access token. + */ + private static AccessToken generateSharedAccessSignature(String policyName, String sharedAccessKey, + String resourceUri, Duration tokenDuration) throws UnsupportedEncodingException { + + final OffsetDateTime expiresOn = OffsetDateTime.now(ZoneOffset.UTC).plus(tokenDuration); + + final String utf8Encoding = UTF_8.name(); + final String expiresOnEpochSeconds = Long.toString(expiresOn.toEpochSecond()); + final String stringToSign = URLEncoder.encode(resourceUri, utf8Encoding) + "\n" + expiresOnEpochSeconds; + final byte[] decodedKey = Base64.getDecoder().decode(sharedAccessKey); + + final Mac sha256HMAC; + final SecretKeySpec secretKey; + final String hmacSHA256 = "HmacSHA256"; + try { + sha256HMAC = Mac.getInstance(hmacSHA256); + secretKey = new SecretKeySpec(decodedKey, hmacSHA256); + sha256HMAC.init(secretKey); + } catch (NoSuchAlgorithmException e) { + throw new UnsupportedOperationException( + String.format("Unable to create hashing algorithm '%s'", hmacSHA256), e); + } catch (InvalidKeyException e) { + throw new IllegalArgumentException("'sharedAccessKey' is an invalid value for the hashing algorithm.", e); + } + + final byte[] bytes = sha256HMAC.doFinal(stringToSign.getBytes(UTF_8)); + final String signature = new String(Base64.getEncoder().encode(bytes), UTF_8); + final String token = String.format(Locale.ROOT, "SharedAccessSignature sr=%s&sig=%s&se=%s&skn=%s", + URLEncoder.encode(resourceUri, utf8Encoding), + URLEncoder.encode(signature, utf8Encoding), + expiresOnEpochSeconds, policyName); + + return new AccessToken(token, expiresOn); + } + + /** + * Contains properties from parsing an IoT connection string. + */ + private static final class IoTConnectionStringProperties { + private static final String TOKEN_VALUE_SEPARATOR = "="; + private static final String TOKEN_VALUE_PAIR_DELIMITER = ";"; + private static final String HOST_NAME = "HostName"; + private static final String ENDPOINT = "Endpoint"; + private static final String SHARED_ACCESS_KEY_NAME = "SharedAccessKeyName"; + private static final String SHARED_ACCESS_KEY = "SharedAccessKey"; + private final String endpoint; + private final String sharedAccessKeyName; + private final String sharedAccessKey; + private final String iotHubName; + private final String connectionString; + + /** + * Parses an IoT Hub connection string into its components. Expects the string to be in format: {@code + * "HostName=.azure-devices.net;SharedAccessKeyName=;SharedAccessKey=} + * + * @param connectionString Connection string to parse. + * + * @throws IllegalArgumentException if the IoT Hub connection string does not have a valid URI endpoint. If + * there was not a valid key value pair in the connection string. Or the parameter name is unknown. + * @throws NullPointerException if there was no {@code endpoint}, {@code sharedAccessKey} or {@code + * sharedAccessKeyName} in the input string. + */ + private IoTConnectionStringProperties(String connectionString) { + this.connectionString = Objects.requireNonNull(connectionString, "'connectionString' is null."); + URI endpointUri = null; + String sharedAccessKeyName = null; + String sharedAccessKeyValue = null; + + for (String tokenValuePair : connectionString.split(TOKEN_VALUE_PAIR_DELIMITER)) { + final String[] pair = tokenValuePair.split(TOKEN_VALUE_SEPARATOR, 2); + if (pair.length != 2) { + throw new IllegalArgumentException(String.format(Locale.US, + "Connection string has invalid key value pair: %s", tokenValuePair)); + } + + final String key = pair[0].trim(); + final String value = pair[1].trim(); + + if (key.equalsIgnoreCase(HOST_NAME) || key.equalsIgnoreCase(ENDPOINT)) { + try { + endpointUri = new URI(value); + } catch (URISyntaxException e) { + throw new IllegalArgumentException( + String.format(Locale.US, "Invalid endpoint: %s", tokenValuePair), e); + } + } else if (key.equalsIgnoreCase(SHARED_ACCESS_KEY_NAME)) { + sharedAccessKeyName = value; + } else if (key.equalsIgnoreCase(SHARED_ACCESS_KEY)) { + sharedAccessKeyValue = value; + } else { + throw new IllegalArgumentException( + String.format(Locale.US, "Illegal connection string parameter name: %s", key)); + } + } + + Objects.requireNonNull(endpointUri, "'endpointUri' IoT Hub connection string requires an endpoint."); + + // If there is no scheme such as https:// or sb://, then the host will be null. + this.endpoint = endpointUri.getHost() != null ? endpointUri.getHost() : endpointUri.getPath(); + this.sharedAccessKeyName = Objects.requireNonNull(sharedAccessKeyName, "'sharedAccessKeyName' IoTHub connection string requires a shared access key policy name."); + this.sharedAccessKey = Objects.requireNonNull(sharedAccessKeyValue, "'sharedAccessKeyValue' IoTHub connection string requires a shared access key value."); + + final String[] split = this.endpoint.split("\\."); + if (split[0] == null) { + throw new IllegalArgumentException("Could not get the IoT hub name from: " + this.endpoint); + } + + this.iotHubName = split[0]; + } + + private String getIoTHubName() { + return iotHubName; + } + + private String getHostname() { + return endpoint; + } + + private String getSharedAccessKeyName() { + return sharedAccessKeyName; + } + + private String getSharedAccessKey() { + return sharedAccessKey; + } + + private String getRawConnectionString() { + return connectionString; + } + } +} diff --git a/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/EventHubClientBuilderTest.java b/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/EventHubClientBuilderTest.java index 65addbcff2936..7f252286d5a3d 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/EventHubClientBuilderTest.java +++ b/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/EventHubClientBuilderTest.java @@ -6,25 +6,32 @@ import com.azure.core.amqp.AmqpTransportType; import com.azure.core.amqp.ProxyAuthenticationType; import com.azure.core.amqp.ProxyOptions; +import com.azure.core.amqp.implementation.ConnectionStringProperties; +import com.azure.core.credential.AzureNamedKeyCredential; +import com.azure.core.credential.AzureSasCredential; import com.azure.core.util.Configuration; +import com.azure.core.util.logging.ClientLogger; import com.azure.messaging.eventhubs.implementation.ClientConstants; -import java.util.stream.Stream; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.Arguments; +import org.junit.jupiter.params.provider.MethodSource; +import reactor.test.StepVerifier; import java.net.InetSocketAddress; import java.net.Proxy; import java.net.URI; import java.net.URISyntaxException; import java.util.Locale; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.Arguments; -import org.junit.jupiter.params.provider.MethodSource; +import java.util.stream.Stream; +import static java.nio.charset.StandardCharsets.UTF_8; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; -public class EventHubClientBuilderTest { +public class EventHubClientBuilderTest extends IntegrationTestBase { private static final String NAMESPACE_NAME = "dummyNamespaceName"; private static final String DEFAULT_DOMAIN_NAME = "servicebus.windows.net/"; @@ -40,6 +47,12 @@ public class EventHubClientBuilderTest { ENDPOINT, SHARED_ACCESS_KEY_NAME, SHARED_ACCESS_KEY, EVENT_HUB_NAME); private static final Proxy PROXY_ADDRESS = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(PROXY_HOST, Integer.parseInt(PROXY_PORT))); + private static final String TEST_CONTENTS = "SSLorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vehicula posuere lobortis. Aliquam finibus volutpat dolor, faucibus pellentesque ipsum bibendum vitae. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Ut sit amet urna hendrerit, dapibus justo a, sodales justo. Mauris finibus augue id pulvinar congue. Nam maximus luctus ipsum, at commodo ligula euismod ac. Phasellus vitae lacus sit amet diam porta placerat. \nUt sodales efficitur sapien ut posuere. Morbi sed tellus est. Proin eu erat purus. Proin massa nunc, condimentum id iaculis dignissim, consectetur et odio. Cras suscipit sem eu libero aliquam tincidunt. Nullam ut arcu suscipit, eleifend velit in, cursus libero. Ut eleifend facilisis odio sit amet feugiat. Phasellus at nunc sit amet elit sagittis commodo ac in nisi. Fusce vitae aliquam quam. Integer vel nibh euismod, tempus elit vitae, pharetra est. Duis vulputate enim a elementum dignissim. Morbi dictum enim id elit scelerisque, in elementum nulla pharetra. \nAenean aliquet aliquet condimentum. Proin dapibus dui id libero tempus feugiat. Sed commodo ligula a lectus mattis, vitae tincidunt velit auctor. Fusce quis semper dui. Phasellus eu efficitur sem. Ut non sem sit amet enim condimentum venenatis id dictum massa. Nullam sagittis lacus a neque sodales, et ultrices arcu mattis. Aliquam erat volutpat. \nAenean fringilla quam elit, id mattis purus vestibulum nec. Praesent porta eros in dapibus molestie. Vestibulum orci libero, tincidunt et turpis eget, condimentum lobortis enim. Fusce suscipit ante et mauris consequat cursus nec laoreet lorem. Maecenas in sollicitudin diam, non tincidunt purus. Nunc mauris purus, laoreet eget interdum vitae, placerat a sapien. In mi risus, blandit eu facilisis nec, molestie suscipit leo. Pellentesque molestie urna vitae dui faucibus bibendum. \nDonec quis ipsum ultricies, imperdiet ex vel, scelerisque eros. Ut at urna arcu. Vestibulum rutrum odio dolor, vitae cursus nunc pulvinar vel. Donec accumsan sapien in malesuada tempor. Maecenas in condimentum eros. Sed vestibulum facilisis massa a iaculis. Etiam et nibh felis. Donec maximus, sem quis vestibulum gravida, turpis risus congue dolor, pharetra tincidunt lectus nisi at velit."; + + EventHubClientBuilderTest() { + super(new ClientLogger(EventHubClientBuilderTest.class)); + } + @Test public void missingConnectionString() { final EventHubClientBuilder builder = new EventHubClientBuilder(); @@ -87,6 +100,7 @@ public void throwsWithProxyWhenTransportTypeNotChanged() { assertNotNull(builder.buildAsyncClient()); }); } + @Test public void testConnectionStringWithSas() { @@ -125,6 +139,108 @@ public void testProxyOptionsConfiguration(String proxyConfiguration, boolean exp Assertions.assertEquals(expectedClientCreation, clientCreated); } + @Test + public void sendAndReceiveEventByAzureNameKeyCredential() { + ConnectionStringProperties properties = getConnectionStringProperties(); + String fullyQualifiedNamespace = getFullyQualifiedDomainName(); + String sharedAccessKeyName = properties.getSharedAccessKeyName(); + String sharedAccessKey = properties.getSharedAccessKey(); + String eventHubName = getEventHubName(); + + final EventData testData = new EventData(TEST_CONTENTS.getBytes(UTF_8)); + + EventHubProducerAsyncClient asyncProducerClient = new EventHubClientBuilder() + .credential(fullyQualifiedNamespace, eventHubName, + new AzureNamedKeyCredential(sharedAccessKeyName, sharedAccessKey)) + .buildAsyncProducerClient(); + try { + StepVerifier.create( + asyncProducerClient.createBatch().flatMap(batch -> { + assertTrue(batch.tryAdd(testData)); + return asyncProducerClient.send(batch); + }) + ).verifyComplete(); + } finally { + asyncProducerClient.close(); + } + } + + @Test + public void sendAndReceiveEventByAzureSasCredential() { + ConnectionStringProperties properties = getConnectionStringProperties(true); + String fullyQualifiedNamespace = getFullyQualifiedDomainName(); + String sharedAccessSignature = properties.getSharedAccessSignature(); + String eventHubName = getEventHubName(); + + final EventData testData = new EventData(TEST_CONTENTS.getBytes(UTF_8)); + + EventHubProducerAsyncClient asyncProducerClient = new EventHubClientBuilder() + .credential(fullyQualifiedNamespace, eventHubName, + new AzureSasCredential(sharedAccessSignature)) + .buildAsyncProducerClient(); + try { + StepVerifier.create( + asyncProducerClient.createBatch().flatMap(batch -> { + assertTrue(batch.tryAdd(testData)); + return asyncProducerClient.send(batch); + }) + ).verifyComplete(); + } finally { + asyncProducerClient.close(); + } + } + + @Test + public void testConnectionWithAzureNameKeyCredential() { + String fullyQualifiedNamespace = "sb-name.servicebus.windows.net"; + String sharedAccessKeyName = "SharedAccessKeyName test-value"; + String sharedAccessKey = "SharedAccessKey test-value"; + String eventHubName = "test-event-hub-name"; + + assertThrows(NullPointerException.class, () -> new EventHubClientBuilder() + .credential(null, eventHubName, + new AzureNamedKeyCredential(sharedAccessKeyName, sharedAccessKey))); + + assertThrows(NullPointerException.class, () -> new EventHubClientBuilder() + .credential(fullyQualifiedNamespace, null, + new AzureNamedKeyCredential(sharedAccessKeyName, sharedAccessKey))); + + assertThrows(IllegalArgumentException.class, () -> new EventHubClientBuilder() + .credential("", eventHubName, + new AzureNamedKeyCredential(sharedAccessKeyName, sharedAccessKey))); + + assertThrows(IllegalArgumentException.class, () -> new EventHubClientBuilder() + .credential(fullyQualifiedNamespace, "", + new AzureNamedKeyCredential(sharedAccessKeyName, sharedAccessKey))); + + assertThrows(NullPointerException.class, () -> new EventHubClientBuilder() + .credential(fullyQualifiedNamespace, eventHubName, (AzureNamedKeyCredential) null)); + + } + + @Test + public void testConnectionWithAzureSasCredential() { + String fullyQualifiedNamespace = "sb-name.servicebus.windows.net"; + String sharedAccessSignature = "SharedAccessSignature test-value"; + String eventHubName = "test-event-hub-name"; + + assertThrows(NullPointerException.class, () -> new EventHubClientBuilder() + .credential(null, eventHubName, new AzureSasCredential(sharedAccessSignature))); + + assertThrows(NullPointerException.class, () -> new EventHubClientBuilder() + .credential(fullyQualifiedNamespace, null, new AzureSasCredential(sharedAccessSignature))); + + assertThrows(IllegalArgumentException.class, () -> new EventHubClientBuilder() + .credential("", eventHubName, new AzureSasCredential(sharedAccessSignature))); + + assertThrows(IllegalArgumentException.class, () -> new EventHubClientBuilder() + .credential(fullyQualifiedNamespace, "", new AzureSasCredential(sharedAccessSignature))); + + assertThrows(NullPointerException.class, () -> new EventHubClientBuilder() + .credential(fullyQualifiedNamespace, eventHubName, (AzureSasCredential) null)); + + } + private static Stream getProxyConfigurations() { return Stream.of( Arguments.of("http://localhost:8080", true), diff --git a/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/IntegrationTestBase.java b/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/IntegrationTestBase.java index cf70a30f13851..17c136924eb3f 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/IntegrationTestBase.java +++ b/sdk/eventhubs/azure-messaging-eventhubs/src/test/java/com/azure/messaging/eventhubs/IntegrationTestBase.java @@ -220,7 +220,11 @@ protected static EventHubClientBuilder createBuilder(boolean useCredentials) { } protected static ConnectionStringProperties getConnectionStringProperties() { - return new ConnectionStringProperties(getConnectionString()); + return new ConnectionStringProperties(getConnectionString(false)); + } + + protected static ConnectionStringProperties getConnectionStringProperties(boolean withSas) { + return new ConnectionStringProperties(getConnectionString(withSas)); } /** diff --git a/sdk/farmbeats/azure-verticals-agrifood-farming/pom.xml b/sdk/farmbeats/azure-verticals-agrifood-farming/pom.xml index 6122844b676ec..8412286b92fd0 100644 --- a/sdk/farmbeats/azure-verticals-agrifood-farming/pom.xml +++ b/sdk/farmbeats/azure-verticals-agrifood-farming/pom.xml @@ -79,7 +79,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/pom.xml b/sdk/formrecognizer/azure-ai-formrecognizer/pom.xml index 4ce784402a862..d01b227670c4f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/pom.xml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/pom.xml @@ -78,7 +78,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/hdinsight/azure-resourcemanager-hdinsight/pom.xml b/sdk/hdinsight/azure-resourcemanager-hdinsight/pom.xml index 5a456eb10f651..7383b08ad0b90 100644 --- a/sdk/hdinsight/azure-resourcemanager-hdinsight/pom.xml +++ b/sdk/hdinsight/azure-resourcemanager-hdinsight/pom.xml @@ -54,7 +54,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/identity/azure-identity/CHANGELOG.md b/sdk/identity/azure-identity/CHANGELOG.md index 162da6598bdfd..d73c757d6eff7 100644 --- a/sdk/identity/azure-identity/CHANGELOG.md +++ b/sdk/identity/azure-identity/CHANGELOG.md @@ -6,6 +6,12 @@ - Upgraded `azure-core` dependency to 1.17.0 +## 1.3.1 (2021-06-08) + +### Dependency Updates +- Upgraded `azure-core` dependency to 1.17.0 + + ## 1.3.0 (2021-05-11) ### Features Added diff --git a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/pom.xml b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/pom.xml index 6817ac04c92a1..31a844d4f3b77 100644 --- a/sdk/imagebuilder/azure-resourcemanager-imagebuilder/pom.xml +++ b/sdk/imagebuilder/azure-resourcemanager-imagebuilder/pom.xml @@ -54,7 +54,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/keyvault/azure-security-keyvault-administration/pom.xml b/sdk/keyvault/azure-security-keyvault-administration/pom.xml index 5b2fa815ef15b..bb63a81804549 100644 --- a/sdk/keyvault/azure-security-keyvault-administration/pom.xml +++ b/sdk/keyvault/azure-security-keyvault-administration/pom.xml @@ -89,7 +89,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/keyvault/azure-security-keyvault-certificates/pom.xml b/sdk/keyvault/azure-security-keyvault-certificates/pom.xml index 346c64f14e621..96bf408400ab0 100644 --- a/sdk/keyvault/azure-security-keyvault-certificates/pom.xml +++ b/sdk/keyvault/azure-security-keyvault-certificates/pom.xml @@ -98,7 +98,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/keyvault/azure-security-keyvault-keys/pom.xml b/sdk/keyvault/azure-security-keyvault-keys/pom.xml index 9f7d098471b6f..91959c984d1e0 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/pom.xml +++ b/sdk/keyvault/azure-security-keyvault-keys/pom.xml @@ -105,7 +105,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/keyvault/azure-security-keyvault-secrets/pom.xml b/sdk/keyvault/azure-security-keyvault-secrets/pom.xml index b83d4ec16ba5a..0814f3ff0e3f4 100644 --- a/sdk/keyvault/azure-security-keyvault-secrets/pom.xml +++ b/sdk/keyvault/azure-security-keyvault-secrets/pom.xml @@ -105,7 +105,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/maintenance/azure-resourcemanager-maintenance/pom.xml b/sdk/maintenance/azure-resourcemanager-maintenance/pom.xml index b9132bb32b8e1..3894af7f993d2 100644 --- a/sdk/maintenance/azure-resourcemanager-maintenance/pom.xml +++ b/sdk/maintenance/azure-resourcemanager-maintenance/pom.xml @@ -54,7 +54,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/maps/azure-resourcemanager-maps/pom.xml b/sdk/maps/azure-resourcemanager-maps/pom.xml index 7df1814502297..dc2ad0bde0b33 100644 --- a/sdk/maps/azure-resourcemanager-maps/pom.xml +++ b/sdk/maps/azure-resourcemanager-maps/pom.xml @@ -54,7 +54,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor-perf/pom.xml b/sdk/metricsadvisor/azure-ai-metricsadvisor-perf/pom.xml index 74d93b554a80c..aa497580a92e8 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor-perf/pom.xml +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor-perf/pom.xml @@ -32,7 +32,7 @@ com.azure azure-ai-metricsadvisor - 1.0.0-beta.4 + 1.0.0-beta.5 diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/CHANGELOG.md b/sdk/metricsadvisor/azure-ai-metricsadvisor/CHANGELOG.md index 897bc0f4001ae..ebdce48ff39b9 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/CHANGELOG.md +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/CHANGELOG.md @@ -1,6 +1,9 @@ # Release History -## 1.0.0-beta.4 (2021-03-08) +## 1.0.0-beta.5 (Unreleased) + + +## 1.0.0-beta.4 (2021-06-09) ### Features added - Added support for Azure Log Analytics DataFeed source diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/pom.xml b/sdk/metricsadvisor/azure-ai-metricsadvisor/pom.xml index 24d4f991b6de2..8399d63bd39d3 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/pom.xml +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/pom.xml @@ -13,7 +13,7 @@ com.azure azure-ai-metricsadvisor - 1.0.0-beta.4 + 1.0.0-beta.5 Microsoft Azure client library for Metrics Advisor This package contains the Microsoft Azure Cognitive Services Metrics Advisor SDK. @@ -78,7 +78,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/metricsadvisor/pom.xml b/sdk/metricsadvisor/pom.xml index 3df4eaa7249e3..292ea536ad856 100644 --- a/sdk/metricsadvisor/pom.xml +++ b/sdk/metricsadvisor/pom.xml @@ -19,7 +19,7 @@ com.azure azure-ai-metricsadvisor - 1.0.0-beta.4 + 1.0.0-beta.5 diff --git a/sdk/mixedreality/azure-mixedreality-authentication/pom.xml b/sdk/mixedreality/azure-mixedreality-authentication/pom.xml index 0bdbb1c6d2f35..0cf3aaefb21ad 100644 --- a/sdk/mixedreality/azure-mixedreality-authentication/pom.xml +++ b/sdk/mixedreality/azure-mixedreality-authentication/pom.xml @@ -88,7 +88,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/modelsrepository/azure-iot-modelsrepository/pom.xml b/sdk/modelsrepository/azure-iot-modelsrepository/pom.xml index b503ab04f42b5..a6ea9abe0a862 100644 --- a/sdk/modelsrepository/azure-iot-modelsrepository/pom.xml +++ b/sdk/modelsrepository/azure-iot-modelsrepository/pom.xml @@ -59,7 +59,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/monitor/azure-monitor-query/CHANGELOG.md b/sdk/monitor/azure-monitor-query/CHANGELOG.md index 768d8d43ab76b..a326544d10990 100644 --- a/sdk/monitor/azure-monitor-query/CHANGELOG.md +++ b/sdk/monitor/azure-monitor-query/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History -## 1.0.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2021-06-09) +Version 1.0.0-beta.1 is a preview of our efforts in creating a client library for querying Azure Monitor logs and +metrics that is developer-friendly, idiomatic to the Java ecosystem, and as consistent across different languages +and platforms as possible. The principles that guide our efforts can be found in the +[Azure SDK Design Guidelines for Java](https://azure.github.io/azure-sdk/java_introduction.html). -- Initial release. Please see the README and wiki for information on the new design. +## Features Added +- Initial release. Please see the README and wiki for information on using the new library. diff --git a/sdk/monitor/azure-monitor-query/README.md b/sdk/monitor/azure-monitor-query/README.md index 281a0d9f93bfb..084857bae8a20 100644 --- a/sdk/monitor/azure-monitor-query/README.md +++ b/sdk/monitor/azure-monitor-query/README.md @@ -415,6 +415,10 @@ comments. +[source_code]: https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/monitor/azure-monitor-query/src + +[samples_readme]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/monitor/azure-monitor-query/src/samples/java/README.md + [azure_subscription]: https://azure.microsoft.com/free [jdk_link]: https://docs.microsoft.com/java/azure/jdk/?view=azure-java-stable diff --git a/sdk/monitor/azure-monitor-query/pom.xml b/sdk/monitor/azure-monitor-query/pom.xml index 1bf8d4e3311c1..3a33e9af9ac84 100644 --- a/sdk/monitor/azure-monitor-query/pom.xml +++ b/sdk/monitor/azure-monitor-query/pom.xml @@ -64,7 +64,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/netapp/azure-resourcemanager-netapp/pom.xml b/sdk/netapp/azure-resourcemanager-netapp/pom.xml index 4dff37e253eb1..4fe4606120f07 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/pom.xml +++ b/sdk/netapp/azure-resourcemanager-netapp/pom.xml @@ -54,7 +54,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/purview/azure-analytics-purview-catalog/pom.xml b/sdk/purview/azure-analytics-purview-catalog/pom.xml index 593427d0c88d9..771f2fe76052d 100644 --- a/sdk/purview/azure-analytics-purview-catalog/pom.xml +++ b/sdk/purview/azure-analytics-purview-catalog/pom.xml @@ -78,7 +78,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/purview/azure-analytics-purview-scanning/pom.xml b/sdk/purview/azure-analytics-purview-scanning/pom.xml index bc622abacec70..b792581298ef5 100644 --- a/sdk/purview/azure-analytics-purview-scanning/pom.xml +++ b/sdk/purview/azure-analytics-purview-scanning/pom.xml @@ -78,7 +78,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/quantum/azure-quantum-jobs/pom.xml b/sdk/quantum/azure-quantum-jobs/pom.xml index 1818452666dc3..f569e07adceae 100644 --- a/sdk/quantum/azure-quantum-jobs/pom.xml +++ b/sdk/quantum/azure-quantum-jobs/pom.xml @@ -68,13 +68,13 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test com.azure azure-storage-blob - 12.11.1 + 12.12.0 test diff --git a/sdk/remoterendering/azure-mixedreality-remoterendering/pom.xml b/sdk/remoterendering/azure-mixedreality-remoterendering/pom.xml index 2189b9ab50c67..8088b43ec7697 100644 --- a/sdk/remoterendering/azure-mixedreality-remoterendering/pom.xml +++ b/sdk/remoterendering/azure-mixedreality-remoterendering/pom.xml @@ -85,7 +85,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/resourcegraph/azure-resourcemanager-resourcegraph/pom.xml b/sdk/resourcegraph/azure-resourcemanager-resourcegraph/pom.xml index df88f34b080da..0963d1e34c591 100644 --- a/sdk/resourcegraph/azure-resourcemanager-resourcegraph/pom.xml +++ b/sdk/resourcegraph/azure-resourcemanager-resourcegraph/pom.xml @@ -54,7 +54,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/resourcemanager/azure-resourcemanager-appplatform/pom.xml b/sdk/resourcemanager/azure-resourcemanager-appplatform/pom.xml index 117c9aa0f77c4..85549958f857f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appplatform/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-appplatform/pom.xml @@ -57,7 +57,7 @@ com.azure azure-storage-file-share - 12.9.1 + 12.10.0 com.azure diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/pom.xml b/sdk/resourcemanager/azure-resourcemanager-compute/pom.xml index 28f7d5bdd3ea6..861ee37556e2c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-compute/pom.xml @@ -107,7 +107,7 @@ com.azure azure-storage-blob - 12.11.1 + 12.12.0 test diff --git a/sdk/resourcemanager/azure-resourcemanager-containerinstance/pom.xml b/sdk/resourcemanager/azure-resourcemanager-containerinstance/pom.xml index ce9aa0e1736c2..fa0cc69d08afe 100644 --- a/sdk/resourcemanager/azure-resourcemanager-containerinstance/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-containerinstance/pom.xml @@ -73,7 +73,7 @@ com.azure azure-storage-file-share - 12.9.1 + 12.10.0 com.azure diff --git a/sdk/resourcemanager/azure-resourcemanager-samples/pom.xml b/sdk/resourcemanager/azure-resourcemanager-samples/pom.xml index 7163a6e0fdec0..65ef6ecbf9791 100644 --- a/sdk/resourcemanager/azure-resourcemanager-samples/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-samples/pom.xml @@ -57,7 +57,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 com.jcraft @@ -98,7 +98,7 @@ com.azure azure-storage-blob - 12.11.1 + 12.12.0 com.azure diff --git a/sdk/resourcemanager/azure-resourcemanager-test/pom.xml b/sdk/resourcemanager/azure-resourcemanager-test/pom.xml index 92a2e1dabb4f0..06630b7d6dd87 100644 --- a/sdk/resourcemanager/azure-resourcemanager-test/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager-test/pom.xml @@ -67,7 +67,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 com.azure diff --git a/sdk/schemaregistry/azure-data-schemaregistry-avro/pom.xml b/sdk/schemaregistry/azure-data-schemaregistry-avro/pom.xml index 15d49199a1f8a..62637b8f7fac7 100644 --- a/sdk/schemaregistry/azure-data-schemaregistry-avro/pom.xml +++ b/sdk/schemaregistry/azure-data-schemaregistry-avro/pom.xml @@ -75,7 +75,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/schemaregistry/azure-data-schemaregistry/pom.xml b/sdk/schemaregistry/azure-data-schemaregistry/pom.xml index 1e3b98d0d8ae4..a64cd21fdeb8a 100644 --- a/sdk/schemaregistry/azure-data-schemaregistry/pom.xml +++ b/sdk/schemaregistry/azure-data-schemaregistry/pom.xml @@ -90,7 +90,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/search/azure-search-documents/CHANGELOG.md b/sdk/search/azure-search-documents/CHANGELOG.md index b1a898ec0aea2..2a2de263d8c1e 100644 --- a/sdk/search/azure-search-documents/CHANGELOG.md +++ b/sdk/search/azure-search-documents/CHANGELOG.md @@ -1,6 +1,36 @@ # Release History -## 11.4.0-beta.3 (Unreleased) +## 11.5.0-beta.1 (Unreleased) + +## 11.4.0 (2021-06-08) + +### Features Added + +- Added the ability to configure Knowledge Store in skillsets. +- Added factory method to `SynonymMap` to enable creation from a file. +- Added support for `Edm.GeographyPoint` in `FieldBuilder` when property has type `GeoPoint`. +- Added support for geography based filtering in `SearchFilter` when `GeoPosition`, `GeoPoint`, `GeoLineString`, or + `GeoPolygon` are used as formatting arguments. +- Added new skills `CustomEntityLookupSkill` and `DocumentExtractionSkill` and new skill versions for + `KeyPhraseExtractionSkill` and `LanguageDetectionSkill`. +- Added support for the ADLS Gen 2 Indexer data source type. +- Added skillset counts to `SearchServiceCounters`. +- Added additional log messages to `SearchIndexingBufferedSender` and `SearchIndexingBufferedAsyncSender`. + +### Breaking Changes + +- Removed support for service version `2020-06-30-Preview`. Default version is now `2020-06-30`. +- Removed Semantic Search capability to `SearchClient` and `SearchAsyncClient`. +- Removed support for Normalizers in `SearchField` and `SearchIndex` with `CustomNormalizer` and `LexicalNormalizer`. + +### Dependency Updates + +- Updated `azure-core` from `1.16.0` to `1.17.0`. +- Updated `azure-core-http-netty` from `1.9.2` to `1.10.0`. +- Updated `azure-core-serializer-json-jackson` from `1.2.3` to `1.2.4`. +- Updated Jackson from `2.12.2` to `2.12.3`. +- Updated Reactor from `3.4.5` to `3.4.6`. +- Updated Reactor Netty from `1.0.6` to `1.0.7`. ## 11.3.2 (2021-05-11) diff --git a/sdk/search/azure-search-documents/README.md b/sdk/search/azure-search-documents/README.md index c9a00db7767b3..0f8d0406024d1 100644 --- a/sdk/search/azure-search-documents/README.md +++ b/sdk/search/azure-search-documents/README.md @@ -38,7 +38,7 @@ Use the Azure Cognitive Search client library to: com.azure azure-search-documents - 11.3.2 + 11.4.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/search/azure-search-documents/pom.xml b/sdk/search/azure-search-documents/pom.xml index d029c6bfaf312..be15bfb21d475 100644 --- a/sdk/search/azure-search-documents/pom.xml +++ b/sdk/search/azure-search-documents/pom.xml @@ -16,7 +16,7 @@ com.azure azure-search-documents - 11.4.0-beta.3 + 11.5.0-beta.1 jar diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/AsciiFoldingTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/AsciiFoldingTokenFilter.java index 6a1e2a436e681..d26982874dd59 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/AsciiFoldingTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/AsciiFoldingTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -18,11 +17,10 @@ * "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. This token filter is * implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.AsciiFoldingTokenFilter") -@JsonFlatten @Fluent -public class AsciiFoldingTokenFilter extends TokenFilter { +public final class AsciiFoldingTokenFilter extends TokenFilter { /* * A value indicating whether the original token will be kept. Default is * false. diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/CjkBigramTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/CjkBigramTokenFilter.java index 0d19feedec7b4..c3fd45a270679 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/CjkBigramTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/CjkBigramTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.search.documents.indexes.models.CjkBigramTokenFilterScripts; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; @@ -19,11 +18,10 @@ * Forms bigrams of CJK terms that are generated from the standard tokenizer. This token filter is implemented using * Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.CjkBigramTokenFilter") -@JsonFlatten @Fluent -public class CjkBigramTokenFilter extends TokenFilter { +public final class CjkBigramTokenFilter extends TokenFilter { /* * The scripts to ignore. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ClassicTokenizer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ClassicTokenizer.java index 270ad44a8b8c5..23f74953a7fcf 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ClassicTokenizer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ClassicTokenizer.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,11 +16,10 @@ * Grammar-based tokenizer that is suitable for processing most European-language documents. This tokenizer is * implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.ClassicTokenizer") -@JsonFlatten @Fluent -public class ClassicTokenizer extends LexicalTokenizer { +public final class ClassicTokenizer extends LexicalTokenizer { /* * The maximum token length. Default is 255. Tokens longer than the maximum * length are split. The maximum token length that can be used is 300 diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/CommonGramTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/CommonGramTokenFilter.java index 700dc0deffb72..5875af42e3453 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/CommonGramTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/CommonGramTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -18,11 +17,10 @@ * Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams * overlaid. This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.CommonGramTokenFilter") -@JsonFlatten @Fluent -public class CommonGramTokenFilter extends TokenFilter { +public final class CommonGramTokenFilter extends TokenFilter { /* * The set of common words. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/DictionaryDecompounderTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/DictionaryDecompounderTokenFilter.java index 1a623afd3a405..647c08f50df58 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/DictionaryDecompounderTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/DictionaryDecompounderTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,11 +14,10 @@ import java.util.List; /** Decomposes compound words found in many Germanic languages. This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.DictionaryDecompounderTokenFilter") -@JsonFlatten @Fluent -public class DictionaryDecompounderTokenFilter extends TokenFilter { +public final class DictionaryDecompounderTokenFilter extends TokenFilter { /* * The list of words to match against. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/EdgeNGramTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/EdgeNGramTokenFilter.java index bab0bc04e5da1..d01adaed1d9a7 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/EdgeNGramTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/EdgeNGramTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.search.documents.indexes.models.EdgeNGramTokenFilterSide; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; @@ -18,11 +17,10 @@ * Generates n-grams of the given size(s) starting from the front or the back of an input token. This token filter is * implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.EdgeNGramTokenFilter") -@JsonFlatten @Fluent -public class EdgeNGramTokenFilter extends TokenFilter { +public final class EdgeNGramTokenFilter extends TokenFilter { /* * The minimum n-gram length. Default is 1. Must be less than the value of * maxGram. diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/EdgeNGramTokenFilterV2.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/EdgeNGramTokenFilterV2.java index 4ed4c22939ef5..79b303fd22167 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/EdgeNGramTokenFilterV2.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/EdgeNGramTokenFilterV2.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.search.documents.indexes.models.EdgeNGramTokenFilterSide; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; @@ -18,11 +17,10 @@ * Generates n-grams of the given size(s) starting from the front or the back of an input token. This token filter is * implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.EdgeNGramTokenFilterV2") -@JsonFlatten @Fluent -public class EdgeNGramTokenFilterV2 extends TokenFilter { +public final class EdgeNGramTokenFilterV2 extends TokenFilter { /* * The minimum n-gram length. Default is 1. Maximum is 300. Must be less * than the value of maxGram. diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/EdgeNGramTokenizer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/EdgeNGramTokenizer.java index 896284a9f1931..8cb00531daffe 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/EdgeNGramTokenizer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/EdgeNGramTokenizer.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.search.documents.indexes.models.TokenCharacterKind; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; @@ -19,11 +18,10 @@ * Tokenizes the input from an edge into n-grams of the given size(s). This tokenizer is implemented using Apache * Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.EdgeNGramTokenizer") -@JsonFlatten @Fluent -public class EdgeNGramTokenizer extends LexicalTokenizer { +public final class EdgeNGramTokenizer extends LexicalTokenizer { /* * The minimum n-gram length. Default is 1. Maximum is 300. Must be less * than the value of maxGram. diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ElisionTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ElisionTokenFilter.java index 8510fcceea4f5..e12bcd6bef0cb 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ElisionTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ElisionTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -18,11 +17,10 @@ * Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). This token filter is * implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.ElisionTokenFilter") -@JsonFlatten @Fluent -public class ElisionTokenFilter extends TokenFilter { +public final class ElisionTokenFilter extends TokenFilter { /* * The set of articles to remove. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeepTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeepTokenFilter.java index 0247fc467e325..b988cf787ae6c 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeepTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeepTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -18,11 +17,10 @@ * A token filter that only keeps tokens with text contained in a specified list of words. This token filter is * implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.KeepTokenFilter") -@JsonFlatten @Fluent -public class KeepTokenFilter extends TokenFilter { +public final class KeepTokenFilter extends TokenFilter { /* * The list of words to keep. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeywordMarkerTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeywordMarkerTokenFilter.java index 9e73147db2070..94554ee724c30 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeywordMarkerTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeywordMarkerTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,11 +14,10 @@ import java.util.List; /** Marks terms as keywords. This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.KeywordMarkerTokenFilter") -@JsonFlatten @Fluent -public class KeywordMarkerTokenFilter extends TokenFilter { +public final class KeywordMarkerTokenFilter extends TokenFilter { /* * A list of words to mark as keywords. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeywordTokenizer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeywordTokenizer.java index 94094f307e2dd..d888e84161bf0 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeywordTokenizer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeywordTokenizer.java @@ -7,18 +7,16 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** Emits the entire input as a single token. This tokenizer is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.KeywordTokenizer") -@JsonFlatten @Fluent -public class KeywordTokenizer extends LexicalTokenizer { +public final class KeywordTokenizer extends LexicalTokenizer { /* * The read buffer size in bytes. Default is 256. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeywordTokenizerV2.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeywordTokenizerV2.java index ca2936b246510..7810e2a6a30bc 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeywordTokenizerV2.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/KeywordTokenizerV2.java @@ -7,18 +7,16 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** Emits the entire input as a single token. This tokenizer is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.KeywordTokenizerV2") -@JsonFlatten @Fluent -public class KeywordTokenizerV2 extends LexicalTokenizer { +public final class KeywordTokenizerV2 extends LexicalTokenizer { /* * The maximum token length. Default is 256. Tokens longer than the maximum * length are split. The maximum token length that can be used is 300 diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LengthTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LengthTokenFilter.java index 81e66a50ffe13..315abd86c42dc 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LengthTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LengthTokenFilter.java @@ -7,18 +7,16 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** Removes words that are too long or too short. This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.LengthTokenFilter") -@JsonFlatten @Fluent -public class LengthTokenFilter extends TokenFilter { +public final class LengthTokenFilter extends TokenFilter { /* * The minimum length in characters. Default is 0. Maximum is 300. Must be * less than the value of max. diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LexicalTokenizer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LexicalTokenizer.java index 8e1f3de664655..c623c699ec6de 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LexicalTokenizer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LexicalTokenizer.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -18,7 +17,7 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, - property = "@odata\\.type", + property = "@odata.type", defaultImpl = LexicalTokenizer.class) @JsonTypeName("LexicalTokenizer") @JsonSubTypes({ @@ -41,7 +40,6 @@ @JsonSubTypes.Type(name = "#Microsoft.Azure.Search.StandardTokenizerV2", value = LuceneStandardTokenizerV2.class), @JsonSubTypes.Type(name = "#Microsoft.Azure.Search.UaxUrlEmailTokenizer", value = UaxUrlEmailTokenizer.class) }) -@JsonFlatten @Fluent public class LexicalTokenizer { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LimitTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LimitTokenFilter.java index 0f1885f8cb67e..9c5008dc04f2f 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LimitTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LimitTokenFilter.java @@ -7,18 +7,16 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** Limits the number of tokens while indexing. This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.LimitTokenFilter") -@JsonFlatten @Fluent -public class LimitTokenFilter extends TokenFilter { +public final class LimitTokenFilter extends TokenFilter { /* * The maximum number of tokens to produce. Default is 1. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LuceneStandardTokenizer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LuceneStandardTokenizer.java index 38f4b9cb618ad..1fcfca6825a98 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LuceneStandardTokenizer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LuceneStandardTokenizer.java @@ -7,18 +7,16 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** Breaks text following the Unicode Text Segmentation rules. This tokenizer is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.StandardTokenizer") -@JsonFlatten @Fluent -public class LuceneStandardTokenizer extends LexicalTokenizer { +public final class LuceneStandardTokenizer extends LexicalTokenizer { /* * The maximum token length. Default is 255. Tokens longer than the maximum * length are split. diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LuceneStandardTokenizerV2.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LuceneStandardTokenizerV2.java index 858f53e190a29..f0e66e5498269 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LuceneStandardTokenizerV2.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/LuceneStandardTokenizerV2.java @@ -7,18 +7,16 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** Breaks text following the Unicode Text Segmentation rules. This tokenizer is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.StandardTokenizerV2") -@JsonFlatten @Fluent -public class LuceneStandardTokenizerV2 extends LexicalTokenizer { +public final class LuceneStandardTokenizerV2 extends LexicalTokenizer { /* * The maximum token length. Default is 255. Tokens longer than the maximum * length are split. The maximum token length that can be used is 300 diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/MicrosoftLanguageStemmingTokenizer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/MicrosoftLanguageStemmingTokenizer.java index 850a2f8775ab6..c9ad305d99ea7 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/MicrosoftLanguageStemmingTokenizer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/MicrosoftLanguageStemmingTokenizer.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.search.documents.indexes.models.MicrosoftStemmingTokenizerLanguage; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; @@ -15,11 +14,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; /** Divides text using language-specific rules and reduces words to their base forms. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.MicrosoftLanguageStemmingTokenizer") -@JsonFlatten @Fluent -public class MicrosoftLanguageStemmingTokenizer extends LexicalTokenizer { +public final class MicrosoftLanguageStemmingTokenizer extends LexicalTokenizer { /* * The maximum token length. Tokens longer than the maximum length are * split. Maximum token length that can be used is 300 characters. Tokens diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/MicrosoftLanguageTokenizer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/MicrosoftLanguageTokenizer.java index 5345914df5a22..663e63c809eb8 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/MicrosoftLanguageTokenizer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/MicrosoftLanguageTokenizer.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.search.documents.indexes.models.MicrosoftTokenizerLanguage; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; @@ -15,11 +14,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; /** Divides text using language-specific rules. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.MicrosoftLanguageTokenizer") -@JsonFlatten @Fluent -public class MicrosoftLanguageTokenizer extends LexicalTokenizer { +public final class MicrosoftLanguageTokenizer extends LexicalTokenizer { /* * The maximum token length. Tokens longer than the maximum length are * split. Maximum token length that can be used is 300 characters. Tokens diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/NGramTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/NGramTokenFilter.java index af6e2ad9ee5c3..db5f5b28f2541 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/NGramTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/NGramTokenFilter.java @@ -7,18 +7,16 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** Generates n-grams of the given size(s). This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.NGramTokenFilter") -@JsonFlatten @Fluent -public class NGramTokenFilter extends TokenFilter { +public final class NGramTokenFilter extends TokenFilter { /* * The minimum n-gram length. Default is 1. Must be less than the value of * maxGram. diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/NGramTokenFilterV2.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/NGramTokenFilterV2.java index 5ca3b99d10c01..4eabb7557d0db 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/NGramTokenFilterV2.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/NGramTokenFilterV2.java @@ -7,18 +7,16 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** Generates n-grams of the given size(s). This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.NGramTokenFilterV2") -@JsonFlatten @Fluent -public class NGramTokenFilterV2 extends TokenFilter { +public final class NGramTokenFilterV2 extends TokenFilter { /* * The minimum n-gram length. Default is 1. Maximum is 300. Must be less * than the value of maxGram. diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/NGramTokenizer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/NGramTokenizer.java index 01d9d216f4a23..ee73e49dd88b1 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/NGramTokenizer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/NGramTokenizer.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.search.documents.indexes.models.TokenCharacterKind; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; @@ -16,11 +15,10 @@ import java.util.List; /** Tokenizes the input into n-grams of the given size(s). This tokenizer is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.NGramTokenizer") -@JsonFlatten @Fluent -public class NGramTokenizer extends LexicalTokenizer { +public final class NGramTokenizer extends LexicalTokenizer { /* * The minimum n-gram length. Default is 1. Maximum is 300. Must be less * than the value of maxGram. diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PathHierarchyTokenizerV2.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PathHierarchyTokenizerV2.java index e7aeca159d2b5..85c1b27d6997a 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PathHierarchyTokenizerV2.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PathHierarchyTokenizerV2.java @@ -7,18 +7,16 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** Tokenizer for path-like hierarchies. This tokenizer is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.PathHierarchyTokenizerV2") -@JsonFlatten @Fluent -public class PathHierarchyTokenizerV2 extends LexicalTokenizer { +public final class PathHierarchyTokenizerV2 extends LexicalTokenizer { /* * The delimiter character to use. Default is "/". */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PatternCaptureTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PatternCaptureTokenFilter.java index 69e9648b0a6ce..dee8d5657942d 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PatternCaptureTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PatternCaptureTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -18,11 +17,10 @@ * Uses Java regexes to emit multiple tokens - one for each capture group in one or more patterns. This token filter is * implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.PatternCaptureTokenFilter") -@JsonFlatten @Fluent -public class PatternCaptureTokenFilter extends TokenFilter { +public final class PatternCaptureTokenFilter extends TokenFilter { /* * A list of patterns to match against each token. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PatternReplaceTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PatternReplaceTokenFilter.java index cc63bca32eec0..483377527c052 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PatternReplaceTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PatternReplaceTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -19,11 +18,10 @@ * "aa bb aa bb", pattern "(aa)\s+(bb)", and replacement "$1#$2", the result would be "aa#bb aa#bb". This token filter * is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.PatternReplaceTokenFilter") -@JsonFlatten @Fluent -public class PatternReplaceTokenFilter extends TokenFilter { +public final class PatternReplaceTokenFilter extends TokenFilter { /* * A regular expression pattern. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PatternTokenizer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PatternTokenizer.java index 9f3cf38ab50a8..facb32fd2a892 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PatternTokenizer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PatternTokenizer.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.search.documents.indexes.models.RegexFlags; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; @@ -18,11 +17,10 @@ * Tokenizer that uses regex pattern matching to construct distinct tokens. This tokenizer is implemented using Apache * Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.PatternTokenizer") -@JsonFlatten @Fluent -public class PatternTokenizer extends LexicalTokenizer { +public final class PatternTokenizer extends LexicalTokenizer { /* * A regular expression pattern to match token separators. Default is an * expression that matches one or more non-word characters. diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PhoneticTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PhoneticTokenFilter.java index 2f2b67e708de6..0cc0a41f4cf81 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PhoneticTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/PhoneticTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.search.documents.indexes.models.PhoneticEncoder; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; @@ -15,11 +14,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; /** Create tokens for phonetic matches. This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.PhoneticTokenFilter") -@JsonFlatten @Fluent -public class PhoneticTokenFilter extends TokenFilter { +public final class PhoneticTokenFilter extends TokenFilter { /* * The phonetic encoder to use. Default is "metaphone". */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ShingleTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ShingleTokenFilter.java index 113fbbf715499..fc84724128620 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ShingleTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/ShingleTokenFilter.java @@ -7,18 +7,16 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** Creates combinations of tokens as a single token. This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.ShingleTokenFilter") -@JsonFlatten @Fluent -public class ShingleTokenFilter extends TokenFilter { +public final class ShingleTokenFilter extends TokenFilter { /* * The maximum shingle size. Default and minimum value is 2. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/SnowballTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/SnowballTokenFilter.java index e7c8a450023f0..f7b487b729c45 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/SnowballTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/SnowballTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.search.documents.indexes.models.SnowballTokenFilterLanguage; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; @@ -17,11 +16,10 @@ /** * A filter that stems words using a Snowball-generated stemmer. This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.SnowballTokenFilter") -@JsonFlatten @Fluent -public class SnowballTokenFilter extends TokenFilter { +public final class SnowballTokenFilter extends TokenFilter { /* * The language to use. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/StemmerOverrideTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/StemmerOverrideTokenFilter.java index 8877c8d665400..ba033dc1b0253 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/StemmerOverrideTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/StemmerOverrideTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -19,11 +18,10 @@ * terms will be marked as keywords so that they will not be stemmed with stemmers down the chain. Must be placed before * any stemming filters. This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.StemmerOverrideTokenFilter") -@JsonFlatten @Fluent -public class StemmerOverrideTokenFilter extends TokenFilter { +public final class StemmerOverrideTokenFilter extends TokenFilter { /* * A list of stemming rules in the following format: "word => stem", for * example: "ran => run". diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/StemmerTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/StemmerTokenFilter.java index bae2b83de2e9a..2aa4bb827b03f 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/StemmerTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/StemmerTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.search.documents.indexes.models.StemmerTokenFilterLanguage; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; @@ -15,11 +14,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName; /** Language specific stemming filter. This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.StemmerTokenFilter") -@JsonFlatten @Fluent -public class StemmerTokenFilter extends TokenFilter { +public final class StemmerTokenFilter extends TokenFilter { /* * The language to use. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/StopwordsTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/StopwordsTokenFilter.java index 9fad42176f929..f1ad3ac11e985 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/StopwordsTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/StopwordsTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.azure.search.documents.indexes.models.StopwordsList; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; @@ -16,11 +15,10 @@ import java.util.List; /** Removes stop words from a token stream. This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.StopwordsTokenFilter") -@JsonFlatten @Fluent -public class StopwordsTokenFilter extends TokenFilter { +public final class StopwordsTokenFilter extends TokenFilter { /* * The list of stopwords. This property and the stopwords list property * cannot both be set. diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/SynonymTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/SynonymTokenFilter.java index cee85167d70a2..067426e17a97d 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/SynonymTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/SynonymTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,11 +14,10 @@ import java.util.List; /** Matches single or multi-word synonyms in a token stream. This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.SynonymTokenFilter") -@JsonFlatten @Fluent -public class SynonymTokenFilter extends TokenFilter { +public final class SynonymTokenFilter extends TokenFilter { /* * A list of synonyms in following one of two formats: 1. incredible, * unbelievable, fabulous => amazing - all terms on the left side of => diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/TokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/TokenFilter.java index 6a5629798800f..d5ac80737935e 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/TokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/TokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -18,7 +17,7 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, - property = "@odata\\.type", + property = "@odata.type", defaultImpl = TokenFilter.class) @JsonTypeName("TokenFilter") @JsonSubTypes({ @@ -60,7 +59,6 @@ name = "#Microsoft.Azure.Search.WordDelimiterTokenFilter", value = WordDelimiterTokenFilter.class) }) -@JsonFlatten @Fluent public class TokenFilter { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/TruncateTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/TruncateTokenFilter.java index 03989131417ce..cda90fd713173 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/TruncateTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/TruncateTokenFilter.java @@ -7,18 +7,16 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** Truncates the terms to a specific length. This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.TruncateTokenFilter") -@JsonFlatten @Fluent -public class TruncateTokenFilter extends TokenFilter { +public final class TruncateTokenFilter extends TokenFilter { /* * The length at which terms will be truncated. Default and maximum is 300. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/UaxUrlEmailTokenizer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/UaxUrlEmailTokenizer.java index d29c07afb3a3f..8754c0d38e620 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/UaxUrlEmailTokenizer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/UaxUrlEmailTokenizer.java @@ -7,18 +7,16 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** Tokenizes urls and emails as one token. This tokenizer is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.UaxUrlEmailTokenizer") -@JsonFlatten @Fluent -public class UaxUrlEmailTokenizer extends LexicalTokenizer { +public final class UaxUrlEmailTokenizer extends LexicalTokenizer { /* * The maximum token length. Default is 255. Tokens longer than the maximum * length are split. The maximum token length that can be used is 300 diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/UniqueTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/UniqueTokenFilter.java index 7451661df0773..2b7985ee2699a 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/UniqueTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/UniqueTokenFilter.java @@ -7,18 +7,16 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** Filters out tokens with same text as the previous token. This token filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.UniqueTokenFilter") -@JsonFlatten @Fluent -public class UniqueTokenFilter extends TokenFilter { +public final class UniqueTokenFilter extends TokenFilter { /* * A value indicating whether to remove duplicates only at the same * position. Default is false. diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/WordDelimiterTokenFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/WordDelimiterTokenFilter.java index 59624d9b8d321..6d11d33ee6872 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/WordDelimiterTokenFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/implementation/models/WordDelimiterTokenFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.implementation.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -18,11 +17,10 @@ * Splits words into subwords and performs optional transformations on subword groups. This token filter is implemented * using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.WordDelimiterTokenFilter") -@JsonFlatten @Fluent -public class WordDelimiterTokenFilter extends TokenFilter { +public final class WordDelimiterTokenFilter extends TokenFilter { /* * A value indicating whether to generate part words. If set, causes parts * of words to be generated; for example "AzureSearch" becomes "Azure" diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/BM25SimilarityAlgorithm.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/BM25SimilarityAlgorithm.java index 50db424df7b85..95941ba390973 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/BM25SimilarityAlgorithm.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/BM25SimilarityAlgorithm.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -17,9 +16,8 @@ * normalization (controlled by the 'b' parameter) as well as term frequency saturation (controlled by the 'k1' * parameter). */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.BM25Similarity") -@JsonFlatten @Fluent public final class BM25SimilarityAlgorithm extends SimilarityAlgorithm { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CharFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CharFilter.java index 4271dd1f2f934..5f6f0535cb6ec 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CharFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CharFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -18,7 +17,7 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, - property = "@odata\\.type", + property = "@odata.type", defaultImpl = CharFilter.class) @JsonTypeName("CharFilter") @JsonSubTypes({ @@ -27,7 +26,6 @@ name = "#Microsoft.Azure.Search.PatternReplaceCharFilter", value = PatternReplaceCharFilter.class) }) -@JsonFlatten @Fluent public abstract class CharFilter { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ClassicSimilarityAlgorithm.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ClassicSimilarityAlgorithm.java index 04e1b468e5e2e..4ce9e25603279 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ClassicSimilarityAlgorithm.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ClassicSimilarityAlgorithm.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -16,8 +15,7 @@ * introduces static document length normalization as well as coordinating factors that penalize documents that only * partially match the searched queries. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.ClassicSimilarity") -@JsonFlatten @Immutable public final class ClassicSimilarityAlgorithm extends SimilarityAlgorithm { } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CognitiveServicesAccount.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CognitiveServicesAccount.java index d09ae490e40df..305dbcb628e43 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CognitiveServicesAccount.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CognitiveServicesAccount.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,7 +16,7 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, - property = "@odata\\.type", + property = "@odata.type", defaultImpl = CognitiveServicesAccount.class) @JsonTypeName("CognitiveServicesAccount") @JsonSubTypes({ @@ -28,7 +27,6 @@ name = "#Microsoft.Azure.Search.CognitiveServicesByKey", value = CognitiveServicesAccountKey.class) }) -@JsonFlatten @Fluent public abstract class CognitiveServicesAccount { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CognitiveServicesAccountKey.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CognitiveServicesAccountKey.java index bbe9230a0843e..89d6d0df47b7a 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CognitiveServicesAccountKey.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CognitiveServicesAccountKey.java @@ -7,16 +7,14 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** A cognitive service resource provisioned with a key that is attached to a skillset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.CognitiveServicesByKey") -@JsonFlatten @Fluent public final class CognitiveServicesAccountKey extends CognitiveServicesAccount { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ConditionalSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ConditionalSkill.java index ab722e61c1972..bc685fba465ee 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ConditionalSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ConditionalSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,9 +14,8 @@ import java.util.List; /** A skill that enables scenarios that require a Boolean operation to determine the data to assign to an output. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Skills.Util.ConditionalSkill") -@JsonFlatten @Immutable public final class ConditionalSkill extends SearchIndexerSkill { /** diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomAnalyzer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomAnalyzer.java index 1390b72321621..961cd9757bfe9 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomAnalyzer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomAnalyzer.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; @@ -20,9 +19,8 @@ * configuration consisting of a single predefined tokenizer and one or more filters. The tokenizer is responsible for * breaking text into tokens, and the filters for modifying tokens emitted by the tokenizer. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.CustomAnalyzer") -@JsonFlatten @Fluent public final class CustomAnalyzer extends LexicalAnalyzer { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomEntityLookupSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomEntityLookupSkill.java index d7ac1c994f6f1..58b778f91847b 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomEntityLookupSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomEntityLookupSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; @@ -16,9 +15,8 @@ import java.util.List; /** A skill looks for text from a custom, user-defined list of words and phrases. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Skills.Text.CustomEntityLookupSkill") -@JsonFlatten @Fluent public final class CustomEntityLookupSkill extends SearchIndexerSkill { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomNormalizer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomNormalizer.java index ccf577f8adcbb..b7e73f7a09786 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomNormalizer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/CustomNormalizer.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; @@ -20,9 +19,8 @@ * strict matching. This is a user-defined configuration consisting of at least one or more filters, which modify the * token that is stored. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.CustomNormalizer") -@JsonFlatten @Fluent public final class CustomNormalizer extends LexicalNormalizer { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DataChangeDetectionPolicy.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DataChangeDetectionPolicy.java index 5151f6ac4099b..94ad111461edb 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DataChangeDetectionPolicy.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DataChangeDetectionPolicy.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -16,7 +15,7 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, - property = "@odata\\.type", + property = "@odata.type", defaultImpl = DataChangeDetectionPolicy.class) @JsonTypeName("DataChangeDetectionPolicy") @JsonSubTypes({ @@ -27,6 +26,5 @@ name = "#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy", value = SqlIntegratedChangeTrackingPolicy.class) }) -@JsonFlatten @Immutable public abstract class DataChangeDetectionPolicy { } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DataDeletionDetectionPolicy.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DataDeletionDetectionPolicy.java index 64b07de122087..99e364bc54fcf 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DataDeletionDetectionPolicy.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DataDeletionDetectionPolicy.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -16,7 +15,7 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, - property = "@odata\\.type", + property = "@odata.type", defaultImpl = DataDeletionDetectionPolicy.class) @JsonTypeName("DataDeletionDetectionPolicy") @JsonSubTypes({ @@ -24,6 +23,5 @@ name = "#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy", value = SoftDeleteColumnDeletionDetectionPolicy.class) }) -@JsonFlatten @Immutable public abstract class DataDeletionDetectionPolicy { } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DefaultCognitiveServicesAccount.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DefaultCognitiveServicesAccount.java index 2dc6d6e089ebb..98d77fef234a9 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DefaultCognitiveServicesAccount.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DefaultCognitiveServicesAccount.java @@ -7,13 +7,11 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** An empty object that represents the default cognitive service resource for a skillset. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.DefaultCognitiveServices") -@JsonFlatten @Immutable public final class DefaultCognitiveServicesAccount extends CognitiveServicesAccount { } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DocumentExtractionSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DocumentExtractionSkill.java index 8fd05ef6f0cb9..ba20bcbb9ff79 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DocumentExtractionSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/DocumentExtractionSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -16,9 +15,8 @@ import java.util.Map; /** A skill that extracts content from a file within the enrichment pipeline. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Skills.Util.DocumentExtractionSkill") -@JsonFlatten @Fluent public final class DocumentExtractionSkill extends SearchIndexerSkill { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/EntityRecognitionSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/EntityRecognitionSkill.java index 95385b2332cd0..1a83c4a0d4ba4 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/EntityRecognitionSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/EntityRecognitionSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; @@ -16,9 +15,8 @@ import java.util.List; /** Text analytics entity recognition. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Skills.Text.EntityRecognitionSkill") -@JsonFlatten @Fluent public final class EntityRecognitionSkill extends SearchIndexerSkill { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/HighWaterMarkChangeDetectionPolicy.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/HighWaterMarkChangeDetectionPolicy.java index fc9390e83fb5c..f028fa3cc48df 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/HighWaterMarkChangeDetectionPolicy.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/HighWaterMarkChangeDetectionPolicy.java @@ -7,16 +7,14 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** Defines a data change detection policy that captures changes based on the value of a high water mark column. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy") -@JsonFlatten @Fluent public final class HighWaterMarkChangeDetectionPolicy extends DataChangeDetectionPolicy { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ImageAnalysisSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ImageAnalysisSkill.java index 5060966aa5a86..bd235e0e39833 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ImageAnalysisSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ImageAnalysisSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; @@ -16,9 +15,8 @@ import java.util.List; /** A skill that analyzes image files. It extracts a rich set of visual features based on the image content. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Skills.Vision.ImageAnalysisSkill") -@JsonFlatten @Fluent public final class ImageAnalysisSkill extends SearchIndexerSkill { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/KeyPhraseExtractionSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/KeyPhraseExtractionSkill.java index 0fe25e194355a..581c2b3d1b24a 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/KeyPhraseExtractionSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/KeyPhraseExtractionSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,9 +14,8 @@ import java.util.List; /** A skill that uses text analytics for key phrase extraction. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Skills.Text.KeyPhraseExtractionSkill") -@JsonFlatten @Fluent public final class KeyPhraseExtractionSkill extends SearchIndexerSkill { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LanguageDetectionSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LanguageDetectionSkill.java index 6ed2891ebe781..909d2a408da45 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LanguageDetectionSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LanguageDetectionSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -18,9 +17,8 @@ * A skill that detects the language of input text and reports a single language code for every document submitted on * the request. The language code is paired with a score indicating the confidence of the analysis. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Skills.Text.LanguageDetectionSkill") -@JsonFlatten @Fluent public final class LanguageDetectionSkill extends SearchIndexerSkill { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LexicalAnalyzer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LexicalAnalyzer.java index f317cd8bcafa9..bd9229d71c30d 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LexicalAnalyzer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LexicalAnalyzer.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -18,7 +17,7 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, - property = "@odata\\.type", + property = "@odata.type", defaultImpl = LexicalAnalyzer.class) @JsonTypeName("LexicalAnalyzer") @JsonSubTypes({ @@ -27,7 +26,6 @@ @JsonSubTypes.Type(name = "#Microsoft.Azure.Search.StandardAnalyzer", value = LuceneStandardAnalyzer.class), @JsonSubTypes.Type(name = "#Microsoft.Azure.Search.StopAnalyzer", value = StopAnalyzer.class) }) -@JsonFlatten @Fluent public abstract class LexicalAnalyzer { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LexicalNormalizer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LexicalNormalizer.java index 8d374823aa96b..80f25e20ea0b4 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LexicalNormalizer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LexicalNormalizer.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -18,11 +17,10 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, - property = "@odata\\.type", + property = "@odata.type", defaultImpl = LexicalNormalizer.class) @JsonTypeName("LexicalNormalizer") @JsonSubTypes({@JsonSubTypes.Type(name = "#Microsoft.Azure.Search.CustomNormalizer", value = CustomNormalizer.class)}) -@JsonFlatten @Fluent public class LexicalNormalizer { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LuceneStandardAnalyzer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LuceneStandardAnalyzer.java index 337f9733a3647..72481a42f605b 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LuceneStandardAnalyzer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/LuceneStandardAnalyzer.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; @@ -16,9 +15,8 @@ import java.util.List; /** Standard Apache Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.StandardAnalyzer") -@JsonFlatten @Fluent public final class LuceneStandardAnalyzer extends LexicalAnalyzer { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/MappingCharFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/MappingCharFilter.java index 969be6177b879..ecee396da61de 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/MappingCharFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/MappingCharFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -19,9 +18,8 @@ * matching at a given point wins). Replacement is allowed to be the empty string. This character filter is implemented * using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.MappingCharFilter") -@JsonFlatten @Fluent public final class MappingCharFilter extends CharFilter { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/MergeSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/MergeSkill.java index be1f3354d65ea..dadb01a3d8b54 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/MergeSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/MergeSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -18,9 +17,8 @@ * A skill for merging two or more strings into a single unified string, with an optional user-defined delimiter * separating each component part. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Skills.Text.MergeSkill") -@JsonFlatten @Fluent public final class MergeSkill extends SearchIndexerSkill { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/OcrSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/OcrSkill.java index daa872f9810e4..52680bbb033bd 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/OcrSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/OcrSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,9 +14,8 @@ import java.util.List; /** A skill that extracts text from image files. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Skills.Vision.OcrSkill") -@JsonFlatten @Fluent public final class OcrSkill extends SearchIndexerSkill { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PatternAnalyzer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PatternAnalyzer.java index 556aec57fae97..33a7320c87eaa 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PatternAnalyzer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PatternAnalyzer.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; @@ -20,9 +19,8 @@ * Flexibly separates text into terms via a regular expression pattern. This analyzer is implemented using Apache * Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.PatternAnalyzer") -@JsonFlatten @Fluent public final class PatternAnalyzer extends LexicalAnalyzer { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PatternReplaceCharFilter.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PatternReplaceCharFilter.java index 003b0fe72fb48..7ca088e2e3473 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PatternReplaceCharFilter.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/PatternReplaceCharFilter.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -19,9 +18,8 @@ * "aa bb aa bb", pattern "(aa)\s+(bb)", and replacement "$1#$2", the result would be "aa#bb aa#bb". This character * filter is implemented using Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.PatternReplaceCharFilter") -@JsonFlatten @Fluent public final class PatternReplaceCharFilter extends CharFilter { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreBlobProjectionSelector.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreBlobProjectionSelector.java index 7a214819a2310..31c96012cef16 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreBlobProjectionSelector.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreBlobProjectionSelector.java @@ -10,9 +10,12 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + /** Abstract class to share properties between concrete selectors. */ @Fluent -public class SearchIndexerKnowledgeStoreBlobProjectionSelector extends SearchIndexerKnowledgeStoreProjectionSelector { +public abstract class SearchIndexerKnowledgeStoreBlobProjectionSelector + extends SearchIndexerKnowledgeStoreProjectionSelector { /* * Blob container to store projections in. */ @@ -38,4 +41,35 @@ public SearchIndexerKnowledgeStoreBlobProjectionSelector( public String getStorageContainer() { return this.storageContainer; } + + @Override + public SearchIndexerKnowledgeStoreBlobProjectionSelector setReferenceKeyName(String referenceKeyName) { + super.setReferenceKeyName(referenceKeyName); + return this; + } + + @Override + public SearchIndexerKnowledgeStoreBlobProjectionSelector setGeneratedKeyName(String generatedKeyName) { + super.setGeneratedKeyName(generatedKeyName); + return this; + } + + @Override + public SearchIndexerKnowledgeStoreBlobProjectionSelector setSource(String source) { + super.setSource(source); + + return this; + } + + @Override + public SearchIndexerKnowledgeStoreBlobProjectionSelector setSourceContext(String sourceContext) { + super.setSourceContext(sourceContext); + return this; + } + + @Override + public SearchIndexerKnowledgeStoreBlobProjectionSelector setInputs(List inputs) { + super.setInputs(inputs); + return this; + } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreFileProjectionSelector.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreFileProjectionSelector.java index 83b3b047dc524..9155139c03354 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreFileProjectionSelector.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreFileProjectionSelector.java @@ -6,12 +6,14 @@ package com.azure.search.documents.indexes.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + /** Projection definition for what data to store in Azure Files. */ -@Immutable +@Fluent public final class SearchIndexerKnowledgeStoreFileProjectionSelector extends SearchIndexerKnowledgeStoreBlobProjectionSelector { /** @@ -24,4 +26,35 @@ public SearchIndexerKnowledgeStoreFileProjectionSelector( @JsonProperty(value = "storageContainer", required = true) String storageContainer) { super(storageContainer); } + + @Override + public SearchIndexerKnowledgeStoreFileProjectionSelector setReferenceKeyName(String referenceKeyName) { + super.setReferenceKeyName(referenceKeyName); + return this; + } + + @Override + public SearchIndexerKnowledgeStoreFileProjectionSelector setGeneratedKeyName(String generatedKeyName) { + super.setGeneratedKeyName(generatedKeyName); + return this; + } + + @Override + public SearchIndexerKnowledgeStoreFileProjectionSelector setSource(String source) { + super.setSource(source); + + return this; + } + + @Override + public SearchIndexerKnowledgeStoreFileProjectionSelector setSourceContext(String sourceContext) { + super.setSourceContext(sourceContext); + return this; + } + + @Override + public SearchIndexerKnowledgeStoreFileProjectionSelector setInputs(List inputs) { + super.setInputs(inputs); + return this; + } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreObjectProjectionSelector.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreObjectProjectionSelector.java index fcf4653ba14a8..85fe045ba65c1 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreObjectProjectionSelector.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreObjectProjectionSelector.java @@ -6,12 +6,14 @@ package com.azure.search.documents.indexes.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + /** Projection definition for what data to store in Azure Blob. */ -@Immutable +@Fluent public final class SearchIndexerKnowledgeStoreObjectProjectionSelector extends SearchIndexerKnowledgeStoreBlobProjectionSelector { /** @@ -24,4 +26,35 @@ public SearchIndexerKnowledgeStoreObjectProjectionSelector( @JsonProperty(value = "storageContainer", required = true) String storageContainer) { super(storageContainer); } + + @Override + public SearchIndexerKnowledgeStoreObjectProjectionSelector setReferenceKeyName(String referenceKeyName) { + super.setReferenceKeyName(referenceKeyName); + return this; + } + + @Override + public SearchIndexerKnowledgeStoreObjectProjectionSelector setGeneratedKeyName(String generatedKeyName) { + super.setGeneratedKeyName(generatedKeyName); + return this; + } + + @Override + public SearchIndexerKnowledgeStoreObjectProjectionSelector setSource(String source) { + super.setSource(source); + + return this; + } + + @Override + public SearchIndexerKnowledgeStoreObjectProjectionSelector setSourceContext(String sourceContext) { + super.setSourceContext(sourceContext); + return this; + } + + @Override + public SearchIndexerKnowledgeStoreObjectProjectionSelector setInputs(List inputs) { + super.setInputs(inputs); + return this; + } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreProjectionSelector.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreProjectionSelector.java index 259adb3fe2c99..7f9fc6f3d80ed 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreProjectionSelector.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreProjectionSelector.java @@ -12,7 +12,7 @@ /** Abstract class to share properties between concrete selectors. */ @Fluent -public class SearchIndexerKnowledgeStoreProjectionSelector { +public abstract class SearchIndexerKnowledgeStoreProjectionSelector { /* * Name of reference key to different projection. */ diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreTableProjectionSelector.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreTableProjectionSelector.java index 12083cefc14ac..d63282bd5b654 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreTableProjectionSelector.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerKnowledgeStoreTableProjectionSelector.java @@ -10,6 +10,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + /** Description for what data to store in Azure Tables. */ @Fluent public final class SearchIndexerKnowledgeStoreTableProjectionSelector @@ -39,4 +41,35 @@ public SearchIndexerKnowledgeStoreTableProjectionSelector( public String getTableName() { return this.tableName; } + + @Override + public SearchIndexerKnowledgeStoreTableProjectionSelector setReferenceKeyName(String referenceKeyName) { + super.setReferenceKeyName(referenceKeyName); + return this; + } + + @Override + public SearchIndexerKnowledgeStoreTableProjectionSelector setGeneratedKeyName(String generatedKeyName) { + super.setGeneratedKeyName(generatedKeyName); + return this; + } + + @Override + public SearchIndexerKnowledgeStoreTableProjectionSelector setSource(String source) { + super.setSource(source); + + return this; + } + + @Override + public SearchIndexerKnowledgeStoreTableProjectionSelector setSourceContext(String sourceContext) { + super.setSourceContext(sourceContext); + return this; + } + + @Override + public SearchIndexerKnowledgeStoreTableProjectionSelector setInputs(List inputs) { + super.setInputs(inputs); + return this; + } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerSkill.java index 930e4db000e8d..bfff6f6fad665 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexerSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -19,7 +18,7 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, - property = "@odata\\.type", + property = "@odata.type", defaultImpl = SearchIndexerSkill.class) @JsonTypeName("SearchIndexerSkill") @JsonSubTypes({ @@ -40,7 +39,6 @@ @JsonSubTypes.Type(name = "#Microsoft.Skills.Util.DocumentExtractionSkill", value = DocumentExtractionSkill.class), @JsonSubTypes.Type(name = "#Microsoft.Skills.Custom.WebApiSkill", value = WebApiSkill.class) }) -@JsonFlatten @Fluent public abstract class SearchIndexerSkill { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SentimentSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SentimentSkill.java index 899115242e8da..17b8ac6cc04ec 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SentimentSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SentimentSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,9 +14,8 @@ import java.util.List; /** Text analytics positive-negative sentiment analysis, scored as a floating point value in a range of zero to 1. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Skills.Text.SentimentSkill") -@JsonFlatten @Fluent public final class SentimentSkill extends SearchIndexerSkill { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ShaperSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ShaperSkill.java index 2c17069090a1f..b546f73dc6db2 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ShaperSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/ShaperSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -18,9 +17,8 @@ * A skill for reshaping the outputs. It creates a complex type to support composite fields (also known as multipart * fields). */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Skills.Util.ShaperSkill") -@JsonFlatten @Immutable public final class ShaperSkill extends SearchIndexerSkill { /** diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SimilarityAlgorithm.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SimilarityAlgorithm.java index dca7eaf3b0ad3..93ba6d074406b 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SimilarityAlgorithm.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SimilarityAlgorithm.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -20,13 +19,12 @@ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, - property = "@odata\\.type", + property = "@odata.type", defaultImpl = SimilarityAlgorithm.class) @JsonSubTypes({ @JsonSubTypes.Type(name = "#Microsoft.Azure.Search.ClassicSimilarity", value = ClassicSimilarityAlgorithm.class), @JsonSubTypes.Type(name = "#Microsoft.Azure.Search.BM25Similarity", value = BM25SimilarityAlgorithm.class) }) -@JsonFlatten @Immutable @JsonTypeName("Similarity") public abstract class SimilarityAlgorithm { } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SoftDeleteColumnDeletionDetectionPolicy.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SoftDeleteColumnDeletionDetectionPolicy.java index eb1494f624005..b52637670deeb 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SoftDeleteColumnDeletionDetectionPolicy.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SoftDeleteColumnDeletionDetectionPolicy.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -16,9 +15,8 @@ * Defines a data deletion detection policy that implements a soft-deletion strategy. It determines whether an item * should be deleted based on the value of a designated 'soft delete' column. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy") -@JsonFlatten @Fluent public final class SoftDeleteColumnDeletionDetectionPolicy extends DataDeletionDetectionPolicy { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SplitSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SplitSkill.java index c51c9ec88b4ab..9c8a58989d4de 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SplitSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SplitSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,9 +14,8 @@ import java.util.List; /** A skill to split a string into chunks of text. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Skills.Text.SplitSkill") -@JsonFlatten @Fluent public final class SplitSkill extends SearchIndexerSkill { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SqlIntegratedChangeTrackingPolicy.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SqlIntegratedChangeTrackingPolicy.java index aa26f3f85828b..8fa4e869dce5d 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SqlIntegratedChangeTrackingPolicy.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SqlIntegratedChangeTrackingPolicy.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Immutable; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -15,8 +14,7 @@ * Defines a data change detection policy that captures changes using the Integrated Change Tracking feature of Azure * SQL Database. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy") -@JsonFlatten @Immutable public final class SqlIntegratedChangeTrackingPolicy extends DataChangeDetectionPolicy { } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/StopAnalyzer.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/StopAnalyzer.java index 0aa80d8b08490..8316a913792ed 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/StopAnalyzer.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/StopAnalyzer.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSetter; @@ -19,9 +18,8 @@ * Divides text at non-letters; Applies the lowercase and stopword token filters. This analyzer is implemented using * Apache Lucene. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Azure.Search.StopAnalyzer") -@JsonFlatten @Fluent public final class StopAnalyzer extends LexicalAnalyzer { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/TextTranslationSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/TextTranslationSkill.java index 0f166b7175de5..9014a57729276 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/TextTranslationSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/TextTranslationSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -15,9 +14,8 @@ import java.util.List; /** A skill to translate text from one language to another. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Skills.Text.TranslationSkill") -@JsonFlatten @Fluent public final class TextTranslationSkill extends SearchIndexerSkill { /* diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/WebApiSkill.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/WebApiSkill.java index 5ae7504fdf49f..873b352a11b1a 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/WebApiSkill.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/WebApiSkill.java @@ -7,7 +7,6 @@ package com.azure.search.documents.indexes.models; import com.azure.core.annotation.Fluent; -import com.azure.core.annotation.JsonFlatten; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; @@ -17,9 +16,8 @@ import java.util.Map; /** A skill that can call a Web API endpoint, allowing you to extend a skillset by having it call your custom code. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata\\.type") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Skills.Custom.WebApiSkill") -@JsonFlatten @Fluent public final class WebApiSkill extends SearchIndexerSkill { /* diff --git a/sdk/search/azure-search-documents/src/samples/README.md b/sdk/search/azure-search-documents/src/samples/README.md index d34b12c7ae3e9..4cb7e9cd16096 100644 --- a/sdk/search/azure-search-documents/src/samples/README.md +++ b/sdk/search/azure-search-documents/src/samples/README.md @@ -29,7 +29,7 @@ Maven dependency for Azure Cognitive Search Client library. Add it to your proje com.azure azure-search-documents - 11.3.2 + 11.4.0 ``` diff --git a/sdk/search/azure-search-documents/swagger/README.md b/sdk/search/azure-search-documents/swagger/README.md index e0bdf4410462f..702038098a593 100644 --- a/sdk/search/azure-search-documents/swagger/README.md +++ b/sdk/search/azure-search-documents/swagger/README.md @@ -118,6 +118,7 @@ license-header: |- Licensed under the MIT License. Code generated by Microsoft (R) AutoRest Code Generator. Changes may cause incorrect behavior and will be lost if the code is regenerated. +require-x-ms-flattened-to-flatten: true ``` ### Set odata.metadata Accept header in operations diff --git a/sdk/search/azure-search-documents/swagger/src/main/java/SearchServiceCustomizations.java b/sdk/search/azure-search-documents/swagger/src/main/java/SearchServiceCustomizations.java index dfc791f03ad4f..0dc0c449f5e29 100644 --- a/sdk/search/azure-search-documents/swagger/src/main/java/SearchServiceCustomizations.java +++ b/sdk/search/azure-search-documents/swagger/src/main/java/SearchServiceCustomizations.java @@ -40,7 +40,8 @@ public void customize(LibraryCustomization libraryCustomization, Logger logger) // Change class modifiers to 'public abstract'. bulkChangeClassModifiers(publicCustomization, PUBLIC_ABSTRACT, "ScoringFunction", "DataChangeDetectionPolicy", "DataDeletionDetectionPolicy", "CharFilter", "CognitiveServicesAccount", "SearchIndexerSkill", - "LexicalAnalyzer"); + "LexicalAnalyzer", "SearchIndexerKnowledgeStoreProjectionSelector", + "SearchIndexerKnowledgeStoreBlobProjectionSelector"); // Change class modifiers to 'public final'. bulkChangeClassModifiers(publicCustomization, PUBLIC_FINAL, "BM25SimilarityAlgorithm", @@ -75,6 +76,14 @@ public void customize(LibraryCustomization libraryCustomization, Logger logger) customizeLuceneStandardAnalyzer(publicCustomization.getClass("LuceneStandardAnalyzer")); customizeStopAnalyzer(publicCustomization.getClass("StopAnalyzer")); customizeSearchIndexerSkillset(publicCustomization.getClass("SearchIndexerSkillset")); + customizeSearchIndexerKnowledgeStoreBlobProjectionSelector( + publicCustomization.getClass("SearchIndexerKnowledgeStoreBlobProjectionSelector")); + customizeSearchIndexerKnowledgeStoreFileProjectionSelector( + publicCustomization.getClass("SearchIndexerKnowledgeStoreFileProjectionSelector")); + customizeSearchIndexerKnowledgeStoreObjectProjectionSelector( + publicCustomization.getClass("SearchIndexerKnowledgeStoreObjectProjectionSelector")); + customizeSearchIndexerKnowledgeStoreTableProjectionSelector( + publicCustomization.getClass("SearchIndexerKnowledgeStoreTableProjectionSelector")); } private void customizeSearchFieldDataType(ClassCustomization classCustomization) { @@ -347,6 +356,60 @@ private void customizeSearchIndexerSkillset(ClassCustomization classCustomizatio addVarArgsOverload(classCustomization, "skills", "SearchIndexerSkill"); } + private void customizeSearchIndexerKnowledgeStoreBlobProjectionSelector(ClassCustomization classCustomization) { + addKnowledgeStoreProjectionFluentSetterOverrides(classCustomization); + } + + private void customizeSearchIndexerKnowledgeStoreFileProjectionSelector(ClassCustomization classCustomization) { + classCustomization.removeAnnotation("@Immutable"); + classCustomization.addAnnotation("@Fluent"); + addKnowledgeStoreProjectionFluentSetterOverrides(classCustomization); + } + + private void customizeSearchIndexerKnowledgeStoreObjectProjectionSelector(ClassCustomization classCustomization) { + classCustomization.removeAnnotation("@Immutable"); + classCustomization.addAnnotation("@Fluent"); + addKnowledgeStoreProjectionFluentSetterOverrides(classCustomization); + } + + private void customizeSearchIndexerKnowledgeStoreTableProjectionSelector(ClassCustomization classCustomization) { + addKnowledgeStoreProjectionFluentSetterOverrides(classCustomization); + } + + private void addKnowledgeStoreProjectionFluentSetterOverrides(ClassCustomization classCustomization) { + String className = classCustomization.getClassName(); + + classCustomization.addMethod(joinWithNewline( + String.format("public %s setReferenceKeyName(String referenceKeyName) {", className), + " super.setReferenceKeyName(referenceKeyName);", + " return this;", + "}")).addAnnotation("@Override"); + + classCustomization.addMethod(joinWithNewline( + String.format("public %s setGeneratedKeyName(String generatedKeyName) {", className), + " super.setGeneratedKeyName(generatedKeyName);", + " return this;", + "}")).addAnnotation("@Override"); + + classCustomization.addMethod(joinWithNewline( + String.format("public %s setSource(String source) {", className), + " super.setSource(source);\n", + " return this;\n", + "}")).addAnnotation("@Override"); + + classCustomization.addMethod(joinWithNewline( + String.format("public %s setSourceContext(String sourceContext) {", className), + " super.setSourceContext(sourceContext);", + " return this;", + "}")).addAnnotation("@Override"); + + classCustomization.addMethod(joinWithNewline( + String.format("public %s setInputs(List inputs) {", className), + " super.setInputs(inputs);", + " return this;", + "}")).addAnnotation("@Override"); + } + private static void bulkChangeClassModifiers(PackageCustomization packageCustomization, int modifier, String... classNames) { if (classNames == null) { diff --git a/sdk/search/azure-search-perf/pom.xml b/sdk/search/azure-search-perf/pom.xml index 789f7f98fdb1b..4121df10ee73b 100644 --- a/sdk/search/azure-search-perf/pom.xml +++ b/sdk/search/azure-search-perf/pom.xml @@ -32,7 +32,7 @@ com.azure azure-search-documents - 11.4.0-beta.3 + 11.5.0-beta.1 diff --git a/sdk/search/pom.xml b/sdk/search/pom.xml index 75cc749d57f7a..a31fa4944a085 100644 --- a/sdk/search/pom.xml +++ b/sdk/search/pom.xml @@ -19,7 +19,7 @@ com.azure azure-search-documents - 11.4.0-beta.3 + 11.5.0-beta.1 diff --git a/sdk/servicebus/azure-messaging-servicebus/pom.xml b/sdk/servicebus/azure-messaging-servicebus/pom.xml index 30d24c989d1d1..e8c8dc03adce1 100644 --- a/sdk/servicebus/azure-messaging-servicebus/pom.xml +++ b/sdk/servicebus/azure-messaging-servicebus/pom.xml @@ -71,7 +71,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessageBatch.java b/sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessageBatch.java index a3ddce1cb7395..d3a3c4d9176bc 100644 --- a/sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessageBatch.java +++ b/sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessageBatch.java @@ -11,10 +11,12 @@ import com.azure.core.util.logging.ClientLogger; import java.nio.BufferOverflowException; +import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.Locale; import java.util.Objects; +import java.util.concurrent.atomic.AtomicInteger; import static com.azure.messaging.servicebus.implementation.MessageUtils.traceMessageSpan; @@ -30,7 +32,7 @@ public final class ServiceBusMessageBatch { private final MessageSerializer serializer; private final List serviceBusMessageList; private final byte[] eventBytes; - private int sizeInBytes; + private final AtomicInteger sizeInBytes; private final TracerProvider tracerProvider; private final String entityPath; private final String hostname; @@ -40,8 +42,8 @@ public final class ServiceBusMessageBatch { this.maxMessageSize = maxMessageSize; this.contextProvider = contextProvider; this.serializer = serializer; - this.serviceBusMessageList = new LinkedList<>(); - this.sizeInBytes = (maxMessageSize / 65536) * 1024; // reserve 1KB for every 64KB + this.serviceBusMessageList = Collections.synchronizedList(new LinkedList<>()); + this.sizeInBytes = new AtomicInteger((maxMessageSize / 65536) * 1024); // reserve 1KB for every 64KB this.eventBytes = new byte[maxMessageSize]; this.tracerProvider = tracerProvider; this.entityPath = entityPath; @@ -72,7 +74,7 @@ public int getMaxSizeInBytes() { * @return The size of the {@link ServiceBusMessageBatch batch} in bytes. */ public int getSizeInBytes() { - return this.sizeInBytes; + return this.sizeInBytes.get(); } /** @@ -97,9 +99,9 @@ public boolean tryAddMessage(final ServiceBusMessage serviceBusMessage) { tracerProvider) : serviceBusMessage; - final int size; + final AtomicInteger size = new AtomicInteger(); try { - size = getSize(serviceBusMessageUpdated, serviceBusMessageList.isEmpty()); + size.set(getSize(serviceBusMessageUpdated, serviceBusMessageList.isEmpty())); } catch (BufferOverflowException exception) { final RuntimeException ex = new ServiceBusException( new AmqpException(false, AmqpErrorCondition.LINK_PAYLOAD_SIZE_EXCEEDED, @@ -109,12 +111,9 @@ public boolean tryAddMessage(final ServiceBusMessage serviceBusMessage) { throw logger.logExceptionAsWarning(ex); } - synchronized (lock) { - if (this.sizeInBytes + size > this.maxMessageSize) { - return false; - } - - this.sizeInBytes += size; + if (this.sizeInBytes.addAndGet(size.get()) > this.maxMessageSize) { + this.sizeInBytes.addAndGet(-1 * size.get()); + return false; } this.serviceBusMessageList.add(serviceBusMessageUpdated); diff --git a/sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusSenderAsyncClient.java b/sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusSenderAsyncClient.java index edd9ca0cd71c8..89db203b728a2 100644 --- a/sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusSenderAsyncClient.java +++ b/sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusSenderAsyncClient.java @@ -42,6 +42,7 @@ import java.util.function.Function; import java.util.function.Supplier; import java.util.stream.Collector; +import java.util.stream.StreamSupport; import static com.azure.core.amqp.implementation.RetryUtil.getRetryPolicy; import static com.azure.core.amqp.implementation.RetryUtil.withRetry; @@ -574,7 +575,8 @@ private Mono sendIterable(Iterable messages, ServiceBus } return createMessageBatch().flatMap(messageBatch -> { - messages.forEach(message -> messageBatch.tryAddMessage(message)); + StreamSupport.stream(messages.spliterator(), true) + .forEach(message -> messageBatch.tryAddMessage(message)); return sendInternal(messageBatch, transaction); }); } @@ -635,32 +637,29 @@ private Mono sendInternal(ServiceBusMessageBatch batch, ServiceBusTransact logger.info("Sending batch with size[{}].", batch.getCount()); - Context sharedContext = null; - final List messages = new ArrayList<>(); - - for (int i = 0; i < batch.getMessages().size(); i++) { - final ServiceBusMessage event = batch.getMessages().get(i); + AtomicReference sharedContext = new AtomicReference<>(Context.NONE); + final List messages = Collections.synchronizedList(new ArrayList<>()); + batch.getMessages().parallelStream().forEach(serviceBusMessage -> { if (isTracingEnabled) { - parentContext.set(event.getContext()); - if (i == 0) { - sharedContext = tracerProvider.getSharedSpanBuilder(SERVICE_BASE_NAME, parentContext.get()); + parentContext.set(serviceBusMessage.getContext()); + if (sharedContext.get().equals(Context.NONE)) { + sharedContext.set(tracerProvider.getSharedSpanBuilder(SERVICE_BASE_NAME, parentContext.get())); } - tracerProvider.addSpanLinks(sharedContext.addData(SPAN_CONTEXT_KEY, event.getContext())); + tracerProvider.addSpanLinks(sharedContext.get().addData(SPAN_CONTEXT_KEY, serviceBusMessage.getContext())); } - final org.apache.qpid.proton.message.Message message = messageSerializer.serialize(event); - + final org.apache.qpid.proton.message.Message message = messageSerializer.serialize(serviceBusMessage); final MessageAnnotations messageAnnotations = message.getMessageAnnotations() == null ? new MessageAnnotations(new HashMap<>()) : message.getMessageAnnotations(); message.setMessageAnnotations(messageAnnotations); messages.add(message); - } + }); if (isTracingEnabled) { - final Context finalSharedContext = sharedContext == null + final Context finalSharedContext = sharedContext.get().equals(Context.NONE) ? Context.NONE - : sharedContext + : sharedContext.get() .addData(ENTITY_PATH_KEY, entityName) .addData(HOST_NAME_KEY, connectionProcessor.getFullyQualifiedNamespace()) .addData(AZ_TRACING_NAMESPACE_KEY, AZ_TRACING_NAMESPACE_VALUE); diff --git a/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusProcessorTest.java b/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusProcessorTest.java index 0083295383480..acea91b3ab09c 100644 --- a/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusProcessorTest.java +++ b/sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusProcessorTest.java @@ -194,7 +194,6 @@ public void testStartStopResume() throws InterruptedException { */ @Test public void testErrorRecovery() throws InterruptedException { - List messageList = new ArrayList<>(); for (int i = 0; i < 2; i++) { ServiceBusReceivedMessage serviceBusReceivedMessage = @@ -204,6 +203,7 @@ public void testErrorRecovery() throws InterruptedException { new ServiceBusMessageContext(serviceBusReceivedMessage); messageList.add(serviceBusMessageContext); } + final Flux messageFlux = Flux.generate(() -> 0, (state, sink) -> { ServiceBusReceivedMessage serviceBusReceivedMessage = @@ -220,11 +220,9 @@ public void testErrorRecovery() throws InterruptedException { }); ServiceBusClientBuilder.ServiceBusReceiverClientBuilder receiverBuilder = getBuilder(messageFlux); - AtomicInteger messageId = new AtomicInteger(); AtomicReference countDownLatch = new AtomicReference<>(); countDownLatch.set(new CountDownLatch(4)); - AtomicBoolean assertionFailed = new AtomicBoolean(); StringBuffer messageIdNotMatched = new StringBuffer(); ServiceBusProcessorClient serviceBusProcessorClient = new ServiceBusProcessorClient(receiverBuilder, diff --git a/sdk/spring/azure-identity-spring/pom.xml b/sdk/spring/azure-identity-spring/pom.xml index 2a6d39cb9f6ef..7105195075277 100644 --- a/sdk/spring/azure-identity-spring/pom.xml +++ b/sdk/spring/azure-identity-spring/pom.xml @@ -39,7 +39,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 diff --git a/sdk/spring/azure-spring-boot-starter-keyvault-secrets/pom.xml b/sdk/spring/azure-spring-boot-starter-keyvault-secrets/pom.xml index 14ead628d06dd..f589912090f15 100644 --- a/sdk/spring/azure-spring-boot-starter-keyvault-secrets/pom.xml +++ b/sdk/spring/azure-spring-boot-starter-keyvault-secrets/pom.xml @@ -38,7 +38,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 com.azure diff --git a/sdk/spring/azure-spring-boot-starter-storage/pom.xml b/sdk/spring/azure-spring-boot-starter-storage/pom.xml index 2f7c8650ff29e..d293c0daf8f58 100644 --- a/sdk/spring/azure-spring-boot-starter-storage/pom.xml +++ b/sdk/spring/azure-spring-boot-starter-storage/pom.xml @@ -36,13 +36,13 @@ com.azure azure-storage-blob - 12.11.1 + 12.12.0 com.azure azure-storage-file-share - 12.9.1 + 12.10.0 diff --git a/sdk/spring/azure-spring-boot/pom.xml b/sdk/spring/azure-spring-boot/pom.xml index f2c1908bebec6..da83223bd546e 100644 --- a/sdk/spring/azure-spring-boot/pom.xml +++ b/sdk/spring/azure-spring-boot/pom.xml @@ -157,7 +157,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 true @@ -172,14 +172,14 @@ com.azure azure-storage-blob - 12.11.1 + 12.12.0 true com.azure azure-storage-file-share - 12.9.1 + 12.10.0 true diff --git a/sdk/spring/azure-spring-cloud-storage/pom.xml b/sdk/spring/azure-spring-cloud-storage/pom.xml index 11916e74c15a3..c68d6148fb2cd 100644 --- a/sdk/spring/azure-spring-cloud-storage/pom.xml +++ b/sdk/spring/azure-spring-cloud-storage/pom.xml @@ -37,7 +37,7 @@ com.azure azure-storage-queue - 12.9.1 + 12.10.0 true diff --git a/sdk/spring/azure-spring-integration-storage-queue/pom.xml b/sdk/spring/azure-spring-integration-storage-queue/pom.xml index d5db5a406eedf..8587b981c62ca 100644 --- a/sdk/spring/azure-spring-integration-storage-queue/pom.xml +++ b/sdk/spring/azure-spring-integration-storage-queue/pom.xml @@ -38,7 +38,7 @@ com.azure azure-storage-queue - 12.9.1 + 12.10.0 + 12.11.0-beta.1 Microsoft Azure client library for Blob Storage batching This module contains client library for Microsoft Azure Blob Storage batching. @@ -65,7 +65,7 @@ com.azure azure-storage-blob - 12.12.0 + 12.13.0-beta.1 + 12.13.0-beta.1 tests test-jar test @@ -95,7 +95,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/storage/azure-storage-blob-changefeed/CHANGELOG.md b/sdk/storage/azure-storage-blob-changefeed/CHANGELOG.md index 2324df83dd2bb..b3f85b43a09d2 100644 --- a/sdk/storage/azure-storage-blob-changefeed/CHANGELOG.md +++ b/sdk/storage/azure-storage-blob-changefeed/CHANGELOG.md @@ -1,5 +1,8 @@ # Release History +## 12.0.0-beta.8 (Unreleased) + + ## 12.0.0-beta.7 (2021-06-09) ### Dependency updates diff --git a/sdk/storage/azure-storage-blob-changefeed/pom.xml b/sdk/storage/azure-storage-blob-changefeed/pom.xml index eed81ef49223e..2faac9993e50d 100644 --- a/sdk/storage/azure-storage-blob-changefeed/pom.xml +++ b/sdk/storage/azure-storage-blob-changefeed/pom.xml @@ -13,7 +13,7 @@ com.azure azure-storage-blob-changefeed - 12.0.0-beta.7 + 12.0.0-beta.8 Microsoft Azure client library for Blob Storage changefeed This module contains client library for Microsoft Azure Blob Storage changefeed. @@ -65,7 +65,7 @@ com.azure azure-storage-blob - 12.12.0 + 12.13.0-beta.1 + 12.13.0-beta.1 tests test-jar test @@ -95,7 +95,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/storage/azure-storage-blob-cryptography/CHANGELOG.md b/sdk/storage/azure-storage-blob-cryptography/CHANGELOG.md index e74a85caa2bb7..1f359d6a34f8b 100644 --- a/sdk/storage/azure-storage-blob-cryptography/CHANGELOG.md +++ b/sdk/storage/azure-storage-blob-cryptography/CHANGELOG.md @@ -1,5 +1,8 @@ # Release History +## 12.13.0-beta.1 (Unreleased) + + ## 12.12.0 (2021-06-09) - GA release diff --git a/sdk/storage/azure-storage-blob-cryptography/pom.xml b/sdk/storage/azure-storage-blob-cryptography/pom.xml index 7f8ca743a58b8..b50187d95ae60 100644 --- a/sdk/storage/azure-storage-blob-cryptography/pom.xml +++ b/sdk/storage/azure-storage-blob-cryptography/pom.xml @@ -13,7 +13,11 @@ com.azure azure-storage-blob-cryptography +<<<<<<< HEAD 12.12.0 +======= + 12.13.0-beta.1 +>>>>>>> master Microsoft Azure client library for Blob Storage cryptography This module contains client library for Microsoft Azure Blob Storage cryptography. @@ -51,12 +55,20 @@ com.azure azure-storage-blob +<<<<<<< HEAD 12.12.0 +======= + 12.13.0-beta.1 +>>>>>>> master com.azure azure-storage-common +<<<<<<< HEAD 12.12.0 +======= + 12.13.0-beta.1 +>>>>>>> master tests test-jar test @@ -111,7 +123,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/storage/azure-storage-blob-nio/CHANGELOG.md b/sdk/storage/azure-storage-blob-nio/CHANGELOG.md index 3aa1cafd8b552..06bed757b933b 100644 --- a/sdk/storage/azure-storage-blob-nio/CHANGELOG.md +++ b/sdk/storage/azure-storage-blob-nio/CHANGELOG.md @@ -1,5 +1,8 @@ # Release History +## 12.0.0-beta.8 (Unreleased) + + ## 12.0.0-beta.7 (2021-06-09) ### Dependency Updates - Updated `azure-storage-blob` to version `12.12.0` diff --git a/sdk/storage/azure-storage-blob-nio/pom.xml b/sdk/storage/azure-storage-blob-nio/pom.xml index 122c59afd91f4..b07acc0382704 100644 --- a/sdk/storage/azure-storage-blob-nio/pom.xml +++ b/sdk/storage/azure-storage-blob-nio/pom.xml @@ -13,7 +13,7 @@ com.azure azure-storage-blob-nio - 12.0.0-beta.7 + 12.0.0-beta.8 Microsoft Azure implementation of NIO on top of Azure Blob Storage This module contains an implementation of Java's NIO interface on top of Azure Blob Storage. https://github.com/Azure/azure-sdk-for-java @@ -64,13 +64,13 @@ com.azure azure-storage-blob - 12.12.0 + 12.13.0-beta.1 com.azure azure-storage-common - 12.12.0 + 12.13.0-beta.1 tests test-jar test diff --git a/sdk/storage/azure-storage-blob/CHANGELOG.md b/sdk/storage/azure-storage-blob/CHANGELOG.md index 9b25f6c5bb108..d06d497eddded 100644 --- a/sdk/storage/azure-storage-blob/CHANGELOG.md +++ b/sdk/storage/azure-storage-blob/CHANGELOG.md @@ -1,5 +1,8 @@ # Release History +## 12.13.0-beta.1 (Unreleased) + + ## 12.12.0 (2021-06-09) - GA release diff --git a/sdk/storage/azure-storage-blob/pom.xml b/sdk/storage/azure-storage-blob/pom.xml index 82f53febf6540..5e08396ea43ab 100644 --- a/sdk/storage/azure-storage-blob/pom.xml +++ b/sdk/storage/azure-storage-blob/pom.xml @@ -13,7 +13,7 @@ com.azure azure-storage-blob - 12.12.0 + 12.13.0-beta.1 Microsoft Azure client library for Blob Storage This module contains client library for Microsoft Azure Blob Storage. @@ -65,12 +65,12 @@ com.azure azure-storage-common - 12.12.0 + 12.13.0-beta.1 com.azure azure-storage-internal-avro - 12.0.5 + 12.1.0-beta.1 + 12.13.0-beta.1 tests test-jar test @@ -99,7 +99,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/storage/azure-storage-common/CHANGELOG.md b/sdk/storage/azure-storage-common/CHANGELOG.md index 62e3d35c3fc5d..6b71292b15bad 100644 --- a/sdk/storage/azure-storage-common/CHANGELOG.md +++ b/sdk/storage/azure-storage-common/CHANGELOG.md @@ -1,5 +1,8 @@ # Release History +## 12.13.0-beta.1 (Unreleased) + + ## 12.12.0 (2021-06-09) - GA release diff --git a/sdk/storage/azure-storage-common/pom.xml b/sdk/storage/azure-storage-common/pom.xml index deec64ca9ecfa..9fb44f1242b44 100644 --- a/sdk/storage/azure-storage-common/pom.xml +++ b/sdk/storage/azure-storage-common/pom.xml @@ -13,7 +13,7 @@ com.azure azure-storage-common - 12.12.0 + 12.13.0-beta.1 Microsoft Azure common module for Storage This module contains common code based for all Microsoft Azure Storage client libraries. @@ -68,7 +68,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/storage/azure-storage-file-datalake/CHANGELOG.md b/sdk/storage/azure-storage-file-datalake/CHANGELOG.md index 32f57bf8105f7..00646b7d67995 100644 --- a/sdk/storage/azure-storage-file-datalake/CHANGELOG.md +++ b/sdk/storage/azure-storage-file-datalake/CHANGELOG.md @@ -1,5 +1,8 @@ # Release History +## 12.7.0-beta.1 (Unreleased) + + ## 12.6.0 (2021-06-09) - GA release diff --git a/sdk/storage/azure-storage-file-datalake/pom.xml b/sdk/storage/azure-storage-file-datalake/pom.xml index 0425867b65751..056b9c60ffeb6 100644 --- a/sdk/storage/azure-storage-file-datalake/pom.xml +++ b/sdk/storage/azure-storage-file-datalake/pom.xml @@ -13,7 +13,7 @@ com.azure azure-storage-file-datalake - 12.6.0 + 12.7.0-beta.1 Microsoft Azure client library for File Storage Data Lake This module contains client library for Microsoft Azure File Storage Data Lake. @@ -65,7 +65,7 @@ com.azure azure-storage-blob - 12.12.0 + 12.13.0-beta.1 + 12.13.0-beta.1 tests test-jar test @@ -95,7 +95,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/storage/azure-storage-file-share/CHANGELOG.md b/sdk/storage/azure-storage-file-share/CHANGELOG.md index 2df27a5f4df70..09b66dafcbc3a 100644 --- a/sdk/storage/azure-storage-file-share/CHANGELOG.md +++ b/sdk/storage/azure-storage-file-share/CHANGELOG.md @@ -1,5 +1,8 @@ # Release History +## 12.11.0-beta.1 (Unreleased) + + ## 12.10.0 (2021-06-09) - GA release diff --git a/sdk/storage/azure-storage-file-share/pom.xml b/sdk/storage/azure-storage-file-share/pom.xml index e9078cdcd0286..adf240b6846d6 100644 --- a/sdk/storage/azure-storage-file-share/pom.xml +++ b/sdk/storage/azure-storage-file-share/pom.xml @@ -13,7 +13,7 @@ com.azure azure-storage-file-share - 12.10.0 + 12.11.0-beta.1 Microsoft Azure client library for File Share Storage This module contains client library for Microsoft Azure File Share Storage. @@ -46,12 +46,12 @@ com.azure azure-storage-common - 12.12.0 + 12.13.0-beta.1 com.azure azure-storage-common - 12.12.0 + 12.13.0-beta.1 tests test-jar test diff --git a/sdk/storage/azure-storage-internal-avro/CHANGELOG.md b/sdk/storage/azure-storage-internal-avro/CHANGELOG.md index 34b3221dc8c1f..7aed71ded407c 100644 --- a/sdk/storage/azure-storage-internal-avro/CHANGELOG.md +++ b/sdk/storage/azure-storage-internal-avro/CHANGELOG.md @@ -1,5 +1,8 @@ # Release History +## 12.1.0-beta.1 (Unreleased) + + ## 12.0.5 (2021-06-09) ### Dependency Updates - Updated `azure-storage-common` to version `12.12.0` diff --git a/sdk/storage/azure-storage-internal-avro/pom.xml b/sdk/storage/azure-storage-internal-avro/pom.xml index 40ad06d521567..19a4dc2a26b55 100644 --- a/sdk/storage/azure-storage-internal-avro/pom.xml +++ b/sdk/storage/azure-storage-internal-avro/pom.xml @@ -13,7 +13,7 @@ com.azure azure-storage-internal-avro - 12.0.5 + 12.1.0-beta.1 Microsoft Azure internal Avro module for Storage This module contains internal use only avro parser code based for Microsoft Azure Storage client libraries. @@ -51,7 +51,7 @@ com.azure azure-storage-common - 12.12.0 + 12.13.0-beta.1 io.projectreactor @@ -68,7 +68,7 @@ com.azure azure-storage-common - 12.12.0 + 12.13.0-beta.1 tests test-jar test diff --git a/sdk/storage/azure-storage-perf/pom.xml b/sdk/storage/azure-storage-perf/pom.xml index 659001af8648b..3b0f95c7a066b 100644 --- a/sdk/storage/azure-storage-perf/pom.xml +++ b/sdk/storage/azure-storage-perf/pom.xml @@ -27,19 +27,19 @@ com.azure azure-storage-blob - 12.12.0 + 12.13.0-beta.1 com.azure azure-storage-file-datalake - 12.6.0 + 12.7.0-beta.1 com.azure azure-storage-file-share - 12.10.0 + 12.11.0-beta.1 diff --git a/sdk/storage/azure-storage-queue/CHANGELOG.md b/sdk/storage/azure-storage-queue/CHANGELOG.md index 0a61a219e4738..f6593ad5e06da 100644 --- a/sdk/storage/azure-storage-queue/CHANGELOG.md +++ b/sdk/storage/azure-storage-queue/CHANGELOG.md @@ -1,5 +1,8 @@ # Release History +## 12.11.0-beta.1 (Unreleased) + + ## 12.10.0 (2021-06-09) - GA release diff --git a/sdk/storage/azure-storage-queue/pom.xml b/sdk/storage/azure-storage-queue/pom.xml index d6a65074985fd..bff62297aac89 100644 --- a/sdk/storage/azure-storage-queue/pom.xml +++ b/sdk/storage/azure-storage-queue/pom.xml @@ -13,7 +13,7 @@ com.azure azure-storage-queue - 12.10.0 + 12.11.0-beta.1 Microsoft Azure client library for Queue Storage This module contains client library for Microsoft Azure Queue Storage. @@ -46,12 +46,12 @@ com.azure azure-storage-common - 12.12.0 + 12.13.0-beta.1 com.azure azure-storage-common - 12.12.0 + 12.13.0-beta.1 tests test-jar test @@ -78,7 +78,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/storage/pom.xml b/sdk/storage/pom.xml index 506857b48ae69..56d621d2dd859 100644 --- a/sdk/storage/pom.xml +++ b/sdk/storage/pom.xml @@ -27,52 +27,52 @@ com.azure azure-storage-common - 12.12.0 + 12.13.0-beta.1 com.azure azure-storage-blob - 12.12.0 + 12.13.0-beta.1 com.azure azure-storage-blob-batch - 12.10.0 + 12.11.0-beta.1 com.azure azure-storage-blob-changefeed - 12.0.0-beta.7 + 12.0.0-beta.8 com.azure azure-storage-blob-cryptography - 12.12.0 + 12.13.0-beta.1 com.azure azure-storage-blob-nio - 12.0.0-beta.7 + 12.0.0-beta.8 com.azure azure-storage-file-share - 12.10.0 + 12.11.0-beta.1 com.azure azure-storage-file-datalake - 12.6.0 + 12.7.0-beta.1 com.azure azure-storage-internal-avro - 12.0.5 + 12.1.0-beta.1 com.azure azure-storage-queue - 12.10.0 + 12.11.0-beta.1 diff --git a/sdk/synapse/azure-analytics-synapse-accesscontrol/pom.xml b/sdk/synapse/azure-analytics-synapse-accesscontrol/pom.xml index f29e83346f8ba..aaaecab1d904d 100644 --- a/sdk/synapse/azure-analytics-synapse-accesscontrol/pom.xml +++ b/sdk/synapse/azure-analytics-synapse-accesscontrol/pom.xml @@ -83,7 +83,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/synapse/azure-analytics-synapse-artifacts/pom.xml b/sdk/synapse/azure-analytics-synapse-artifacts/pom.xml index 46fd69e6c2287..3e6b77952f6cc 100644 --- a/sdk/synapse/azure-analytics-synapse-artifacts/pom.xml +++ b/sdk/synapse/azure-analytics-synapse-artifacts/pom.xml @@ -83,7 +83,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/synapse/azure-analytics-synapse-managedprivateendpoints/pom.xml b/sdk/synapse/azure-analytics-synapse-managedprivateendpoints/pom.xml index 42fe8e8e9a239..edf925af650c9 100644 --- a/sdk/synapse/azure-analytics-synapse-managedprivateendpoints/pom.xml +++ b/sdk/synapse/azure-analytics-synapse-managedprivateendpoints/pom.xml @@ -83,7 +83,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/synapse/azure-analytics-synapse-monitoring/pom.xml b/sdk/synapse/azure-analytics-synapse-monitoring/pom.xml index 49db98eb61b71..13fb9185069b5 100644 --- a/sdk/synapse/azure-analytics-synapse-monitoring/pom.xml +++ b/sdk/synapse/azure-analytics-synapse-monitoring/pom.xml @@ -83,7 +83,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/synapse/azure-analytics-synapse-spark/pom.xml b/sdk/synapse/azure-analytics-synapse-spark/pom.xml index e67d032a283d6..aee2b9d609069 100644 --- a/sdk/synapse/azure-analytics-synapse-spark/pom.xml +++ b/sdk/synapse/azure-analytics-synapse-spark/pom.xml @@ -83,7 +83,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/BuilderHelper.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/BuilderHelper.java index 788e5d1fb9fa6..7e6473337ea02 100644 --- a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/BuilderHelper.java +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/BuilderHelper.java @@ -76,9 +76,6 @@ static HttpPipeline buildPipeline( httpHeaderList.add(new HttpHeader(header.getName(), header.getValue()))); } - // TODO: Remove the Accept header after making sure the JacksonAdapter can handle not setting such value. - policies.add(new AddHeadersPolicy(new HttpHeaders(httpHeaderList).set("Accept", "application/json"))); - // Add per call additional policies. policies.addAll(perCallAdditionalPolicies); HttpPolicyProviders.addBeforeRetryPolicies(policies); diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableAsyncClient.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableAsyncClient.java index 33d3b65397797..3bff81252beb2 100644 --- a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableAsyncClient.java +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableAsyncClient.java @@ -11,7 +11,6 @@ import com.azure.core.http.HttpRequest; import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; @@ -42,6 +41,7 @@ import com.azure.data.tables.implementation.models.TransactionalBatchResponse; import com.azure.data.tables.implementation.models.TransactionalBatchSubRequest; import com.azure.data.tables.models.ListEntitiesOptions; +import com.azure.data.tables.models.TableAccessPolicies; import com.azure.data.tables.models.TableAccessPolicy; import com.azure.data.tables.models.TableEntity; import com.azure.data.tables.models.TableEntityUpdateMode; @@ -57,17 +57,15 @@ import reactor.core.publisher.Mono; import java.net.URI; +import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; -import java.util.function.Function; import java.util.stream.Collectors; import static com.azure.core.util.CoreUtils.isNullOrEmpty; -import static com.azure.core.util.FluxUtil.fluxContext; import static com.azure.core.util.FluxUtil.monoError; -import static com.azure.core.util.FluxUtil.pagedFluxError; import static com.azure.core.util.FluxUtil.withContext; import static com.azure.data.tables.implementation.TableUtils.swallowExceptionForStatusCode; import static com.azure.data.tables.implementation.TableUtils.toTableServiceError; @@ -845,45 +843,55 @@ Mono> getEntityWithResponse(String partition * Retrieves details about any stored access policies specified on the table that may be used with Shared Access * Signatures. * - * @return A paged reactive result containing the HTTP response and the table's - * {@link TableSignedIdentifier access policies}. + * @return A reactive result containing the table's {@link TableAccessPolicies access policies}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAccessPolicies() { - return (PagedFlux) fluxContext(this::listAccessPolicies); + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAccessPolicies() { + return withContext(context -> getAccessPoliciesWithResponse(context) + .flatMap(response -> Mono.justOrEmpty(response.getValue()))); + } + + /** + * Retrieves details about any stored access policies specified on the table that may be used with Shared Access + * Signatures. + * + * @return A reactive result containing an HTTP response that contains the table's + * {@link TableAccessPolicies access policies}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getAccessPoliciesWithResponse() { + return withContext(this::getAccessPoliciesWithResponse); } - PagedFlux listAccessPolicies(Context context) { + Mono> getAccessPoliciesWithResponse(Context context) { context = context == null ? Context.NONE : context; try { - Context finalContext = context; - Function>> retriever = - marker -> - tablesImplementation.getTables() - .getAccessPolicyWithResponseAsync(tableName, null, null, finalContext) - .map(response -> new PagedResponseBase<>(response.getRequest(), - response.getStatusCode(), - response.getHeaders(), - response.getValue().stream() - .map(this::toTableSignedIdentifier) - .collect(Collectors.toList()), - null, - response.getDeserializedHeaders())); - - return new PagedFlux<>(() -> retriever.apply(null), retriever); + return tablesImplementation.getTables() + .getAccessPolicyWithResponseAsync(tableName, null, null, context) + .map(response -> new SimpleResponse<>(response, + new TableAccessPolicies(response.getValue() == null ? null : response.getValue().stream() + .map(this::toTableSignedIdentifier) + .collect(Collectors.toList())))); } catch (RuntimeException e) { - return pagedFluxError(logger, e); + return monoError(logger, e); } } private TableSignedIdentifier toTableSignedIdentifier(SignedIdentifier signedIdentifier) { - return new TableSignedIdentifier() - .setId(signedIdentifier.getId()) + if (signedIdentifier == null) { + return null; + } + + return new TableSignedIdentifier(signedIdentifier.getId()) .setAccessPolicy(toTableAccessPolicy(signedIdentifier.getAccessPolicy())); } private TableAccessPolicy toTableAccessPolicy(AccessPolicy accessPolicy) { + if (accessPolicy == null) { + return null; + } + return new TableAccessPolicy() .setExpiresOn(accessPolicy.getExpiry()) .setStartsOn(accessPolicy.getStart()) @@ -918,11 +926,45 @@ public Mono> setAccessPoliciesWithResponse(List> setAccessPoliciesWithResponse(List tableSignedIdentifiers, Context context) { context = context == null ? Context.NONE : context; + List signedIdentifiers = null; + + /* + We truncate to seconds because the service only supports nanoseconds or seconds, but doing an + OffsetDateTime.now will only give back milliseconds (more precise fields are zeroed and not serialized). This + allows for proper serialization with no real detriment to users as sub-second precision on active time for + signed identifiers is not really necessary. + */ + if (tableSignedIdentifiers != null) { + signedIdentifiers = tableSignedIdentifiers.stream() + .map(tableSignedIdentifier -> { + SignedIdentifier signedIdentifier = toSignedIdentifier(tableSignedIdentifier); + + if (signedIdentifier != null) { + if (signedIdentifier.getAccessPolicy() != null + && signedIdentifier.getAccessPolicy().getStart() != null) { + + signedIdentifier.getAccessPolicy() + .setStart(signedIdentifier.getAccessPolicy() + .getStart().truncatedTo(ChronoUnit.SECONDS)); + } + + if (signedIdentifier.getAccessPolicy() != null + && signedIdentifier.getAccessPolicy().getExpiry() != null) { + + signedIdentifier.getAccessPolicy() + .setExpiry(signedIdentifier.getAccessPolicy() + .getExpiry().truncatedTo(ChronoUnit.SECONDS)); + } + } + + return signedIdentifier; + }) + .collect(Collectors.toList()); + } try { return tablesImplementation.getTables() - .setAccessPolicyWithResponseAsync(tableName, null, null, - tableSignedIdentifiers.stream().map(this::toSignedIdentifier).collect(Collectors.toList()), context) + .setAccessPolicyWithResponseAsync(tableName, null, null, signedIdentifiers, context) .map(response -> new SimpleResponse<>(response, response.getValue())); } catch (RuntimeException e) { return monoError(logger, e); @@ -930,12 +972,20 @@ Mono> setAccessPoliciesWithResponse(List t } private SignedIdentifier toSignedIdentifier(TableSignedIdentifier tableSignedIdentifier) { + if (tableSignedIdentifier == null) { + return null; + } + return new SignedIdentifier() .setId(tableSignedIdentifier.getId()) .setAccessPolicy(toAccessPolicy(tableSignedIdentifier.getAccessPolicy())); } private AccessPolicy toAccessPolicy(TableAccessPolicy tableAccessPolicy) { + if (tableAccessPolicy == null) { + return null; + } + return new AccessPolicy() .setExpiry(tableAccessPolicy.getExpiresOn()) .setStart(tableAccessPolicy.getStartsOn()) diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableClient.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableClient.java index ecd189746b233..631d82ecd655c 100644 --- a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableClient.java +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableClient.java @@ -10,6 +10,7 @@ import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.data.tables.models.ListEntitiesOptions; +import com.azure.data.tables.models.TableAccessPolicies; import com.azure.data.tables.models.TableEntity; import com.azure.data.tables.models.TableEntityUpdateMode; import com.azure.data.tables.models.TableItem; @@ -411,12 +412,11 @@ public Response getEntityWithResponse(String partitionKey, String r * Retrieves details about any stored access policies specified on the table that may be used with Shared Access * Signatures. * - * @return A reactive result containing the HTTP response and the table's - * {@link TableSignedIdentifier access policies}. + * @return The table's {@link TableAccessPolicies access policies}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listAccessPolicies() { - return new PagedIterable<>(client.listAccessPolicies()); + @ServiceMethod(returns = ReturnType.SINGLE) + public TableAccessPolicies getAccessPolicies() { + return client.getAccessPolicies().block(); } /** @@ -426,12 +426,11 @@ public PagedIterable listAccessPolicies() { * @param timeout An optional timeout value beyond which a {@link RuntimeException} will be raised. * @param context Additional context that is passed through the HTTP pipeline during the service call. * - * @return A reactive result containing the HTTP response and the table's - * {@link TableSignedIdentifier access policies}. + * @return An HTTP response containing the table's {@link TableAccessPolicies access policies}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listAccessPolicies(Duration timeout, Context context) { - return new PagedIterable<>(applyOptionalTimeout(client.listAccessPolicies(context), timeout)); + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getAccessPoliciesWithResponse(Duration timeout, Context context) { + return blockWithOptionalTimeout(client.getAccessPoliciesWithResponse(context), timeout); } /** diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableServiceAsyncClient.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableServiceAsyncClient.java index 180a167db98aa..7e5975d09df13 100644 --- a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableServiceAsyncClient.java +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/TableServiceAsyncClient.java @@ -555,7 +555,6 @@ public Mono setProperties(TableServiceProperties tableServiceProperties) { return this.setPropertiesWithResponse(tableServiceProperties).flatMap(FluxUtil::toMono); } - /** * Sets the properties of an account's Table service, including properties for Analytics and CORS (Cross-Origin * Resource Sharing) rules. diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesImpl.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesImpl.java index 6275166a1a82e..2abaf1209b7a6 100644 --- a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesImpl.java +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/TablesImpl.java @@ -26,6 +26,7 @@ import com.azure.data.tables.implementation.models.QueryOptions; import com.azure.data.tables.implementation.models.ResponseFormat; import com.azure.data.tables.implementation.models.SignedIdentifier; +import com.azure.data.tables.implementation.models.SignedIdentifiersWrapper; import com.azure.data.tables.implementation.models.TableProperties; import com.azure.data.tables.implementation.models.TableServiceErrorException; import com.azure.data.tables.implementation.models.TablesCreateResponse; @@ -238,7 +239,7 @@ Mono setAccessPolicy( @HeaderParam("x-ms-client-request-id") String requestId, @PathParam("table") String table, @QueryParam("comp") String comp, - @BodyParam("application/xml") List tableAcl, + @BodyParam("application/xml") SignedIdentifiersWrapper tableAcl, @HeaderParam("Accept") String accept, Context context); } @@ -725,6 +726,9 @@ public Mono setAccessPolicyWithResponseAsync( String table, Integer timeout, String requestId, List tableAcl, Context context) { final String comp = "acl"; final String accept = "application/xml"; + + SignedIdentifiersWrapper tableAclConverted = new SignedIdentifiersWrapper(tableAcl); + return service.setAccessPolicy( this.client.getUrl(), timeout, @@ -732,7 +736,7 @@ public Mono setAccessPolicyWithResponseAsync( requestId, table, comp, - tableAcl, + tableAclConverted, accept, context); } diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/models/SignedIdentifiersWrapper.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/models/SignedIdentifiersWrapper.java new file mode 100644 index 0000000000000..dacd23ed397ab --- /dev/null +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/implementation/models/SignedIdentifiersWrapper.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.data.tables.implementation.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; +import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; + +import java.util.List; + +/** A wrapper around List<SignedIdentifier> which provides top-level metadata for serialization. */ +@JacksonXmlRootElement(localName = "SignedIdentifiers") +public final class SignedIdentifiersWrapper { + @JacksonXmlProperty(localName = "SignedIdentifier") + private final List signedIdentifiers; + + /** + * Creates an instance of SignedIdentifiersWrapper. + * + * @param signedIdentifiers the list. + */ + @JsonCreator + public SignedIdentifiersWrapper(@JsonProperty("SignedIdentifier") List signedIdentifiers) { + this.signedIdentifiers = signedIdentifiers; + } + + /** + * Get the List<BlobSignedIdentifier> contained in this wrapper. + * + * @return the List<BlobSignedIdentifier>. + */ + public List items() { + return signedIdentifiers; + } +} diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableAccessPolicies.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableAccessPolicies.java new file mode 100644 index 0000000000000..0e96efcb441f0 --- /dev/null +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableAccessPolicies.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +package com.azure.data.tables.models; + +import com.azure.core.annotation.Immutable; + +import java.util.List; + +/** + * This class contains values which correlate to the access polices set for a specific table. + */ +@Immutable +public final class TableAccessPolicies { + private final List identifiers; + + /** + * Constructs a {@link TableAccessPolicies}. + * + * @param identifiers {@link TableSignedIdentifier TableSignedIdentifiers} associated with the table. + */ + public TableAccessPolicies(List identifiers) { + this.identifiers = identifiers; + } + + /** + * @return the {@link TableSignedIdentifier TableSignedIdentifiers} associated with the table. + */ + public List getIdentifiers() { + return this.identifiers; + } +} diff --git a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableSignedIdentifier.java b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableSignedIdentifier.java index 7f3d377f4b510..d758c9e5c2752 100644 --- a/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableSignedIdentifier.java +++ b/sdk/tables/azure-data-tables/src/main/java/com/azure/data/tables/models/TableSignedIdentifier.java @@ -5,6 +5,8 @@ import com.azure.core.annotation.Fluent; +import java.util.Objects; + /** * A signed identifier. */ @@ -13,7 +15,7 @@ public final class TableSignedIdentifier { /* * A unique id */ - private String id; + private final String id; /* * An access policy. @@ -21,25 +23,23 @@ public final class TableSignedIdentifier { private TableAccessPolicy accessPolicy; /** - * Get the unique id. + * Create a {@link TableSignedIdentifier}. * - * @return The id. + * @param id A unique id for this {@link TableSignedIdentifier}. */ - public String getId() { - return this.id; + public TableSignedIdentifier(String id) { + Objects.requireNonNull(id, "'id' cannot be null"); + + this.id = id; } /** - * Set a unique id. - * - * @param id The id to set. + * Get the unique id. * - * @return The updated {@link TableSignedIdentifier} object. + * @return The id. */ - public TableSignedIdentifier setId(String id) { - this.id = id; - - return this; + public String getId() { + return this.id; } /** diff --git a/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TableAsyncClientTest.java b/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TableAsyncClientTest.java index aea0ed4f55023..c4b349f462fcc 100644 --- a/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TableAsyncClientTest.java +++ b/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TableAsyncClientTest.java @@ -13,8 +13,10 @@ import com.azure.core.test.TestBase; import com.azure.core.test.utils.TestResourceNamer; import com.azure.data.tables.models.ListEntitiesOptions; +import com.azure.data.tables.models.TableAccessPolicy; import com.azure.data.tables.models.TableEntity; import com.azure.data.tables.models.TableEntityUpdateMode; +import com.azure.data.tables.models.TableSignedIdentifier; import com.azure.data.tables.models.TableTransactionAction; import com.azure.data.tables.models.TableTransactionActionResponse; import com.azure.data.tables.models.TableTransactionActionType; @@ -35,6 +37,7 @@ import java.time.OffsetDateTime; import java.time.ZoneOffset; import java.util.ArrayList; +import java.util.Collections; import java.util.Date; import java.util.List; import java.util.Map; @@ -1009,4 +1012,86 @@ public void canUseSasTokenToCreateValidTableClient() { .expectComplete() .verify(); } + + @Test + public void setAndListAccessPolicies() { + OffsetDateTime startTime = OffsetDateTime.of(2021, 12, 12, 0, 0, 0, 0, ZoneOffset.UTC); + OffsetDateTime expiryTime = OffsetDateTime.of(2022, 12, 12, 0, 0, 0, 0, ZoneOffset.UTC); + String permissions = "r"; + TableAccessPolicy tableAccessPolicy = new TableAccessPolicy() + .setStartsOn(startTime) + .setExpiresOn(expiryTime) + .setPermissions(permissions); + String id = "testPolicy"; + TableSignedIdentifier tableSignedIdentifier = new TableSignedIdentifier(id).setAccessPolicy(tableAccessPolicy); + + StepVerifier.create(tableClient.setAccessPoliciesWithResponse(Collections.singletonList(tableSignedIdentifier))) + .assertNext(response -> assertEquals(204, response.getStatusCode())) + .expectComplete() + .verify(); + + StepVerifier.create(tableClient.getAccessPolicies()) + .assertNext(tableAccessPolicies -> { + assertNotNull(tableAccessPolicies); + assertNotNull(tableAccessPolicies.getIdentifiers()); + + TableSignedIdentifier signedIdentifier = tableAccessPolicies.getIdentifiers().get(0); + + assertNotNull(signedIdentifier); + + TableAccessPolicy accessPolicy = signedIdentifier.getAccessPolicy(); + + assertNotNull(accessPolicy); + assertEquals(startTime, accessPolicy.getStartsOn()); + assertEquals(expiryTime, accessPolicy.getExpiresOn()); + assertEquals(permissions, accessPolicy.getPermissions()); + assertEquals(id, signedIdentifier.getId()); + }) + .expectComplete() + .verify(); + } + + @Test + public void setAndListMultipleAccessPolicies() { + OffsetDateTime startTime = OffsetDateTime.of(2021, 12, 12, 0, 0, 0, 0, ZoneOffset.UTC); + OffsetDateTime expiryTime = OffsetDateTime.of(2022, 12, 12, 0, 0, 0, 0, ZoneOffset.UTC); + String permissions = "r"; + TableAccessPolicy tableAccessPolicy = new TableAccessPolicy() + .setStartsOn(startTime) + .setExpiresOn(expiryTime) + .setPermissions(permissions); + String id1 = "testPolicy1"; + String id2 = "testPolicy2"; + List tableSignedIdentifiers = new ArrayList<>(); + tableSignedIdentifiers.add(new TableSignedIdentifier(id1).setAccessPolicy(tableAccessPolicy)); + tableSignedIdentifiers.add(new TableSignedIdentifier(id2).setAccessPolicy(tableAccessPolicy)); + + StepVerifier.create(tableClient.setAccessPoliciesWithResponse(tableSignedIdentifiers)) + .assertNext(response -> assertEquals(204, response.getStatusCode())) + .expectComplete() + .verify(); + + StepVerifier.create(tableClient.getAccessPolicies()) + .assertNext(tableAccessPolicies -> { + assertNotNull(tableAccessPolicies); + assertNotNull(tableAccessPolicies.getIdentifiers()); + + assertEquals(2, tableAccessPolicies.getIdentifiers().size()); + assertEquals(id1, tableAccessPolicies.getIdentifiers().get(0).getId()); + assertEquals(id2, tableAccessPolicies.getIdentifiers().get(1).getId()); + + for (TableSignedIdentifier signedIdentifier : tableAccessPolicies.getIdentifiers()) { + assertNotNull(signedIdentifier); + + TableAccessPolicy accessPolicy = signedIdentifier.getAccessPolicy(); + + assertNotNull(accessPolicy); + assertEquals(startTime, accessPolicy.getStartsOn()); + assertEquals(expiryTime, accessPolicy.getExpiresOn()); + assertEquals(permissions, accessPolicy.getPermissions()); + } + }) + .expectComplete() + .verify(); + } } diff --git a/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TableServiceAsyncClientTest.java b/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TableServiceAsyncClientTest.java index b94b25f1f855a..c3268f80ae8dd 100644 --- a/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TableServiceAsyncClientTest.java +++ b/sdk/tables/azure-data-tables/src/test/java/com/azure/data/tables/TableServiceAsyncClientTest.java @@ -13,6 +13,8 @@ import com.azure.data.tables.models.ListTablesOptions; import com.azure.data.tables.models.TableEntity; import com.azure.data.tables.models.TableServiceException; +import com.azure.data.tables.models.TableServiceProperties; +import com.azure.data.tables.models.TableServiceStatistics; import com.azure.data.tables.sas.TableAccountSasPermission; import com.azure.data.tables.sas.TableAccountSasResourceType; import com.azure.data.tables.sas.TableAccountSasService; @@ -415,4 +417,27 @@ public void canUseSasTokenToCreateValidTableClient() { .expectComplete() .verify(); } + + @Test + public void getProperties() { + TableServiceProperties properties = serviceClient.getProperties().block(); + + assertNotNull(properties); + assertNotNull(properties.getCorsRules()); + assertEquals(1, properties.getCorsRules().size()); + assertNotNull(properties.getCorsRules().get(0)); + assertNotNull(properties.getHourMetrics()); + assertNotNull(properties.getMinuteMetrics()); + assertNotNull(properties.getLogging()); + } + + @Test + public void getStatistics() { + TableServiceStatistics statistics = serviceClient.getStatistics().block(); + + assertNotNull(statistics); + assertNotNull(statistics.getGeoReplication()); + assertNotNull(statistics.getGeoReplication().getStatus()); + assertNotNull(statistics.getGeoReplication().getLastSyncTime()); + } } diff --git a/sdk/tables/azure-data-tables/src/test/resources/session-records/TableAsyncClientTest.setAndListAccessPolicies.json b/sdk/tables/azure-data-tables/src/test/resources/session-records/TableAsyncClientTest.setAndListAccessPolicies.json new file mode 100644 index 0000000000000..c2b487fbe7fac --- /dev/null +++ b/sdk/tables/azure-data-tables/src/test/resources/session-records/TableAsyncClientTest.setAndListAccessPolicies.json @@ -0,0 +1,70 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/Tables", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-data-tables/12.0.0-beta.8 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "dcafda0f-be10-4d42-adb4-2cd6e8f1b4a2", + "Content-Type" : "application/json;odata=nometadata" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Tue, 08 Jun 2021 22:37:47 GMT", + "Cache-Control" : "no-cache", + "DataServiceId" : "https://tablesstoragetests.table.core.windows.net/Tables('tablename62751f1d')", + "x-ms-request-id" : "2639e140-e002-0076-32b6-5c5add000000", + "x-ms-client-request-id" : "dcafda0f-be10-4d42-adb4-2cd6e8f1b4a2", + "Preference-Applied" : "return-no-content", + "Location" : "https://tablesstoragetests.table.core.windows.net/Tables('tablename62751f1d')" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.table.core.windows.net/tablename62751f1d?comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-data-tables/12.0.0-beta.8 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "b1274fd8-e63e-46de-99ac-6813272ecc3a", + "Content-Type" : "application/xml" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "204", + "x-ms-request-id" : "2639e17c-e002-0076-65b6-5c5add000000", + "x-ms-client-request-id" : "b1274fd8-e63e-46de-99ac-6813272ecc3a", + "Date" : "Tue, 08 Jun 2021 22:37:48 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/tablename62751f1d?comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-data-tables/12.0.0-beta.8 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "4ff7b815-5be5-494a-901d-4ada60a8d895" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "2639e1af-e002-0076-16b6-5c5add000000", + "Body" : "testPolicy2021-12-12T00:00:00.0000000Z2022-12-12T00:00:00.0000000Zr", + "x-ms-client-request-id" : "4ff7b815-5be5-494a-901d-4ada60a8d895", + "Date" : "Tue, 08 Jun 2021 22:37:48 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "tablename62751f1d" ] +} \ No newline at end of file diff --git a/sdk/tables/azure-data-tables/src/test/resources/session-records/TableAsyncClientTest.setAndListMultipleAccessPolicies.json b/sdk/tables/azure-data-tables/src/test/resources/session-records/TableAsyncClientTest.setAndListMultipleAccessPolicies.json new file mode 100644 index 0000000000000..13a3f632f2413 --- /dev/null +++ b/sdk/tables/azure-data-tables/src/test/resources/session-records/TableAsyncClientTest.setAndListMultipleAccessPolicies.json @@ -0,0 +1,70 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.table.core.windows.net/Tables", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-data-tables/12.0.0-beta.8 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "e525883a-185b-4f86-a587-0ee72dd66428", + "Content-Type" : "application/json;odata=nometadata" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "retry-after" : "0", + "StatusCode" : "204", + "Date" : "Wed, 09 Jun 2021 16:41:46 GMT", + "Cache-Control" : "no-cache", + "DataServiceId" : "https://tablesstoragetests.table.core.windows.net/Tables('tablename75432233')", + "x-ms-request-id" : "9a29f259-6002-0045-024e-5d03f0000000", + "x-ms-client-request-id" : "e525883a-185b-4f86-a587-0ee72dd66428", + "Preference-Applied" : "return-no-content", + "Location" : "https://tablesstoragetests.table.core.windows.net/Tables('tablename75432233')" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "https://REDACTED.table.core.windows.net/tablename75432233?comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-data-tables/12.0.0-beta.8 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "84daf1aa-c1db-4fa9-896c-7a73baaec8ef", + "Content-Type" : "application/xml" + }, + "Response" : { + "content-length" : "0", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "204", + "x-ms-request-id" : "9a29f27c-6002-0045-224e-5d03f0000000", + "x-ms-client-request-id" : "84daf1aa-c1db-4fa9-896c-7a73baaec8ef", + "Date" : "Wed, 09 Jun 2021 16:41:46 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net/tablename75432233?comp=acl", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-data-tables/12.0.0-beta.8 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "8a9badde-cb39-4d9c-9cac-4eab21923603" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "9a29f2a4-6002-0045-464e-5d03f0000000", + "Body" : "testPolicy12021-12-12T00:00:00.0000000Z2022-12-12T00:00:00.0000000ZrtestPolicy22021-12-12T00:00:00.0000000Z2022-12-12T00:00:00.0000000Zr", + "x-ms-client-request-id" : "8a9badde-cb39-4d9c-9cac-4eab21923603", + "Date" : "Wed, 09 Jun 2021 16:41:46 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ "tablename75432233" ] +} \ No newline at end of file diff --git a/sdk/tables/azure-data-tables/src/test/resources/session-records/TableServiceAsyncClientTest.getProperties.json b/sdk/tables/azure-data-tables/src/test/resources/session-records/TableServiceAsyncClientTest.getProperties.json new file mode 100644 index 0000000000000..f7c85c8435537 --- /dev/null +++ b/sdk/tables/azure-data-tables/src/test/resources/session-records/TableServiceAsyncClientTest.getProperties.json @@ -0,0 +1,25 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net?restype=service&comp=properties", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-data-tables/12.0.0-beta.8 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "ab32db33-e94b-4739-99c9-8a8362ccdf5d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "fadb7285-5002-006f-12da-5c76b5000000", + "Body" : "1.0falsefalsefalsefalse1.0truetruetrue71.0falsefalse", + "x-ms-client-request-id" : "ab32db33-e94b-4739-99c9-8a8362ccdf5d", + "Date" : "Wed, 09 Jun 2021 02:52:51 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/tables/azure-data-tables/src/test/resources/session-records/TableServiceAsyncClientTest.getStatistics.json b/sdk/tables/azure-data-tables/src/test/resources/session-records/TableServiceAsyncClientTest.getStatistics.json new file mode 100644 index 0000000000000..f68b4668e9cc1 --- /dev/null +++ b/sdk/tables/azure-data-tables/src/test/resources/session-records/TableServiceAsyncClientTest.getStatistics.json @@ -0,0 +1,25 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "https://REDACTED.table.core.windows.net?restype=service&comp=stats", + "Headers" : { + "x-ms-version" : "2019-02-02", + "User-Agent" : "azsdk-java-azure-data-tables/12.0.0-beta.8 (11.0.6; Windows 10; 10.0)", + "x-ms-client-request-id" : "6217e123-d132-449a-a2af-3769aa73707e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-ms-version" : "2019-02-02", + "Server" : "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0", + "retry-after" : "0", + "StatusCode" : "200", + "x-ms-request-id" : "f9737ddc-6002-006c-2ad9-5c75b2000000", + "Body" : "liveTue, 04 May 2021 23:33:28 GMT", + "x-ms-client-request-id" : "6217e123-d132-449a-a2af-3769aa73707e", + "Date" : "Wed, 09 Jun 2021 02:45:34 GMT", + "Content-Type" : "application/xml" + }, + "Exception" : null + } ], + "variables" : [ ] +} diff --git a/sdk/tables/azure-data-tables/swagger/README.md b/sdk/tables/azure-data-tables/swagger/README.md index ca3855ff48876..8a5b17647479d 100644 --- a/sdk/tables/azure-data-tables/swagger/README.md +++ b/sdk/tables/azure-data-tables/swagger/README.md @@ -19,7 +19,7 @@ autorest --java --use=C:/work/autorest.java ``` ### Code generation settings -``` yaml +```yaml input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cosmos-db/data-plane/Microsoft.Tables/preview/2019-02-02/table.json java: true output-folder: ..\ diff --git a/sdk/textanalytics/azure-ai-textanalytics/pom.xml b/sdk/textanalytics/azure-ai-textanalytics/pom.xml index 9c37fa5179edb..219c605a1b80b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/pom.xml +++ b/sdk/textanalytics/azure-ai-textanalytics/pom.xml @@ -88,7 +88,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/translation/azure-ai-documenttranslator/pom.xml b/sdk/translation/azure-ai-documenttranslator/pom.xml index 6b82ac521e483..f6e4bbce2894f 100644 --- a/sdk/translation/azure-ai-documenttranslator/pom.xml +++ b/sdk/translation/azure-ai-documenttranslator/pom.xml @@ -79,7 +79,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test diff --git a/sdk/webpubsub/azure-messaging-webpubsub/pom.xml b/sdk/webpubsub/azure-messaging-webpubsub/pom.xml index 4d2e66f402e8a..cf7f4f44ecd75 100644 --- a/sdk/webpubsub/azure-messaging-webpubsub/pom.xml +++ b/sdk/webpubsub/azure-messaging-webpubsub/pom.xml @@ -95,7 +95,7 @@ com.azure azure-identity - 1.3.0 + 1.3.1 test