From 8f3dfdb2a9b6d84005d41d2693070cd6abf803dc Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 10 Oct 2023 14:28:12 +0000 Subject: [PATCH] feat: update generated APIs --- .../scaleway_async/rdb/v1/__init__.py | 2 ++ .../scaleway_async/rdb/v1/marshalling.py | 6 ++++++ scaleway-async/scaleway_async/rdb/v1/types.py | 20 ++++++++++++++++++- scaleway/scaleway/rdb/v1/__init__.py | 2 ++ scaleway/scaleway/rdb/v1/marshalling.py | 6 ++++++ scaleway/scaleway/rdb/v1/types.py | 20 ++++++++++++++++++- 6 files changed, 54 insertions(+), 2 deletions(-) diff --git a/scaleway-async/scaleway_async/rdb/v1/__init__.py b/scaleway-async/scaleway_async/rdb/v1/__init__.py index 95aabcbbd..6530f7b0e 100644 --- a/scaleway-async/scaleway_async/rdb/v1/__init__.py +++ b/scaleway-async/scaleway_async/rdb/v1/__init__.py @@ -20,6 +20,7 @@ from .types import Permission from .types import ReadReplicaStatus from .types import SnapshotStatus +from .types import StorageClass from .types import VolumeType from .types import ACLRule from .types import ACLRuleRequest @@ -104,6 +105,7 @@ "Permission", "ReadReplicaStatus", "SnapshotStatus", + "StorageClass", "VolumeType", "ACLRule", "ACLRuleRequest", diff --git a/scaleway-async/scaleway_async/rdb/v1/marshalling.py b/scaleway-async/scaleway_async/rdb/v1/marshalling.py index 06c9b3ec1..bbc47797c 100644 --- a/scaleway-async/scaleway_async/rdb/v1/marshalling.py +++ b/scaleway-async/scaleway_async/rdb/v1/marshalling.py @@ -372,6 +372,9 @@ def unmarshal_NodeTypeVolumeType(data: Any) -> NodeTypeVolumeType: field = data.get("chunk_size", None) args["chunk_size"] = field + field = data.get("class", None) + args["class_"] = field + field = data.get("description", None) args["description"] = field @@ -446,6 +449,9 @@ def unmarshal_Volume(data: Any) -> Volume: args: Dict[str, Any] = {} + field = data.get("class", None) + args["class_"] = field + field = data.get("size", None) args["size"] = field diff --git a/scaleway-async/scaleway_async/rdb/v1/types.py b/scaleway-async/scaleway_async/rdb/v1/types.py index ec7dae9e0..8c899503b 100644 --- a/scaleway-async/scaleway_async/rdb/v1/types.py +++ b/scaleway-async/scaleway_async/rdb/v1/types.py @@ -242,7 +242,8 @@ def __str__(self) -> str: return str(self.value) -class VolumeType(str, Enum, metaclass=StrEnumMeta): +class StorageClass(str, Enum, metaclass=StrEnumMeta): + UNKNOWN_STORAGE_CLASS = "unknown_storage_class" LSSD = "lssd" BSSD = "bssd" SBS = "sbs" @@ -251,6 +252,16 @@ def __str__(self) -> str: return str(self.value) +class VolumeType(str, Enum, metaclass=StrEnumMeta): + LSSD = "lssd" + BSSD = "bssd" + SBS_5K = "sbs_5k" + SBS_15K = "sbs_15k" + + def __str__(self) -> str: + return str(self.value) + + @dataclass class ACLRule: ip: str @@ -1271,6 +1282,11 @@ class NodeTypeVolumeType: Minimum increment level for a Block Storage volume size. """ + class_: StorageClass + """ + The storage class of the volume. + """ + @dataclass class PrepareInstanceLogsResponse: @@ -1515,6 +1531,8 @@ class Volume: size: int + class_: StorageClass + @dataclass class ListDatabaseEnginesRequest: diff --git a/scaleway/scaleway/rdb/v1/__init__.py b/scaleway/scaleway/rdb/v1/__init__.py index 95aabcbbd..6530f7b0e 100644 --- a/scaleway/scaleway/rdb/v1/__init__.py +++ b/scaleway/scaleway/rdb/v1/__init__.py @@ -20,6 +20,7 @@ from .types import Permission from .types import ReadReplicaStatus from .types import SnapshotStatus +from .types import StorageClass from .types import VolumeType from .types import ACLRule from .types import ACLRuleRequest @@ -104,6 +105,7 @@ "Permission", "ReadReplicaStatus", "SnapshotStatus", + "StorageClass", "VolumeType", "ACLRule", "ACLRuleRequest", diff --git a/scaleway/scaleway/rdb/v1/marshalling.py b/scaleway/scaleway/rdb/v1/marshalling.py index 06c9b3ec1..bbc47797c 100644 --- a/scaleway/scaleway/rdb/v1/marshalling.py +++ b/scaleway/scaleway/rdb/v1/marshalling.py @@ -372,6 +372,9 @@ def unmarshal_NodeTypeVolumeType(data: Any) -> NodeTypeVolumeType: field = data.get("chunk_size", None) args["chunk_size"] = field + field = data.get("class", None) + args["class_"] = field + field = data.get("description", None) args["description"] = field @@ -446,6 +449,9 @@ def unmarshal_Volume(data: Any) -> Volume: args: Dict[str, Any] = {} + field = data.get("class", None) + args["class_"] = field + field = data.get("size", None) args["size"] = field diff --git a/scaleway/scaleway/rdb/v1/types.py b/scaleway/scaleway/rdb/v1/types.py index ec7dae9e0..8c899503b 100644 --- a/scaleway/scaleway/rdb/v1/types.py +++ b/scaleway/scaleway/rdb/v1/types.py @@ -242,7 +242,8 @@ def __str__(self) -> str: return str(self.value) -class VolumeType(str, Enum, metaclass=StrEnumMeta): +class StorageClass(str, Enum, metaclass=StrEnumMeta): + UNKNOWN_STORAGE_CLASS = "unknown_storage_class" LSSD = "lssd" BSSD = "bssd" SBS = "sbs" @@ -251,6 +252,16 @@ def __str__(self) -> str: return str(self.value) +class VolumeType(str, Enum, metaclass=StrEnumMeta): + LSSD = "lssd" + BSSD = "bssd" + SBS_5K = "sbs_5k" + SBS_15K = "sbs_15k" + + def __str__(self) -> str: + return str(self.value) + + @dataclass class ACLRule: ip: str @@ -1271,6 +1282,11 @@ class NodeTypeVolumeType: Minimum increment level for a Block Storage volume size. """ + class_: StorageClass + """ + The storage class of the volume. + """ + @dataclass class PrepareInstanceLogsResponse: @@ -1515,6 +1531,8 @@ class Volume: size: int + class_: StorageClass + @dataclass class ListDatabaseEnginesRequest: