Skip to content

Commit 703575b

Browse files
committed
add another shortcut for CopyRequest
1 parent c5ca450 commit 703575b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/com/google/gcloud/storage/StorageService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,10 @@ public static CopyRequest of(String sourceBucket, String sourceBlob, Blob target
390390
return builder().source(sourceBucket, sourceBlob).target(target).build();
391391
}
392392

393+
public static CopyRequest of(String sourceBucket, String sourceBlob, String targetBlob) {
394+
return of(sourceBucket, sourceBlob, Blob.of(sourceBucket, targetBlob));
395+
}
396+
393397
public static Builder builder() {
394398
return new Builder();
395399
}

0 commit comments

Comments
 (0)