GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Refactor IAM-related classes to be ready to support more services by mziccard · Pull Request #1224 · googleapis/google-cloud-java

Conversation

@mziccard

@mziccard mziccard commented Sep 2, 2016

Copy link
Copy Markdown
Contributor

This PR does the following:

  • Remove resourcemanager's Policy class
  • Rename core's IamPolicy to Policy
  • Add Role class to hold string values for roles
  • Add Policy.Marshaller and Policy.DefaultMarshaller classes to convert Policy to/from gRPC protos
  • Add PolicyMarshaller to resourcemanager to convert Policy to/from resourcemanager's protos
  • Update READMEs, javadoc and examples

@aozarov @ajkannan do you mind having a look? Also, should we add an iam package?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mziccard
Refactor IAM-related classes to be ready to support more services
1431f0d
- Remove resourcemanager's Policy class
- Rename core's IamPolicy to Policy
- Add Role class to hold string values for roles
- Add Policy.Marshaller and Policy.DefaultMarshaller classes to convert Policy to/from gRPC protos
- Add PolicyMarshaller to resourcemanager to convert Policy to/from resourcemanager's protos
- Update READMEs, javadoc and examples
@mziccard mziccard added api: core api: cloudresourcemanager Issues related to the Resource Manager API. labels Sep 2, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 2, 2016
aozarov
aozarov reviewed Sep 2, 2016
View reviewed changes
Comment thread google-cloud-core/src/main/java/com/google/cloud/Policy.java Outdated
@@ -37,69 +44,127 @@
* a set of identities to a role, where the identities can be user accounts, Google groups, Google

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aozarov

aozarov commented Sep 2, 2016

Copy link
Copy Markdown
Contributor

Looks good (only skimmed the tests though). Few comments/suggestions.

I am not convinced that we should put the Policy under iam sub-package unless we expect to have more kinds of policies in the future but fine either way.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented Sep 2, 2016

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.004%) to 85.207% when pulling 1431f0d on mziccard:refactor-iam into 7309be5 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ajkannan

ajkannan commented Sep 2, 2016

Copy link
Copy Markdown

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mziccard
Add factory methods for primitive roles, other minor fixes
462910e
@mziccard
mziccard force-pushed the refactor-iam branch from b3c94f6 to 462910e Compare September 5, 2016 14:15
@coveralls

coveralls commented Sep 5, 2016

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 85.209% when pulling 462910e on mziccard:refactor-iam into 3ea98b1 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mziccard

mziccard commented Sep 5, 2016

Copy link
Copy Markdown
Contributor Author

Comments fixed, PTAL

I am not convinced that we should put the Policy under iam sub-package unless we expect to have more kinds of policies in the future but fine either way.

I was considering to put: Policy, Role and Identity under the iam package but I am not convinced either.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aozarov

aozarov commented Sep 6, 2016

Copy link
Copy Markdown
Contributor

LGTM (one comment was not addressed, your call).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mziccard

mziccard commented Sep 6, 2016

Copy link
Copy Markdown
Contributor Author

@aozarov Another thing we might want to discuss is wether to store etag as byte[] or String. gRPC stores it as a ByteString (immutable byte array), we currently store it as String, do you have any preferences?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aozarov

aozarov commented Sep 6, 2016

Copy link
Copy Markdown
Contributor

My preference would be that as long as we wrap (and not expose) the underlying protobuf we should return it as String (which is also what we did for the api-client based Services).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mziccard
Put IAM roles within quotes in javadoc
c046d6e
@coveralls

