From 987f230e451e009631cb1acd1678c499e35403ec Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 24 Jun 2026 13:34:58 +0000 Subject: [PATCH] feat: update generated APIs --- .../product_catalog/v2alpha1/__init__.py | 2 ++ .../product_catalog/v2alpha1/marshalling.py | 9 +++++++++ .../product_catalog/v2alpha1/types.py | 18 ++++++++++++++++++ .../product_catalog/v2alpha1/__init__.py | 2 ++ .../product_catalog/v2alpha1/marshalling.py | 9 +++++++++ .../scaleway/product_catalog/v2alpha1/types.py | 18 ++++++++++++++++++ 6 files changed, 58 insertions(+) diff --git a/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py b/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py index 25f5937ef..5953461f6 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py @@ -7,6 +7,7 @@ from .types import PublicCatalogProductPropertiesGenerativeApisTask from .types import PublicCatalogProductPropertiesGenerativeApisTokenType from .types import PublicCatalogProductPropertiesHardwareCPUArch +from .types import PublicCatalogProductPropertiesHardwareRAMECCType from .types import PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass from .types import ( PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass, @@ -86,6 +87,7 @@ "PublicCatalogProductPropertiesGenerativeApisTask", "PublicCatalogProductPropertiesGenerativeApisTokenType", "PublicCatalogProductPropertiesHardwareCPUArch", + "PublicCatalogProductPropertiesHardwareRAMECCType", "PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass", "PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass", "PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass", diff --git a/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py b/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py index 1c585beae..f8e4e8ee8 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py @@ -11,6 +11,7 @@ PublicCatalogProductProductBadge, PublicCatalogProductPropertiesGenerativeApisTask, PublicCatalogProductPropertiesHardwareCPUArch, + PublicCatalogProductPropertiesHardwareRAMECCType, PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass, PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass, PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass, @@ -284,6 +285,14 @@ def unmarshal_PublicCatalogProductPropertiesHardwareRAM( else: args["type_"] = None + field = data.get("ecc_type", None) + if field is not None: + args["ecc_type"] = field + else: + args["ecc_type"] = ( + PublicCatalogProductPropertiesHardwareRAMECCType.UNKNOWN_ECC_TYPE + ) + return PublicCatalogProductPropertiesHardwareRAM(**args) diff --git a/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py b/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py index 99ae87c8d..ea5a3a121 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py @@ -121,6 +121,17 @@ def __str__(self) -> str: return str(self.value) +class PublicCatalogProductPropertiesHardwareRAMECCType( + str, Enum, metaclass=StrEnumMeta +): + UNKNOWN_ECC_TYPE = "unknown_ecc_type" + STANDARD = "standard" + ON_DIE = "on_die" + + def __str__(self) -> str: + return str(self.value) + + class PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass( str, Enum, metaclass=StrEnumMeta ): @@ -358,6 +369,13 @@ class PublicCatalogProductPropertiesHardwareRAM: The type of the RAM. """ + ecc_type: Optional[PublicCatalogProductPropertiesHardwareRAMECCType] = ( + PublicCatalogProductPropertiesHardwareRAMECCType.UNKNOWN_ECC_TYPE + ) + """ + ECC type. + """ + @dataclass class PublicCatalogProductPropertiesHardwareStorage: diff --git a/scaleway/scaleway/product_catalog/v2alpha1/__init__.py b/scaleway/scaleway/product_catalog/v2alpha1/__init__.py index 25f5937ef..5953461f6 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/__init__.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/__init__.py @@ -7,6 +7,7 @@ from .types import PublicCatalogProductPropertiesGenerativeApisTask from .types import PublicCatalogProductPropertiesGenerativeApisTokenType from .types import PublicCatalogProductPropertiesHardwareCPUArch +from .types import PublicCatalogProductPropertiesHardwareRAMECCType from .types import PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass from .types import ( PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass, @@ -86,6 +87,7 @@ "PublicCatalogProductPropertiesGenerativeApisTask", "PublicCatalogProductPropertiesGenerativeApisTokenType", "PublicCatalogProductPropertiesHardwareCPUArch", + "PublicCatalogProductPropertiesHardwareRAMECCType", "PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass", "PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass", "PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass", diff --git a/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py b/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py index 1c585beae..f8e4e8ee8 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py @@ -11,6 +11,7 @@ PublicCatalogProductProductBadge, PublicCatalogProductPropertiesGenerativeApisTask, PublicCatalogProductPropertiesHardwareCPUArch, + PublicCatalogProductPropertiesHardwareRAMECCType, PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass, PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass, PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass, @@ -284,6 +285,14 @@ def unmarshal_PublicCatalogProductPropertiesHardwareRAM( else: args["type_"] = None + field = data.get("ecc_type", None) + if field is not None: + args["ecc_type"] = field + else: + args["ecc_type"] = ( + PublicCatalogProductPropertiesHardwareRAMECCType.UNKNOWN_ECC_TYPE + ) + return PublicCatalogProductPropertiesHardwareRAM(**args) diff --git a/scaleway/scaleway/product_catalog/v2alpha1/types.py b/scaleway/scaleway/product_catalog/v2alpha1/types.py index 99ae87c8d..ea5a3a121 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/types.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/types.py @@ -121,6 +121,17 @@ def __str__(self) -> str: return str(self.value) +class PublicCatalogProductPropertiesHardwareRAMECCType( + str, Enum, metaclass=StrEnumMeta +): + UNKNOWN_ECC_TYPE = "unknown_ecc_type" + STANDARD = "standard" + ON_DIE = "on_die" + + def __str__(self) -> str: + return str(self.value) + + class PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass( str, Enum, metaclass=StrEnumMeta ): @@ -358,6 +369,13 @@ class PublicCatalogProductPropertiesHardwareRAM: The type of the RAM. """ + ecc_type: Optional[PublicCatalogProductPropertiesHardwareRAMECCType] = ( + PublicCatalogProductPropertiesHardwareRAMECCType.UNKNOWN_ECC_TYPE + ) + """ + ECC type. + """ + @dataclass class PublicCatalogProductPropertiesHardwareStorage: