You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This client supports the following Google Cloud Platform services at a [Beta](#versioning) quality level:
@@ -352,63 +352,8 @@ if (entity != null) {
352
352
.build();
353
353
datastore.update(entity);
354
354
}
355
-
```
356
-
357
-
Google Cloud Storage (GA)
358
-
----------------------
359
-
360
-
- [API Documentation][storage-api]
361
-
- [Official Documentation][cloud-storage-docs]
362
-
363
-
*Follow the [activation instructions][cloud-storage-activation] to use the Google Cloud Storage API with your project.*
364
-
365
-
#### Preview
366
-
367
-
Here are two code snippets showing simple usage examples from within Compute/App Engine. Note that you must [supply credentials](#authentication) and a project ID if running this snippet elsewhere.
368
-
369
-
The first snippet shows how to create a Storage blob. Complete source code can be found at
Then add the following code to create a bucket and upload a simple blob.
92
92
93
-
*Important: Bucket names have to be globally unique. If you choose a bucket name that already exists, you'll get a helpful error message telling you to choose another name. In the code below, replace "my_unique_bucket" with a unique bucket name. See more about naming rules [here](https://cloud.google.com/storage/docs/bucket-naming?hl=en#requirements).*
93
+
*Important: Bucket names have to be globally unique (among all users of Cloud Storage). If you choose a bucket name that already exists, you'll get a helpful error message telling you to choose another name. In the code below, replace "my_unique_bucket" with a unique bucket name. See more about naming rules [here](https://cloud.google.com/storage/docs/bucket-naming?hl=en#requirements).*
At this point, you will be able to see your newly created bucket and blob on the Google Developers Console.
107
110
108
111
#### Retrieving data
109
112
Now that we have content uploaded to the server, we can see how to read data from the server. Add the following line to your program to get back the blob we uploaded.
Suppose that you've added more buckets and blobs, and now you want to see the names of your buckets and the contents of each one. Add the following code to list all your buckets and all the blobs inside each bucket.
117
143
@@ -125,15 +151,15 @@ for (Bucket bucket : storage.list().iterateAll()) {
0 commit comments