Skip to content

feat(instance): set b_ssd volume type as deprecated #756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions scaleway-async/scaleway_async/instance/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1516,18 +1516,10 @@ def unmarshal_Dashboard(data: Any) -> Dashboard:
if field is not None:
args["volumes_l_ssd_count"] = field

field = data.get("volumes_b_ssd_count", None)
if field is not None:
args["volumes_b_ssd_count"] = field

field = data.get("volumes_l_ssd_total_size", None)
if field is not None:
args["volumes_l_ssd_total_size"] = field

field = data.get("volumes_b_ssd_total_size", None)
if field is not None:
args["volumes_b_ssd_total_size"] = field

field = data.get("private_nics_count", None)
if field is not None:
args["private_nics_count"] = field
Expand All @@ -1536,6 +1528,18 @@ def unmarshal_Dashboard(data: Any) -> Dashboard:
if field is not None:
args["placement_groups_count"] = field

field = data.get("volumes_b_ssd_count", None)
if field is not None:
args["volumes_b_ssd_count"] = field
else:
args["volumes_b_ssd_count"] = None

field = data.get("volumes_b_ssd_total_size", None)
if field is not None:
args["volumes_b_ssd_total_size"] = field
else:
args["volumes_b_ssd_total_size"] = None

return Dashboard(**args)


Expand Down
8 changes: 4 additions & 4 deletions scaleway-async/scaleway_async/instance/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1271,16 +1271,16 @@ class Dashboard:

volumes_l_ssd_count: int

volumes_b_ssd_count: int

volumes_l_ssd_total_size: int

volumes_b_ssd_total_size: int

private_nics_count: int

placement_groups_count: int

volumes_b_ssd_count: Optional[int]

volumes_b_ssd_total_size: Optional[int]


@dataclass
class PlacementGroupServer:
Expand Down
20 changes: 12 additions & 8 deletions scaleway/scaleway/instance/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1516,18 +1516,10 @@ def unmarshal_Dashboard(data: Any) -> Dashboard:
if field is not None:
args["volumes_l_ssd_count"] = field

field = data.get("volumes_b_ssd_count", None)
if field is not None:
args["volumes_b_ssd_count"] = field

field = data.get("volumes_l_ssd_total_size", None)
if field is not None:
args["volumes_l_ssd_total_size"] = field

field = data.get("volumes_b_ssd_total_size", None)
if field is not None:
args["volumes_b_ssd_total_size"] = field

field = data.get("private_nics_count", None)
if field is not None:
args["private_nics_count"] = field
Expand All @@ -1536,6 +1528,18 @@ def unmarshal_Dashboard(data: Any) -> Dashboard:
if field is not None:
args["placement_groups_count"] = field

field = data.get("volumes_b_ssd_count", None)
if field is not None:
args["volumes_b_ssd_count"] = field
else:
args["volumes_b_ssd_count"] = None

field = data.get("volumes_b_ssd_total_size", None)
if field is not None:
args["volumes_b_ssd_total_size"] = field
else:
args["volumes_b_ssd_total_size"] = None

return Dashboard(**args)


Expand Down
8 changes: 4 additions & 4 deletions scaleway/scaleway/instance/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1271,16 +1271,16 @@ class Dashboard:

volumes_l_ssd_count: int

volumes_b_ssd_count: int

volumes_l_ssd_total_size: int

volumes_b_ssd_total_size: int

private_nics_count: int

placement_groups_count: int

volumes_b_ssd_count: Optional[int]

volumes_b_ssd_total_size: Optional[int]


@dataclass
class PlacementGroupServer:
Expand Down