coveralls commented Sep 6, 2016

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 85.209% when pulling c046d6e on mziccard:refactor-iam into 3ea98b1 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aozarov
aozarov merged commit a493457 into googleapis:master Sep 6, 2016
github-actions Bot pushed a commit that referenced this pull request Aug 25, 2022
@renovate-bot
deps: update dependency com.google.cloud:google-cloud-core to v2.8.10 (…
731ed9f
…#1224)

[![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.9` -> `2.8.10` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/compatibility-slim/2.8.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.10/confidence-slim/2.8.9)](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-automl).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xNzQuMSIsInVwZGF0ZWRJblZlciI6IjMyLjE3NC4xIn0=-->
github-actions Bot pushed a commit that referenced this pull request Aug 25, 2022
@release-please
chore(main): release 2.3.6 (#1225)
b34b423
🤖 I have created a release *beep* *boop*
---


## [2.3.6](googleapis/java-automl@v2.3.5...v2.3.6) (2022-08-25)


### Dependencies

* update dependency com.google.cloud:google-cloud-core to v2.8.10 ([#1224](googleapis/java-automl#1224)) ([731ed9f](googleapis/java-automl@731ed9f))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This was referenced Aug 25, 2022
chore: release monorepo_script_output #8199
Closed
chore: release main #8222
Closed
@release-please release-please Bot mentioned this pull request Sep 23, 2022
chore: release main #8444
Closed
@release-please release-please Bot mentioned this pull request Oct 3, 2022
chore(new-main): release 0.1.0 #8510
Closed
chingor13 pushed a commit that referenced this pull request Jan 22, 2026
@mpeddada1
chore: update graalvm container images to 22.3.3 (#1224)
246d025
chingor13 pushed a commit that referenced this pull request Feb 24, 2026
@diegomarquezp @gcf-owl-bot
test: expose test-jar and mock classes in oauth2 (#1224)
12e8db6
* test: expose test-jar and mock classes in oauth2

* 🦉 Updates from OwlBot post-processor

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

* test: adapt appengine oauth2-http import

* test: correct appengine import in pom

* test: correct base serialization test export

* chore: expose MockTokenServerTransportFactory

* chore: infer version from parent in appengine pom dependencies

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
chingor13 pushed a commit that referenced this pull request Mar 12, 2026
@diegomarquezp @gcf-owl-bot
test: expose test-jar and mock classes in oauth2 (#1224)
22916dd
* test: expose test-jar and mock classes in oauth2

* 🦉 Updates from OwlBot post-processor

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

* test: adapt appengine oauth2-http import

* test: correct appengine import in pom

* test: correct base serialization test export

* chore: expose MockTokenServerTransportFactory

* chore: infer version from parent in appengine pom dependencies

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
@olavloite
feat: support untyped NULL value parameters (googleapis#1224)
863418b
* feat: support untyped NULL value parameters

* test: add tests for untyped null parameter values

* fix: update metadata test with the new table

* test: add expected table for PG

* refactor: move logic to ParameterStore
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
@release-please
chore(main): release 2.11.0 (googleapis#1256)
d625edc
🤖 I have created a release *beep* *boop*
---


## [2.11.0](https://togithub.com/googleapis/java-spanner-jdbc/compare/v2.10.0...v2.11.0) (2023-06-12)


### Features

* Support untyped NULL value parameters ([googleapis#1224](https://togithub.com/googleapis/java-spanner-jdbc/issues/1224)) ([863418b](https://togithub.com/googleapis/java-spanner-jdbc/commit/863418b77a0107d78c73910c08b9edb45c94dd98))


### Dependencies

* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.11.0 ([googleapis#1254](https://togithub.com/googleapis/java-spanner-jdbc/issues/1254)) ([1d15d79](https://togithub.com/googleapis/java-spanner-jdbc/commit/1d15d79679b667be7faed9122ba41336675a7a8a))
* Update dependency com.google.cloud:google-cloud-spanner-bom to v6.42.3 ([googleapis#1248](https://togithub.com/googleapis/java-spanner-jdbc/issues/1248)) ([323cf62](https://togithub.com/googleapis/java-spanner-jdbc/commit/323cf62899b05f20e2ca169ee5aa111b88505015))
* Update dependency com.google.cloud:google-cloud-spanner-bom to v6.43.0 ([googleapis#1255](https://togithub.com/googleapis/java-spanner-jdbc/issues/1255)) ([0468d7c](https://togithub.com/googleapis/java-spanner-jdbc/commit/0468d7cedfd27aecd3e7295519a42e1ca7cae032))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
suztomo pushed a commit that referenced this pull request Mar 30, 2026
@release-please
chore(main): release 0.127.0 (#1224)
c48670b
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
lqiu96 pushed a commit that referenced this pull request Apr 1, 2026
@release-please
chore(main): release 0.127.0 (#1224)
a65dd1e
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
@release-please
chore(main): release 1.120.9-SNAPSHOT (#1224)
2d32b99
🤖 I have created a release *beep* *boop*
---


### Updating meta-information for bleeding-edge SNAPSHOT release.

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
meltsufin pushed a commit that referenced this pull request May 1, 2026
@release-please
chore(main): release 1.120.9-SNAPSHOT (#1224)
d2db662
🤖 I have created a release *beep* *boop*
---


### Updating meta-information for bleeding-edge SNAPSHOT release.

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
benjaminp pushed a commit to benjaminp/google-cloud-java that referenced this pull request Jul 13, 2026
@release-please
chore(main): release 2.6.3-SNAPSHOT (googleapis#1224)
c56ab5d
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: cloudresourcemanager Issues related to the Resource Manager API. api: core cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@mziccard @aozarov @coveralls @ajkannan @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.