Skip to content

Commit f9f0961

Browse files
authored
feat(k8s): add audit logs compatibility with offers (#427)
1 parent efe78ed commit f9f0961

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ def unmarshal_ClusterType(data: Any) -> ClusterType:
286286

287287
args: Dict[str, Any] = {}
288288

289+
field = data.get("audit_logs_supported", None)
290+
args["audit_logs_supported"] = field
291+
289292
field = data.get("availability", None)
290293
args["availability"] = field
291294

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,11 @@ class ClusterType:
497497
Returns information if this offer uses dedicated resources.
498498
"""
499499

500+
audit_logs_supported: bool
501+
"""
502+
True if the offer allows activation of the audit log functionality. Please note that audit logs are sent to Cockpit.
503+
"""
504+
500505

501506
@dataclass
502507
class CreateClusterRequestAutoUpgrade:

scaleway/scaleway/k8s/v1/marshalling.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ def unmarshal_ClusterType(data: Any) -> ClusterType:
286286

287287
args: Dict[str, Any] = {}
288288

289+
field = data.get("audit_logs_supported", None)
290+
args["audit_logs_supported"] = field
291+
289292
field = data.get("availability", None)
290293
args["availability"] = field
291294

scaleway/scaleway/k8s/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,11 @@ class ClusterType:
497497
Returns information if this offer uses dedicated resources.
498498
"""
499499

500+
audit_logs_supported: bool
501+
"""
502+
True if the offer allows activation of the audit log functionality. Please note that audit logs are sent to Cockpit.
503+
"""
504+
500505

501506
@dataclass
502507
class CreateClusterRequestAutoUpgrade:

0 commit comments

Comments
 (0)