Skip to content

Commit 116220c

Browse files
author
Frank Natividad
committed
Address comments
1 parent 8d042d2 commit 116220c

6 files changed

Lines changed: 10 additions & 2 deletions

File tree

google-cloud-storage/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
<dependency>
3030
<groupId>com.google.apis</groupId>
3131
<artifactId>google-api-services-storage</artifactId>
32-
<version>v1-rev125-1.23.0</version>
3332
<scope>compile</scope>
3433
<exclusions>
3534
<exclusion>

google-cloud-storage/src/main/java/com/google/cloud/storage/Blob.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ Builder setCustomerEncryption(CustomerEncryption customerEncryption) {
402402
return this;
403403
}
404404

405+
@GcpLaunchStage.Beta
405406
@Override
406407
public Builder setKmsKeyName(String kmsKeyName) {
407408
infoBuilder.setKmsKeyName(kmsKeyName);

google-cloud-storage/src/main/java/com/google/cloud/storage/BlobInfo.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import com.google.api.services.storage.model.ObjectAccessControl;
2525
import com.google.api.services.storage.model.StorageObject;
2626
import com.google.api.services.storage.model.StorageObject.Owner;
27+
import com.google.cloud.GcpLaunchStage;
2728
import com.google.cloud.storage.Blob.Builder;
2829
import com.google.common.base.Function;
2930
import com.google.common.base.MoreObjects;
@@ -271,6 +272,7 @@ public abstract static class Builder {
271272
*
272273
* Sets the blob's kmsKeyName.
273274
*/
275+
@GcpLaunchStage.Beta
274276
public abstract Builder setKmsKeyName(String kmsKeyName);
275277

276278
/**
@@ -484,6 +486,7 @@ Builder setCustomerEncryption(CustomerEncryption customerEncryption) {
484486
return this;
485487
}
486488

489+
@GcpLaunchStage.Beta
487490
@Override
488491
public Builder setKmsKeyName(String kmsKeyName) {
489492
this.kmsKeyName = kmsKeyName;
@@ -756,6 +759,7 @@ public StorageClass getStorageClass() {
756759
/**
757760
* Returns the Cloud KMS key used to encrypt the blob, if any.
758761
*/
762+
@GcpLaunchStage.Beta
759763
public String getKmsKeyName() {
760764
return kmsKeyName;
761765
}

google-cloud-storage/src/main/java/com/google/cloud/storage/Bucket.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ public Builder setLabels(Map<String, String> labels) {
612612
return this;
613613
}
614614

615+
@GcpLaunchStage.Beta
615616
@Override
616617
public Builder setDefaultKmsKeyName(String defaultKmsKeyName) {
617618
infoBuilder.setDefaultKmsKeyName(defaultKmsKeyName);

google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import com.google.api.services.storage.model.Bucket.Owner;
3232
import com.google.api.services.storage.model.Bucket.Versioning;
3333
import com.google.api.services.storage.model.Bucket.Website;
34+
import com.google.cloud.GcpLaunchStage;
3435
import com.google.cloud.storage.Acl.Entity;
3536
import com.google.common.base.Function;
3637
import com.google.common.base.MoreObjects;
@@ -428,6 +429,7 @@ public abstract static class Builder {
428429
/**
429430
* Sets the default Cloud KMS key name for this bucket.
430431
*/
432+
@GcpLaunchStage.Beta
431433
public abstract Builder setDefaultKmsKeyName(String defaultKmsKeyName);
432434

433435
/**
@@ -593,6 +595,7 @@ public Builder setLabels(Map<String, String> labels) {
593595
return this;
594596
}
595597

598+
@GcpLaunchStage.Beta
596599
@Override
597600
public Builder setDefaultKmsKeyName(String defaultKmsKeyName) {
598601
this.defaultKmsKeyName = defaultKmsKeyName != null
@@ -782,6 +785,7 @@ public Map<String, String> getLabels() {
782785
/**
783786
* Returns the default Cloud KMS key to be applied to newly inserted objects in this bucket.
784787
*/
788+
@GcpLaunchStage.Beta
785789
public String getDefaultKmsKeyName() {
786790
return defaultKmsKeyName;
787791
}

google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
import java.util.List;
8383
import java.util.Map;
8484

85-
import jdk.nashorn.internal.runtime.regexp.joni.exception.ValueException;
8685
import org.apache.http.HttpStatus;
8786

8887
public class HttpStorageRpc implements StorageRpc {

0 commit comments

Comments
 (0)