Skip to content
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 @@ -47,6 +47,12 @@ def unmarshal_AccountUserInfo(data: Any) -> AccountUserInfo:
if field is not None:
args["email"] = field

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

return AccountUserInfo(**args)


Expand Down
2 changes: 2 additions & 0 deletions scaleway-async/scaleway_async/audit_trail/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class AccountOrganizationInfo:
class AccountUserInfo:
email: str

phone_number: Optional[str]


@dataclass
class KeyManagerKeyInfo:
Expand Down
6 changes: 6 additions & 0 deletions scaleway/scaleway/audit_trail/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ def unmarshal_AccountUserInfo(data: Any) -> AccountUserInfo:
if field is not None:
args["email"] = field

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

return AccountUserInfo(**args)


Expand Down
2 changes: 2 additions & 0 deletions scaleway/scaleway/audit_trail/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class AccountOrganizationInfo:
class AccountUserInfo:
email: str

phone_number: Optional[str]


@dataclass
class KeyManagerKeyInfo:
Expand Down