From 2b5d43358a6212061aeb43fec7b989cda7223f83 Mon Sep 17 00:00:00 2001 From: Prototool Bot Date: Thu, 30 Apr 2026 11:10:48 +0000 Subject: [PATCH] feat: update generated APIs --- scaleway-async/scaleway_async/container/v1/api.py | 11 +++++++++-- scaleway-async/scaleway_async/container/v1/types.py | 1 + .../environmental_footprint/v1alpha1/marshalling.py | 8 ++++++++ .../environmental_footprint/v1alpha1/types.py | 7 ++++++- scaleway/scaleway/container/v1/api.py | 11 +++++++++-- scaleway/scaleway/container/v1/types.py | 1 + .../environmental_footprint/v1alpha1/marshalling.py | 8 ++++++++ .../environmental_footprint/v1alpha1/types.py | 7 ++++++- 8 files changed, 48 insertions(+), 6 deletions(-) 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-async/scaleway_async/environmental_footprint/v1alpha1/marshalling.py b/scaleway-async/scaleway_async/environmental_footprint/v1alpha1/marshalling.py index 8940a273f..520205915 100644 --- a/scaleway-async/scaleway_async/environmental_footprint/v1alpha1/marshalling.py +++ b/scaleway-async/scaleway_async/environmental_footprint/v1alpha1/marshalling.py @@ -130,6 +130,14 @@ def unmarshal_RegionImpact(data: Any) -> RegionImpact: else: args["zones"] = [] + field = data.get("skus", None) + if field is not None: + args["skus"] = ( + [unmarshal_SkuImpact(v) for v in field] if field is not None else None + ) + else: + args["skus"] = [] + field = data.get("total_region_impact", None) if field is not None: args["total_region_impact"] = unmarshal_Impact(field) diff --git a/scaleway-async/scaleway_async/environmental_footprint/v1alpha1/types.py b/scaleway-async/scaleway_async/environmental_footprint/v1alpha1/types.py index 429fdbd58..4ea84d75b 100644 --- a/scaleway-async/scaleway_async/environmental_footprint/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/environmental_footprint/v1alpha1/types.py @@ -101,7 +101,7 @@ class ZoneImpact: skus: list[SkuImpact] """ - List of estimated impact values per SKU. + List of estimated impact values per SKU for this zone. """ total_zone_impact: Optional[Impact] = None @@ -122,6 +122,11 @@ class RegionImpact: List of estimated impact values per zone. """ + skus: list[SkuImpact] + """ + List of estimated impact values per SKU for this region. + """ + total_region_impact: Optional[Impact] = None """ The total estimated impact for this region across all given zones, service categories, and product categories during the given period. 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 diff --git a/scaleway/scaleway/environmental_footprint/v1alpha1/marshalling.py b/scaleway/scaleway/environmental_footprint/v1alpha1/marshalling.py index 8940a273f..520205915 100644 --- a/scaleway/scaleway/environmental_footprint/v1alpha1/marshalling.py +++ b/scaleway/scaleway/environmental_footprint/v1alpha1/marshalling.py @@ -130,6 +130,14 @@ def unmarshal_RegionImpact(data: Any) -> RegionImpact: else: args["zones"] = [] + field = data.get("skus", None) + if field is not None: + args["skus"] = ( + [unmarshal_SkuImpact(v) for v in field] if field is not None else None + ) + else: + args["skus"] = [] + field = data.get("total_region_impact", None) if field is not None: args["total_region_impact"] = unmarshal_Impact(field) diff --git a/scaleway/scaleway/environmental_footprint/v1alpha1/types.py b/scaleway/scaleway/environmental_footprint/v1alpha1/types.py index 429fdbd58..4ea84d75b 100644 --- a/scaleway/scaleway/environmental_footprint/v1alpha1/types.py +++ b/scaleway/scaleway/environmental_footprint/v1alpha1/types.py @@ -101,7 +101,7 @@ class ZoneImpact: skus: list[SkuImpact] """ - List of estimated impact values per SKU. + List of estimated impact values per SKU for this zone. """ total_zone_impact: Optional[Impact] = None @@ -122,6 +122,11 @@ class RegionImpact: List of estimated impact values per zone. """ + skus: list[SkuImpact] + """ + List of estimated impact values per SKU for this region. + """ + total_region_impact: Optional[Impact] = None """ The total estimated impact for this region across all given zones, service categories, and product categories during the given period.