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
3 changes: 3 additions & 0 deletions scaleway-async/scaleway_async/iam/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,12 +474,14 @@ async def update_user(
*,
user_id: str,
tags: Optional[List[str]] = None,
email: Optional[str] = None,
) -> User:
"""
Update a user.
Update the parameters of a user, including `tags`.
:param user_id: ID of the user to update.
:param tags: New tags for the user (maximum of 10 tags).
:param email: New email for the user (only available on Members).
:return: :class:`User <User>`

Usage:
Expand All @@ -499,6 +501,7 @@ async def update_user(
UpdateUserRequest(
user_id=user_id,
tags=tags,
email=email,
),
self.client,
),
Expand Down
3 changes: 3 additions & 0 deletions scaleway-async/scaleway_async/iam/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1378,4 +1378,7 @@ def marshal_UpdateUserRequest(
if request.tags is not None:
output["tags"] = request.tags

if request.email is not None:
output["email"] = request.email

return output
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/iam/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1887,3 +1887,8 @@ class UpdateUserRequest:
"""
New tags for the user (maximum of 10 tags).
"""

email: Optional[str]
"""
New email for the user (only available on Members).
"""
3 changes: 3 additions & 0 deletions scaleway/scaleway/iam/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,12 +474,14 @@ def update_user(
*,
user_id: str,
tags: Optional[List[str]] = None,
email: Optional[str] = None,
) -> User:
"""
Update a user.
Update the parameters of a user, including `tags`.
:param user_id: ID of the user to update.
:param tags: New tags for the user (maximum of 10 tags).
:param email: New email for the user (only available on Members).
:return: :class:`User <User>`
Usage:
Expand All @@ -499,6 +501,7 @@ def update_user(
UpdateUserRequest(
user_id=user_id,
tags=tags,
email=email,
),
self.client,
),
Expand Down
3 changes: 3 additions & 0 deletions scaleway/scaleway/iam/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1378,4 +1378,7 @@ def marshal_UpdateUserRequest(
if request.tags is not None:
output["tags"] = request.tags

if request.email is not None:
output["email"] = request.email

return output
5 changes: 5 additions & 0 deletions scaleway/scaleway/iam/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1887,3 +1887,8 @@ class UpdateUserRequest:
"""
New tags for the user (maximum of 10 tags).
"""

email: Optional[str]
"""
New email for the user (only available on Members).
"""