-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Initial generation of Phishing Protection. #7801
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
Initial generation of Phishing Protection. #7801
Conversation
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.
Would we be better off fixing the upstream source of the version-mangled file and class names?
Unfortunately it's not currently possible to rename the client upstream. Ruby also renamed the client using synth.
|
phishingprotection/synth.py
Outdated
unit_test = Path("tests/unit/gapic/v1beta1/test_phishing_protection_service_v1_beta1_client_v1beta1.py") | ||
|
||
files = [client, client_config, transport, unit_test] | ||
for f in files: |
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.
I'm surprised flake8
isn't complaining about one-character variable name here. Even if we do change it to f
, we need to change how it is used inside the loop, too.
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.
Eek, sorry about that. I don't think synth.py
is currently checked by flake or black.
The clients were generated with the version name in the name of the clients, so the synth script does a lot of renaming.