-
Notifications
You must be signed in to change notification settings - Fork 313
Support direct controller for ReCAPTCHAEnterpriseFirewallPolicy #4172
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
Support direct controller for ReCAPTCHAEnterpriseFirewallPolicy #4172
Conversation
f017ef8 to
be1fef0
Compare
| log.V(2).Info("updating FirewallPolicy", "name", a.id) | ||
| mapCtx := &direct.MapContext{} | ||
|
|
||
| desiredPb := ReCAPTCHAEnterpriseFirewallPolicySpec_ToProto(mapCtx, &a.desired.Spec) |
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.
Can you double check if user can specify name in the Create call. If so, this logic need to be updated to support custom id
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.
The resource has service-generated ID so the name shouldn't be set during Create. Even if it is set, the value won't be respected by the API.
yuwenma
left a comment
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.
/approve
One question to confirm, otherwise looks good
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: yuwenma The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
5699bd0 to
841af85
Compare
|
/lgtm |
e5c9d3f
into
GoogleCloudPlatform:master
Change description
ReCAPTCHAEnterpriseFirewallPolicy is supported based on the GRPC client.
Tests you have done
make ready-prto ensure this PR is ready for review.These is no commit for test result against mock API because there is no diff to commit.