Skip to content

Commit f409c22

Browse files
committed
add apiary references to all example actions
1 parent 28db1f7 commit f409c22

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/main/java/com/google/gcloud/examples/StorageExample.java

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ public String params() {
121121
* This class demonstrates how to retrieve Bucket or Blob metadata.
122122
* If more than one blob is supplied a Batch operation would be used to get all blobs metadata
123123
* in a single RPC.
124+
*
125+
* @see <a href="https://cloud.google.com/storage/docs/json_api/v1/objects/get">Objects: get</a>
124126
*/
125127
private static class InfoAction extends BlobsAction {
126128
@Override
@@ -166,6 +168,8 @@ public String params() {
166168
* This class demonstrates how to delete a blob.
167169
* If more than one blob is supplied a Batch operation would be used to delete all requested
168170
* blobs in a single RPC.
171+
*
172+
* @see <a href="https://cloud.google.com/storage/docs/json_api/v1/objects/delete">Objects: delete</a>
169173
*/
170174
private static class DeleteAction extends BlobsAction {
171175
@Override
@@ -196,6 +200,8 @@ public void run(StorageService storage, Blob... blobs) {
196200

197201
/**
198202
* This class demonstrates how to list buckets or a bucket's blobs.
203+
*
204+
* @see <a href="https://cloud.google.com/storage/docs/json_api/v1/objects/list">Objects: list</a>
199205
*/
200206
private static class ListAction extends StorageAction<String> {
201207

@@ -233,6 +239,8 @@ public String params() {
233239

234240
/**
235241
* This class demonstrates how to create a new Blob or to update its content.
242+
*
243+
* @see <a href="https://cloud.google.com/storage/docs/json_api/v1/objects/insert">Objects: insert</a>
236244
*/
237245
private static class UploadAction extends StorageAction<Tuple<Path, Blob>> {
238246
@Override
@@ -286,6 +294,8 @@ public String params() {
286294
* This class demonstrates how read a blob's content.
287295
* The example will dump the content to a local file if one was given or write
288296
* it to stdout otherwise.
297+
*
298+
* @see <a href="https://cloud.google.com/storage/docs/json_api/v1/objects/get">Objects: get</a>
289299
*/
290300
private static class DownloadAction extends StorageAction<Tuple<Blob, Path>> {
291301

@@ -354,7 +364,7 @@ public String params() {
354364
/**
355365
* This class demonstrates how to use the copy command.
356366
*
357-
* @see <a href="https://cloud.google.com/storage/docs/json_api/v1/objects/copy">Object copy</a>
367+
* @see <a href="https://cloud.google.com/storage/docs/json_api/v1/objects/copy">Objects: copy</a>
358368
*/
359369
private static class CopyAction extends StorageAction<CopyRequest> {
360370
@Override
@@ -380,7 +390,7 @@ public String params() {
380390
/**
381391
* This class demonstrates how to use the compose command.
382392
*
383-
* @see <a href="https://cloud.google.com/storage/docs/json_api/v1/objects/compose">Object compose</a>
393+
* @see <a href="https://cloud.google.com/storage/docs/json_api/v1/objects/compose">Objects: compose</a>
384394
*/
385395
private static class ComposeAction extends StorageAction<ComposeRequest> {
386396
@Override
@@ -411,7 +421,7 @@ public String params() {
411421
/**
412422
* This class demonstrates how to update a blob's metadata.
413423
*
414-
* @see <a href="https://cloud.google.com/storage/docs/json_api/v1/objects/compose">Object compose</a>
424+
* @see <a href="https://cloud.google.com/storage/docs/json_api/v1/objects/update">Objects: update</a>
415425
*/
416426
private static class UpdateMetadata extends StorageAction<Tuple<Blob, Map<String, String>>> {
417427

0 commit comments

Comments
 (0)