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 @@ -33,6 +33,7 @@
from .types import PublicCatalogProductPropertiesKeyManager
from .types import PublicCatalogProductPropertiesLoadBalancer
from .types import PublicCatalogProductPropertiesManagedInference
from .types import PublicCatalogProductPropertiesManagedRedisDatabase
from .types import PublicCatalogProductPropertiesObjectStorage
from .types import PublicCatalogProductPropertiesSecretManager
from .types import PublicCatalogProductEnvironmentalImpactEstimation
Expand Down Expand Up @@ -77,6 +78,7 @@
"PublicCatalogProductPropertiesKeyManager",
"PublicCatalogProductPropertiesLoadBalancer",
"PublicCatalogProductPropertiesManagedInference",
"PublicCatalogProductPropertiesManagedRedisDatabase",
"PublicCatalogProductPropertiesObjectStorage",
"PublicCatalogProductPropertiesSecretManager",
"PublicCatalogProductEnvironmentalImpactEstimation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
PublicCatalogProductPropertiesKeyManager,
PublicCatalogProductPropertiesLoadBalancer,
PublicCatalogProductPropertiesManagedInference,
PublicCatalogProductPropertiesManagedRedisDatabase,
PublicCatalogProductPropertiesObjectStorage,
PublicCatalogProductPropertiesSecretManager,
PublicCatalogProductEnvironmentalImpactEstimation,
Expand Down Expand Up @@ -618,6 +619,19 @@ def unmarshal_PublicCatalogProductPropertiesManagedInference(
return PublicCatalogProductPropertiesManagedInference(**args)


def unmarshal_PublicCatalogProductPropertiesManagedRedisDatabase(
data: Any,
) -> PublicCatalogProductPropertiesManagedRedisDatabase:
if not isinstance(data, dict):
raise TypeError(
"Unmarshalling the type 'PublicCatalogProductPropertiesManagedRedisDatabase' failed as data isn't a dictionary."
)

args: dict[str, Any] = {}

return PublicCatalogProductPropertiesManagedRedisDatabase(**args)


def unmarshal_PublicCatalogProductPropertiesObjectStorage(
data: Any,
) -> PublicCatalogProductPropertiesObjectStorage:
Expand Down Expand Up @@ -849,6 +863,14 @@ def unmarshal_PublicCatalogProductProperties(
else:
args["secret_manager"] = None

field = data.get("managed_redis_database", None)
if field is not None:
args["managed_redis_database"] = (
unmarshal_PublicCatalogProductPropertiesManagedRedisDatabase(field)
)
else:
args["managed_redis_database"] = None

field = data.get("key_manager", None)
if field is not None:
args["key_manager"] = unmarshal_PublicCatalogProductPropertiesKeyManager(field)
Expand Down
10 changes: 10 additions & 0 deletions scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class ListPublicCatalogProductsRequestProductType(str, Enum, metaclass=StrEnumMe
LOAD_BALANCER = "load_balancer"
SECRET_MANAGER = "secret_manager"
KEY_MANAGER = "key_manager"
MANAGED_REDIS_DATABASE = "managed_redis_database"

def __str__(self) -> str:
return str(self.value)
Expand Down Expand Up @@ -464,6 +465,11 @@ class PublicCatalogProductPropertiesManagedInference:
"""


@dataclass
class PublicCatalogProductPropertiesManagedRedisDatabase:
pass


@dataclass
class PublicCatalogProductPropertiesObjectStorage:
class_: Optional[PublicCatalogProductPropertiesObjectStorageClassType] = None
Expand Down Expand Up @@ -536,6 +542,10 @@ class PublicCatalogProductProperties:

secret_manager: Optional[PublicCatalogProductPropertiesSecretManager] = None

managed_redis_database: Optional[
PublicCatalogProductPropertiesManagedRedisDatabase
] = None

key_manager: Optional[PublicCatalogProductPropertiesKeyManager] = None


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 @@ -33,6 +33,7 @@
from .types import PublicCatalogProductPropertiesKeyManager
from .types import PublicCatalogProductPropertiesLoadBalancer
from .types import PublicCatalogProductPropertiesManagedInference
from .types import PublicCatalogProductPropertiesManagedRedisDatabase
from .types import PublicCatalogProductPropertiesObjectStorage
from .types import PublicCatalogProductPropertiesSecretManager
from .types import PublicCatalogProductEnvironmentalImpactEstimation
Expand Down Expand Up @@ -77,6 +78,7 @@
"PublicCatalogProductPropertiesKeyManager",
"PublicCatalogProductPropertiesLoadBalancer",
"PublicCatalogProductPropertiesManagedInference",
"PublicCatalogProductPropertiesManagedRedisDatabase",
"PublicCatalogProductPropertiesObjectStorage",
"PublicCatalogProductPropertiesSecretManager",
"PublicCatalogProductEnvironmentalImpactEstimation",
Expand Down
22 changes: 22 additions & 0 deletions scaleway/scaleway/product_catalog/v2alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
PublicCatalogProductPropertiesKeyManager,
PublicCatalogProductPropertiesLoadBalancer,
PublicCatalogProductPropertiesManagedInference,
PublicCatalogProductPropertiesManagedRedisDatabase,
PublicCatalogProductPropertiesObjectStorage,
PublicCatalogProductPropertiesSecretManager,
PublicCatalogProductEnvironmentalImpactEstimation,
Expand Down Expand Up @@ -618,6 +619,19 @@ def unmarshal_PublicCatalogProductPropertiesManagedInference(
return PublicCatalogProductPropertiesManagedInference(**args)


def unmarshal_PublicCatalogProductPropertiesManagedRedisDatabase(
data: Any,
) -> PublicCatalogProductPropertiesManagedRedisDatabase:
if not isinstance(data, dict):
raise TypeError(
"Unmarshalling the type 'PublicCatalogProductPropertiesManagedRedisDatabase' failed as data isn't a dictionary."
)

args: dict[str, Any] = {}

return PublicCatalogProductPropertiesManagedRedisDatabase(**args)


def unmarshal_PublicCatalogProductPropertiesObjectStorage(
data: Any,
) -> PublicCatalogProductPropertiesObjectStorage:
Expand Down Expand Up @@ -849,6 +863,14 @@ def unmarshal_PublicCatalogProductProperties(
else:
args["secret_manager"] = None

field = data.get("managed_redis_database", None)
if field is not None:
args["managed_redis_database"] = (
unmarshal_PublicCatalogProductPropertiesManagedRedisDatabase(field)
)
else:
args["managed_redis_database"] = None

field = data.get("key_manager", None)
if field is not None:
args["key_manager"] = unmarshal_PublicCatalogProductPropertiesKeyManager(field)
Expand Down
10 changes: 10 additions & 0 deletions scaleway/scaleway/product_catalog/v2alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class ListPublicCatalogProductsRequestProductType(str, Enum, metaclass=StrEnumMe
LOAD_BALANCER = "load_balancer"
SECRET_MANAGER = "secret_manager"
KEY_MANAGER = "key_manager"
MANAGED_REDIS_DATABASE = "managed_redis_database"

def __str__(self) -> str:
return str(self.value)
Expand Down Expand Up @@ -464,6 +465,11 @@ class PublicCatalogProductPropertiesManagedInference:
"""


@dataclass
class PublicCatalogProductPropertiesManagedRedisDatabase:
pass


@dataclass
class PublicCatalogProductPropertiesObjectStorage:
class_: Optional[PublicCatalogProductPropertiesObjectStorageClassType] = None
Expand Down Expand Up @@ -536,6 +542,10 @@ class PublicCatalogProductProperties:

secret_manager: Optional[PublicCatalogProductPropertiesSecretManager] = None

managed_redis_database: Optional[
PublicCatalogProductPropertiesManagedRedisDatabase
] = None

key_manager: Optional[PublicCatalogProductPropertiesKeyManager] = None


Expand Down