diff --git a/scaleway-async/scaleway_async/product_catalog/v2alpha1/api.py b/scaleway-async/scaleway_async/product_catalog/v2alpha1/api.py index 7c082f1f1..019e198fa 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/api.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/api.py @@ -11,6 +11,7 @@ ListPublicCatalogProductsRequestProductType, ListPublicCatalogProductsResponse, PublicCatalogProduct, + PublicCatalogProductLocality, ) from .marshalling import ( unmarshal_ListPublicCatalogProductsResponse, @@ -28,6 +29,7 @@ async def list_public_catalog_products( product_types: Optional[ List[ListPublicCatalogProductsRequestProductType] ] = None, + locality: Optional[PublicCatalogProductLocality] = None, ) -> ListPublicCatalogProductsResponse: """ List all available products. @@ -35,6 +37,7 @@ async def list_public_catalog_products( :param page: Number of the page. Value must be greater or equal to 1. :param page_size: The number of products per page. Value must be greater or equal to 1. :param product_types: The list of filtered product categories. + :param locality: The locality of the products to filter by. If not set, all localities are returned. :return: :class:`ListPublicCatalogProductsResponse ` Usage: @@ -47,6 +50,7 @@ async def list_public_catalog_products( "GET", "/product-catalog/v2alpha1/public-catalog/products", params={ + "locality": locality, "page": page, "page_size": page_size or self.client.default_page_size, "product_types": product_types, @@ -64,6 +68,7 @@ async def list_public_catalog_products_all( product_types: Optional[ List[ListPublicCatalogProductsRequestProductType] ] = None, + locality: Optional[PublicCatalogProductLocality] = None, ) -> List[PublicCatalogProduct]: """ List all available products. @@ -71,6 +76,7 @@ async def list_public_catalog_products_all( :param page: Number of the page. Value must be greater or equal to 1. :param page_size: The number of products per page. Value must be greater or equal to 1. :param product_types: The list of filtered product categories. + :param locality: The locality of the products to filter by. If not set, all localities are returned. :return: :class:`List[PublicCatalogProduct] ` Usage: @@ -87,5 +93,6 @@ async def list_public_catalog_products_all( "page": page, "page_size": page_size, "product_types": product_types, + "locality": locality, }, ) diff --git a/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py b/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py index b7f1948a9..79cefcbc0 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py @@ -432,3 +432,8 @@ class PublicCatalogApiListPublicCatalogProductsRequest: """ The list of filtered product categories. """ + + locality: Optional[PublicCatalogProductLocality] + """ + The locality of the products to filter by. If not set, all localities are returned. + """ diff --git a/scaleway/scaleway/product_catalog/v2alpha1/api.py b/scaleway/scaleway/product_catalog/v2alpha1/api.py index 181de4a0a..8eac6a3fc 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/api.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/api.py @@ -11,6 +11,7 @@ ListPublicCatalogProductsRequestProductType, ListPublicCatalogProductsResponse, PublicCatalogProduct, + PublicCatalogProductLocality, ) from .marshalling import ( unmarshal_ListPublicCatalogProductsResponse, @@ -28,6 +29,7 @@ def list_public_catalog_products( product_types: Optional[ List[ListPublicCatalogProductsRequestProductType] ] = None, + locality: Optional[PublicCatalogProductLocality] = None, ) -> ListPublicCatalogProductsResponse: """ List all available products. @@ -35,6 +37,7 @@ def list_public_catalog_products( :param page: Number of the page. Value must be greater or equal to 1. :param page_size: The number of products per page. Value must be greater or equal to 1. :param product_types: The list of filtered product categories. + :param locality: The locality of the products to filter by. If not set, all localities are returned. :return: :class:`ListPublicCatalogProductsResponse ` Usage: @@ -47,6 +50,7 @@ def list_public_catalog_products( "GET", "/product-catalog/v2alpha1/public-catalog/products", params={ + "locality": locality, "page": page, "page_size": page_size or self.client.default_page_size, "product_types": product_types, @@ -64,6 +68,7 @@ def list_public_catalog_products_all( product_types: Optional[ List[ListPublicCatalogProductsRequestProductType] ] = None, + locality: Optional[PublicCatalogProductLocality] = None, ) -> List[PublicCatalogProduct]: """ List all available products. @@ -71,6 +76,7 @@ def list_public_catalog_products_all( :param page: Number of the page. Value must be greater or equal to 1. :param page_size: The number of products per page. Value must be greater or equal to 1. :param product_types: The list of filtered product categories. + :param locality: The locality of the products to filter by. If not set, all localities are returned. :return: :class:`List[PublicCatalogProduct] ` Usage: @@ -87,5 +93,6 @@ def list_public_catalog_products_all( "page": page, "page_size": page_size, "product_types": product_types, + "locality": locality, }, ) diff --git a/scaleway/scaleway/product_catalog/v2alpha1/types.py b/scaleway/scaleway/product_catalog/v2alpha1/types.py index b7f1948a9..79cefcbc0 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/types.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/types.py @@ -432,3 +432,8 @@ class PublicCatalogApiListPublicCatalogProductsRequest: """ The list of filtered product categories. """ + + locality: Optional[PublicCatalogProductLocality] + """ + The locality of the products to filter by. If not set, all localities are returned. + """