Skip to content

Commit da4950a

Browse files
authored
feat(k8s): add routed_ip_enabled field to Cluster (#497)
1 parent 80b3f57 commit da4950a

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

scaleway-async/scaleway_async/k8s/v1/marshalling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@ def unmarshal_Cluster(data: Any) -> Cluster:
453453
parser.isoparse(field) if isinstance(field, str) else field
454454
)
455455

456+
field = data.get("routed_ip_enabled", None)
457+
if field is not None:
458+
args["routed_ip_enabled"] = field
459+
456460
return Cluster(**args)
457461

458462

scaleway-async/scaleway_async/k8s/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,11 @@ class Cluster:
857857
Date on which it will be possible to switch to a smaller offer.
858858
"""
859859

860+
routed_ip_enabled: Optional[bool]
861+
"""
862+
Defines whether routed IPs are enabled for nodes of this cluster.
863+
"""
864+
860865

861866
@dataclass
862867
class Node:

scaleway/scaleway/k8s/v1/marshalling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@ def unmarshal_Cluster(data: Any) -> Cluster:
453453
parser.isoparse(field) if isinstance(field, str) else field
454454
)
455455

456+
field = data.get("routed_ip_enabled", None)
457+
if field is not None:
458+
args["routed_ip_enabled"] = field
459+
456460
return Cluster(**args)
457461

458462

scaleway/scaleway/k8s/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,11 @@ class Cluster:
857857
Date on which it will be possible to switch to a smaller offer.
858858
"""
859859

860+
routed_ip_enabled: Optional[bool]
861+
"""
862+
Defines whether routed IPs are enabled for nodes of this cluster.
863+
"""
864+
860865

861866
@dataclass
862867
class Node:

0 commit comments

Comments
 (0)