TPT-3388: Separated GET and POST/PUT options structs where needed#969
Merged
ezilber-akamai merged 11 commits intoMay 19, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR separates several request option types from response types for interface and firewall rule APIs in linodego.
Changes:
- Adds create/update-specific option structs for Linode interfaces and instance config interface IPv4/default route fields.
- Adds
FirewallRuleSetUpdateOptionsand updates firewall rules update callers/tests. - Updates unit and integration tests to use the new option types.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| interfaces.go | Adds create/update-specific nested option structs for Linode interfaces. |
| instance_config_interfaces.go | Adds create/update-specific VPC IPv4 option structs and conversion usage. |
| firewall_rules.go | Adds firewall rules update options and changes update signature. |
| test/unit/interface_test.go | Updates interface update tests to use new default route update options. |
| test/unit/instance_config_interfaces_test.go | Updates instance config interface tests to use new IPv4 option types. |
| test/unit/firewall_rules_test.go | Updates firewall rules update test to use the new update options type. |
| test/integration/nodebalancer_configs_test.go | Updates VPC interface creation setup to use new IPv4 create options. |
| test/integration/instance_config_test.go | Updates integration setup/update flows to use new IPv4 create/update options. |
| test/integration/firewall_rules_test.go | Updates firewall rules integration update test to use new update options. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Version int `json:"version,omitzero"` | ||
| Fingerprint string `json:"fingerprint,omitzero"` | ||
| } | ||
|
|
mawilk90
reviewed
May 18, 2026
mawilk90
reviewed
May 18, 2026
FirewallRuleSetRule options; test updates; fixture refreshed
zliang-akamai
approved these changes
May 19, 2026
lgarber-akamai
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Created separate structs where they were previously being reused for both GET and POST/PUT endpoint methods.
Note: I was only able to find one instance of this across the repo but its possible I missed something.
✔️ How to Test
make test-unitmake test-int