diff --git a/scaleway-async/scaleway_async/container/v1/api.py b/scaleway-async/scaleway_async/container/v1/api.py index 0ad37364f..526f1fae6 100644 --- a/scaleway-async/scaleway_async/container/v1/api.py +++ b/scaleway-async/scaleway_async/container/v1/api.py @@ -23,6 +23,7 @@ ListDomainsRequestOrderBy, ListNamespacesRequestOrderBy, ListTriggersRequestOrderBy, + TriggerSourceType, Container, ContainerProbe, ContainerScalingOption, @@ -1348,12 +1349,13 @@ async def list_triggers( project_id: Optional[str] = None, namespace_id: Optional[str] = None, container_id: Optional[str] = None, + trigger_type: Optional[TriggerSourceType] = None, ) -> ListTriggersResponse: """ List all triggers the caller can access (read permission). By default, the triggers listed are ordered by creation date in ascending order. This can be modified via the `order_by` field. - Additional parameters can be set in the query to filter, such as `organization_id`, `project_id`, `namespace_id`, or `container_id`. + Additional parameters can be set in the query to filter, such as `organization_id`, `project_id`, `namespace_id`, `container_id` or `trigger_type`. :param region: Region to target. If none is passed will use default region from the config. :param page: :param page_size: @@ -1362,6 +1364,7 @@ async def list_triggers( :param project_id: :param namespace_id: :param container_id: + :param trigger_type: :return: :class:`ListTriggersResponse ` Usage: @@ -1386,6 +1389,7 @@ async def list_triggers( "page": page, "page_size": page_size or self.client.default_page_size, "project_id": project_id or self.client.default_project_id, + "trigger_type": trigger_type, }, ) @@ -1403,12 +1407,13 @@ async def list_triggers_all( project_id: Optional[str] = None, namespace_id: Optional[str] = None, container_id: Optional[str] = None, + trigger_type: Optional[TriggerSourceType] = None, ) -> list[Trigger]: """ List all triggers the caller can access (read permission). By default, the triggers listed are ordered by creation date in ascending order. This can be modified via the `order_by` field. - Additional parameters can be set in the query to filter, such as `organization_id`, `project_id`, `namespace_id`, or `container_id`. + Additional parameters can be set in the query to filter, such as `organization_id`, `project_id`, `namespace_id`, `container_id` or `trigger_type`. :param region: Region to target. If none is passed will use default region from the config. :param page: :param page_size: @@ -1417,6 +1422,7 @@ async def list_triggers_all( :param project_id: :param namespace_id: :param container_id: + :param trigger_type: :return: :class:`list[Trigger] ` Usage: @@ -1438,6 +1444,7 @@ async def list_triggers_all( "project_id": project_id, "namespace_id": namespace_id, "container_id": container_id, + "trigger_type": trigger_type, }, ) diff --git a/scaleway-async/scaleway_async/container/v1/types.py b/scaleway-async/scaleway_async/container/v1/types.py index f931ca056..22dc757dd 100644 --- a/scaleway-async/scaleway_async/container/v1/types.py +++ b/scaleway-async/scaleway_async/container/v1/types.py @@ -1246,6 +1246,7 @@ class ListTriggersRequest: project_id: Optional[str] = None namespace_id: Optional[str] = None container_id: Optional[str] = None + trigger_type: Optional[TriggerSourceType] = None @dataclass diff --git a/scaleway/scaleway/container/v1/api.py b/scaleway/scaleway/container/v1/api.py index 2ca7fa52f..1c7bf3928 100644 --- a/scaleway/scaleway/container/v1/api.py +++ b/scaleway/scaleway/container/v1/api.py @@ -23,6 +23,7 @@ ListDomainsRequestOrderBy, ListNamespacesRequestOrderBy, ListTriggersRequestOrderBy, + TriggerSourceType, Container, ContainerProbe, ContainerScalingOption, @@ -1344,12 +1345,13 @@ def list_triggers( project_id: Optional[str] = None, namespace_id: Optional[str] = None, container_id: Optional[str] = None, + trigger_type: Optional[TriggerSourceType] = None, ) -> ListTriggersResponse: """ List all triggers the caller can access (read permission). By default, the triggers listed are ordered by creation date in ascending order. This can be modified via the `order_by` field. - Additional parameters can be set in the query to filter, such as `organization_id`, `project_id`, `namespace_id`, or `container_id`. + Additional parameters can be set in the query to filter, such as `organization_id`, `project_id`, `namespace_id`, `container_id` or `trigger_type`. :param region: Region to target. If none is passed will use default region from the config. :param page: :param page_size: @@ -1358,6 +1360,7 @@ def list_triggers( :param project_id: :param namespace_id: :param container_id: + :param trigger_type: :return: :class:`ListTriggersResponse ` Usage: @@ -1382,6 +1385,7 @@ def list_triggers( "page": page, "page_size": page_size or self.client.default_page_size, "project_id": project_id or self.client.default_project_id, + "trigger_type": trigger_type, }, ) @@ -1399,12 +1403,13 @@ def list_triggers_all( project_id: Optional[str] = None, namespace_id: Optional[str] = None, container_id: Optional[str] = None, + trigger_type: Optional[TriggerSourceType] = None, ) -> list[Trigger]: """ List all triggers the caller can access (read permission). By default, the triggers listed are ordered by creation date in ascending order. This can be modified via the `order_by` field. - Additional parameters can be set in the query to filter, such as `organization_id`, `project_id`, `namespace_id`, or `container_id`. + Additional parameters can be set in the query to filter, such as `organization_id`, `project_id`, `namespace_id`, `container_id` or `trigger_type`. :param region: Region to target. If none is passed will use default region from the config. :param page: :param page_size: @@ -1413,6 +1418,7 @@ def list_triggers_all( :param project_id: :param namespace_id: :param container_id: + :param trigger_type: :return: :class:`list[Trigger] ` Usage: @@ -1434,6 +1440,7 @@ def list_triggers_all( "project_id": project_id, "namespace_id": namespace_id, "container_id": container_id, + "trigger_type": trigger_type, }, ) diff --git a/scaleway/scaleway/container/v1/types.py b/scaleway/scaleway/container/v1/types.py index f931ca056..22dc757dd 100644 --- a/scaleway/scaleway/container/v1/types.py +++ b/scaleway/scaleway/container/v1/types.py @@ -1246,6 +1246,7 @@ class ListTriggersRequest: project_id: Optional[str] = None namespace_id: Optional[str] = None container_id: Optional[str] = None + trigger_type: Optional[TriggerSourceType] = None @dataclass