Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit bafc39c

Browse files
Temporarily hack hypervisor delete SDK code
There is currently a bug where the service needs the remove hypervisor cluster POST request to use snake case for the id field, eg: ``` {"hypervisor_cluster_ids":["50af582d-3b98-570f-b113-650da9d0d633"]} ``` This should not be the case since the OpenAPI spec uses camelCase. For now switch to use snake_case. Once the service is updated to conform to the OpenAPI specification we will revert this change.
1 parent 47810f4 commit bafc39c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/sdk/systems/privatecloudbusiness/v1beta1_systems_item_remove_hypervisor_clusters_post_request_body.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (m *V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody) GetHyperviso
5858
// Serialize serializes information the current object
5959
func (m *V1beta1SystemsItemRemoveHypervisorClustersPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
6060
if m.GetHypervisorClusterIds() != nil {
61-
err := writer.WriteCollectionOfStringValues("hypervisorClusterIds", m.GetHypervisorClusterIds())
61+
err := writer.WriteCollectionOfStringValues("hypervisor_cluster_ids", m.GetHypervisorClusterIds())
6262
if err != nil {
6363
return err
6464
}

0 commit comments

Comments
 (0)