Skip to content

Commit ac2d32b

Browse files
feat(apple-silicon): add VNC port suppport (#723)
Co-authored-by: Laure-di <[email protected]>
1 parent 8cc0829 commit ac2d32b

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
@@ -266,6 +266,10 @@ def unmarshal_Server(data: Any) -> Server:
266266
if field is not None:
267267
args["sudo_password"] = field
268268

269+
field = data.get("vnc_port", None)
270+
if field is not None:
271+
args["vnc_port"] = field
272+
269273
field = data.get("status", None)
270274
if field is not None:
271275
args["status"] = field

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ class Server:
225225
Admin password required to execute commands.
226226
"""
227227

228+
vnc_port: int
229+
"""
230+
VNC port to use for remote desktop connection.
231+
"""
232+
228233
status: ServerStatus
229234
"""
230235
Current status of the server.

scaleway/scaleway/applesilicon/v1alpha1/marshalling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ def unmarshal_Server(data: Any) -> Server:
266266
if field is not None:
267267
args["sudo_password"] = field
268268

269+
field = data.get("vnc_port", None)
270+
if field is not None:
271+
args["vnc_port"] = field
272+
269273
field = data.get("status", None)
270274
if field is not None:
271275
args["status"] = field

scaleway/scaleway/applesilicon/v1alpha1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ class Server:
225225
Admin password required to execute commands.
226226
"""
227227

228+
vnc_port: int
229+
"""
230+
VNC port to use for remote desktop connection.
231+
"""
232+
228233
status: ServerStatus
229234
"""
230235
Current status of the server.

0 commit comments

Comments
 (0)