Skip to content
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
13 changes: 13 additions & 0 deletions scaleway-async/scaleway_async/billing/v2beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,13 @@ async def list_discounts(
organization_id: Optional[str] = None,
) -> ListDiscountsResponse:
"""
List discounts.
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
:param order_by: Order discounts in the response by their description.
:param page: Positive integer to choose the page to return.
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
:param organization_id: ID of the organization.
:return: :class:`ListDiscountsResponse <ListDiscountsResponse>`

Usage:
::
Expand Down Expand Up @@ -486,6 +493,12 @@ async def list_discounts_all(
organization_id: Optional[str] = None,
) -> List[Discount]:
"""
List discounts.
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
:param order_by: Order discounts in the response by their description.
:param page: Positive integer to choose the page to return.
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
:param organization_id: ID of the organization.
:return: :class:`List[ListDiscountsResponse] <List[ListDiscountsResponse]>`

Usage:
Expand Down
13 changes: 13 additions & 0 deletions scaleway/scaleway/billing/v2beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,13 @@ def list_discounts(
organization_id: Optional[str] = None,
) -> ListDiscountsResponse:
"""
List discounts.
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
:param order_by: Order discounts in the response by their description.
:param page: Positive integer to choose the page to return.
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
:param organization_id: ID of the organization.
:return: :class:`ListDiscountsResponse <ListDiscountsResponse>`

Usage:
::
Expand Down Expand Up @@ -486,6 +493,12 @@ def list_discounts_all(
organization_id: Optional[str] = None,
) -> List[Discount]:
"""
List discounts.
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
:param order_by: Order discounts in the response by their description.
:param page: Positive integer to choose the page to return.
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
:param organization_id: ID of the organization.
:return: :class:`List[ListDiscountsResponse] <List[ListDiscountsResponse]>`

Usage:
Expand Down