From 535b0a17db8e3dd4249c311b847200b991798c19 Mon Sep 17 00:00:00 2001 From: aozarov Date: Mon, 11 May 2015 16:49:12 -0700 Subject: [PATCH] add another shortcut for ComposeRequest --- src/main/java/com/google/gcloud/storage/StorageService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/google/gcloud/storage/StorageService.java b/src/main/java/com/google/gcloud/storage/StorageService.java index 4284f1517f10..62c62ad8baaa 100644 --- a/src/main/java/com/google/gcloud/storage/StorageService.java +++ b/src/main/java/com/google/gcloud/storage/StorageService.java @@ -306,6 +306,10 @@ public static ComposeRequest of(Iterable sources, Blob target) { return builder().target(target).addSource(sources).build(); } + public static ComposeRequest of(String bucket, Iterable sources, String target) { + return of(sources, Blob.of(bucket, target)); + } + public static Builder builder() { return new Builder(); }