Skip to content
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

feat: add iam and location mixin rest handlers #1300

Merged
merged 2 commits into from
Apr 19, 2023

Conversation

noahdietz
Copy link
Collaborator

@noahdietz noahdietz commented Apr 18, 2023

Adds generation of other mixin services to genrest so that they can be routed from REGAPC requests to the gRPC handlers.

Tested against Go GAPIC generator integration tests for mixins.

Fixes #1299

@noahdietz noahdietz marked this pull request as ready for review April 19, 2023 00:16
@noahdietz noahdietz requested a review from a team as a code owner April 19, 2023 00:16
mixinDescriptors = map[string][]*descriptor.FileDescriptorProto{
"google.longrunning.Operations": {
protodesc.ToFileDescriptorProto(longrunning.File_google_longrunning_operations_proto),
protodesc.ToFileDescriptorProto(longrunningpb.File_google_longrunning_operations_proto),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am curious about the change to this import above and why location is different. (No particular concerns, I just want to learn.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In our Go proto world, we moved all generated code that has a gapic to a submodfule of https://pkg.go.dev/cloud.google.com/go, including the protobuf/grpc generated stubs so they can be versioned as one module, instead of in the separate google.golang.org/genproto (which has no semantic versioning). Locations doesn't have a GAPIC (but IAM and LRO do for "reasons"), so Locations remains in google.golang.org/genproto, while IAM was to cloud.google.com/go/iam/apiv1/iampb, and same for LRO.

@noahdietz noahdietz merged commit 6adab7b into googleapis:main Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HttpJson Mixins RPCs (Locations & IAM) Not Supported
2 participants