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() {
178178 * @see <a href="https://cloud.google.com/storage/docs/json_api/v1/objects/get">Objects: get</a>
179179 */
180180 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+ */
181187 @ Override
182188 public void run (Storage storage , BlobId ... blobIds ) {
183189 if (blobIds .length == 1 ) {
@@ -565,6 +571,12 @@ public String params() {
565571
566572 private abstract static class AclAction extends StorageAction <Tuple <BlobId , Acl >> {
567573
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+ */
568580 @ Override
569581 public void run (Storage storage , Tuple <BlobId , Acl > params ) {
570582 BlobId blobId = params .x ();
You can’t perform that action at this time.
0 commit comments