Skip to content

feat(billing): add exclude field to describe if filter is an excluding filter. #666

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
Sep 27, 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
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ def unmarshal_DiscountFilter(data: Any) -> DiscountFilter:
if field is not None:
args["value"] = field

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

return DiscountFilter(**args)


Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/billing/v2alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ class DiscountFilter:
Value of filter, it can be a product/range/region/zone value.
"""

exclude: bool
"""
Boolean to describe if filter is an excluding filter.
"""


@dataclass
class GetConsumptionResponseConsumption:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ def unmarshal_DiscountFilter(data: Any) -> DiscountFilter:
if field is not None:
args["value"] = field

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

return DiscountFilter(**args)


Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/billing/v2beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ class DiscountFilter:
Value of filter.
"""

exclude: bool
"""
Boolean to describe if filter is an excluding filter.
"""


@dataclass
class ListConsumptionsResponseConsumption:
Expand Down
4 changes: 4 additions & 0 deletions scaleway/scaleway/billing/v2alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ def unmarshal_DiscountFilter(data: Any) -> DiscountFilter:
if field is not None:
args["value"] = field

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

return DiscountFilter(**args)


Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/billing/v2alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ class DiscountFilter:
Value of filter, it can be a product/range/region/zone value.
"""

exclude: bool
"""
Boolean to describe if filter is an excluding filter.
"""


@dataclass
class GetConsumptionResponseConsumption:
Expand Down
4 changes: 4 additions & 0 deletions scaleway/scaleway/billing/v2beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ def unmarshal_DiscountFilter(data: Any) -> DiscountFilter:
if field is not None:
args["value"] = field

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

return DiscountFilter(**args)


Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/billing/v2beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ class DiscountFilter:
Value of filter.
"""

exclude: bool
"""
Boolean to describe if filter is an excluding filter.
"""


@dataclass
class ListConsumptionsResponseConsumption:
Expand Down