Skip to content

Commit 9c78f58

Browse files
authored
feat(instance): add max_file_systems capability (#954)
1 parent 5ca8f95 commit 9c78f58

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -2056,6 +2056,10 @@ def unmarshal_ServerTypeCapabilities(data: Any) -> ServerTypeCapabilities:
20562056
if field is not None:
20572057
args["boot_types"] = [BootType(v) for v in field] if field is not None else None
20582058

2059+
field = data.get("max_file_systems", None)
2060+
if field is not None:
2061+
args["max_file_systems"] = field
2062+
20592063
field = data.get("block_storage", None)
20602064
if field is not None:
20612065
args["block_storage"] = field

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

+5
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,11 @@ class ServerTypeCapabilities:
708708
List of supported boot types.
709709
"""
710710

711+
max_file_systems: int
712+
"""
713+
Max number of SFS (Scaleway File Systems) that can be attached to the Instance.
714+
"""
715+
711716
block_storage: Optional[bool]
712717
"""
713718
Defines whether the Instance supports block storage.

scaleway/scaleway/instance/v1/marshalling.py

+4
Original file line numberDiff line numberDiff line change
@@ -2056,6 +2056,10 @@ def unmarshal_ServerTypeCapabilities(data: Any) -> ServerTypeCapabilities:
20562056
if field is not None:
20572057
args["boot_types"] = [BootType(v) for v in field] if field is not None else None
20582058

2059+
field = data.get("max_file_systems", None)
2060+
if field is not None:
2061+
args["max_file_systems"] = field
2062+
20592063
field = data.get("block_storage", None)
20602064
if field is not None:
20612065
args["block_storage"] = field

scaleway/scaleway/instance/v1/types.py

+5
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,11 @@ class ServerTypeCapabilities:
708708
List of supported boot types.
709709
"""
710710

711+
max_file_systems: int
712+
"""
713+
Max number of SFS (Scaleway File Systems) that can be attached to the Instance.
714+
"""
715+
711716
block_storage: Optional[bool]
712717
"""
713718
Defines whether the Instance supports block storage.

0 commit comments

Comments
 (0)