-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add alternative to reroute_to_grpc_interface
#536
Comments
I'm fine with either option, whatever makes the future maintenance easier. Or, if one option is significantly faster to implement than the other, let's go with it and possibly make a switch to the other option later. Background: Having the IAM methods in PubSub client is a prerequisite for the upcoming major release. We currently put all other PRs on hold to not interfere with these changes, thus we would like to complete the major release in the near future, if possible. |
My kneejerk reaction is to publish google/iam/v1*. Do we have a good estimate on how much initial/recurring effort that would involve? |
I did some investigation to figure out why this is only used for two APIs. If we publish a separate client, users have to instantiate a separate IAM client for only Pub/Sub and KMS, which doesn't seem like a good experience. I don't think it will be too terrible to do this in the generator (the 3 methods don't seem to change from API to API). I'm going to take a stab at a PR, but if it starts to get out of hand we can do something more similar to what Node did. Threads from other microgenerators: |
Spitballing: would copying the requisite messages/rpcs to a separate proto file and then importing that in KMS/PubSub/et al. be sufficient? |
@software-dov The main issue seems to be that the IAM calls need to go to |
Pub/Sub and KMS use the
reroute_to_grpc_interface
option in the GAPIC yaml to add additional IAM methods with the monolithic generator. This adds the methodsget_iam_policy()
,set_iam_policy()
,test_iam_permission()
. There is no equivalent in the microgenerator.IAM v1 is a full-fledged API and can be generated with the existing protos/configs here.
Options:
google-api-core
, some new package.Thoughts?
Here is what NodeJS did for reference: googleapis/gax-nodejs#762 and googleapis/gapic-generator-typescript#375
CC @plamut @software-dov
The text was updated successfully, but these errors were encountered: