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
6 changes: 6 additions & 0 deletions scaleway-async/scaleway_async/webhosting/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,12 @@ def unmarshal_Offer(data: Any) -> Offer:
else:
args["quota_warning"] = OfferOptionWarning.UNKNOWN_WARNING

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("price", None)
if field is not None:
args["price"] = unmarshal_Money(field)
Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/webhosting/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,11 @@ class Offer:
Defines a warning if the maximum value for an option in the offer is exceeded.
"""

region: ScwRegion
"""
Region where the offer is hosted.
"""

price: Optional[Money] = None
"""
Price of the offer.
Expand Down
6 changes: 6 additions & 0 deletions scaleway/scaleway/webhosting/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,12 @@ def unmarshal_Offer(data: Any) -> Offer:
else:
args["quota_warning"] = OfferOptionWarning.UNKNOWN_WARNING

field = data.get("region", None)
if field is not None:
args["region"] = field
else:
args["region"] = None

field = data.get("price", None)
if field is not None:
args["price"] = unmarshal_Money(field)
Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/webhosting/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,11 @@ class Offer:
Defines a warning if the maximum value for an option in the offer is exceeded.
"""

region: ScwRegion
"""
Region where the offer is hosted.
"""

price: Optional[Money] = None
"""
Price of the offer.
Expand Down