Skip to content

Commit b533c9c

Browse files
authored
Add region tags around an informative sample. (googleapis#3705)
1 parent e8cff3f commit b533c9c

File tree

1 file changed

+2
-0
lines changed
  • google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets

1 file changed

+2
-0
lines changed

google-cloud-examples/src/main/java/com/google/cloud/examples/storage/snippets/CreateBlob.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@
3636
public class CreateBlob {
3737

3838
public static void main(String... args) {
39+
// [START storage_upload_file]
3940
Storage storage = StorageOptions.getDefaultInstance().getService();
4041
BlobId blobId = BlobId.of("bucket", "blob_name");
4142
BlobInfo blobInfo = BlobInfo.newBuilder(blobId).setContentType("text/plain").build();
4243
Blob blob = storage.create(blobInfo, "Hello, Cloud Storage!".getBytes(UTF_8));
44+
// [END storage_upload_file]
4345
}
4446
}

0 commit comments

Comments
 (0)