diff --git a/scaleway-async/scaleway_async/iam/v1alpha1/api.py b/scaleway-async/scaleway_async/iam/v1alpha1/api.py index 4c04aa006..c4338fa7f 100644 --- a/scaleway-async/scaleway_async/iam/v1alpha1/api.py +++ b/scaleway-async/scaleway_async/iam/v1alpha1/api.py @@ -2003,7 +2003,7 @@ async def get_quotum( ) -> Quotum: """ Get a quota in the Organization. - Retrieve information about a resource quota, speficified by the `quotum_name` parameter. The quota's `limit`, or whether it is unlimited, is returned in the response. + Retrieve information about a resource quota, specified by the `quotum_name` parameter. The quota's `limit`, or whether it is unlimited, is returned in the response. :param quotum_name: Name of the quota to get. :param organization_id: ID of the Organization. :return: :class:`Quotum ` @@ -2169,6 +2169,18 @@ async def list_logs( search: Optional[str] = None, ) -> ListLogsResponse: """ + List logs. + List logs available for given Organization. You must define the `organization_id` in the query path of your request. + :param order_by: Criteria for sorting results. + :param organization_id: Filter by Organization ID. + :param page_size: Number of results per page. Value must be between 1 and 100. + :param page: Page number. Value must be greater to 1. + :param created_after: Defined whether or not to filter out logs created after this timestamp. + :param created_before: Defined whether or not to filter out logs created before this timestamp. + :param action: Defined whether or not to filter out by a specific action. + :param resource_type: Defined whether or not to filter out by a specific type of resource. + :param search: Defined whether or not to filter out log by bearer ID or resource ID. + :return: :class:`ListLogsResponse ` Usage: :: @@ -2210,6 +2222,17 @@ async def list_logs_all( search: Optional[str] = None, ) -> List[Log]: """ + List logs. + List logs available for given Organization. You must define the `organization_id` in the query path of your request. + :param order_by: Criteria for sorting results. + :param organization_id: Filter by Organization ID. + :param page_size: Number of results per page. Value must be between 1 and 100. + :param page: Page number. Value must be greater to 1. + :param created_after: Defined whether or not to filter out logs created after this timestamp. + :param created_before: Defined whether or not to filter out logs created before this timestamp. + :param action: Defined whether or not to filter out by a specific action. + :param resource_type: Defined whether or not to filter out by a specific type of resource. + :param search: Defined whether or not to filter out log by bearer ID or resource ID. :return: :class:`List[ListLogsResponse] ` Usage: @@ -2241,6 +2264,10 @@ async def get_log( log_id: str, ) -> Log: """ + Get a log. + Retrieve information about a log, specified by the `log_id` parameter. The log's full details, including `id`, `ip`, `user_agent`, `action`, `bearer_id`, `resource_type` and `resource_id` are returned in the response. + :param log_id: ID of the log. + :return: :class:`Log ` Usage: :: diff --git a/scaleway/scaleway/iam/v1alpha1/api.py b/scaleway/scaleway/iam/v1alpha1/api.py index 2f070b9e9..582eee124 100644 --- a/scaleway/scaleway/iam/v1alpha1/api.py +++ b/scaleway/scaleway/iam/v1alpha1/api.py @@ -2003,7 +2003,7 @@ def get_quotum( ) -> Quotum: """ Get a quota in the Organization. - Retrieve information about a resource quota, speficified by the `quotum_name` parameter. The quota's `limit`, or whether it is unlimited, is returned in the response. + Retrieve information about a resource quota, specified by the `quotum_name` parameter. The quota's `limit`, or whether it is unlimited, is returned in the response. :param quotum_name: Name of the quota to get. :param organization_id: ID of the Organization. :return: :class:`Quotum ` @@ -2169,6 +2169,18 @@ def list_logs( search: Optional[str] = None, ) -> ListLogsResponse: """ + List logs. + List logs available for given Organization. You must define the `organization_id` in the query path of your request. + :param order_by: Criteria for sorting results. + :param organization_id: Filter by Organization ID. + :param page_size: Number of results per page. Value must be between 1 and 100. + :param page: Page number. Value must be greater to 1. + :param created_after: Defined whether or not to filter out logs created after this timestamp. + :param created_before: Defined whether or not to filter out logs created before this timestamp. + :param action: Defined whether or not to filter out by a specific action. + :param resource_type: Defined whether or not to filter out by a specific type of resource. + :param search: Defined whether or not to filter out log by bearer ID or resource ID. + :return: :class:`ListLogsResponse ` Usage: :: @@ -2210,6 +2222,17 @@ def list_logs_all( search: Optional[str] = None, ) -> List[Log]: """ + List logs. + List logs available for given Organization. You must define the `organization_id` in the query path of your request. + :param order_by: Criteria for sorting results. + :param organization_id: Filter by Organization ID. + :param page_size: Number of results per page. Value must be between 1 and 100. + :param page: Page number. Value must be greater to 1. + :param created_after: Defined whether or not to filter out logs created after this timestamp. + :param created_before: Defined whether or not to filter out logs created before this timestamp. + :param action: Defined whether or not to filter out by a specific action. + :param resource_type: Defined whether or not to filter out by a specific type of resource. + :param search: Defined whether or not to filter out log by bearer ID or resource ID. :return: :class:`List[ListLogsResponse] ` Usage: @@ -2241,6 +2264,10 @@ def get_log( log_id: str, ) -> Log: """ + Get a log. + Retrieve information about a log, specified by the `log_id` parameter. The log's full details, including `id`, `ip`, `user_agent`, `action`, `bearer_id`, `resource_type` and `resource_id` are returned in the response. + :param log_id: ID of the log. + :return: :class:`Log ` Usage: ::