From 6a6c6374cb2dd046aea145a940856eee4cf99251 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Thu, 27 Feb 2025 07:55:08 +0000 Subject: [PATCH] feat: update generated APIs --- scaleway-async/scaleway_async/audit_trail/v1alpha1/api.py | 6 ++++++ scaleway-async/scaleway_async/audit_trail/v1alpha1/types.py | 5 +++++ scaleway/scaleway/audit_trail/v1alpha1/api.py | 6 ++++++ scaleway/scaleway/audit_trail/v1alpha1/types.py | 5 +++++ 4 files changed, 22 insertions(+) diff --git a/scaleway-async/scaleway_async/audit_trail/v1alpha1/api.py b/scaleway-async/scaleway_async/audit_trail/v1alpha1/api.py index a7c4aae16..f881959b3 100644 --- a/scaleway-async/scaleway_async/audit_trail/v1alpha1/api.py +++ b/scaleway-async/scaleway_async/audit_trail/v1alpha1/api.py @@ -97,10 +97,12 @@ async def list_products( self, *, region: Optional[ScwRegion] = None, + organization_id: Optional[str] = None, ) -> ListProductsResponse: """ Retrieve the list of Scaleway resources for which you have Audit Trail events. :param region: Region to target. If none is passed will use default region from the config. + :param organization_id: ID of the Organization containing the Audit Trail events. :return: :class:`ListProductsResponse ` Usage: @@ -116,6 +118,10 @@ async def list_products( res = self._request( "GET", f"/audit-trail/v1alpha1/regions/{param_region}/products", + params={ + "organization_id": organization_id + or self.client.default_organization_id, + }, ) self._throw_on_error(res) diff --git a/scaleway-async/scaleway_async/audit_trail/v1alpha1/types.py b/scaleway-async/scaleway_async/audit_trail/v1alpha1/types.py index 6f78c25be..bad7d376b 100644 --- a/scaleway-async/scaleway_async/audit_trail/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/audit_trail/v1alpha1/types.py @@ -298,6 +298,11 @@ class ListProductsRequest: Region to target. If none is passed will use default region from the config. """ + organization_id: Optional[str] + """ + ID of the Organization containing the Audit Trail events. + """ + @dataclass class ListProductsResponse: diff --git a/scaleway/scaleway/audit_trail/v1alpha1/api.py b/scaleway/scaleway/audit_trail/v1alpha1/api.py index fd41571b7..5b82ec892 100644 --- a/scaleway/scaleway/audit_trail/v1alpha1/api.py +++ b/scaleway/scaleway/audit_trail/v1alpha1/api.py @@ -97,10 +97,12 @@ def list_products( self, *, region: Optional[ScwRegion] = None, + organization_id: Optional[str] = None, ) -> ListProductsResponse: """ Retrieve the list of Scaleway resources for which you have Audit Trail events. :param region: Region to target. If none is passed will use default region from the config. + :param organization_id: ID of the Organization containing the Audit Trail events. :return: :class:`ListProductsResponse ` Usage: @@ -116,6 +118,10 @@ def list_products( res = self._request( "GET", f"/audit-trail/v1alpha1/regions/{param_region}/products", + params={ + "organization_id": organization_id + or self.client.default_organization_id, + }, ) self._throw_on_error(res) diff --git a/scaleway/scaleway/audit_trail/v1alpha1/types.py b/scaleway/scaleway/audit_trail/v1alpha1/types.py index 6f78c25be..bad7d376b 100644 --- a/scaleway/scaleway/audit_trail/v1alpha1/types.py +++ b/scaleway/scaleway/audit_trail/v1alpha1/types.py @@ -298,6 +298,11 @@ class ListProductsRequest: Region to target. If none is passed will use default region from the config. """ + organization_id: Optional[str] + """ + ID of the Organization containing the Audit Trail events. + """ + @dataclass class ListProductsResponse: