From bea90d9c64feeb8c774627d82344ae5fe872c44e Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 19 Jun 2026 14:21:11 +0000 Subject: [PATCH] feat: update generated APIs --- .../product_catalog/v2alpha1/__init__.py | 2 ++ .../product_catalog/v2alpha1/marshalling.py | 20 +++++++++++++++++++ .../product_catalog/v2alpha1/types.py | 8 ++++++++ .../product_catalog/v2alpha1/__init__.py | 2 ++ .../product_catalog/v2alpha1/marshalling.py | 20 +++++++++++++++++++ .../product_catalog/v2alpha1/types.py | 8 ++++++++ 6 files changed, 60 insertions(+) diff --git a/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py b/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py index 7058d557b..25f5937ef 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py @@ -63,6 +63,7 @@ from .types import PublicCatalogProductPropertiesManagedRedisDatabase from .types import PublicCatalogProductPropertiesManagedRelationalDatabase from .types import PublicCatalogProductPropertiesObjectStorage +from .types import PublicCatalogProductPropertiesOpenSearch from .types import PublicCatalogProductPropertiesSecretManager from .types import PublicCatalogProductPropertiesServerlessContainers from .types import PublicCatalogProductPropertiesServerlessFunctions @@ -133,6 +134,7 @@ "PublicCatalogProductPropertiesManagedRedisDatabase", "PublicCatalogProductPropertiesManagedRelationalDatabase", "PublicCatalogProductPropertiesObjectStorage", + "PublicCatalogProductPropertiesOpenSearch", "PublicCatalogProductPropertiesSecretManager", "PublicCatalogProductPropertiesServerlessContainers", "PublicCatalogProductPropertiesServerlessFunctions", diff --git a/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py b/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py index c683a3cd4..1c585beae 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py @@ -58,6 +58,7 @@ PublicCatalogProductPropertiesManagedRedisDatabase, PublicCatalogProductPropertiesManagedRelationalDatabase, PublicCatalogProductPropertiesObjectStorage, + PublicCatalogProductPropertiesOpenSearch, PublicCatalogProductPropertiesSecretManager, PublicCatalogProductPropertiesServerlessContainers, PublicCatalogProductPropertiesServerlessFunctions, @@ -1139,6 +1140,19 @@ def unmarshal_PublicCatalogProductPropertiesObjectStorage( return PublicCatalogProductPropertiesObjectStorage(**args) +def unmarshal_PublicCatalogProductPropertiesOpenSearch( + data: Any, +) -> PublicCatalogProductPropertiesOpenSearch: + if not isinstance(data, dict): + raise TypeError( + "Unmarshalling the type 'PublicCatalogProductPropertiesOpenSearch' failed as data isn't a dictionary." + ) + + args: dict[str, Any] = {} + + return PublicCatalogProductPropertiesOpenSearch(**args) + + def unmarshal_PublicCatalogProductPropertiesSecretManager( data: Any, ) -> PublicCatalogProductPropertiesSecretManager: @@ -1428,6 +1442,12 @@ def unmarshal_PublicCatalogProductProperties( else: args["apache_kafka"] = None + field = data.get("open_search", None) + if field is not None: + args["open_search"] = unmarshal_PublicCatalogProductPropertiesOpenSearch(field) + else: + args["open_search"] = None + return PublicCatalogProductProperties(**args) diff --git a/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py b/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py index 84aafcf61..99ae87c8d 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py @@ -38,6 +38,7 @@ class ListPublicCatalogProductsRequestProductType(str, Enum, metaclass=StrEnumMe SERVERLESS_CONTAINERS = "serverless_containers" SERVERLESS_JOBS = "serverless_jobs" APACHE_KAFKA = "apache_kafka" + OPEN_SEARCH = "open_search" def __str__(self) -> str: return str(self.value) @@ -704,6 +705,11 @@ class PublicCatalogProductPropertiesObjectStorage: ] = None +@dataclass +class PublicCatalogProductPropertiesOpenSearch: + pass + + @dataclass class PublicCatalogProductPropertiesSecretManager: pass @@ -802,6 +808,8 @@ class PublicCatalogProductProperties: apache_kafka: Optional[PublicCatalogProductPropertiesApacheKafka] = None + open_search: Optional[PublicCatalogProductPropertiesOpenSearch] = None + @dataclass class PublicCatalogProductUnitOfMeasure: diff --git a/scaleway/scaleway/product_catalog/v2alpha1/__init__.py b/scaleway/scaleway/product_catalog/v2alpha1/__init__.py index 7058d557b..25f5937ef 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/__init__.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/__init__.py @@ -63,6 +63,7 @@ from .types import PublicCatalogProductPropertiesManagedRedisDatabase from .types import PublicCatalogProductPropertiesManagedRelationalDatabase from .types import PublicCatalogProductPropertiesObjectStorage +from .types import PublicCatalogProductPropertiesOpenSearch from .types import PublicCatalogProductPropertiesSecretManager from .types import PublicCatalogProductPropertiesServerlessContainers from .types import PublicCatalogProductPropertiesServerlessFunctions @@ -133,6 +134,7 @@ "PublicCatalogProductPropertiesManagedRedisDatabase", "PublicCatalogProductPropertiesManagedRelationalDatabase", "PublicCatalogProductPropertiesObjectStorage", + "PublicCatalogProductPropertiesOpenSearch", "PublicCatalogProductPropertiesSecretManager", "PublicCatalogProductPropertiesServerlessContainers", "PublicCatalogProductPropertiesServerlessFunctions", diff --git a/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py b/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py index c683a3cd4..1c585beae 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py @@ -58,6 +58,7 @@ PublicCatalogProductPropertiesManagedRedisDatabase, PublicCatalogProductPropertiesManagedRelationalDatabase, PublicCatalogProductPropertiesObjectStorage, + PublicCatalogProductPropertiesOpenSearch, PublicCatalogProductPropertiesSecretManager, PublicCatalogProductPropertiesServerlessContainers, PublicCatalogProductPropertiesServerlessFunctions, @@ -1139,6 +1140,19 @@ def unmarshal_PublicCatalogProductPropertiesObjectStorage( return PublicCatalogProductPropertiesObjectStorage(**args) +def unmarshal_PublicCatalogProductPropertiesOpenSearch( + data: Any, +) -> PublicCatalogProductPropertiesOpenSearch: + if not isinstance(data, dict): + raise TypeError( + "Unmarshalling the type 'PublicCatalogProductPropertiesOpenSearch' failed as data isn't a dictionary." + ) + + args: dict[str, Any] = {} + + return PublicCatalogProductPropertiesOpenSearch(**args) + + def unmarshal_PublicCatalogProductPropertiesSecretManager( data: Any, ) -> PublicCatalogProductPropertiesSecretManager: @@ -1428,6 +1442,12 @@ def unmarshal_PublicCatalogProductProperties( else: args["apache_kafka"] = None + field = data.get("open_search", None) + if field is not None: + args["open_search"] = unmarshal_PublicCatalogProductPropertiesOpenSearch(field) + else: + args["open_search"] = None + return PublicCatalogProductProperties(**args) diff --git a/scaleway/scaleway/product_catalog/v2alpha1/types.py b/scaleway/scaleway/product_catalog/v2alpha1/types.py index 84aafcf61..99ae87c8d 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/types.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/types.py @@ -38,6 +38,7 @@ class ListPublicCatalogProductsRequestProductType(str, Enum, metaclass=StrEnumMe SERVERLESS_CONTAINERS = "serverless_containers" SERVERLESS_JOBS = "serverless_jobs" APACHE_KAFKA = "apache_kafka" + OPEN_SEARCH = "open_search" def __str__(self) -> str: return str(self.value) @@ -704,6 +705,11 @@ class PublicCatalogProductPropertiesObjectStorage: ] = None +@dataclass +class PublicCatalogProductPropertiesOpenSearch: + pass + + @dataclass class PublicCatalogProductPropertiesSecretManager: pass @@ -802,6 +808,8 @@ class PublicCatalogProductProperties: apache_kafka: Optional[PublicCatalogProductPropertiesApacheKafka] = None + open_search: Optional[PublicCatalogProductPropertiesOpenSearch] = None + @dataclass class PublicCatalogProductUnitOfMeasure: