ionos-cloud/sdk-go

PUT method ​/k8s​/{k8sClusterId}​/nodepools​/{nodepoolId}

LiviusP opened this issue · 0 comments

Description

I am running a K8s in the IC and need an important feature in from the CloudAPIv6. I noticed a bug in the Swagger API. We need in a DHCP: false in the Kubernetes LANs. Only this field is marked as not requierd in the swagger api. Which causes an omit in the data model when generating code. Now if I use the SDK/generated code and set DHCP=> False the JSON object will not have the DHCP as a field. But the default in the API is on "server" side that then DHCP-True is set. But this is not my intention.

KubernetesNodePoolLan struct for KubernetesNodePoolLan
type KubernetesNodePoolLan struct {
	// The LAN ID of an existing LAN at the related datacenter
	Id *int32 `json:"id,omitempty"`
	// Indicates if the Kubernetes Node Pool LAN will reserve an IP using DHCP
	Dhcp *bool `json:"dhcp,omitempty"`
	// array of additional LANs attached to worker nodes
	Routes *[]KubernetesNodePoolLanRoutes `json:"routes,omitempty"`
}
PUT
​/k8s​/{k8sClusterId}​/nodepools​/{nodepoolId}
Modify Kubernetes Node Pool

Expected behavior

Please check the entire PUT method ​/k8s​/{k8sClusterId}​/nodepools​/{nodepoolId} as it seems other parameters are missing too.

Environment

GO version:

SDK version:

6.0.0