Skip to content

feat(iam): add support for pretty_name, unit and description in Quotum #490

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

Merged
merged 1 commit into from
Apr 11, 2024
Merged
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
12 changes: 12 additions & 0 deletions scaleway-async/scaleway_async/iam/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,18 @@ def unmarshal_Quotum(data: Any) -> Quotum:
if field is not None:
args["name"] = field

field = data.get("pretty_name", None)
if field is not None:
args["pretty_name"] = field

field = data.get("unit", None)
if field is not None:
args["unit"] = field

field = data.get("description", None)
if field is not None:
args["description"] = field

field = data.get("limit", None)
if field is not None:
args["limit"] = field
Expand Down
15 changes: 15 additions & 0 deletions scaleway-async/scaleway_async/iam/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,21 @@ class Quotum:
Name of the quota.
"""

pretty_name: str
"""
A human-readable name for the quota.
"""

unit: str
"""
The unit in which the quota is expressed.
"""

description: str
"""
Details about the quota.
"""

limit: Optional[int]

unlimited: Optional[bool]
Expand Down
12 changes: 12 additions & 0 deletions scaleway/scaleway/iam/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,18 @@ def unmarshal_Quotum(data: Any) -> Quotum:
if field is not None:
args["name"] = field

field = data.get("pretty_name", None)
if field is not None:
args["pretty_name"] = field

field = data.get("unit", None)
if field is not None:
args["unit"] = field

field = data.get("description", None)
if field is not None:
args["description"] = field

field = data.get("limit", None)
if field is not None:
args["limit"] = field
Expand Down
15 changes: 15 additions & 0 deletions scaleway/scaleway/iam/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,21 @@ class Quotum:
Name of the quota.
"""

pretty_name: str
"""
A human-readable name for the quota.
"""

unit: str
"""
The unit in which the quota is expressed.
"""

description: str
"""
Details about the quota.
"""

limit: Optional[int]

unlimited: Optional[bool]
Expand Down