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
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
Loading