Skip to content

Fix the servicecapabilitylist type for create VPC & Network Offerings#158

Open
Pearl1594 wants to merge 2 commits into
mainfrom
fix-vpc-offering-service-capability-list
Open

Fix the servicecapabilitylist type for create VPC & Network Offerings#158
Pearl1594 wants to merge 2 commits into
mainfrom
fix-vpc-offering-service-capability-list

Conversation

@Pearl1594

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

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.

Pull request overview

This PR corrects how servicecapabilitylist is represented and serialized for the CloudStack createVPCOffering and createNetworkOffering APIs, aligning the generated Go client with the API’s expected indexed object format.

Changes:

  • Update code generation overrides so servicecapabilitylist is treated as a list of maps for createVPCOffering and createNetworkOffering.
  • Adjust request query serialization for servicecapabilitylist to emit servicecapabilitylist[i].<field>=<value> pairs.
  • Update the generated params setters/getters to use []map[string]string and add AddServicecapabilitylist helpers.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
generate/generate.go Adds generation overrides so servicecapabilitylist is generated/handled as a list-of-maps for the two affected commands.
cloudstack/VPCService.go Updates CreateVPCOfferingParams type + URL encoding for servicecapabilitylist to indexed list form and adds an Add... helper.
cloudstack/NetworkOfferingService.go Updates CreateNetworkOfferingParams type + URL encoding for servicecapabilitylist to indexed list form and adds an Add... helper.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants