Skip to content

Commit cebce8b

Browse files
authored
chore(instance): expose the scratch volume count in the API (#1505)
1 parent 3b4b1a3 commit cebce8b

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,6 +1979,12 @@ def unmarshal_Dashboard(data: Any) -> Dashboard:
19791979
else:
19801980
args["placement_groups_count"] = None
19811981

1982+
field = data.get("volumes_scratch_count", None)
1983+
if field is not None:
1984+
args["volumes_scratch_count"] = field
1985+
else:
1986+
args["volumes_scratch_count"] = None
1987+
19821988
field = data.get("volumes_b_ssd_count", None)
19831989
if field is not None:
19841990
args["volumes_b_ssd_count"] = field

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,7 @@ class Dashboard:
12641264
volumes_l_ssd_total_size: int
12651265
private_nics_count: int
12661266
placement_groups_count: int
1267+
volumes_scratch_count: int
12671268
volumes_b_ssd_count: Optional[int] = None
12681269
volumes_b_ssd_total_size: Optional[int] = None
12691270

scaleway/scaleway/instance/v1/marshalling.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,6 +1979,12 @@ def unmarshal_Dashboard(data: Any) -> Dashboard:
19791979
else:
19801980
args["placement_groups_count"] = None
19811981

1982+
field = data.get("volumes_scratch_count", None)
1983+
if field is not None:
1984+
args["volumes_scratch_count"] = field
1985+
else:
1986+
args["volumes_scratch_count"] = None
1987+
19821988
field = data.get("volumes_b_ssd_count", None)
19831989
if field is not None:
19841990
args["volumes_b_ssd_count"] = field

scaleway/scaleway/instance/v1/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,7 @@ class Dashboard:
12641264
volumes_l_ssd_total_size: int
12651265
private_nics_count: int
12661266
placement_groups_count: int
1267+
volumes_scratch_count: int
12671268
volumes_b_ssd_count: Optional[int] = None
12681269
volumes_b_ssd_total_size: Optional[int] = None
12691270

0 commit comments

Comments
 (0)