-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
/cc @lesv |
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Where do you expect this to be used? If it's our formal docs, you are missing 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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
These examples don't go in the formal docs (AFAIK
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.
This comment was marked as spam.
Sorry, something went wrong.
I think you'll find that they will start being more in formal docs quickly. |
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. |
…#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=-->
🤖 I have created a release *beep* *boop* --- ## [2.2.11](https://togithub.com/googleapis/java-video-intelligence/compare/v2.2.10...v2.2.11) (2022-10-02) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.8.19 ([#1033](https://togithub.com/googleapis/java-video-intelligence/issues/1033)) ([824fc46](https://togithub.com/googleapis/java-video-intelligence/commit/824fc46f142727ae2bdbf4c7c819e5b809b3daa8)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [4.9.0](https://togithub.com/googleapis/java-dialogflow/compare/v4.8.7...v4.9.0) (2022-10-05) ### Features * Add Agent Assist Summarization API (https://cloud.google.com/agent-assist/docs/summarization) ([#1026](https://togithub.com/googleapis/java-dialogflow/issues/1026)) ([adbb984](https://togithub.com/googleapis/java-dialogflow/commit/adbb9848a476b55765c03972321203b9e7c92d84)) ### Dependencies * Update dependency com.google.cloud:google-cloud-core to v2.8.18 ([#1027](https://togithub.com/googleapis/java-dialogflow/issues/1027)) ([d3f4be6](https://togithub.com/googleapis/java-dialogflow/commit/d3f4be67ff462faadffe1a8acc550e75f0261019)) * Update dependency com.google.cloud:google-cloud-core to v2.8.19 ([#1029](https://togithub.com/googleapis/java-dialogflow/issues/1029)) ([b3f8f43](https://togithub.com/googleapis/java-dialogflow/commit/b3f8f43d46763906006958836da6f50637285b17)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#1031](https://togithub.com/googleapis/java-dialogflow/issues/1031)) ([0db0fc8](https://togithub.com/googleapis/java-dialogflow/commit/0db0fc8f9f8dd9a8cb47dac78ebf9878e7f5afcd)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
…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>
….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#​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 ([#​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 ([#​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 ([#​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-->
This PR adds examples to
StorageExample
that show how to add different types of ACLs to existing blobs/buckets. This fixes #1012.