Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions scaleway-async/scaleway_async/k8s/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,12 +470,6 @@ def unmarshal_Cluster(data: Any) -> Cluster:
else:
args["apiserver_cert_sans"] = []

field = data.get("acl_available", None)
if field is not None:
args["acl_available"] = field
else:
args["acl_available"] = False

field = data.get("iam_nodes_group_id", None)
if field is not None:
args["iam_nodes_group_id"] = field
Expand Down Expand Up @@ -514,6 +508,12 @@ def unmarshal_Cluster(data: Any) -> Cluster:
else:
args["commitment_ends_at"] = None

field = data.get("acl_available", None)
if field is not None:
args["acl_available"] = field
else:
args["acl_available"] = None

return Cluster(**args)


Expand Down
10 changes: 5 additions & 5 deletions scaleway-async/scaleway_async/k8s/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,11 +814,6 @@ class Cluster:
Additional Subject Alternative Names for the Kubernetes API server certificate.
"""

acl_available: bool
"""
Defines whether ACL is available on the cluster.
"""

iam_nodes_group_id: str
"""
IAM group that nodes are members of (this field might be empty during early stage of cluster creation).
Expand Down Expand Up @@ -874,6 +869,11 @@ class Cluster:
Date on which it will be possible to switch to a smaller offer.
"""

acl_available: Optional[bool] = None
"""
Defines whether ACL is available on the cluster.
"""


@dataclass
class Node:
Expand Down
12 changes: 6 additions & 6 deletions scaleway/scaleway/k8s/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,12 +470,6 @@ def unmarshal_Cluster(data: Any) -> Cluster:
else:
args["apiserver_cert_sans"] = []

field = data.get("acl_available", None)
if field is not None:
args["acl_available"] = field
else:
args["acl_available"] = False

field = data.get("iam_nodes_group_id", None)
if field is not None:
args["iam_nodes_group_id"] = field
Expand Down Expand Up @@ -514,6 +508,12 @@ def unmarshal_Cluster(data: Any) -> Cluster:
else:
args["commitment_ends_at"] = None

field = data.get("acl_available", None)
if field is not None:
args["acl_available"] = field
else:
args["acl_available"] = None

return Cluster(**args)


Expand Down
10 changes: 5 additions & 5 deletions scaleway/scaleway/k8s/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,11 +814,6 @@ class Cluster:
Additional Subject Alternative Names for the Kubernetes API server certificate.
"""

acl_available: bool
"""
Defines whether ACL is available on the cluster.
"""

iam_nodes_group_id: str
"""
IAM group that nodes are members of (this field might be empty during early stage of cluster creation).
Expand Down Expand Up @@ -874,6 +869,11 @@ class Cluster:
Date on which it will be possible to switch to a smaller offer.
"""

acl_available: Optional[bool] = None
"""
Defines whether ACL is available on the cluster.
"""


@dataclass
class Node:
Expand Down
Loading