From 211a43e94ccb92a8738c9a4092f9329b1776d0c3 Mon Sep 17 00:00:00 2001 From: Kushagra Thapar Date: Mon, 23 Mar 2026 13:40:11 -0700 Subject: [PATCH 1/4] Promote 10 BETA public APIs to GA in azure-cosmos Remove @Beta annotations from APIs whose service-side features are GA: 1. Full Text Search (GA per service docs): - CosmosContainerProperties.getFullTextPolicy()/setFullTextPolicy() - IndexingPolicy.getCosmosFullTextIndexes()/setCosmosFullTextIndexes() 2. Throughput Control V4_13_0 (GA since 2021): - ThroughputControlGroupConfigBuilder.setGroupName() - ThroughputControlGroupConfigBuilder.setTargetThroughput() - ThroughputControlGroupConfigBuilder.setTargetThroughputThreshold() - ThroughputControlGroupConfigBuilder.setDefault() 3. Deprecated+Beta misc (already deprecated, unrelated to preview features): - CosmosDiagnostics.getRegionsContacted() - EncryptionKeyWrapMetadata(String, String, String) APIs intentionally kept as @Beta (service features still in preview): - Change Feed All Versions & Deletes (service preview) - ReadConsistencyStrategy (direct-mode only) - Http2ConnectionConfig (SDK preview) - Throughput Buckets V4_74_0 (service preview) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../src/main/java/com/azure/cosmos/CosmosDiagnostics.java | 2 -- .../com/azure/cosmos/ThroughputControlGroupConfigBuilder.java | 4 ---- .../com/azure/cosmos/models/CosmosContainerProperties.java | 2 -- .../com/azure/cosmos/models/EncryptionKeyWrapMetadata.java | 2 -- .../src/main/java/com/azure/cosmos/models/IndexingPolicy.java | 4 +--- 5 files changed, 1 insertion(+), 13 deletions(-) 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 e2c77504b619..48e4f58f9378 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 @@ -11,7 +11,6 @@ import com.azure.cosmos.implementation.SerializationDiagnosticsContext; import com.azure.cosmos.implementation.guava25.collect.ImmutableList; import com.azure.cosmos.implementation.routing.RegionalRoutingContext; -import com.azure.cosmos.util.Beta; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; @@ -154,7 +153,6 @@ public Duration getDuration() { * * @return set of regions contacted for this request */ - @Beta(value = Beta.SinceVersion.V4_9_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) @Deprecated public Set getRegionsContacted() { if (this.feedResponseDiagnostics != null) { diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java index cdd0b861ade8..ce2c4ea0a5a6 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java @@ -29,7 +29,6 @@ public class ThroughputControlGroupConfigBuilder { * @return The {@link ThroughputControlGroupConfigBuilder}. */ @Deprecated - @Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public ThroughputControlGroupConfigBuilder setGroupName(String groupName) { checkArgument(StringUtils.isNotEmpty(groupName), "Group name cannot be null nor empty"); @@ -59,7 +58,6 @@ public ThroughputControlGroupConfigBuilder groupName(String groupName) { * @return The {@link ThroughputControlGroupConfigBuilder}. */ @Deprecated - @Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public ThroughputControlGroupConfigBuilder setTargetThroughput(int targetThroughput) { checkArgument(targetThroughput > 0, "Target throughput should be greater than 0"); @@ -91,7 +89,6 @@ public ThroughputControlGroupConfigBuilder targetThroughput(int targetThroughput * @return The {@link ThroughputControlGroupConfigBuilder}. */ @Deprecated - @Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public ThroughputControlGroupConfigBuilder setTargetThroughputThreshold(double targetThroughputThreshold) { checkArgument(targetThroughputThreshold > 0 && targetThroughputThreshold <= 1, "Target throughput threshold should between (0, 1]"); @@ -140,7 +137,6 @@ public ThroughputControlGroupConfigBuilder priorityLevel(PriorityLevel priorityL * @return The {@link ThroughputControlGroupConfigBuilder}. */ @Deprecated - @Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public ThroughputControlGroupConfigBuilder setDefault(boolean aDefault) { this.isDefault = aDefault; return this; diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosContainerProperties.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosContainerProperties.java index f24579861b6b..af8051411c84 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosContainerProperties.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosContainerProperties.java @@ -375,7 +375,6 @@ public CosmosContainerProperties setVectorEmbeddingPolicy(CosmosVectorEmbeddingP * * @return the FullTextPolicy */ - @Beta(value = Beta.SinceVersion.V4_65_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public CosmosFullTextPolicy getFullTextPolicy() { return this.documentCollection.getFullTextPolicy(); } @@ -387,7 +386,6 @@ public CosmosFullTextPolicy getFullTextPolicy() { * @param value the FullTextPolicy. * @return the CosmosContainerProperties. */ - @Beta(value = Beta.SinceVersion.V4_65_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public CosmosContainerProperties setFullTextPolicy(CosmosFullTextPolicy value) { this.documentCollection.setFullTextPolicy(value); return this; diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/EncryptionKeyWrapMetadata.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/EncryptionKeyWrapMetadata.java index 909333847df5..d395f47775cd 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/EncryptionKeyWrapMetadata.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/EncryptionKeyWrapMetadata.java @@ -4,7 +4,6 @@ package com.azure.cosmos.models; import com.azure.cosmos.implementation.guava25.base.Preconditions; -import com.azure.cosmos.util.Beta; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -40,7 +39,6 @@ public EncryptionKeyWrapMetadata(EncryptionKeyWrapMetadata source) { * @param name Name of the metadata. * @param value Value of the metadata. */ - @Beta(value = Beta.SinceVersion.V4_16_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) @Deprecated public EncryptionKeyWrapMetadata(String type, String name, String value) { Preconditions.checkNotNull(type, "type is null"); diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/IndexingPolicy.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/IndexingPolicy.java index bd8b853053f0..96d9a2422216 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/IndexingPolicy.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/IndexingPolicy.java @@ -7,7 +7,7 @@ import com.azure.cosmos.implementation.Index; import com.azure.cosmos.implementation.JsonSerializable; import com.azure.cosmos.implementation.apachecommons.lang.StringUtils; -import com.azure.cosmos.util.Beta; + import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; @@ -317,7 +317,6 @@ public IndexingPolicy setVectorIndexes(List vectorIndexes * * @return the full text indexes. */ - @Beta(value = Beta.SinceVersion.V4_65_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public List getCosmosFullTextIndexes() { if (this.cosmosFullTextIndexes == null) { this.cosmosFullTextIndexes = this.jsonSerializable.getList(Constants.Properties.FULL_TEXT_INDEXES, CosmosFullTextIndex.class); @@ -336,7 +335,6 @@ public List getCosmosFullTextIndexes() { * @param cosmosFullTextIndexes the fullText indexes * @return the excluded paths */ - @Beta(value = Beta.SinceVersion.V4_65_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public IndexingPolicy setCosmosFullTextIndexes(List cosmosFullTextIndexes) { this.cosmosFullTextIndexes = cosmosFullTextIndexes; this.jsonSerializable.set(Constants.Properties.FULL_TEXT_INDEXES, cosmosFullTextIndexes); From acdaf348d7b3a61ea0e42581bbe91adeaee8dc8f Mon Sep 17 00:00:00 2001 From: Kushagra Thapar Date: Mon, 23 Mar 2026 13:57:34 -0700 Subject: [PATCH 2/4] =?UTF-8?q?Add=20CHANGELOG=20entry=20for=20BETA?= =?UTF-8?q?=E2=86=92GA=20promotion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- sdk/cosmos/azure-cosmos/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/cosmos/azure-cosmos/CHANGELOG.md b/sdk/cosmos/azure-cosmos/CHANGELOG.md index cd5510ae024c..41a2a5016f66 100644 --- a/sdk/cosmos/azure-cosmos/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos/CHANGELOG.md @@ -11,6 +11,7 @@ * Fixed Remote Code Execution (RCE) vulnerability (CWE-502) by replacing Java deserialization with JSON-based serialization in `CosmosClientMetadataCachesSnapshot`, `AsyncCache`, and `DocumentCollection`. The metadata cache snapshot now uses Jackson for serialization/deserialization, eliminating the entire class of Java deserialization attacks. - [PR 47971](https://github.com/Azure/azure-sdk-for-java/pull/47971) #### Other Changes +* Promoted the following `@Beta` APIs to GA: `CosmosContainerProperties.getFullTextPolicy()`/`setFullTextPolicy()`, `IndexingPolicy.getCosmosFullTextIndexes()`/`setCosmosFullTextIndexes()`, `ThroughputControlGroupConfigBuilder.setGroupName()`/`setTargetThroughput()`/`setTargetThroughputThreshold()`/`setDefault()`, `CosmosDiagnostics.getRegionsContacted()`, and `EncryptionKeyWrapMetadata(String, String, String)`. - See [PR 48538](https://github.com/Azure/azure-sdk-for-java/pull/48538) ### 4.78.0 (2026-02-10) From 8fb59d41aee2000c4bb9ed9930813fea471052f3 Mon Sep 17 00:00:00 2001 From: Kushagra Thapar Date: Mon, 23 Mar 2026 16:39:33 -0700 Subject: [PATCH 3/4] Fix javadoc and grammar issues from review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - IndexingPolicy: getter javadoc says 'indexes' not 'paths', setter @return says 'IndexingPolicy' not 'excluded paths' - CosmosContainerProperties: setFullTextPolicy javadoc says 'Sets' not 'Gets' - ThroughputControlGroupConfigBuilder: fix grammar 'should between' → 'should be between' in both exception messages Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../azure/cosmos/ThroughputControlGroupConfigBuilder.java | 4 ++-- .../com/azure/cosmos/models/CosmosContainerProperties.java | 2 +- .../main/java/com/azure/cosmos/models/IndexingPolicy.java | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java index ce2c4ea0a5a6..ffc3063ea8b5 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java @@ -90,7 +90,7 @@ public ThroughputControlGroupConfigBuilder targetThroughput(int targetThroughput */ @Deprecated public ThroughputControlGroupConfigBuilder setTargetThroughputThreshold(double targetThroughputThreshold) { - checkArgument(targetThroughputThreshold > 0 && targetThroughputThreshold <= 1, "Target throughput threshold should between (0, 1]"); + checkArgument(targetThroughputThreshold > 0 && targetThroughputThreshold <= 1, "Target throughput threshold should be between (0, 1]"); this.targetThroughputThreshold = targetThroughputThreshold; return this; @@ -105,7 +105,7 @@ public ThroughputControlGroupConfigBuilder setTargetThroughputThreshold(double t * @return The {@link ThroughputControlGroupConfigBuilder}. */ public ThroughputControlGroupConfigBuilder targetThroughputThreshold(double targetThroughputThreshold) { - checkArgument(targetThroughputThreshold > 0 && targetThroughputThreshold <= 1, "Target throughput threshold should between (0, 1]"); + checkArgument(targetThroughputThreshold > 0 && targetThroughputThreshold <= 1, "Target throughput threshold should be between (0, 1]"); this.targetThroughputThreshold = targetThroughputThreshold; return this; diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosContainerProperties.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosContainerProperties.java index af8051411c84..246b245dea5a 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosContainerProperties.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosContainerProperties.java @@ -380,7 +380,7 @@ public CosmosFullTextPolicy getFullTextPolicy() { } /** - * Gets the Full Text Policy containing paths for full text search and the language specification for each path. + * Sets the Full Text Policy containing paths for full text search and the language specification for each path. * It also contains the default language to be used. * * @param value the FullTextPolicy. diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/IndexingPolicy.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/IndexingPolicy.java index 96d9a2422216..dc7701cd8e7d 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/IndexingPolicy.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/IndexingPolicy.java @@ -313,7 +313,7 @@ public IndexingPolicy setVectorIndexes(List vectorIndexes } /** - * Gets the full text search paths. + * Gets the full text indexes. * * @return the full text indexes. */ @@ -330,10 +330,10 @@ public List getCosmosFullTextIndexes() { } /** - * Sets the full text search paths. + * Sets the full text indexes. * * @param cosmosFullTextIndexes the fullText indexes - * @return the excluded paths + * @return the IndexingPolicy. */ public IndexingPolicy setCosmosFullTextIndexes(List cosmosFullTextIndexes) { this.cosmosFullTextIndexes = cosmosFullTextIndexes; From 73c17d208329f2b423b08a9f8ec72166985f9e1c Mon Sep 17 00:00:00 2001 From: Kushagra Thapar Date: Mon, 23 Mar 2026 16:48:54 -0700 Subject: [PATCH 4/4] Restore @Beta on deprecated APIs per review feedback Keep @Beta annotation on deprecated APIs so they can be removed later if needed. Only Full Text Search APIs (getFullTextPolicy, setFullTextPolicy, getCosmosFullTextIndexes, setCosmosFullTextIndexes) are promoted to GA since their underlying service feature is GA. Restored @Beta on: - CosmosDiagnostics.getRegionsContacted() (V4_9_0) - ThroughputControlGroupConfigBuilder.setGroupName/setTargetThroughput/ setTargetThroughputThreshold/setDefault (V4_13_0) - EncryptionKeyWrapMetadata 3-arg constructor (V4_16_0) Updated changelog to reflect reduced GA scope. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- sdk/cosmos/azure-cosmos/CHANGELOG.md | 2 +- .../src/main/java/com/azure/cosmos/CosmosDiagnostics.java | 2 ++ .../com/azure/cosmos/ThroughputControlGroupConfigBuilder.java | 4 ++++ .../com/azure/cosmos/models/EncryptionKeyWrapMetadata.java | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/sdk/cosmos/azure-cosmos/CHANGELOG.md b/sdk/cosmos/azure-cosmos/CHANGELOG.md index 41a2a5016f66..2bc1ce67e909 100644 --- a/sdk/cosmos/azure-cosmos/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos/CHANGELOG.md @@ -11,7 +11,7 @@ * Fixed Remote Code Execution (RCE) vulnerability (CWE-502) by replacing Java deserialization with JSON-based serialization in `CosmosClientMetadataCachesSnapshot`, `AsyncCache`, and `DocumentCollection`. The metadata cache snapshot now uses Jackson for serialization/deserialization, eliminating the entire class of Java deserialization attacks. - [PR 47971](https://github.com/Azure/azure-sdk-for-java/pull/47971) #### Other Changes -* Promoted the following `@Beta` APIs to GA: `CosmosContainerProperties.getFullTextPolicy()`/`setFullTextPolicy()`, `IndexingPolicy.getCosmosFullTextIndexes()`/`setCosmosFullTextIndexes()`, `ThroughputControlGroupConfigBuilder.setGroupName()`/`setTargetThroughput()`/`setTargetThroughputThreshold()`/`setDefault()`, `CosmosDiagnostics.getRegionsContacted()`, and `EncryptionKeyWrapMetadata(String, String, String)`. - See [PR 48538](https://github.com/Azure/azure-sdk-for-java/pull/48538) +* Promoted the following `@Beta` APIs to GA: `CosmosContainerProperties.getFullTextPolicy()`/`setFullTextPolicy()`, `IndexingPolicy.getCosmosFullTextIndexes()`/`setCosmosFullTextIndexes()`. - See [PR 48538](https://github.com/Azure/azure-sdk-for-java/pull/48538) ### 4.78.0 (2026-02-10) 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 48e4f58f9378..e2c77504b619 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 @@ -11,6 +11,7 @@ import com.azure.cosmos.implementation.SerializationDiagnosticsContext; import com.azure.cosmos.implementation.guava25.collect.ImmutableList; import com.azure.cosmos.implementation.routing.RegionalRoutingContext; +import com.azure.cosmos.util.Beta; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; @@ -153,6 +154,7 @@ public Duration getDuration() { * * @return set of regions contacted for this request */ + @Beta(value = Beta.SinceVersion.V4_9_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) @Deprecated public Set getRegionsContacted() { if (this.feedResponseDiagnostics != null) { diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java index ffc3063ea8b5..513c1dbe81ad 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/ThroughputControlGroupConfigBuilder.java @@ -29,6 +29,7 @@ public class ThroughputControlGroupConfigBuilder { * @return The {@link ThroughputControlGroupConfigBuilder}. */ @Deprecated + @Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public ThroughputControlGroupConfigBuilder setGroupName(String groupName) { checkArgument(StringUtils.isNotEmpty(groupName), "Group name cannot be null nor empty"); @@ -58,6 +59,7 @@ public ThroughputControlGroupConfigBuilder groupName(String groupName) { * @return The {@link ThroughputControlGroupConfigBuilder}. */ @Deprecated + @Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public ThroughputControlGroupConfigBuilder setTargetThroughput(int targetThroughput) { checkArgument(targetThroughput > 0, "Target throughput should be greater than 0"); @@ -89,6 +91,7 @@ public ThroughputControlGroupConfigBuilder targetThroughput(int targetThroughput * @return The {@link ThroughputControlGroupConfigBuilder}. */ @Deprecated + @Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public ThroughputControlGroupConfigBuilder setTargetThroughputThreshold(double targetThroughputThreshold) { checkArgument(targetThroughputThreshold > 0 && targetThroughputThreshold <= 1, "Target throughput threshold should be between (0, 1]"); @@ -137,6 +140,7 @@ public ThroughputControlGroupConfigBuilder priorityLevel(PriorityLevel priorityL * @return The {@link ThroughputControlGroupConfigBuilder}. */ @Deprecated + @Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) public ThroughputControlGroupConfigBuilder setDefault(boolean aDefault) { this.isDefault = aDefault; return this; diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/EncryptionKeyWrapMetadata.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/EncryptionKeyWrapMetadata.java index d395f47775cd..909333847df5 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/EncryptionKeyWrapMetadata.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/EncryptionKeyWrapMetadata.java @@ -4,6 +4,7 @@ package com.azure.cosmos.models; import com.azure.cosmos.implementation.guava25.base.Preconditions; +import com.azure.cosmos.util.Beta; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -39,6 +40,7 @@ public EncryptionKeyWrapMetadata(EncryptionKeyWrapMetadata source) { * @param name Name of the metadata. * @param value Value of the metadata. */ + @Beta(value = Beta.SinceVersion.V4_16_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING) @Deprecated public EncryptionKeyWrapMetadata(String type, String name, String value) { Preconditions.checkNotNull(type, "type is null");