diff --git a/scaleway-async/scaleway_async/k8s/v1/marshalling.py b/scaleway-async/scaleway_async/k8s/v1/marshalling.py index 16dcd5b04..73026fd8b 100644 --- a/scaleway-async/scaleway_async/k8s/v1/marshalling.py +++ b/scaleway-async/scaleway_async/k8s/v1/marshalling.py @@ -838,18 +838,18 @@ def unmarshal_Pool(data: Any) -> Pool: else: args["startup_taints"] = [] - field = data.get("private_network_id", None) - if field is not None: - args["private_network_id"] = field - else: - args["private_network_id"] = None - field = data.get("region", None) if field is not None: args["region"] = field else: args["region"] = None + field = data.get("private_network_id", None) + if field is not None: + args["private_network_id"] = field + else: + args["private_network_id"] = None + return Pool(**args) diff --git a/scaleway-async/scaleway_async/k8s/v1/types.py b/scaleway-async/scaleway_async/k8s/v1/types.py index ada47d10e..e50e09fae 100644 --- a/scaleway-async/scaleway_async/k8s/v1/types.py +++ b/scaleway-async/scaleway_async/k8s/v1/types.py @@ -1078,11 +1078,6 @@ class Pool: Kubernetes taints applied at node creation but not reconciled afterwards. """ - private_network_id: str - """ - Private network where the nodes are attached. Should be member of the same VPC as the API Server. - """ - region: ScwRegion """ Cluster region of the pool. @@ -1113,6 +1108,11 @@ class Pool: System volume disk size. """ + private_network_id: Optional[str] = None + """ + Private network where the nodes are attached. Should be member of the same VPC as the API Server. + """ + @dataclass class NodeMetadataCoreV1Taint: diff --git a/scaleway/scaleway/k8s/v1/marshalling.py b/scaleway/scaleway/k8s/v1/marshalling.py index 16dcd5b04..73026fd8b 100644 --- a/scaleway/scaleway/k8s/v1/marshalling.py +++ b/scaleway/scaleway/k8s/v1/marshalling.py @@ -838,18 +838,18 @@ def unmarshal_Pool(data: Any) -> Pool: else: args["startup_taints"] = [] - field = data.get("private_network_id", None) - if field is not None: - args["private_network_id"] = field - else: - args["private_network_id"] = None - field = data.get("region", None) if field is not None: args["region"] = field else: args["region"] = None + field = data.get("private_network_id", None) + if field is not None: + args["private_network_id"] = field + else: + args["private_network_id"] = None + return Pool(**args) diff --git a/scaleway/scaleway/k8s/v1/types.py b/scaleway/scaleway/k8s/v1/types.py index ada47d10e..e50e09fae 100644 --- a/scaleway/scaleway/k8s/v1/types.py +++ b/scaleway/scaleway/k8s/v1/types.py @@ -1078,11 +1078,6 @@ class Pool: Kubernetes taints applied at node creation but not reconciled afterwards. """ - private_network_id: str - """ - Private network where the nodes are attached. Should be member of the same VPC as the API Server. - """ - region: ScwRegion """ Cluster region of the pool. @@ -1113,6 +1108,11 @@ class Pool: System volume disk size. """ + private_network_id: Optional[str] = None + """ + Private network where the nodes are attached. Should be member of the same VPC as the API Server. + """ + @dataclass class NodeMetadataCoreV1Taint: