Skip to content

fix: make parent_id fields required compute move and insert methods#686

Merged
vam-google merged 1 commit intogoogleapis:masterfrom
vam-google:master
Nov 24, 2021
Merged

fix: make parent_id fields required compute move and insert methods#686
vam-google merged 1 commit intogoogleapis:masterfrom
vam-google:master

Conversation

@vam-google
Copy link
Copy Markdown
Contributor

Note that the order in parameterOrder property in Json file matters and must remain consistent. If we want to flip the order firewallPolicy and parentId this is the last chance to do so.

@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 24, 2021
@mistaken-pull-closer
Copy link
Copy Markdown

Thanks for your contribution! Unfortunately, we don't use GitHub pull
requests to manage code contributions to this repository. Instead, please
see CONTRIBUTING.md which provides full
instructions on how to get involved.

Copy link
Copy Markdown
Contributor

@vchudnov-g vchudnov-g left a comment

Choose a reason for hiding this comment

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

A couple of questions, but otherwise LGTM. Thanks for doing this!

post: "/compute/v1/locations/global/firewallPolicies/{firewall_policy}/move"
};
option (google.api.method_signature) = "firewall_policy";
option (google.api.method_signature) = "firewall_policy,parent_id";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we want this signature to be consistent with the previous one, so that aprent_id is always at the front (or always at the back)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is already consistent. For the other one the trailing parameter is body parameter. Body parameter is always the last one. This method des not have body, that is why it does not have a parameter after parent_id.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ok, cool

"move": {
"parameterOrder": [
"firewallPolicy"
"firewallPolicy",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should ping GCE as to the desired parameter order. What do other RPCs do with parentId?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it seems like we only have parentID for firewallpolicies and global operations. It seems to me it would make sense to have parentId be the first parameter, if it is required?

@vam-google vam-google merged commit 02df998 into googleapis:master Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants