Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(apple_silicon): add server delivery status #695

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 1 commit into from
Oct 16, 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
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ def unmarshal_Server(data: Any) -> Server:
if field is not None:
args["zone"] = field

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

field = data.get("os", None)
if field is not None:
args["os"] = unmarshal_OS(field)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ class Server:
Zone of the server.
"""

delivered: bool
"""
Set to true once the server has completed its provisioning steps and is ready to use. Some OS configurations might require a reinstallation of the server before delivery depending on the available stock. A reinstallation after the initial delivery will not change this flag and can be tracked using the server status.
"""

os: Optional[OS]
"""
Initially installed OS, this does not necessarily reflect the current OS version.
Expand Down
4 changes: 4 additions & 0 deletions scaleway/scaleway/applesilicon/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ def unmarshal_Server(data: Any) -> Server:
if field is not None:
args["zone"] = field

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

field = data.get("os", None)
if field is not None:
args["os"] = unmarshal_OS(field)
Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/applesilicon/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ class Server:
Zone of the server.
"""

delivered: bool
"""
Set to true once the server has completed its provisioning steps and is ready to use. Some OS configurations might require a reinstallation of the server before delivery depending on the available stock. A reinstallation after the initial delivery will not change this flag and can be tracked using the server status.
"""

os: Optional[OS]
"""
Initially installed OS, this does not necessarily reflect the current OS version.
Expand Down