Skip to content

Commit

Permalink
Updated Beta version tag on cosmos encryption APIs to V4_14_0 (#20324)
Browse files Browse the repository at this point in the history
  • Loading branch information
kushagraThapar authored Apr 1, 2021
1 parent 5703dc2 commit 211d57c
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* The type Cosmos async clientEncryptionKey. This contains methods to operate on a cosmos clientEncryptionKey asynchronously
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public final class CosmosAsyncClientEncryptionKey {
private final CosmosAsyncDatabase database;
private String id;
Expand All @@ -31,7 +31,7 @@ public final class CosmosAsyncClientEncryptionKey {
*
* @return the id of the {@link CosmosAsyncUser}
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public String getId() {
return id;
}
Expand All @@ -52,7 +52,7 @@ CosmosAsyncClientEncryptionKey setId(String id) {
*
* @return a {@link Mono} containing the single resource response with the read client encryption key or an error.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public Mono<CosmosClientEncryptionKeyResponse> read() {
return withContext(context -> readInternal(context));
}
Expand All @@ -74,7 +74,7 @@ private Mono<CosmosClientEncryptionKeyResponse> readInternal(Context context) {
* @param keyProperties the client encryption key properties to create.
* @return a {@link Mono} containing the single resource response with the read client encryption key or an error.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public Mono<CosmosClientEncryptionKeyResponse> replace(CosmosClientEncryptionKeyProperties keyProperties) {
return withContext(context -> replaceInternal(keyProperties, context));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ public Mono<CosmosUserResponse> createUser(CosmosUserProperties userProperties)
* @return an {@link Mono} containing the single resource response with the
* created cosmos client encryption key or an error.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public Mono<CosmosClientEncryptionKeyResponse> createClientEncryptionKey(CosmosClientEncryptionKeyProperties keyProperties) {
return withContext(context -> createClientEncryptionKeyInternal(keyProperties, context));
}
Expand Down Expand Up @@ -609,7 +609,7 @@ CosmosPagedFlux<CosmosUserProperties> readAllUsers(CosmosQueryRequestOptions opt
* @param id id of the clientEncryptionKey
* @return Cosmos ClientEncryptionKey
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public CosmosAsyncClientEncryptionKey getClientEncryptionKey(String id) {
return new CosmosAsyncClientEncryptionKey(id, this);
}
Expand All @@ -624,7 +624,7 @@ public CosmosAsyncClientEncryptionKey getClientEncryptionKey(String id) {
* @return a {@link CosmosPagedFlux} containing one or several feed response pages of the
* read cosmos client encryption keys or an error.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public CosmosPagedFlux<CosmosClientEncryptionKeyProperties> readAllClientEncryptionKeys() {
return readAllClientEncryptionKeys(new CosmosQueryRequestOptions());
}
Expand All @@ -640,7 +640,7 @@ public CosmosPagedFlux<CosmosClientEncryptionKeyProperties> readAllClientEncrypt
* @return a {@link CosmosPagedFlux} containing one or several feed response pages of the
* read cosmos client encryption keys or an error.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public CosmosPagedFlux<CosmosClientEncryptionKeyProperties> readAllClientEncryptionKeys(CosmosQueryRequestOptions options) {
return UtilBridgeInternal.createCosmosPagedFlux(pagedFluxOptions -> {
String spanName = "readAllClientEncryptionKeys." + this.getId();
Expand All @@ -665,7 +665,7 @@ public CosmosPagedFlux<CosmosClientEncryptionKeyProperties> readAllClientEncrypt
* @return a {@link CosmosPagedFlux} containing one or several feed response pages of the
* obtained client encryption keys or an error.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public CosmosPagedFlux<CosmosClientEncryptionKeyProperties> queryClientEncryptionKeys(String query) {
return queryClientEncryptionKeys(query, new CosmosQueryRequestOptions());
}
Expand All @@ -682,7 +682,7 @@ public CosmosPagedFlux<CosmosClientEncryptionKeyProperties> queryClientEncryptio
* @return a {@link CosmosPagedFlux} containing one or several feed response pages of the
* obtained client encryption keys or an error.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public CosmosPagedFlux<CosmosClientEncryptionKeyProperties> queryClientEncryptionKeys(String query, CosmosQueryRequestOptions options) {
if (options == null) {
options = new CosmosQueryRequestOptions();
Expand All @@ -702,7 +702,7 @@ public CosmosPagedFlux<CosmosClientEncryptionKeyProperties> queryClientEncryptio
* @return a {@link CosmosPagedFlux} containing one or several feed response pages of the
* obtained client encryption keys or an error.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public CosmosPagedFlux<CosmosClientEncryptionKeyProperties> queryClientEncryptionKeys(SqlQuerySpec querySpec) {
return queryClientEncryptionKeysInternal(querySpec, new CosmosQueryRequestOptions());
}
Expand All @@ -719,7 +719,7 @@ public CosmosPagedFlux<CosmosClientEncryptionKeyProperties> queryClientEncryptio
* @return a {@link CosmosPagedFlux} containing one or several feed response pages of the
* obtained client encryption keys or an error.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public CosmosPagedFlux<CosmosClientEncryptionKeyProperties> queryClientEncryptionKeys(SqlQuerySpec querySpec, CosmosQueryRequestOptions options) {
if (options == null) {
options = new CosmosQueryRequestOptions();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Path that needs encryption and the associated settings within {@link ClientEncryptionPolicy}.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public final class ClientEncryptionIncludedPath {

@JsonProperty("path")
Expand All @@ -30,7 +30,7 @@ public final class ClientEncryptionIncludedPath {
*
* @return path
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public String getPath() {
return path;
}
Expand All @@ -41,7 +41,7 @@ public String getPath() {
* @param path path to be encrypted
* @return ClientEncryptionIncludedPath.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public ClientEncryptionIncludedPath setPath(String path) {
this.path = path;
return this;
Expand All @@ -52,7 +52,7 @@ public ClientEncryptionIncludedPath setPath(String path) {
*
* @return clientEncryptionKeyId
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public String getClientEncryptionKeyId() {
return clientEncryptionKeyId;
}
Expand All @@ -63,7 +63,7 @@ public String getClientEncryptionKeyId() {
* @param clientEncryptionKeyId identifier of the Data Encryption Key
* @return ClientEncryptionIncludedPath.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public ClientEncryptionIncludedPath setClientEncryptionKeyId(String clientEncryptionKeyId) {
this.clientEncryptionKeyId = clientEncryptionKeyId;
return this;
Expand All @@ -74,7 +74,7 @@ public ClientEncryptionIncludedPath setClientEncryptionKeyId(String clientEncryp
*
* @return encryptionType
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public String getEncryptionType() {
return encryptionType;
}
Expand All @@ -85,7 +85,7 @@ public String getEncryptionType() {
* @param encryptionType type of encryption
* @return ClientEncryptionIncludedPath.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public ClientEncryptionIncludedPath setEncryptionType(String encryptionType) {
this.encryptionType = encryptionType;
return this;
Expand All @@ -96,7 +96,7 @@ public ClientEncryptionIncludedPath setEncryptionType(String encryptionType) {
*
* @return encryptionAlgorithm
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public String getEncryptionAlgorithm() {
return encryptionAlgorithm;
}
Expand All @@ -107,7 +107,7 @@ public String getEncryptionAlgorithm() {
* @param encryptionAlgorithm type of encryption algorithm
* @return ClientEncryptionIncludedPath.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public ClientEncryptionIncludedPath setEncryptionAlgorithm(String encryptionAlgorithm) {
this.encryptionAlgorithm = encryptionAlgorithm;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Client encryption policy.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public final class ClientEncryptionPolicy {

private JsonSerializable jsonSerializable;
Expand All @@ -35,7 +35,7 @@ public final class ClientEncryptionPolicy {
*
* @param paths list of path of the item that need encryption along with path-specific settings.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public ClientEncryptionPolicy(List<ClientEncryptionIncludedPath> paths) {
this.validateIncludedPaths(paths);
this.includedPaths = paths;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* Details of an encryption key for use with the Azure Cosmos DB service.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public final class CosmosClientEncryptionKeyProperties {
private ClientEncryptionKey clientEncryptionKey;

Expand All @@ -39,7 +39,7 @@ public final class CosmosClientEncryptionKeyProperties {
* @param wrappedDataEncryptionKey Wrapped (encrypted) form of the client encryption key.
* @param encryptionKeyWrapMetadata Metadata used by the configured key wrapping provider in order to unwrap the key.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public CosmosClientEncryptionKeyProperties(String id,
String encryptionAlgorithm,
byte[] wrappedDataEncryptionKey,
Expand All @@ -55,7 +55,7 @@ public CosmosClientEncryptionKeyProperties(String id,
* Gets the encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data.
* @return encryptionAlgorithm
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public String getEncryptionAlgorithm() {
return this.clientEncryptionKey.getEncryptionAlgorithm();
}
Expand All @@ -65,7 +65,7 @@ public String getEncryptionAlgorithm() {
* @param encryptionAlgorithm the encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data.
* @return CosmosClientEncryptionKeyProperties
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public CosmosClientEncryptionKeyProperties setEncryptionAlgorithm(String encryptionAlgorithm) {
this.clientEncryptionKey.setEncryptionAlgorithm(encryptionAlgorithm);
return this;
Expand All @@ -75,7 +75,7 @@ public CosmosClientEncryptionKeyProperties setEncryptionAlgorithm(String encrypt
* Gets the wrapped form of the client encryption key.
* @return wrappedDataEncryptionKey
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public byte[] getWrappedDataEncryptionKey() {
return this.clientEncryptionKey.getWrappedDataEncryptionKey();
}
Expand All @@ -85,7 +85,7 @@ public byte[] getWrappedDataEncryptionKey() {
* @param wrappedDataEncryptionKey the wrapped form of the client encryption key.
* @return CosmosClientEncryptionKeyProperties
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public CosmosClientEncryptionKeyProperties setWrappedDataEncryptionKey(byte[] wrappedDataEncryptionKey) {
this.clientEncryptionKey.setWrappedDataEncryptionKey(wrappedDataEncryptionKey);
return this;
Expand All @@ -95,7 +95,7 @@ public CosmosClientEncryptionKeyProperties setWrappedDataEncryptionKey(byte[] wr
* Gets the metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key.
* @return encryptionKeyWrapMetadata
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public EncryptionKeyWrapMetadata getEncryptionKeyWrapMetadata() {
return this.clientEncryptionKey.getEncryptionKeyWrapMetadata();
}
Expand All @@ -105,7 +105,7 @@ public EncryptionKeyWrapMetadata getEncryptionKeyWrapMetadata() {
* @param encryptionKeyWrapMetadata the metadata for the wrapping provider that can be used to unwrap the wrapped client encryption key.
* @return CosmosClientEncryptionKeyProperties
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public CosmosClientEncryptionKeyProperties setEncryptionKeyWrapMetadata(EncryptionKeyWrapMetadata encryptionKeyWrapMetadata) {
this.clientEncryptionKey.setEncryptionKeyWrapMetadata(encryptionKeyWrapMetadata);
return this;
Expand All @@ -116,7 +116,7 @@ public CosmosClientEncryptionKeyProperties setEncryptionKeyWrapMetadata(Encrypti
*
* @return the name of the resource.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public String getId() {
return this.clientEncryptionKey.getId();
}
Expand All @@ -127,7 +127,7 @@ public String getId() {
* @param id the name of the resource.
* @return the current instance of {@link CosmosContainerProperties}.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public CosmosClientEncryptionKeyProperties setId(String id) {
this.clientEncryptionKey.setId(id);
return this;
Expand All @@ -148,7 +148,7 @@ String getResourceId() {
*
* @return the timestamp.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public Instant getTimestamp() {
return this.clientEncryptionKey.getTimestamp();
}
Expand All @@ -159,7 +159,7 @@ public Instant getTimestamp() {
*
* @return the e tag.
*/
@Beta(value = Beta.SinceVersion.V4_13_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public String getETag() {
return this.clientEncryptionKey.getETag();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* The type Cosmos client encryption key response.
*/
@Beta(value = Beta.SinceVersion.V4_11_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public final class CosmosClientEncryptionKeyResponse extends CosmosResponse<CosmosClientEncryptionKeyProperties> {
CosmosClientEncryptionKeyResponse(ResourceResponse<ClientEncryptionKey> response) {
super(response);
Expand All @@ -29,7 +29,7 @@ public final class CosmosClientEncryptionKeyResponse extends CosmosResponse<Cosm
*
* @return {@link CosmosUserProperties}
*/
@Beta(value = Beta.SinceVersion.V4_11_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
@Beta(value = Beta.SinceVersion.V4_14_0, warningText = Beta.PREVIEW_SUBJECT_TO_CHANGE_WARNING)
public CosmosClientEncryptionKeyProperties getProperties() {
return super.getProperties();
}
Expand Down
Loading

0 comments on commit 211d57c

Please sign in to comment.