Skip to content

Commit f472c9c

Browse files
feat(iam): allow updating a Member's email (#755)
Co-authored-by: Laure-di <62625835+Laure-di@users.noreply.github.com>
1 parent 832b6fc commit f472c9c

File tree

6 files changed

+22
-0
lines changed

6 files changed

+22
-0
lines changed

scaleway-async/scaleway_async/iam/v1alpha1/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,12 +474,14 @@ async def update_user(
474474
*,
475475
user_id: str,
476476
tags: Optional[List[str]] = None,
477+
email: Optional[str] = None,
477478
) -> User:
478479
"""
479480
Update a user.
480481
Update the parameters of a user, including `tags`.
481482
:param user_id: ID of the user to update.
482483
:param tags: New tags for the user (maximum of 10 tags).
484+
:param email: New email for the user (only available on Members).
483485
:return: :class:`User <User>`
484486
485487
Usage:
@@ -499,6 +501,7 @@ async def update_user(
499501
UpdateUserRequest(
500502
user_id=user_id,
501503
tags=tags,
504+
email=email,
502505
),
503506
self.client,
504507
),

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,4 +1378,7 @@ def marshal_UpdateUserRequest(
13781378
if request.tags is not None:
13791379
output["tags"] = request.tags
13801380

1381+
if request.email is not None:
1382+
output["email"] = request.email
1383+
13811384
return output

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,3 +1887,8 @@ class UpdateUserRequest:
18871887
"""
18881888
New tags for the user (maximum of 10 tags).
18891889
"""
1890+
1891+
email: Optional[str]
1892+
"""
1893+
New email for the user (only available on Members).
1894+
"""

scaleway/scaleway/iam/v1alpha1/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,12 +474,14 @@ def update_user(
474474
*,
475475
user_id: str,
476476
tags: Optional[List[str]] = None,
477+
email: Optional[str] = None,
477478
) -> User:
478479
"""
479480
Update a user.
480481
Update the parameters of a user, including `tags`.
481482
:param user_id: ID of the user to update.
482483
:param tags: New tags for the user (maximum of 10 tags).
484+
:param email: New email for the user (only available on Members).
483485
:return: :class:`User <User>`
484486
485487
Usage:
@@ -499,6 +501,7 @@ def update_user(
499501
UpdateUserRequest(
500502
user_id=user_id,
501503
tags=tags,
504+
email=email,
502505
),
503506
self.client,
504507
),

scaleway/scaleway/iam/v1alpha1/marshalling.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,4 +1378,7 @@ def marshal_UpdateUserRequest(
13781378
if request.tags is not None:
13791379
output["tags"] = request.tags
13801380

1381+
if request.email is not None:
1382+
output["email"] = request.email
1383+
13811384
return output

scaleway/scaleway/iam/v1alpha1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,3 +1887,8 @@ class UpdateUserRequest:
18871887
"""
18881888
New tags for the user (maximum of 10 tags).
18891889
"""
1890+
1891+
email: Optional[str]
1892+
"""
1893+
New email for the user (only available on Members).
1894+
"""

0 commit comments

Comments
 (0)