diff --git a/scaleway-async/scaleway_async/webhosting/v1/marshalling.py b/scaleway-async/scaleway_async/webhosting/v1/marshalling.py index 0d58e69f6..20e51fb21 100644 --- a/scaleway-async/scaleway_async/webhosting/v1/marshalling.py +++ b/scaleway-async/scaleway_async/webhosting/v1/marshalling.py @@ -450,6 +450,12 @@ def unmarshal_HostingUser(data: Any) -> HostingUser: else: args["one_time_password"] = None + field = data.get("one_time_password_b64", None) + if field is not None: + args["one_time_password_b64"] = field + else: + args["one_time_password_b64"] = None + return HostingUser(**args) @@ -913,9 +919,15 @@ def unmarshal_ResetHostingPasswordResponse(data: Any) -> ResetHostingPasswordRes args: Dict[str, Any] = {} + field = data.get("one_time_password_b64", None) + if field is not None: + args["one_time_password_b64"] = field + field = data.get("one_time_password", None) if field is not None: args["one_time_password"] = field + else: + args["one_time_password"] = None return ResetHostingPasswordResponse(**args) diff --git a/scaleway-async/scaleway_async/webhosting/v1/types.py b/scaleway-async/scaleway_async/webhosting/v1/types.py index 3ad66e019..8abd971cd 100644 --- a/scaleway-async/scaleway_async/webhosting/v1/types.py +++ b/scaleway-async/scaleway_async/webhosting/v1/types.py @@ -296,7 +296,7 @@ class PlatformControlPanel: urls: Optional[PlatformControlPanelUrls] """ - URL to connect to cPanel dashboard and to Webmail interface. + URL to connect to control panel dashboard and to Webmail interface. """ @@ -426,7 +426,7 @@ class Nameserver: class HostingUser: username: str """ - Main Web Hosting cPanel username. + Main Web Hosting control panel username. """ contact_email: str @@ -436,7 +436,12 @@ class HostingUser: one_time_password: Optional[str] """ - One-time-password used for the first login or reset password, empty after first use. + One-time-password used for the first login to the control panel, cleared after first use (deprecated, use password_b64 instead). + """ + + one_time_password_b64: Optional[str] + """ + One-time-password used for the first login to the control panel, cleared after first use, encoded in base64. """ @@ -1789,9 +1794,14 @@ class OfferApiListOffersRequest: @dataclass class ResetHostingPasswordResponse: - one_time_password: str + one_time_password_b64: str + """ + New temporary password, encoded in base64. + """ + + one_time_password: Optional[str] """ - New temporary password. + New temporary password (deprecated, use password_b64 instead). """ diff --git a/scaleway/scaleway/webhosting/v1/marshalling.py b/scaleway/scaleway/webhosting/v1/marshalling.py index 0d58e69f6..20e51fb21 100644 --- a/scaleway/scaleway/webhosting/v1/marshalling.py +++ b/scaleway/scaleway/webhosting/v1/marshalling.py @@ -450,6 +450,12 @@ def unmarshal_HostingUser(data: Any) -> HostingUser: else: args["one_time_password"] = None + field = data.get("one_time_password_b64", None) + if field is not None: + args["one_time_password_b64"] = field + else: + args["one_time_password_b64"] = None + return HostingUser(**args) @@ -913,9 +919,15 @@ def unmarshal_ResetHostingPasswordResponse(data: Any) -> ResetHostingPasswordRes args: Dict[str, Any] = {} + field = data.get("one_time_password_b64", None) + if field is not None: + args["one_time_password_b64"] = field + field = data.get("one_time_password", None) if field is not None: args["one_time_password"] = field + else: + args["one_time_password"] = None return ResetHostingPasswordResponse(**args) diff --git a/scaleway/scaleway/webhosting/v1/types.py b/scaleway/scaleway/webhosting/v1/types.py index 3ad66e019..8abd971cd 100644 --- a/scaleway/scaleway/webhosting/v1/types.py +++ b/scaleway/scaleway/webhosting/v1/types.py @@ -296,7 +296,7 @@ class PlatformControlPanel: urls: Optional[PlatformControlPanelUrls] """ - URL to connect to cPanel dashboard and to Webmail interface. + URL to connect to control panel dashboard and to Webmail interface. """ @@ -426,7 +426,7 @@ class Nameserver: class HostingUser: username: str """ - Main Web Hosting cPanel username. + Main Web Hosting control panel username. """ contact_email: str @@ -436,7 +436,12 @@ class HostingUser: one_time_password: Optional[str] """ - One-time-password used for the first login or reset password, empty after first use. + One-time-password used for the first login to the control panel, cleared after first use (deprecated, use password_b64 instead). + """ + + one_time_password_b64: Optional[str] + """ + One-time-password used for the first login to the control panel, cleared after first use, encoded in base64. """ @@ -1789,9 +1794,14 @@ class OfferApiListOffersRequest: @dataclass class ResetHostingPasswordResponse: - one_time_password: str + one_time_password_b64: str + """ + New temporary password, encoded in base64. + """ + + one_time_password: Optional[str] """ - New temporary password. + New temporary password (deprecated, use password_b64 instead). """