Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions scaleway-async/scaleway_async/container/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
ListDomainsRequestOrderBy,
ListNamespacesRequestOrderBy,
ListTriggersRequestOrderBy,
TriggerSourceType,
Container,
ContainerProbe,
ContainerScalingOption,
Expand Down Expand Up @@ -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:
Expand All @@ -1362,6 +1364,7 @@ async def list_triggers(
:param project_id:
:param namespace_id:
:param container_id:
:param trigger_type:
:return: :class:`ListTriggersResponse <ListTriggersResponse>`

Usage:
Expand All @@ -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,
},
)

Expand All @@ -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:
Expand All @@ -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] <list[Trigger]>`

Usage:
Expand All @@ -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,
},
)

Expand Down
1 change: 1 addition & 0 deletions scaleway-async/scaleway_async/container/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 9 additions & 2 deletions scaleway/scaleway/container/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
ListDomainsRequestOrderBy,
ListNamespacesRequestOrderBy,
ListTriggersRequestOrderBy,
TriggerSourceType,
Container,
ContainerProbe,
ContainerScalingOption,
Expand Down Expand Up @@ -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:
Expand All @@ -1358,6 +1360,7 @@ def list_triggers(
:param project_id:
:param namespace_id:
:param container_id:
:param trigger_type:
:return: :class:`ListTriggersResponse <ListTriggersResponse>`

Usage:
Expand All @@ -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,
},
)

Expand All @@ -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:
Expand All @@ -1413,6 +1418,7 @@ def list_triggers_all(
:param project_id:
:param namespace_id:
:param container_id:
:param trigger_type:
:return: :class:`list[Trigger] <list[Trigger]>`

Usage:
Expand All @@ -1434,6 +1440,7 @@ def list_triggers_all(
"project_id": project_id,
"namespace_id": namespace_id,
"container_id": container_id,
"trigger_type": trigger_type,
},
)

Expand Down
1 change: 1 addition & 0 deletions scaleway/scaleway/container/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading