Skip to content

Commit 00d9836

Browse files
authored
feat(iam): add locked status on User (#660)
1 parent 6543139 commit 00d9836

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,10 @@ def unmarshal_User(data: Any) -> User:
557557
if field is not None:
558558
args["tags"] = field
559559

560+
field = data.get("locked", None)
561+
if field is not None:
562+
args["locked"] = field
563+
560564
field = data.get("last_login_at", None)
561565
if field is not None:
562566
args["last_login_at"] = (

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,11 @@ class User:
721721
Tags associated with the user.
722722
"""
723723

724+
locked: bool
725+
"""
726+
Defines whether the user is locked.
727+
"""
728+
724729
last_login_at: Optional[datetime]
725730
"""
726731
Date of the last login.

scaleway/scaleway/iam/v1alpha1/marshalling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,10 @@ def unmarshal_User(data: Any) -> User:
557557
if field is not None:
558558
args["tags"] = field
559559

560+
field = data.get("locked", None)
561+
if field is not None:
562+
args["locked"] = field
563+
560564
field = data.get("last_login_at", None)
561565
if field is not None:
562566
args["last_login_at"] = (

scaleway/scaleway/iam/v1alpha1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,11 @@ class User:
721721
Tags associated with the user.
722722
"""
723723

724+
locked: bool
725+
"""
726+
Defines whether the user is locked.
727+
"""
728+
724729
last_login_at: Optional[datetime]
725730
"""
726731
Date of the last login.

0 commit comments

Comments
 (0)