File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed
scaleway-async/scaleway_async/audit_trail/v1alpha1
scaleway/scaleway/audit_trail/v1alpha1 Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -97,10 +97,12 @@ async def list_products(
9797 self ,
9898 * ,
9999 region : Optional [ScwRegion ] = None ,
100+ organization_id : Optional [str ] = None ,
100101 ) -> ListProductsResponse :
101102 """
102103 Retrieve the list of Scaleway resources for which you have Audit Trail events.
103104 :param region: Region to target. If none is passed will use default region from the config.
105+ :param organization_id: ID of the Organization containing the Audit Trail events.
104106 :return: :class:`ListProductsResponse <ListProductsResponse>`
105107
106108 Usage:
@@ -116,6 +118,10 @@ async def list_products(
116118 res = self ._request (
117119 "GET" ,
118120 f"/audit-trail/v1alpha1/regions/{ param_region } /products" ,
121+ params = {
122+ "organization_id" : organization_id
123+ or self .client .default_organization_id ,
124+ },
119125 )
120126
121127 self ._throw_on_error (res )
Original file line number Diff line number Diff line change @@ -298,6 +298,11 @@ class ListProductsRequest:
298298 Region to target. If none is passed will use default region from the config.
299299 """
300300
301+ organization_id : Optional [str ]
302+ """
303+ ID of the Organization containing the Audit Trail events.
304+ """
305+
301306
302307@dataclass
303308class ListProductsResponse :
Original file line number Diff line number Diff line change @@ -97,10 +97,12 @@ def list_products(
9797 self ,
9898 * ,
9999 region : Optional [ScwRegion ] = None ,
100+ organization_id : Optional [str ] = None ,
100101 ) -> ListProductsResponse :
101102 """
102103 Retrieve the list of Scaleway resources for which you have Audit Trail events.
103104 :param region: Region to target. If none is passed will use default region from the config.
105+ :param organization_id: ID of the Organization containing the Audit Trail events.
104106 :return: :class:`ListProductsResponse <ListProductsResponse>`
105107
106108 Usage:
@@ -116,6 +118,10 @@ def list_products(
116118 res = self ._request (
117119 "GET" ,
118120 f"/audit-trail/v1alpha1/regions/{ param_region } /products" ,
121+ params = {
122+ "organization_id" : organization_id
123+ or self .client .default_organization_id ,
124+ },
119125 )
120126
121127 self ._throw_on_error (res )
Original file line number Diff line number Diff line change @@ -298,6 +298,11 @@ class ListProductsRequest:
298298 Region to target. If none is passed will use default region from the config.
299299 """
300300
301+ organization_id : Optional [str ]
302+ """
303+ ID of the Organization containing the Audit Trail events.
304+ """
305+
301306
302307@dataclass
303308class ListProductsResponse :
You can’t perform that action at this time.
0 commit comments