File tree 4 files changed +22
-0
lines changed
scaleway/scaleway/audit_trail/v1alpha1
scaleway-async/scaleway_async/audit_trail/v1alpha1 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(
97
97
self ,
98
98
* ,
99
99
region : Optional [ScwRegion ] = None ,
100
+ organization_id : Optional [str ] = None ,
100
101
) -> ListProductsResponse :
101
102
"""
102
103
Retrieve the list of Scaleway resources for which you have Audit Trail events.
103
104
: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.
104
106
:return: :class:`ListProductsResponse <ListProductsResponse>`
105
107
106
108
Usage:
@@ -116,6 +118,10 @@ async def list_products(
116
118
res = self ._request (
117
119
"GET" ,
118
120
f"/audit-trail/v1alpha1/regions/{ param_region } /products" ,
121
+ params = {
122
+ "organization_id" : organization_id
123
+ or self .client .default_organization_id ,
124
+ },
119
125
)
120
126
121
127
self ._throw_on_error (res )
Original file line number Diff line number Diff line change @@ -298,6 +298,11 @@ class ListProductsRequest:
298
298
Region to target. If none is passed will use default region from the config.
299
299
"""
300
300
301
+ organization_id : Optional [str ]
302
+ """
303
+ ID of the Organization containing the Audit Trail events.
304
+ """
305
+
301
306
302
307
@dataclass
303
308
class ListProductsResponse :
Original file line number Diff line number Diff line change @@ -97,10 +97,12 @@ def list_products(
97
97
self ,
98
98
* ,
99
99
region : Optional [ScwRegion ] = None ,
100
+ organization_id : Optional [str ] = None ,
100
101
) -> ListProductsResponse :
101
102
"""
102
103
Retrieve the list of Scaleway resources for which you have Audit Trail events.
103
104
: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.
104
106
:return: :class:`ListProductsResponse <ListProductsResponse>`
105
107
106
108
Usage:
@@ -116,6 +118,10 @@ def list_products(
116
118
res = self ._request (
117
119
"GET" ,
118
120
f"/audit-trail/v1alpha1/regions/{ param_region } /products" ,
121
+ params = {
122
+ "organization_id" : organization_id
123
+ or self .client .default_organization_id ,
124
+ },
119
125
)
120
126
121
127
self ._throw_on_error (res )
Original file line number Diff line number Diff line change @@ -298,6 +298,11 @@ class ListProductsRequest:
298
298
Region to target. If none is passed will use default region from the config.
299
299
"""
300
300
301
+ organization_id : Optional [str ]
302
+ """
303
+ ID of the Organization containing the Audit Trail events.
304
+ """
305
+
301
306
302
307
@dataclass
303
308
class ListProductsResponse :
You can’t perform that action at this time.
0 commit comments