Skip to content
Open
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 @@ -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
Expand Down Expand Up @@ -133,6 +134,7 @@
"PublicCatalogProductPropertiesManagedRedisDatabase",
"PublicCatalogProductPropertiesManagedRelationalDatabase",
"PublicCatalogProductPropertiesObjectStorage",
"PublicCatalogProductPropertiesOpenSearch",
"PublicCatalogProductPropertiesSecretManager",
"PublicCatalogProductPropertiesServerlessContainers",
"PublicCatalogProductPropertiesServerlessFunctions",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
PublicCatalogProductPropertiesManagedRedisDatabase,
PublicCatalogProductPropertiesManagedRelationalDatabase,
PublicCatalogProductPropertiesObjectStorage,
PublicCatalogProductPropertiesOpenSearch,
PublicCatalogProductPropertiesSecretManager,
PublicCatalogProductPropertiesServerlessContainers,
PublicCatalogProductPropertiesServerlessFunctions,
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -704,6 +705,11 @@ class PublicCatalogProductPropertiesObjectStorage:
] = None


@dataclass
class PublicCatalogProductPropertiesOpenSearch:
pass


@dataclass
class PublicCatalogProductPropertiesSecretManager:
pass
Expand Down Expand Up @@ -802,6 +808,8 @@ class PublicCatalogProductProperties:

apache_kafka: Optional[PublicCatalogProductPropertiesApacheKafka] = None

open_search: Optional[PublicCatalogProductPropertiesOpenSearch] = None


@dataclass
class PublicCatalogProductUnitOfMeasure:
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 @@ -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
Expand Down Expand Up @@ -133,6 +134,7 @@
"PublicCatalogProductPropertiesManagedRedisDatabase",
"PublicCatalogProductPropertiesManagedRelationalDatabase",
"PublicCatalogProductPropertiesObjectStorage",
"PublicCatalogProductPropertiesOpenSearch",
"PublicCatalogProductPropertiesSecretManager",
"PublicCatalogProductPropertiesServerlessContainers",
"PublicCatalogProductPropertiesServerlessFunctions",
Expand Down
20 changes: 20 additions & 0 deletions scaleway/scaleway/product_catalog/v2alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
PublicCatalogProductPropertiesManagedRedisDatabase,
PublicCatalogProductPropertiesManagedRelationalDatabase,
PublicCatalogProductPropertiesObjectStorage,
PublicCatalogProductPropertiesOpenSearch,
PublicCatalogProductPropertiesSecretManager,
PublicCatalogProductPropertiesServerlessContainers,
PublicCatalogProductPropertiesServerlessFunctions,
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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)


Expand Down
8 changes: 8 additions & 0 deletions scaleway/scaleway/product_catalog/v2alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -704,6 +705,11 @@ class PublicCatalogProductPropertiesObjectStorage:
] = None


@dataclass
class PublicCatalogProductPropertiesOpenSearch:
pass


@dataclass
class PublicCatalogProductPropertiesSecretManager:
pass
Expand Down Expand Up @@ -802,6 +808,8 @@ class PublicCatalogProductProperties:

apache_kafka: Optional[PublicCatalogProductPropertiesApacheKafka] = None

open_search: Optional[PublicCatalogProductPropertiesOpenSearch] = None


@dataclass
class PublicCatalogProductUnitOfMeasure:
Expand Down
Loading