Skip to content

Commit 47221e6

Browse files
authored
feat(iam): add send_welcome_email in CreateUser (scaleway#748)
1 parent 97dcc42 commit 47221e6

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,9 @@ def marshal_CreateUserRequestMember(
11761176
if request.send_password_email is not None:
11771177
output["send_password_email"] = request.send_password_email
11781178

1179+
if request.send_welcome_email is not None:
1180+
output["send_welcome_email"] = request.send_welcome_email
1181+
11791182
if request.username is not None:
11801183
output["username"] = request.username
11811184

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ class CreateUserRequestMember:
254254
Whether or not to send an email containing the member's password.
255255
"""
256256

257+
send_welcome_email: bool
258+
"""
259+
Whether or not to send a welcome email that includes onboarding information.
260+
"""
261+
257262
username: str
258263
"""
259264
The member's username.

scaleway/scaleway/iam/v1alpha1/marshalling.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,9 @@ def marshal_CreateUserRequestMember(
11761176
if request.send_password_email is not None:
11771177
output["send_password_email"] = request.send_password_email
11781178

1179+
if request.send_welcome_email is not None:
1180+
output["send_welcome_email"] = request.send_welcome_email
1181+
11791182
if request.username is not None:
11801183
output["username"] = request.username
11811184

scaleway/scaleway/iam/v1alpha1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ class CreateUserRequestMember:
254254
Whether or not to send an email containing the member's password.
255255
"""
256256

257+
send_welcome_email: bool
258+
"""
259+
Whether or not to send a welcome email that includes onboarding information.
260+
"""
261+
257262
username: str
258263
"""
259264
The member's username.

0 commit comments

Comments
 (0)