Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(iam): remove send_email in UpdateUserPassword #833

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 0 additions & 4 deletions scaleway-async/scaleway_async/iam/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,13 +630,11 @@ async def update_user_password(
*,
user_id: str,
password: str,
send_email: bool,
) -> User:
"""
Update an user's password. Private Beta feature.
:param user_id: ID of the user to update.
:param password: The new password.
:param send_email: Whether or not to send an email alerting the user their password has changed.
:return: :class:`User <User>`

Usage:
Expand All @@ -645,7 +643,6 @@ async def update_user_password(
result = await api.update_user_password(
user_id="example",
password="example",
send_email=False,
)
"""

Expand All @@ -658,7 +655,6 @@ async def update_user_password(
UpdateUserPasswordRequest(
user_id=user_id,
password=password,
send_email=send_email,
),
self.client,
),
Expand Down
3 changes: 0 additions & 3 deletions scaleway-async/scaleway_async/iam/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1455,9 +1455,6 @@ def marshal_UpdateUserPasswordRequest(
if request.password is not None:
output["password"] = request.password

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

return output


Expand Down
5 changes: 0 additions & 5 deletions scaleway-async/scaleway_async/iam/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1970,11 +1970,6 @@ class UpdateUserPasswordRequest:
The new password.
"""

send_email: bool
"""
Whether or not to send an email alerting the user their password has changed.
"""


@dataclass
class UpdateUserRequest:
Expand Down
4 changes: 0 additions & 4 deletions scaleway/scaleway/iam/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,13 +630,11 @@ def update_user_password(
*,
user_id: str,
password: str,
send_email: bool,
) -> User:
"""
Update an user's password. Private Beta feature.
:param user_id: ID of the user to update.
:param password: The new password.
:param send_email: Whether or not to send an email alerting the user their password has changed.
:return: :class:`User <User>`

Usage:
Expand All @@ -645,7 +643,6 @@ def update_user_password(
result = api.update_user_password(
user_id="example",
password="example",
send_email=False,
)
"""

Expand All @@ -658,7 +655,6 @@ def update_user_password(
UpdateUserPasswordRequest(
user_id=user_id,
password=password,
send_email=send_email,
),
self.client,
),
Expand Down
3 changes: 0 additions & 3 deletions scaleway/scaleway/iam/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1455,9 +1455,6 @@ def marshal_UpdateUserPasswordRequest(
if request.password is not None:
output["password"] = request.password

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

return output


Expand Down
5 changes: 0 additions & 5 deletions scaleway/scaleway/iam/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1970,11 +1970,6 @@ class UpdateUserPasswordRequest:
The new password.
"""

send_email: bool
"""
Whether or not to send an email alerting the user their password has changed.
"""


@dataclass
class UpdateUserRequest:
Expand Down
Loading