We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ACLs are not even mentioned in the examples. Example needs to show both how to set a specific ACL and how to set a PredefinedAcl.
When I use this this code, the console Cloud Storage viewer does not show items as shared publicly:
storage.create(coverBlob, coverImage, BlobTargetOption.predefinedAcl(PredefinedAcl.PUBLIC_READ));
So it's not clear what this code is supposed to do.
Am I right to assume that ACL should be set on BlobInfo like this?
.acl(Arrays.asList(Acl.of(User.ofAllUsers(), Role.READER)))
If this is correct, is it enough, or should be used together with BlobTargetOption.predefinedAcl(PredefinedAcl.PUBLIC_READ)?
BlobTargetOption.predefinedAcl(PredefinedAcl.PUBLIC_READ)
ACLs are not even mentioned in the examples. Example needs to show both how to set a specific ACL and how to set a PredefinedAcl.
When I use this this code, the console Cloud Storage viewer does not show items as shared publicly:
So it's not clear what this code is supposed to do.
Am I right to assume that ACL should be set on BlobInfo like this?
If this is correct, is it enough, or should be used together with
BlobTargetOption.predefinedAcl(PredefinedAcl.PUBLIC_READ)?