-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
refactor(iam): update service account samples to use GAPIC library #9288
Conversation
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. |
…t rewrote using a new library
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the snippets! PTAL at the comments and fix the lint issue.
iam/api-client/src/main/java/iam/snippets/CreateServiceAccount.java
Outdated
Show resolved
Hide resolved
iam/api-client/src/main/java/iam/snippets/RenameServiceAccount.java
Outdated
Show resolved
Hide resolved
iam/api-client/src/main/java/iam/snippets/DeleteServiceAccountKey.java
Outdated
Show resolved
Hide resolved
iam/api-client/src/main/java/iam/snippets/DeleteServiceAccountKey.java
Outdated
Show resolved
Hide resolved
…t rewrote using a new library
… into iam_service_account_java
I have a big-picture concern about this PR: Is someone also rewriting the other IAM code samples in this repo to use the GAPIC libraries? If so, that's great! This migration is long overdue. If not, I don't think we should merge this PR. It would be extremely confusing if some pages in the IAM docs told you to use the Google API Client Library for Java, and other pages told you to use the Cloud Client Library for Java. We need to update all of the samples for each language, not just some of them. |
Hey @hegemonic ! Thanks for your vigilance in this regard :) I'm happy to inform that it's a coordinated effort to move all Java and Python IAM samples that are still using the old libraries to the new ones. Please reach out to me if you're interested in more details. |
@m-strzelczyk Fantastic! Very glad to hear it 😀 Can you let me know when you're mostly done with the IAM samples, so that we can update the client libraries page as well? |
iam/api-client/src/main/java/iam/snippets/DeleteServiceAccountKey.java
Outdated
Show resolved
Hide resolved
iam/api-client/src/main/java/iam/snippets/DeleteServiceAccountKey.java
Outdated
Show resolved
Hide resolved
iam/api-client/src/main/java/iam/snippets/DeleteServiceAccount.java
Outdated
Show resolved
Hide resolved
iam/api-client/src/main/java/iam/snippets/RenameServiceAccount.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
- A couple nits. Kindly address them before merging.
- Fix lint issue
…oogleCloudPlatform#9288) * api platform updated version form v1beta to v1 * DeleteServiceAccountKey, DeleteServiceAccountKey, RenameServiceAccount rewrote using a new library * DeleteServiceAccountKey, DeleteServiceAccountKey, RenameServiceAccount rewrote using a new library * fixed pr review comments * fixed lint proposal * fixed comments and lint proposal
…oogleCloudPlatform#9288) * api platform updated version form v1beta to v1 * DeleteServiceAccountKey, DeleteServiceAccountKey, RenameServiceAccount rewrote using a new library * DeleteServiceAccountKey, DeleteServiceAccountKey, RenameServiceAccount rewrote using a new library * fixed pr review comments * fixed lint proposal * fixed comments and lint proposal
Description
Fixes
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
pom.xml
parent set to latestshared-configuration
mvn clean verify
requiredmvn -P lint checkstyle:check
requiredmvn -P lint clean compile pmd:cpd-check spotbugs:check
advisory only