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.