diff --git a/scaleway-async/scaleway_async/audit_trail/v1alpha1/api.py b/scaleway-async/scaleway_async/audit_trail/v1alpha1/api.py index f881959b3..143a8da7c 100644 --- a/scaleway-async/scaleway_async/audit_trail/v1alpha1/api.py +++ b/scaleway-async/scaleway_async/audit_trail/v1alpha1/api.py @@ -43,6 +43,7 @@ async def list_events( page_size: Optional[int] = None, page_token: Optional[str] = None, product_name: Optional[str] = None, + service_name: Optional[str] = None, ) -> ListEventsResponse: """ List events. @@ -51,7 +52,7 @@ async def list_events( :param project_id: (Optional) ID of the Project containing the Audit Trail events. :param organization_id: ID of the Organization containing the Audit Trail events. :param resource_type: (Optional) Returns a paginated list of Scaleway resources' features. - :param method_name: (Optional) Name of the method or the API call performed. + :param method_name: (Optional) Name of the method of the API call performed. :param status: (Optional) HTTP status code of the request. Returns either `200` if the request was successful or `403` if the permission was denied. :param recorded_after: (Optional) The `recorded_after` parameter defines the earliest timestamp from which Audit Trail events are retrieved. Returns `one hour ago` by default. :param recorded_before: (Optional) The `recorded_before` parameter defines the latest timestamp up to which Audit Trail events are retrieved. Returns `now` by default. @@ -59,6 +60,7 @@ async def list_events( :param page_size: :param page_token: :param product_name: (Optional) Name of the Scaleway resource in a hyphenated format. + :param service_name: (Optional) Name of the service of the API call performed. :return: :class:`ListEventsResponse ` Usage: @@ -86,6 +88,7 @@ async def list_events( "recorded_after": recorded_after, "recorded_before": recorded_before, "resource_type": resource_type, + "service_name": service_name, "status": status, }, ) diff --git a/scaleway-async/scaleway_async/audit_trail/v1alpha1/types.py b/scaleway-async/scaleway_async/audit_trail/v1alpha1/types.py index f58c9ff5d..f38912960 100644 --- a/scaleway-async/scaleway_async/audit_trail/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/audit_trail/v1alpha1/types.py @@ -257,7 +257,7 @@ class ListEventsRequest: method_name: Optional[str] """ - (Optional) Name of the method or the API call performed. + (Optional) Name of the method of the API call performed. """ status: Optional[int] @@ -286,6 +286,11 @@ class ListEventsRequest: (Optional) Name of the Scaleway resource in a hyphenated format. """ + service_name: Optional[str] + """ + (Optional) Name of the service of the API call performed. + """ + @dataclass class ListEventsResponse: diff --git a/scaleway/scaleway/audit_trail/v1alpha1/api.py b/scaleway/scaleway/audit_trail/v1alpha1/api.py index 5b82ec892..f2e593c99 100644 --- a/scaleway/scaleway/audit_trail/v1alpha1/api.py +++ b/scaleway/scaleway/audit_trail/v1alpha1/api.py @@ -43,6 +43,7 @@ def list_events( page_size: Optional[int] = None, page_token: Optional[str] = None, product_name: Optional[str] = None, + service_name: Optional[str] = None, ) -> ListEventsResponse: """ List events. @@ -51,7 +52,7 @@ def list_events( :param project_id: (Optional) ID of the Project containing the Audit Trail events. :param organization_id: ID of the Organization containing the Audit Trail events. :param resource_type: (Optional) Returns a paginated list of Scaleway resources' features. - :param method_name: (Optional) Name of the method or the API call performed. + :param method_name: (Optional) Name of the method of the API call performed. :param status: (Optional) HTTP status code of the request. Returns either `200` if the request was successful or `403` if the permission was denied. :param recorded_after: (Optional) The `recorded_after` parameter defines the earliest timestamp from which Audit Trail events are retrieved. Returns `one hour ago` by default. :param recorded_before: (Optional) The `recorded_before` parameter defines the latest timestamp up to which Audit Trail events are retrieved. Returns `now` by default. @@ -59,6 +60,7 @@ def list_events( :param page_size: :param page_token: :param product_name: (Optional) Name of the Scaleway resource in a hyphenated format. + :param service_name: (Optional) Name of the service of the API call performed. :return: :class:`ListEventsResponse ` Usage: @@ -86,6 +88,7 @@ def list_events( "recorded_after": recorded_after, "recorded_before": recorded_before, "resource_type": resource_type, + "service_name": service_name, "status": status, }, ) diff --git a/scaleway/scaleway/audit_trail/v1alpha1/types.py b/scaleway/scaleway/audit_trail/v1alpha1/types.py index f58c9ff5d..f38912960 100644 --- a/scaleway/scaleway/audit_trail/v1alpha1/types.py +++ b/scaleway/scaleway/audit_trail/v1alpha1/types.py @@ -257,7 +257,7 @@ class ListEventsRequest: method_name: Optional[str] """ - (Optional) Name of the method or the API call performed. + (Optional) Name of the method of the API call performed. """ status: Optional[int] @@ -286,6 +286,11 @@ class ListEventsRequest: (Optional) Name of the Scaleway resource in a hyphenated format. """ + service_name: Optional[str] + """ + (Optional) Name of the service of the API call performed. + """ + @dataclass class ListEventsResponse: