Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend StorageExample to show how to add ACLs to blobs and buckets #1033

Merged
merged 2 commits into from
Jun 8, 2016

Conversation

mziccard
Copy link
Contributor

This PR adds examples to StorageExample that show how to add different types of ACLs to existing blobs/buckets. This fixes #1012.

@mziccard mziccard added docs api: storage Issues related to the Cloud Storage API. labels May 31, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 31, 2016
@mziccard
Copy link
Contributor Author

/cc @lesv

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.007%) to 86.028% when pulling 6e859c9 on mziccard:storage-example into 11f4573 on GoogleCloudPlatform:master.

private abstract static class AclAction extends StorageAction<Tuple<BlobId, Acl>> {

@Override
public void run(Storage storage, Tuple<BlobId, Acl> params) {

This comment was marked as spam.

This comment was marked as spam.

@lesv
Copy link
Contributor

lesv commented Jun 1, 2016

Where do you expect this to be used?

If it's our formal docs, you are missing // [START sectionName] and // [END sectionName] tags.

Putting them in threads doesn't seem super clear, but that probably started before your time.

private static class AddGroupAclAction extends AclAction {

@Override
Tuple<BlobId, Acl> parse(String... args) {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@mziccard
Copy link
Contributor Author

mziccard commented Jun 1, 2016

Where do you expect this to be used?
If it's our formal docs, you are missing // [START sectionName] and // [END sectionName] tags.

These examples don't go in the formal docs (AFAIK gcloud-java should not/will not go in the formal docs until v1.0.0 is out). We just reference them in our READMEs (see here for example).

Putting them in threads doesn't seem super clear, but that probably started before your time.

What do you mean with this?

}
String domain = args[nextArg++];
Acl.Role role = Acl.Role.valueOf(args[nextArg]);
return Tuple.of(blob, Acl.of(new Acl.Domain(domain), role));

This comment was marked as spam.

@lesv
Copy link
Contributor

lesv commented Jun 7, 2016

I think you'll find that they will start being more in formal docs quickly.

@lesv
Copy link
Contributor

lesv commented Jun 7, 2016

I think there are a couple of AI's you agreed to above, do them, and it's ok to merge. I'll figure out what I want as next steps and write an issue for it.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 86.065% when pulling 44cb081 on mziccard:storage-example into 11f4573 on GoogleCloudPlatform:master.

@mziccard mziccard merged commit f176d81 into googleapis:master Jun 8, 2016
github-actions bot pushed a commit that referenced this pull request Oct 4, 2022
…#1033)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.18` -> `2.8.19` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.19/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.19/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.19/compatibility-slim/2.8.18)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.19/confidence-slim/2.8.18)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-video-intelligence).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMDguMiIsInVwZGF0ZWRJblZlciI6IjMyLjIwOC4yIn0=-->
github-actions bot pushed a commit that referenced this pull request Oct 4, 2022
github-actions bot pushed a commit that referenced this pull request Oct 5, 2022
github-actions bot pushed a commit that referenced this pull request Nov 9, 2022
…o v3.1.3 (#1033)

* chore(deps): update dependency com.google.cloud:google-cloud-vision to v3.1.3

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
suztomo pushed a commit that referenced this pull request Feb 1, 2023
….6.13 (#1033)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.api.grpc:proto-google-iam-v1](https://togithub.com/googleapis/java-iam/proto-google-iam-v1) ([source](https://togithub.com/googleapis/java-iam)) | `1.6.12` -> `1.6.13` | [![age](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:proto-google-iam-v1/1.6.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:proto-google-iam-v1/1.6.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:proto-google-iam-v1/1.6.13/compatibility-slim/1.6.12)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.api.grpc:proto-google-iam-v1/1.6.13/confidence-slim/1.6.12)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/java-iam</summary>

### [`v1.6.13`](https://togithub.com/googleapis/java-iam/blob/HEAD/CHANGELOG.md#&#8203;1613-httpsgithubcomgoogleapisjava-iamcomparev1612v1613-2022-11-17)

[Compare Source](https://togithub.com/googleapis/java-iam/compare/v1.6.12...v1.6.13)

##### Dependencies

-   Update dependency com.google.cloud:google-iam-policy to v1.6.12 ([#&#8203;526](https://togithub.com/googleapis/java-iam/issues/526)) ([1379eee](https://togithub.com/googleapis/java-iam/commit/1379eee913abdf9fbf047a869331506df3fce78a))
-   Update dependency io.grpc:grpc-protobuf to v1.51.0 ([#&#8203;527](https://togithub.com/googleapis/java-iam/issues/527)) ([3d93f1d](https://togithub.com/googleapis/java-iam/commit/3d93f1d50e814122b39400ff385226c5b47f67f4))
-   Update dependency io.grpc:grpc-stub to v1.51.0 ([#&#8203;528](https://togithub.com/googleapis/java-iam/issues/528)) ([7e42c24](https://togithub.com/googleapis/java-iam/commit/7e42c24069fe81ec2430b3a03777a1aad8275b66))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-core).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4yNi40IiwidXBkYXRlZEluVmVyIjoiMzQuMjYuNCJ9-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Storage example should show how to set ACL
4 participants