Skip to content

Commit 1441a16

Browse files
authored
feat(apple_silicon): add server delivery status (#695)
1 parent d6ab2af commit 1441a16

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

scaleway-async/scaleway_async/applesilicon/v1alpha1/marshalling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ def unmarshal_Server(data: Any) -> Server:
278278
if field is not None:
279279
args["zone"] = field
280280

281+
field = data.get("delivered", None)
282+
if field is not None:
283+
args["delivered"] = field
284+
281285
field = data.get("os", None)
282286
if field is not None:
283287
args["os"] = unmarshal_OS(field)

scaleway-async/scaleway_async/applesilicon/v1alpha1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ class Server:
240240
Zone of the server.
241241
"""
242242

243+
delivered: bool
244+
"""
245+
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.
246+
"""
247+
243248
os: Optional[OS]
244249
"""
245250
Initially installed OS, this does not necessarily reflect the current OS version.

scaleway/scaleway/applesilicon/v1alpha1/marshalling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ def unmarshal_Server(data: Any) -> Server:
278278
if field is not None:
279279
args["zone"] = field
280280

281+
field = data.get("delivered", None)
282+
if field is not None:
283+
args["delivered"] = field
284+
281285
field = data.get("os", None)
282286
if field is not None:
283287
args["os"] = unmarshal_OS(field)

scaleway/scaleway/applesilicon/v1alpha1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ class Server:
240240
Zone of the server.
241241
"""
242242

243+
delivered: bool
244+
"""
245+
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.
246+
"""
247+
243248
os: Optional[OS]
244249
"""
245250
Initially installed OS, this does not necessarily reflect the current OS version.

0 commit comments

Comments
 (0)