Skip to content

Commit 248a4b0

Browse files
feat(instance): set b_ssd volume type as deprecated (#756)
Co-authored-by: Laure-di <62625835+Laure-di@users.noreply.github.com>
1 parent f472c9c commit 248a4b0

File tree

4 files changed

+32
-24
lines changed

4 files changed

+32
-24
lines changed

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,18 +1516,10 @@ def unmarshal_Dashboard(data: Any) -> Dashboard:
15161516
if field is not None:
15171517
args["volumes_l_ssd_count"] = field
15181518

1519-
field = data.get("volumes_b_ssd_count", None)
1520-
if field is not None:
1521-
args["volumes_b_ssd_count"] = field
1522-
15231519
field = data.get("volumes_l_ssd_total_size", None)
15241520
if field is not None:
15251521
args["volumes_l_ssd_total_size"] = field
15261522

1527-
field = data.get("volumes_b_ssd_total_size", None)
1528-
if field is not None:
1529-
args["volumes_b_ssd_total_size"] = field
1530-
15311523
field = data.get("private_nics_count", None)
15321524
if field is not None:
15331525
args["private_nics_count"] = field
@@ -1536,6 +1528,18 @@ def unmarshal_Dashboard(data: Any) -> Dashboard:
15361528
if field is not None:
15371529
args["placement_groups_count"] = field
15381530

1531+
field = data.get("volumes_b_ssd_count", None)
1532+
if field is not None:
1533+
args["volumes_b_ssd_count"] = field
1534+
else:
1535+
args["volumes_b_ssd_count"] = None
1536+
1537+
field = data.get("volumes_b_ssd_total_size", None)
1538+
if field is not None:
1539+
args["volumes_b_ssd_total_size"] = field
1540+
else:
1541+
args["volumes_b_ssd_total_size"] = None
1542+
15391543
return Dashboard(**args)
15401544

15411545

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,16 +1271,16 @@ class Dashboard:
12711271

12721272
volumes_l_ssd_count: int
12731273

1274-
volumes_b_ssd_count: int
1275-
12761274
volumes_l_ssd_total_size: int
12771275

1278-
volumes_b_ssd_total_size: int
1279-
12801276
private_nics_count: int
12811277

12821278
placement_groups_count: int
12831279

1280+
volumes_b_ssd_count: Optional[int]
1281+
1282+
volumes_b_ssd_total_size: Optional[int]
1283+
12841284

12851285
@dataclass
12861286
class PlacementGroupServer:

scaleway/scaleway/instance/v1/marshalling.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,18 +1516,10 @@ def unmarshal_Dashboard(data: Any) -> Dashboard:
15161516
if field is not None:
15171517
args["volumes_l_ssd_count"] = field
15181518

1519-
field = data.get("volumes_b_ssd_count", None)
1520-
if field is not None:
1521-
args["volumes_b_ssd_count"] = field
1522-
15231519
field = data.get("volumes_l_ssd_total_size", None)
15241520
if field is not None:
15251521
args["volumes_l_ssd_total_size"] = field
15261522

1527-
field = data.get("volumes_b_ssd_total_size", None)
1528-
if field is not None:
1529-
args["volumes_b_ssd_total_size"] = field
1530-
15311523
field = data.get("private_nics_count", None)
15321524
if field is not None:
15331525
args["private_nics_count"] = field
@@ -1536,6 +1528,18 @@ def unmarshal_Dashboard(data: Any) -> Dashboard:
15361528
if field is not None:
15371529
args["placement_groups_count"] = field
15381530

1531+
field = data.get("volumes_b_ssd_count", None)
1532+
if field is not None:
1533+
args["volumes_b_ssd_count"] = field
1534+
else:
1535+
args["volumes_b_ssd_count"] = None
1536+
1537+
field = data.get("volumes_b_ssd_total_size", None)
1538+
if field is not None:
1539+
args["volumes_b_ssd_total_size"] = field
1540+
else:
1541+
args["volumes_b_ssd_total_size"] = None
1542+
15391543
return Dashboard(**args)
15401544

15411545

scaleway/scaleway/instance/v1/types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,16 +1271,16 @@ class Dashboard:
12711271

12721272
volumes_l_ssd_count: int
12731273

1274-
volumes_b_ssd_count: int
1275-
12761274
volumes_l_ssd_total_size: int
12771275

1278-
volumes_b_ssd_total_size: int
1279-
12801276
private_nics_count: int
12811277

12821278
placement_groups_count: int
12831279

1280+
volumes_b_ssd_count: Optional[int]
1281+
1282+
volumes_b_ssd_total_size: Optional[int]
1283+
12841284

12851285
@dataclass
12861286
class PlacementGroupServer:

0 commit comments

Comments
 (0)