File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
gcloud-java-examples/src/main/java/com/google/cloud/examples/storage Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,12 @@ public String params() {
178
178
* @see <a href="https://cloud.google.com/storage/docs/json_api/v1/objects/get">Objects: get</a>
179
179
*/
180
180
private static class InfoAction extends BlobsAction {
181
+
182
+ /**
183
+ * Gets information for the provided blobs, using the {@code storage} service. If
184
+ * {@code blobIds} contains only one blob identity and {@code blobIds[0].name()} is empty, this
185
+ * method gets information for the bucket identified by {@code blobIds[0].bucket()}.
186
+ */
181
187
@ Override
182
188
public void run (Storage storage , BlobId ... blobIds ) {
183
189
if (blobIds .length == 1 ) {
@@ -565,6 +571,12 @@ public String params() {
565
571
566
572
private abstract static class AclAction extends StorageAction <Tuple <BlobId , Acl >> {
567
573
574
+ /**
575
+ * Sets the ACL according to the provided {@code params}, using the {@code storage} service. If
576
+ * {@code params.x()} returns a complete blob identity, the {@code params.y()} ACL is added to
577
+ * the blob. If {@code params.x().name()} is empty, the {@code params.y()} ACL is added to the
578
+ * bucket identified by {@code params.x().bucket()}.
579
+ */
568
580
@ Override
569
581
public void run (Storage storage , Tuple <BlobId , Acl > params ) {
570
582
BlobId blobId = params .x ();
You can’t perform that action at this time.
0 commit comments