File tree 6 files changed +22
-0
lines changed
scaleway/scaleway/iam/v1alpha1
scaleway-async/scaleway_async/iam/v1alpha1 6 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -474,12 +474,14 @@ async def update_user(
474
474
* ,
475
475
user_id : str ,
476
476
tags : Optional [List [str ]] = None ,
477
+ email : Optional [str ] = None ,
477
478
) -> User :
478
479
"""
479
480
Update a user.
480
481
Update the parameters of a user, including `tags`.
481
482
:param user_id: ID of the user to update.
482
483
:param tags: New tags for the user (maximum of 10 tags).
484
+ :param email: New email for the user (only available on Members).
483
485
:return: :class:`User <User>`
484
486
485
487
Usage:
@@ -499,6 +501,7 @@ async def update_user(
499
501
UpdateUserRequest (
500
502
user_id = user_id ,
501
503
tags = tags ,
504
+ email = email ,
502
505
),
503
506
self .client ,
504
507
),
Original file line number Diff line number Diff line change @@ -1378,4 +1378,7 @@ def marshal_UpdateUserRequest(
1378
1378
if request .tags is not None :
1379
1379
output ["tags" ] = request .tags
1380
1380
1381
+ if request .email is not None :
1382
+ output ["email" ] = request .email
1383
+
1381
1384
return output
Original file line number Diff line number Diff line change @@ -1887,3 +1887,8 @@ class UpdateUserRequest:
1887
1887
"""
1888
1888
New tags for the user (maximum of 10 tags).
1889
1889
"""
1890
+
1891
+ email : Optional [str ]
1892
+ """
1893
+ New email for the user (only available on Members).
1894
+ """
Original file line number Diff line number Diff line change @@ -474,12 +474,14 @@ def update_user(
474
474
* ,
475
475
user_id : str ,
476
476
tags : Optional [List [str ]] = None ,
477
+ email : Optional [str ] = None ,
477
478
) -> User :
478
479
"""
479
480
Update a user.
480
481
Update the parameters of a user, including `tags`.
481
482
:param user_id: ID of the user to update.
482
483
:param tags: New tags for the user (maximum of 10 tags).
484
+ :param email: New email for the user (only available on Members).
483
485
:return: :class:`User <User>`
484
486
485
487
Usage:
@@ -499,6 +501,7 @@ def update_user(
499
501
UpdateUserRequest (
500
502
user_id = user_id ,
501
503
tags = tags ,
504
+ email = email ,
502
505
),
503
506
self .client ,
504
507
),
Original file line number Diff line number Diff line change @@ -1378,4 +1378,7 @@ def marshal_UpdateUserRequest(
1378
1378
if request .tags is not None :
1379
1379
output ["tags" ] = request .tags
1380
1380
1381
+ if request .email is not None :
1382
+ output ["email" ] = request .email
1383
+
1381
1384
return output
Original file line number Diff line number Diff line change @@ -1887,3 +1887,8 @@ class UpdateUserRequest:
1887
1887
"""
1888
1888
New tags for the user (maximum of 10 tags).
1889
1889
"""
1890
+
1891
+ email : Optional [str ]
1892
+ """
1893
+ New email for the user (only available on Members).
1894
+ """
You can’t perform that action at this time.
0 commit comments