Skip to content
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
12 changes: 8 additions & 4 deletions scaleway-async/scaleway_async/dedibox/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,10 @@ def unmarshal_Server(data: Any) -> Server:
if field is not None:
args["hostname"] = field

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

field = data.get("rebooted_at", None)
if field is not None:
args["rebooted_at"] = (
Expand All @@ -1097,10 +1101,6 @@ def unmarshal_Server(data: Any) -> Server:
else:
args["rebooted_at"] = None

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

field = data.get("abuse_contact", None)
if field is not None:
args["abuse_contact"] = field
Expand Down Expand Up @@ -1147,6 +1147,10 @@ def unmarshal_Server(data: Any) -> Server:
if field is not None:
args["is_rpnv2_member"] = field

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

field = data.get("created_at", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
Expand Down
13 changes: 9 additions & 4 deletions scaleway-async/scaleway_async/dedibox/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,14 +1146,14 @@ class Server:
Hostname of the server.
"""

rebooted_at: Optional[datetime]
status: ServerStatus
"""
Date of last reboot of the server.
Status of the server.
"""

status: ServerStatus
rebooted_at: Optional[datetime]
"""
Status of the server.
Date of last reboot of the server.
"""

abuse_contact: str
Expand Down Expand Up @@ -1206,6 +1206,11 @@ class Server:
Whether or not the server is already part of an rpnv2 group.
"""

is_hds: bool
"""
Whether or not the server is HDS.
"""

created_at: Optional[datetime]
"""
Date of creation of the server.
Expand Down
12 changes: 8 additions & 4 deletions scaleway/scaleway/dedibox/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,10 @@ def unmarshal_Server(data: Any) -> Server:
if field is not None:
args["hostname"] = field

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

field = data.get("rebooted_at", None)
if field is not None:
args["rebooted_at"] = (
Expand All @@ -1097,10 +1101,6 @@ def unmarshal_Server(data: Any) -> Server:
else:
args["rebooted_at"] = None

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

field = data.get("abuse_contact", None)
if field is not None:
args["abuse_contact"] = field
Expand Down Expand Up @@ -1147,6 +1147,10 @@ def unmarshal_Server(data: Any) -> Server:
if field is not None:
args["is_rpnv2_member"] = field

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

field = data.get("created_at", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
Expand Down
13 changes: 9 additions & 4 deletions scaleway/scaleway/dedibox/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1146,14 +1146,14 @@ class Server:
Hostname of the server.
"""

rebooted_at: Optional[datetime]
status: ServerStatus
"""
Date of last reboot of the server.
Status of the server.
"""

status: ServerStatus
rebooted_at: Optional[datetime]
"""
Status of the server.
Date of last reboot of the server.
"""

abuse_contact: str
Expand Down Expand Up @@ -1206,6 +1206,11 @@ class Server:
Whether or not the server is already part of an rpnv2 group.
"""

is_hds: bool
"""
Whether or not the server is HDS.
"""

created_at: Optional[datetime]
"""
Date of creation of the server.
Expand Down