GoogleCloudPlatform / java-docs-samples

Java and Kotlin Code samples used on cloud.google.com
https://cloud.google.com/java
Apache License 2.0
1.76k stars 2.83k forks source link

refactor(iam): update IAM policy samples to use GAPIC library #9290

Closed ssvir closed 5 months ago

ssvir commented 6 months ago

… rewrote using a new library

Description

Fixes

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

google-cla[bot] commented 6 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sita04 commented 6 months ago

@ssvir PTAL at the lint errors and sign the CLA here: https://cla.developers.google.com/

snippet-bot[bot] commented 6 months ago

Here is the summary of changes.

You are about to add 4 region tags. - [iam/api-client/src/main/java/iam/snippets/GetProjectPolicy.java:18](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/26c0d6ff4a338070a6c01d38e6f63930c15630c2/iam/api-client/src/main/java/iam/snippets/GetProjectPolicy.java#L18), tag `iam_get_policy` - [iam/api-client/src/main/java/iam/snippets/GetServiceAccountPolicy.java:18](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/26c0d6ff4a338070a6c01d38e6f63930c15630c2/iam/api-client/src/main/java/iam/snippets/GetServiceAccountPolicy.java#L18), tag `iam_service_account_get_policy` - [iam/api-client/src/main/java/iam/snippets/SetProjectPolicy.java:18](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/26c0d6ff4a338070a6c01d38e6f63930c15630c2/iam/api-client/src/main/java/iam/snippets/SetProjectPolicy.java#L18), tag `iam_set_policy` - [iam/api-client/src/main/java/iam/snippets/SetServiceAccountPolicy.java:18](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/26c0d6ff4a338070a6c01d38e6f63930c15630c2/iam/api-client/src/main/java/iam/snippets/SetServiceAccountPolicy.java#L18), tag `iam_service_account_set_policy`
You are about to delete 2 region tags. - [iam/api-client/src/main/java/iam/snippets/GetPolicy.java:18](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/a3202ac8b0a4a1ab3e11c447bb6eea687111aa76/iam/api-client/src/main/java/iam/snippets/GetPolicy.java#L18), tag `iam_get_policy` - [iam/api-client/src/main/java/iam/snippets/SetPolicy.java:18](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/a3202ac8b0a4a1ab3e11c447bb6eea687111aa76/iam/api-client/src/main/java/iam/snippets/SetPolicy.java#L18), tag `iam_set_policy`

This comment is generated by snippet-bot. If you find problems with this result, please file an issue at: https://github.com/googleapis/repo-automation-bots/issues. To update this comment, add snippet-bot:force-run label or use the checkbox below: