diff --git a/scaleway-async/scaleway_async/webhosting/v1/marshalling.py b/scaleway-async/scaleway_async/webhosting/v1/marshalling.py index 0ea580f6..1c85301f 100644 --- a/scaleway-async/scaleway_async/webhosting/v1/marshalling.py +++ b/scaleway-async/scaleway_async/webhosting/v1/marshalling.py @@ -366,6 +366,10 @@ def unmarshal_Offer(data: Any) -> Offer: if field is not None: args["id"] = field + field = data.get("name", None) + if field is not None: + args["name"] = field + field = data.get("billing_operation_path", None) if field is not None: args["billing_operation_path"] = field @@ -388,6 +392,10 @@ def unmarshal_Offer(data: Any) -> Offer: if field is not None: args["end_of_life"] = field + field = data.get("quota_warning", None) + if field is not None: + args["quota_warning"] = field + field = data.get("price", None) if field is not None: args["price"] = unmarshal_Money(field) diff --git a/scaleway-async/scaleway_async/webhosting/v1/types.py b/scaleway-async/scaleway_async/webhosting/v1/types.py index e1fc50be..efcb5ba5 100644 --- a/scaleway-async/scaleway_async/webhosting/v1/types.py +++ b/scaleway-async/scaleway_async/webhosting/v1/types.py @@ -152,6 +152,8 @@ class OfferOptionName(str, Enum, metaclass=StrEnumMeta): RAM_GB = "ram_gb" BACKUP = "backup" DEDICATED_IP = "dedicated_ip" + EMAIL_STORAGE_GB = "email_storage_gb" + DATABASE_COUNT = "database_count" def __str__(self) -> str: return str(self.value) @@ -160,6 +162,7 @@ def __str__(self) -> str: class OfferOptionWarning(str, Enum, metaclass=StrEnumMeta): UNKNOWN_WARNING = "unknown_warning" QUOTA_EXCEEDED_WARNING = "quota_exceeded_warning" + USAGE_LOW_WARNING = "usage_low_warning" def __str__(self) -> str: return str(self.value) @@ -357,6 +360,11 @@ class Offer: Offer ID. """ + name: str + """ + Offer name. + """ + billing_operation_path: str """ Unique identifier used for billing. @@ -382,6 +390,11 @@ class Offer: Indicates if the offer has reached its end of life. """ + quota_warning: OfferOptionWarning + """ + Defines a warning if the maximum value for an option in the offer is exceeded. + """ + price: Optional[Money] """ Price of the offer. diff --git a/scaleway/scaleway/webhosting/v1/marshalling.py b/scaleway/scaleway/webhosting/v1/marshalling.py index 0ea580f6..1c85301f 100644 --- a/scaleway/scaleway/webhosting/v1/marshalling.py +++ b/scaleway/scaleway/webhosting/v1/marshalling.py @@ -366,6 +366,10 @@ def unmarshal_Offer(data: Any) -> Offer: if field is not None: args["id"] = field + field = data.get("name", None) + if field is not None: + args["name"] = field + field = data.get("billing_operation_path", None) if field is not None: args["billing_operation_path"] = field @@ -388,6 +392,10 @@ def unmarshal_Offer(data: Any) -> Offer: if field is not None: args["end_of_life"] = field + field = data.get("quota_warning", None) + if field is not None: + args["quota_warning"] = field + field = data.get("price", None) if field is not None: args["price"] = unmarshal_Money(field) diff --git a/scaleway/scaleway/webhosting/v1/types.py b/scaleway/scaleway/webhosting/v1/types.py index e1fc50be..efcb5ba5 100644 --- a/scaleway/scaleway/webhosting/v1/types.py +++ b/scaleway/scaleway/webhosting/v1/types.py @@ -152,6 +152,8 @@ class OfferOptionName(str, Enum, metaclass=StrEnumMeta): RAM_GB = "ram_gb" BACKUP = "backup" DEDICATED_IP = "dedicated_ip" + EMAIL_STORAGE_GB = "email_storage_gb" + DATABASE_COUNT = "database_count" def __str__(self) -> str: return str(self.value) @@ -160,6 +162,7 @@ def __str__(self) -> str: class OfferOptionWarning(str, Enum, metaclass=StrEnumMeta): UNKNOWN_WARNING = "unknown_warning" QUOTA_EXCEEDED_WARNING = "quota_exceeded_warning" + USAGE_LOW_WARNING = "usage_low_warning" def __str__(self) -> str: return str(self.value) @@ -357,6 +360,11 @@ class Offer: Offer ID. """ + name: str + """ + Offer name. + """ + billing_operation_path: str """ Unique identifier used for billing. @@ -382,6 +390,11 @@ class Offer: Indicates if the offer has reached its end of life. """ + quota_warning: OfferOptionWarning + """ + Defines a warning if the maximum value for an option in the offer is exceeded. + """ + price: Optional[Money] """ Price of the offer.