From 096643a0e268028c13bd0dd49489e51258c1512c Mon Sep 17 00:00:00 2001 From: Prototool Bot Date: Thu, 30 Apr 2026 06:37:42 +0000 Subject: [PATCH] feat: update generated APIs --- .../environmental_footprint/v1alpha1/marshalling.py | 8 ++++++++ .../environmental_footprint/v1alpha1/types.py | 7 ++++++- .../environmental_footprint/v1alpha1/marshalling.py | 8 ++++++++ .../scaleway/environmental_footprint/v1alpha1/types.py | 7 ++++++- 4 files changed, 28 insertions(+), 2 deletions(-) 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/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.