From faeaf86327a32ccf389d63f6863bfe3942331a3d Mon Sep 17 00:00:00 2001 From: Frank Natividad Date: Thu, 20 Sep 2018 10:57:23 -0700 Subject: [PATCH] Add region tags around an informative sample. --- .../com/google/cloud/examples/storage/snippets/CreateBlob.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/CreateBlob.java b/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/CreateBlob.java index cb701cee8c55..cc54cad38586 100644 --- a/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/CreateBlob.java +++ b/google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/CreateBlob.java @@ -36,9 +36,11 @@ public class CreateBlob { public static void main(String... args) { + // [START storage_upload_file] Storage storage = StorageOptions.getDefaultInstance().getService(); BlobId blobId = BlobId.of("bucket", "blob_name"); BlobInfo blobInfo = BlobInfo.newBuilder(blobId).setContentType("text/plain").build(); Blob blob = storage.create(blobInfo, "Hello, Cloud Storage!".getBytes(UTF_8)); + // [END storage_upload_file] } }