From 27f61fff56e3301d2cf530aa70d90ea2a37aec16 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 14 Oct 2025 14:34:04 +0000 Subject: [PATCH] feat: update generated APIs --- .../scaleway_async/baremetal/v1/marshalling.py | 18 +++++++++++++++--- .../scaleway_async/baremetal/v1/types.py | 10 ++++++++++ .../product_catalog/v2alpha1/types.py | 1 + scaleway/scaleway/baremetal/v1/marshalling.py | 18 +++++++++++++++--- scaleway/scaleway/baremetal/v1/types.py | 10 ++++++++++ .../scaleway/product_catalog/v2alpha1/types.py | 1 + 6 files changed, 52 insertions(+), 6 deletions(-) diff --git a/scaleway-async/scaleway_async/baremetal/v1/marshalling.py b/scaleway-async/scaleway_async/baremetal/v1/marshalling.py index e5f7fd605..980b90feb 100644 --- a/scaleway-async/scaleway_async/baremetal/v1/marshalling.py +++ b/scaleway-async/scaleway_async/baremetal/v1/marshalling.py @@ -824,6 +824,12 @@ def unmarshal_OS(data: Any) -> OS: else: args["custom_partitioning_supported"] = False + field = data.get("zone", None) + if field is not None: + args["zone"] = field + else: + args["zone"] = None + return OS(**args) @@ -1214,6 +1220,12 @@ def unmarshal_Offer(data: Any) -> Offer: else: args["operation_path"] = None + field = data.get("fee", None) + if field is not None: + args["fee"] = unmarshal_Money(field) + else: + args["fee"] = None + field = data.get("options", None) if field is not None: args["options"] = ( @@ -1248,11 +1260,11 @@ def unmarshal_Offer(data: Any) -> Offer: else: args["gpus"] = [] - field = data.get("fee", None) + field = data.get("zone", None) if field is not None: - args["fee"] = unmarshal_Money(field) + args["zone"] = field else: - args["fee"] = None + args["zone"] = None field = data.get("monthly_offer_id", None) if field is not None: diff --git a/scaleway-async/scaleway_async/baremetal/v1/types.py b/scaleway-async/scaleway_async/baremetal/v1/types.py index dad6061be..7eed5e1da 100644 --- a/scaleway-async/scaleway_async/baremetal/v1/types.py +++ b/scaleway-async/scaleway_async/baremetal/v1/types.py @@ -811,6 +811,11 @@ class OS: Defines if custom partitioning is supported by this OS. """ + zone: ScwZone + """ + Zone in which is the OS is available. + """ + ssh: Optional[OSOSField] = None """ Object defining the SSH requirements to install the OS. @@ -944,6 +949,11 @@ class Offer: GPU specifications of the offer. """ + zone: ScwZone + """ + Zone in which is the offer is available. + """ + price_per_hour: Optional[Money] = None """ Price of the offer for the next 60 minutes (a server order at 11h32 will be paid until 12h32). diff --git a/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py b/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py index 8259828ec..0f2906333 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py @@ -84,6 +84,7 @@ class PublicCatalogProductUnitOfMeasureCountableUnit(str, Enum, metaclass=StrEnu SECOND = "second" SAMPLE_DAY = "sample_day" GIGABYTE_DAY = "gigabyte_day" + MVCPU = "mvcpu" def __str__(self) -> str: return str(self.value) diff --git a/scaleway/scaleway/baremetal/v1/marshalling.py b/scaleway/scaleway/baremetal/v1/marshalling.py index e5f7fd605..980b90feb 100644 --- a/scaleway/scaleway/baremetal/v1/marshalling.py +++ b/scaleway/scaleway/baremetal/v1/marshalling.py @@ -824,6 +824,12 @@ def unmarshal_OS(data: Any) -> OS: else: args["custom_partitioning_supported"] = False + field = data.get("zone", None) + if field is not None: + args["zone"] = field + else: + args["zone"] = None + return OS(**args) @@ -1214,6 +1220,12 @@ def unmarshal_Offer(data: Any) -> Offer: else: args["operation_path"] = None + field = data.get("fee", None) + if field is not None: + args["fee"] = unmarshal_Money(field) + else: + args["fee"] = None + field = data.get("options", None) if field is not None: args["options"] = ( @@ -1248,11 +1260,11 @@ def unmarshal_Offer(data: Any) -> Offer: else: args["gpus"] = [] - field = data.get("fee", None) + field = data.get("zone", None) if field is not None: - args["fee"] = unmarshal_Money(field) + args["zone"] = field else: - args["fee"] = None + args["zone"] = None field = data.get("monthly_offer_id", None) if field is not None: diff --git a/scaleway/scaleway/baremetal/v1/types.py b/scaleway/scaleway/baremetal/v1/types.py index dad6061be..7eed5e1da 100644 --- a/scaleway/scaleway/baremetal/v1/types.py +++ b/scaleway/scaleway/baremetal/v1/types.py @@ -811,6 +811,11 @@ class OS: Defines if custom partitioning is supported by this OS. """ + zone: ScwZone + """ + Zone in which is the OS is available. + """ + ssh: Optional[OSOSField] = None """ Object defining the SSH requirements to install the OS. @@ -944,6 +949,11 @@ class Offer: GPU specifications of the offer. """ + zone: ScwZone + """ + Zone in which is the offer is available. + """ + price_per_hour: Optional[Money] = None """ Price of the offer for the next 60 minutes (a server order at 11h32 will be paid until 12h32). diff --git a/scaleway/scaleway/product_catalog/v2alpha1/types.py b/scaleway/scaleway/product_catalog/v2alpha1/types.py index 8259828ec..0f2906333 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/types.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/types.py @@ -84,6 +84,7 @@ class PublicCatalogProductUnitOfMeasureCountableUnit(str, Enum, metaclass=StrEnu SECOND = "second" SAMPLE_DAY = "sample_day" GIGABYTE_DAY = "gigabyte_day" + MVCPU = "mvcpu" def __str__(self) -> str: return str(self.value)