Skip to content

Commit 3d9b64a

Browse files
feat(dedibox): add a is_hds flag for ddx2elts servers list (#997)
Co-authored-by: Jonathan R. <jremy@scaleway.com>
1 parent 803d121 commit 3d9b64a

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2875,6 +2875,10 @@ def unmarshal_ServerSummary(data: Any) -> ServerSummary:
28752875
if field is not None:
28762876
args["qinq"] = field
28772877

2878+
field = data.get("is_hds", None)
2879+
if field is not None:
2880+
args["is_hds"] = field
2881+
28782882
field = data.get("os_id", None)
28792883
if field is not None:
28802884
args["os_id"] = field

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1970,6 +1970,11 @@ class ServerSummary:
19701970
Whether the server is compatible with QinQ.
19711971
"""
19721972

1973+
is_hds: bool
1974+
"""
1975+
Whether or not the server is HDS.
1976+
"""
1977+
19731978
os_id: Optional[int]
19741979
"""
19751980
OS ID installed on server.

scaleway/scaleway/dedibox/v1/marshalling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2875,6 +2875,10 @@ def unmarshal_ServerSummary(data: Any) -> ServerSummary:
28752875
if field is not None:
28762876
args["qinq"] = field
28772877

2878+
field = data.get("is_hds", None)
2879+
if field is not None:
2880+
args["is_hds"] = field
2881+
28782882
field = data.get("os_id", None)
28792883
if field is not None:
28802884
args["os_id"] = field

scaleway/scaleway/dedibox/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1970,6 +1970,11 @@ class ServerSummary:
19701970
Whether the server is compatible with QinQ.
19711971
"""
19721972

1973+
is_hds: bool
1974+
"""
1975+
Whether or not the server is HDS.
1976+
"""
1977+
19731978
os_id: Optional[int]
19741979
"""
19751980
OS ID installed on server.

0 commit comments

Comments
 (0)