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 @@ -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,
Expand Down Expand Up @@ -86,6 +87,7 @@
"PublicCatalogProductPropertiesGenerativeApisTask",
"PublicCatalogProductPropertiesGenerativeApisTokenType",
"PublicCatalogProductPropertiesHardwareCPUArch",
"PublicCatalogProductPropertiesHardwareRAMECCType",
"PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass",
"PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass",
"PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
PublicCatalogProductProductBadge,
PublicCatalogProductPropertiesGenerativeApisTask,
PublicCatalogProductPropertiesHardwareCPUArch,
PublicCatalogProductPropertiesHardwareRAMECCType,
PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass,
PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass,
PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass,
Expand Down Expand Up @@ -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)


Expand Down
18 changes: 18 additions & 0 deletions scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand Down Expand Up @@ -358,6 +369,13 @@ class PublicCatalogProductPropertiesHardwareRAM:
The type of the RAM.
"""

ecc_type: Optional[PublicCatalogProductPropertiesHardwareRAMECCType] = (
PublicCatalogProductPropertiesHardwareRAMECCType.UNKNOWN_ECC_TYPE
)
"""
ECC type.
"""


@dataclass
class PublicCatalogProductPropertiesHardwareStorage:
Expand Down
2 changes: 2 additions & 0 deletions scaleway/scaleway/product_catalog/v2alpha1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -86,6 +87,7 @@
"PublicCatalogProductPropertiesGenerativeApisTask",
"PublicCatalogProductPropertiesGenerativeApisTokenType",
"PublicCatalogProductPropertiesHardwareCPUArch",
"PublicCatalogProductPropertiesHardwareRAMECCType",
"PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass",
"PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass",
"PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass",
Expand Down
9 changes: 9 additions & 0 deletions scaleway/scaleway/product_catalog/v2alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
PublicCatalogProductProductBadge,
PublicCatalogProductPropertiesGenerativeApisTask,
PublicCatalogProductPropertiesHardwareCPUArch,
PublicCatalogProductPropertiesHardwareRAMECCType,
PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass,
PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass,
PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass,
Expand Down Expand Up @@ -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)


Expand Down
18 changes: 18 additions & 0 deletions scaleway/scaleway/product_catalog/v2alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand Down Expand Up @@ -358,6 +369,13 @@ class PublicCatalogProductPropertiesHardwareRAM:
The type of the RAM.
"""

ecc_type: Optional[PublicCatalogProductPropertiesHardwareRAMECCType] = (
PublicCatalogProductPropertiesHardwareRAMECCType.UNKNOWN_ECC_TYPE
)
"""
ECC type.
"""


@dataclass
class PublicCatalogProductPropertiesHardwareStorage:
Expand Down
Loading