Skip to content

Commit 248a7da

Browse files
authored
feat(instance): add scratch storage max size in ListServersTypes (#285)
1 parent 81c1555 commit 248a7da

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,9 @@ def unmarshal_ServerType(data: Any) -> ServerType:
11271127
field = data.get("ram", None)
11281128
args["ram"] = field
11291129

1130+
field = data.get("scratch_storage_max_size", None)
1131+
args["scratch_storage_max_size"] = field
1132+
11301133
field = data.get("volumes_constraint", None)
11311134
args["volumes_constraint"] = (
11321135
unmarshal_ServerTypeVolumeConstraintSizes(field) if field is not None else None

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,11 @@ class ServerType:
13541354
Capabilities.
13551355
"""
13561356

1357+
scratch_storage_max_size: Optional[int]
1358+
"""
1359+
Maximum available scratch storage.
1360+
"""
1361+
13571362

13581363
@dataclass
13591364
class ServerTypeCapabilities:

scaleway/scaleway/instance/v1/marshalling.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,9 @@ def unmarshal_ServerType(data: Any) -> ServerType:
11271127
field = data.get("ram", None)
11281128
args["ram"] = field
11291129

1130+
field = data.get("scratch_storage_max_size", None)
1131+
args["scratch_storage_max_size"] = field
1132+
11301133
field = data.get("volumes_constraint", None)
11311134
args["volumes_constraint"] = (
11321135
unmarshal_ServerTypeVolumeConstraintSizes(field) if field is not None else None

scaleway/scaleway/instance/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,11 @@ class ServerType:
13541354
Capabilities.
13551355
"""
13561356

1357+
scratch_storage_max_size: Optional[int]
1358+
"""
1359+
Maximum available scratch storage.
1360+
"""
1361+
13571362

13581363
@dataclass
13591364
class ServerTypeCapabilities:

0 commit comments

Comments
 (0)