From b901299c3c8f4568c8da12f70d1ec50c2e618ed1 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Thu, 6 Mar 2025 15:20:13 +0000 Subject: [PATCH] feat: update generated APIs --- scaleway-async/scaleway_async/billing/v2beta1/api.py | 10 ++++++++-- scaleway-async/scaleway_async/billing/v2beta1/types.py | 2 +- scaleway/scaleway/billing/v2beta1/api.py | 10 ++++++++-- scaleway/scaleway/billing/v2beta1/types.py | 2 +- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/scaleway-async/scaleway_async/billing/v2beta1/api.py b/scaleway-async/scaleway_async/billing/v2beta1/api.py index 3992ded4..3b1e1350 100644 --- a/scaleway-async/scaleway_async/billing/v2beta1/api.py +++ b/scaleway-async/scaleway_async/billing/v2beta1/api.py @@ -438,7 +438,10 @@ async def list_discounts( ) -> ListDiscountsResponse: """ List discounts. - List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied. + List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller: + - If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers + - If you indicate your `organization_id` you will list only the discounts applied to your Organization + - If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization. :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. @@ -476,7 +479,10 @@ async def list_discounts_all( ) -> 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. + List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller: + - If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers + - If you indicate your `organization_id` you will list only the discounts applied to your Organization + - If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization. :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. diff --git a/scaleway-async/scaleway_async/billing/v2beta1/types.py b/scaleway-async/scaleway_async/billing/v2beta1/types.py index 6db2ab66..3bb5b5d2 100644 --- a/scaleway-async/scaleway_async/billing/v2beta1/types.py +++ b/scaleway-async/scaleway_async/billing/v2beta1/types.py @@ -211,7 +211,7 @@ class Discount: organization_id: str """ - The organization ID of the discount. + The Organization ID of the discount. """ description: str diff --git a/scaleway/scaleway/billing/v2beta1/api.py b/scaleway/scaleway/billing/v2beta1/api.py index bff464ff..268bf032 100644 --- a/scaleway/scaleway/billing/v2beta1/api.py +++ b/scaleway/scaleway/billing/v2beta1/api.py @@ -438,7 +438,10 @@ def list_discounts( ) -> ListDiscountsResponse: """ List discounts. - List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied. + List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller: + - If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers + - If you indicate your `organization_id` you will list only the discounts applied to your Organization + - If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization. :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. @@ -476,7 +479,10 @@ def list_discounts_all( ) -> 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. + List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller: + - If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers + - If you indicate your `organization_id` you will list only the discounts applied to your Organization + - If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization. :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. diff --git a/scaleway/scaleway/billing/v2beta1/types.py b/scaleway/scaleway/billing/v2beta1/types.py index 6db2ab66..3bb5b5d2 100644 --- a/scaleway/scaleway/billing/v2beta1/types.py +++ b/scaleway/scaleway/billing/v2beta1/types.py @@ -211,7 +211,7 @@ class Discount: organization_id: str """ - The organization ID of the discount. + The Organization ID of the discount. """ description: str