|
59 | 59 |
|
60 | 60 | /** |
61 | 61 | * An example of using the Google Cloud Storage. |
62 | | - * <p> |
63 | | - * This example demonstrates a simple/typical storage usage. |
64 | | - * <p> |
65 | | - * Steps needed for running the example: |
| 62 | + * |
| 63 | + * <p>This example demonstrates a simple/typical storage usage. |
| 64 | + * |
| 65 | + * <p>Steps needed for running the example: |
66 | 66 | * <ol> |
67 | 67 | * <li>login using gcloud SDK - {@code gcloud auth login}.</li> |
68 | 68 | * <li>compile using maven - {@code mvn compile}</li> |
69 | 69 | * <li>run using maven - |
70 | 70 | * {@code mvn exec:java -Dexec.mainClass="com.google.gcloud.examples.StorageExample" |
71 | | - * -Dexec.args="[<project_id>] list [<bucket>]| info [<bucket> [<file>]]| |
72 | | - * download <bucket> <path> [local_file]| upload <local_file> <bucket> [<path>]| |
73 | | - * delete <bucket> <path>+| cp <from_bucket> <from_path> <to_bucket> <to_path>| |
74 | | - * compose <bucket> <from_path>+ <to_path>| update_metadata <bucket> <file> [key=value]*| |
| 71 | + * -Dexec.args="[<project_id>] list [<bucket>] | info [<bucket> [<file>]] | |
| 72 | + * download <bucket> <path> [local_file] | upload <local_file> <bucket> [<path>] | |
| 73 | + * delete <bucket> <path>+ | cp <from_bucket> <from_path> <to_bucket> <to_path> | |
| 74 | + * compose <bucket> <from_path>+ <to_path> | update_metadata <bucket> <file> [key=value]* | |
75 | 75 | * sign_url <service_account_private_key_file> <service_account_email> <bucket> <path>"} |
76 | 76 | * </li> |
77 | 77 | * </ol> |
78 | 78 | * |
79 | | - * The first parameter is an optional project_id (logged-in project will be used if not supplied). |
80 | | - * Second parameter is a Storage operation (list, delete, compose,...) to demonstrate the its |
81 | | - * usage. Any other arguments are specific to the operation. |
82 | | - * See each action's run method for the specific Storage interaction. |
| 79 | + * <p>The first parameter is an optional {@code project_id} (logged-in project will be used if not |
| 80 | + * supplied). Second parameter is a Storage operation (list, delete, compose,...) and can be used to |
| 81 | + * demonstrate its usage. Any other arguments are specific to the operation. See each action's run |
| 82 | + * method for the specific Storage interaction. |
83 | 83 | */ |
84 | 84 | public class StorageExample { |
85 | 85 |
|
@@ -523,7 +523,7 @@ public String params() { |
523 | 523 | ACTIONS.put("sign_url", new SignUrlAction()); |
524 | 524 | } |
525 | 525 |
|
526 | | - public static void printUsage() { |
| 526 | + private static void printUsage() { |
527 | 527 | StringBuilder actionAndParams = new StringBuilder(); |
528 | 528 | for (Map.Entry<String, StorageAction> entry : ACTIONS.entrySet()) { |
529 | 529 | actionAndParams.append("\n\t").append(entry.getKey()); |
|
0 commit comments