Skip to content
Closed
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
24 changes: 18 additions & 6 deletions scaleway-async/scaleway_async/iam/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,18 @@ def unmarshal_Group(data: Any) -> Group:
else:
args["description"] = None

field = data.get("created_at", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
else:
args["created_at"] = None

field = data.get("updated_at", None)
if field is not None:
args["updated_at"] = parser.isoparse(field) if isinstance(field, str) else field
else:
args["updated_at"] = None

field = data.get("user_ids", None)
if field is not None:
args["user_ids"] = field
Expand Down Expand Up @@ -400,17 +412,17 @@ def unmarshal_Group(data: Any) -> Group:
else:
args["managed"] = False

field = data.get("created_at", None)
field = data.get("all_users", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
args["all_users"] = field
else:
args["created_at"] = None
args["all_users"] = False

field = data.get("updated_at", None)
field = data.get("all_applications", None)
if field is not None:
args["updated_at"] = parser.isoparse(field) if isinstance(field, str) else field
args["all_applications"] = field
else:
args["updated_at"] = None
args["all_applications"] = False

return Group(**args)

Expand Down
10 changes: 10 additions & 0 deletions scaleway-async/scaleway_async/iam/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,16 @@ class Group:
Defines whether or not the group is managed.
"""

all_users: bool
"""
Indicates if the group is the special "All Users" group that contains all users of the organization.
"""

all_applications: bool
"""
Indicates if the group is the special "All Applications" group that contains all non-managed applications of the organization.
"""

created_at: Optional[datetime] = None
"""
Date and time of group creation.
Expand Down
24 changes: 18 additions & 6 deletions scaleway/scaleway/iam/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,18 @@ def unmarshal_Group(data: Any) -> Group:
else:
args["description"] = None

field = data.get("created_at", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
else:
args["created_at"] = None

field = data.get("updated_at", None)
if field is not None:
args["updated_at"] = parser.isoparse(field) if isinstance(field, str) else field
else:
args["updated_at"] = None

field = data.get("user_ids", None)
if field is not None:
args["user_ids"] = field
Expand Down Expand Up @@ -400,17 +412,17 @@ def unmarshal_Group(data: Any) -> Group:
else:
args["managed"] = False

field = data.get("created_at", None)
field = data.get("all_users", None)
if field is not None:
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
args["all_users"] = field
else:
args["created_at"] = None
args["all_users"] = False

field = data.get("updated_at", None)
field = data.get("all_applications", None)
if field is not None:
args["updated_at"] = parser.isoparse(field) if isinstance(field, str) else field
args["all_applications"] = field
else:
args["updated_at"] = None
args["all_applications"] = False

return Group(**args)

Expand Down
10 changes: 10 additions & 0 deletions scaleway/scaleway/iam/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,16 @@ class Group:
Defines whether or not the group is managed.
"""

all_users: bool
"""
Indicates if the group is the special "All Users" group that contains all users of the organization.
"""

all_applications: bool
"""
Indicates if the group is the special "All Applications" group that contains all non-managed applications of the organization.
"""

created_at: Optional[datetime] = None
"""
Date and time of group creation.
Expand Down
Loading