Skip to content

Commit e113eb0

Browse files
authored
feat(apple_silicon): expose ssh/sudo credentials in public APIs (#601)
1 parent 3dea806 commit e113eb0

File tree

4 files changed

+38
-2
lines changed

4 files changed

+38
-2
lines changed

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

+8
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,14 @@ def unmarshal_Server(data: Any) -> Server:
258258
if field is not None:
259259
args["vnc_url"] = field
260260

261+
field = data.get("ssh_username", None)
262+
if field is not None:
263+
args["ssh_username"] = field
264+
265+
field = data.get("sudo_password", None)
266+
if field is not None:
267+
args["sudo_password"] = field
268+
261269
field = data.get("status", None)
262270
if field is not None:
263271
args["status"] = field

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

+11-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,17 @@ class Server:
212212

213213
vnc_url: str
214214
"""
215-
URL of the VNC.
215+
Vnc:// URL to access Apple Remote Desktop.
216+
"""
217+
218+
ssh_username: str
219+
"""
220+
SSH Username for remote shell.
221+
"""
222+
223+
sudo_password: str
224+
"""
225+
Admin password required to execute commands.
216226
"""
217227

218228
status: ServerStatus

scaleway/scaleway/applesilicon/v1alpha1/marshalling.py

+8
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,14 @@ def unmarshal_Server(data: Any) -> Server:
258258
if field is not None:
259259
args["vnc_url"] = field
260260

261+
field = data.get("ssh_username", None)
262+
if field is not None:
263+
args["ssh_username"] = field
264+
265+
field = data.get("sudo_password", None)
266+
if field is not None:
267+
args["sudo_password"] = field
268+
261269
field = data.get("status", None)
262270
if field is not None:
263271
args["status"] = field

scaleway/scaleway/applesilicon/v1alpha1/types.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,17 @@ class Server:
212212

213213
vnc_url: str
214214
"""
215-
URL of the VNC.
215+
Vnc:// URL to access Apple Remote Desktop.
216+
"""
217+
218+
ssh_username: str
219+
"""
220+
SSH Username for remote shell.
221+
"""
222+
223+
sudo_password: str
224+
"""
225+
Admin password required to execute commands.
216226
"""
217227

218228
status: ServerStatus

0 commit comments

Comments
 (0)