Skip to content

Commit

Permalink
variable renamed from age to ageInDays
Browse files Browse the repository at this point in the history
  • Loading branch information
neerajsinghal05 committed Nov 27, 2023
1 parent 8c64e73 commit b7f08c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/io/cdap/e2e/utils/StorageClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ public static Blob uploadObject(String bucketName, String objectName, String fil

/**
* @param bucketName , required random Bucket name to create in GCS.
* @param age Age has to be pass in days.
* @param ageInDays Age has to be pass in days.
*/
public static Bucket createBucketwithLifeCycle(String bucketName, int age) throws IOException {
public static Bucket createBucketwithLifeCycle(String bucketName, int ageInDays) throws IOException {
return getStorageService().create(BucketInfo.of(bucketName)).toBuilder()
.setLifecycleRules(
ImmutableList.of(
new LifecycleRule(
LifecycleAction.newAbortIncompleteMPUploadAction(),
LifecycleCondition.newBuilder().setAge(age).build()))).build().update();
LifecycleCondition.newBuilder().setAge(ageInDays).build()))).build().update();
}

}
Expand Down

0 comments on commit b7f08c0

Please sign in to comment.