From 7c9cb197b1c729e196e40d78ee3ab8ed7d8b8537 Mon Sep 17 00:00:00 2001 From: Kushagra Thapar Date: Wed, 24 Mar 2021 10:22:29 -0700 Subject: [PATCH 1/2] Removed Beta tag from handle, getRegionsContacted, and readMany APIs --- .../src/main/java/com/azure/cosmos/CosmosAsyncContainer.java | 2 -- .../src/main/java/com/azure/cosmos/CosmosContainer.java | 2 -- .../src/main/java/com/azure/cosmos/CosmosDiagnostics.java | 1 - .../src/main/java/com/azure/cosmos/util/CosmosPagedFlux.java | 1 - .../main/java/com/azure/cosmos/util/CosmosPagedIterable.java | 1 - 5 files changed, 7 deletions(-) diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosAsyncContainer.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosAsyncContainer.java index ff681f453d273..a17fa1f4adeef 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosAsyncContainer.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosAsyncContainer.java @@ -840,7 +840,6 @@ public Mono> readItem( * @param classType class type * @return a Mono with feed response of cosmos items */ - @Beta(value = Beta.SinceVersion.V4_4_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public Mono> readMany( List itemIdentityList, Class classType) { @@ -857,7 +856,6 @@ public Mono> readMany( * @param classType class type * @return a Mono with feed response of cosmos items */ - @Beta(value = Beta.SinceVersion.V4_4_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public Mono> readMany( List itemIdentityList, String sessionToken, diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosContainer.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosContainer.java index b17a34922d9a6..15178910b7092 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosContainer.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosContainer.java @@ -377,7 +377,6 @@ public CosmosPagedIterable queryChangeFeed( * @param classType class type * @return a Mono with feed response of cosmos items */ - @Beta(value = Beta.SinceVersion.V4_4_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public FeedResponse readMany( List itemIdentityList, Class classType) { @@ -394,7 +393,6 @@ public FeedResponse readMany( * @param classType class type * @return a Mono with feed response of cosmos items */ - @Beta(value = Beta.SinceVersion.V4_4_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public FeedResponse readMany( List itemIdentityList, String sessionToken, diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosDiagnostics.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosDiagnostics.java index 0a106708c53a0..5af0b91739208 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosDiagnostics.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosDiagnostics.java @@ -79,7 +79,6 @@ public Duration getDuration() { * Regions contacted for this request * @return set of regions contacted for this request */ - @Beta(value = Beta.SinceVersion.V4_9_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public Set getRegionsContacted() { if (this.feedResponseDiagnostics != null) { return null; diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/util/CosmosPagedFlux.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/util/CosmosPagedFlux.java index e3d70fffafe29..76e0769f49bb9 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/util/CosmosPagedFlux.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/util/CosmosPagedFlux.java @@ -68,7 +68,6 @@ public final class CosmosPagedFlux extends ContinuablePagedFlux handle(Consumer> newFeedResponseConsumer) { if (this.feedResponseConsumer != null) { return new CosmosPagedFlux( diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/util/CosmosPagedIterable.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/util/CosmosPagedIterable.java index 775875420f913..50166a46363e2 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/util/CosmosPagedIterable.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/util/CosmosPagedIterable.java @@ -40,7 +40,6 @@ public final class CosmosPagedIterable extends ContinuablePagedIterable handle(Consumer> feedResponseConsumer) { CosmosPagedFlux cosmosPagedFlux = this.cosmosPagedFlux.handle(feedResponseConsumer); return new CosmosPagedIterable<>(cosmosPagedFlux); From 7a9ae0110ff9f7a8c403f22b6cd787e74e7b1116 Mon Sep 17 00:00:00 2001 From: Kushagra Thapar Date: Wed, 24 Mar 2021 11:27:10 -0700 Subject: [PATCH 2/2] Waiting on getRegionsContacted API until we decide the return type --- .../src/main/java/com/azure/cosmos/CosmosDiagnostics.java | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosDiagnostics.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosDiagnostics.java index 5af0b91739208..0a106708c53a0 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosDiagnostics.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/CosmosDiagnostics.java @@ -79,6 +79,7 @@ public Duration getDuration() { * Regions contacted for this request * @return set of regions contacted for this request */ + @Beta(value = Beta.SinceVersion.V4_9_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public Set getRegionsContacted() { if (this.feedResponseDiagnostics != null) { return null;