File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
main/java/com/google/cloud/storage
test/java/com/google/cloud/storage/it Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -846,12 +846,12 @@ public static SetStorageClassLifecycleAction newSetStorageClassAction(
846846 }
847847
848848 /**
849- * Create a new {@code AbortIncompleteMultipartUploadAction }. An incomplete multipart upload
849+ * Create a new {@code AbortIncompleteMPUploadAction }. An incomplete multipart upload
850850 * will be aborted when the multipart upload meets the specified condition. Age is the
851851 * only condition supported for this action.
852852 */
853- public static LifecycleAction newAbortIncompleteMultipartUploadAction () {
854- return new AbortIncompleteMultipartUploadAction ();
853+ public static LifecycleAction newAbortIncompleteMPUploadAction () {
854+ return new AbortIncompleteMPUploadAction ();
855855 }
856856
857857 /**
@@ -898,10 +898,10 @@ public StorageClass getStorageClass() {
898898 }
899899 }
900900
901- public static class AbortIncompleteMultipartUploadAction extends LifecycleAction {
901+ public static class AbortIncompleteMPUploadAction extends LifecycleAction {
902902 public static final String TYPE = "AbortIncompleteMultipartUpload" ;
903903
904- private AbortIncompleteMultipartUploadAction () { super (TYPE ); }
904+ private AbortIncompleteMPUploadAction () { super (TYPE ); }
905905 }
906906 }
907907
Original file line number Diff line number Diff line change 6565import com .google .cloud .storage .Bucket ;
6666import com .google .cloud .storage .BucketInfo ;
6767import com .google .cloud .storage .BucketInfo .LifecycleRule ;
68- import com .google .cloud .storage .BucketInfo .LifecycleRule .AbortIncompleteMultipartUploadAction ;
68+ import com .google .cloud .storage .BucketInfo .LifecycleRule .AbortIncompleteMPUploadAction ;
6969import com .google .cloud .storage .BucketInfo .LifecycleRule .LifecycleAction ;
7070import com .google .cloud .storage .BucketInfo .LifecycleRule .LifecycleCondition ;
7171import com .google .cloud .storage .CopyWriter ;
@@ -565,7 +565,7 @@ public void testGetBucketAbortMPULifecycle() {
565565 LifecycleRule lifecycleRule = remoteBucket .getLifecycleRules ().get (0 );
566566 try {
567567 assertEquals (
568- lifecycleRule .getAction ().getActionType (), AbortIncompleteMultipartUploadAction . TYPE );
568+ AbortIncompleteMPUploadAction . TYPE , lifecycleRule .getAction ().getActionType ());
569569 assertEquals (1 , lifecycleRule .getCondition ().getAge ().intValue ());
570570 } finally {
571571 storage .delete (lifecycleTestBucketName );
You can’t perform that action at this time.
0 commit comments