diff --git a/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py b/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py index 3f6d7aac8..1e1d3d682 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py @@ -21,9 +21,11 @@ from .types import PublicCatalogProductPropertiesGenerativeApis from .types import PublicCatalogProductPropertiesHardware from .types import PublicCatalogProductPropertiesInstance +from .types import PublicCatalogProductPropertiesKeyManager from .types import PublicCatalogProductPropertiesLoadBalancer from .types import PublicCatalogProductPropertiesManagedInference from .types import PublicCatalogProductPropertiesObjectStorage +from .types import PublicCatalogProductPropertiesSecretManager from .types import PublicCatalogProductEnvironmentalImpactEstimation from .types import PublicCatalogProductLocality from .types import PublicCatalogProductPrice @@ -56,9 +58,11 @@ "PublicCatalogProductPropertiesGenerativeApis", "PublicCatalogProductPropertiesHardware", "PublicCatalogProductPropertiesInstance", + "PublicCatalogProductPropertiesKeyManager", "PublicCatalogProductPropertiesLoadBalancer", "PublicCatalogProductPropertiesManagedInference", "PublicCatalogProductPropertiesObjectStorage", + "PublicCatalogProductPropertiesSecretManager", "PublicCatalogProductEnvironmentalImpactEstimation", "PublicCatalogProductLocality", "PublicCatalogProductPrice", diff --git a/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py b/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py index a8644b6f0..0ed2e51b3 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py @@ -25,9 +25,11 @@ PublicCatalogProductPropertiesGenerativeApis, PublicCatalogProductPropertiesHardware, PublicCatalogProductPropertiesInstance, + PublicCatalogProductPropertiesKeyManager, PublicCatalogProductPropertiesLoadBalancer, PublicCatalogProductPropertiesManagedInference, PublicCatalogProductPropertiesObjectStorage, + PublicCatalogProductPropertiesSecretManager, PublicCatalogProductEnvironmentalImpactEstimation, PublicCatalogProductLocality, PublicCatalogProductPrice, @@ -482,6 +484,19 @@ def unmarshal_PublicCatalogProductPropertiesInstance( return PublicCatalogProductPropertiesInstance(**args) +def unmarshal_PublicCatalogProductPropertiesKeyManager( + data: Any, +) -> PublicCatalogProductPropertiesKeyManager: + if not isinstance(data, dict): + raise TypeError( + "Unmarshalling the type 'PublicCatalogProductPropertiesKeyManager' failed as data isn't a dictionary." + ) + + args: dict[str, Any] = {} + + return PublicCatalogProductPropertiesKeyManager(**args) + + def unmarshal_PublicCatalogProductPropertiesLoadBalancer( data: Any, ) -> PublicCatalogProductPropertiesLoadBalancer: @@ -527,6 +542,19 @@ def unmarshal_PublicCatalogProductPropertiesObjectStorage( return PublicCatalogProductPropertiesObjectStorage(**args) +def unmarshal_PublicCatalogProductPropertiesSecretManager( + data: Any, +) -> PublicCatalogProductPropertiesSecretManager: + if not isinstance(data, dict): + raise TypeError( + "Unmarshalling the type 'PublicCatalogProductPropertiesSecretManager' failed as data isn't a dictionary." + ) + + args: dict[str, Any] = {} + + return PublicCatalogProductPropertiesSecretManager(**args) + + def unmarshal_PublicCatalogProductEnvironmentalImpactEstimation( data: Any, ) -> PublicCatalogProductEnvironmentalImpactEstimation: @@ -688,6 +716,20 @@ def unmarshal_PublicCatalogProductProperties( else: args["load_balancer"] = None + field = data.get("secret_manager", None) + if field is not None: + args["secret_manager"] = unmarshal_PublicCatalogProductPropertiesSecretManager( + field + ) + else: + args["secret_manager"] = None + + field = data.get("key_manager", None) + if field is not None: + args["key_manager"] = unmarshal_PublicCatalogProductPropertiesKeyManager(field) + else: + args["key_manager"] = 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 11e99e34d..9b1de8d2b 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py @@ -28,6 +28,8 @@ class ListPublicCatalogProductsRequestProductType(str, Enum, metaclass=StrEnumMe MANAGED_INFERENCE = "managed_inference" GENERATIVE_APIS = "generative_apis" LOAD_BALANCER = "load_balancer" + SECRET_MANAGER = "secret_manager" + KEY_MANAGER = "key_manager" def __str__(self) -> str: return str(self.value) @@ -376,6 +378,11 @@ class PublicCatalogProductPropertiesInstance: """ +@dataclass +class PublicCatalogProductPropertiesKeyManager: + pass + + @dataclass class PublicCatalogProductPropertiesLoadBalancer: pass @@ -394,6 +401,11 @@ class PublicCatalogProductPropertiesObjectStorage: pass +@dataclass +class PublicCatalogProductPropertiesSecretManager: + pass + + @dataclass class PublicCatalogProductEnvironmentalImpactEstimation: kg_co2_equivalent: Optional[float] = None @@ -444,6 +456,10 @@ class PublicCatalogProductProperties: load_balancer: Optional[PublicCatalogProductPropertiesLoadBalancer] = None + secret_manager: Optional[PublicCatalogProductPropertiesSecretManager] = None + + key_manager: Optional[PublicCatalogProductPropertiesKeyManager] = None + @dataclass class PublicCatalogProductUnitOfMeasure: diff --git a/scaleway/scaleway/product_catalog/v2alpha1/__init__.py b/scaleway/scaleway/product_catalog/v2alpha1/__init__.py index 3f6d7aac8..1e1d3d682 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/__init__.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/__init__.py @@ -21,9 +21,11 @@ from .types import PublicCatalogProductPropertiesGenerativeApis from .types import PublicCatalogProductPropertiesHardware from .types import PublicCatalogProductPropertiesInstance +from .types import PublicCatalogProductPropertiesKeyManager from .types import PublicCatalogProductPropertiesLoadBalancer from .types import PublicCatalogProductPropertiesManagedInference from .types import PublicCatalogProductPropertiesObjectStorage +from .types import PublicCatalogProductPropertiesSecretManager from .types import PublicCatalogProductEnvironmentalImpactEstimation from .types import PublicCatalogProductLocality from .types import PublicCatalogProductPrice @@ -56,9 +58,11 @@ "PublicCatalogProductPropertiesGenerativeApis", "PublicCatalogProductPropertiesHardware", "PublicCatalogProductPropertiesInstance", + "PublicCatalogProductPropertiesKeyManager", "PublicCatalogProductPropertiesLoadBalancer", "PublicCatalogProductPropertiesManagedInference", "PublicCatalogProductPropertiesObjectStorage", + "PublicCatalogProductPropertiesSecretManager", "PublicCatalogProductEnvironmentalImpactEstimation", "PublicCatalogProductLocality", "PublicCatalogProductPrice", diff --git a/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py b/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py index a8644b6f0..0ed2e51b3 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py @@ -25,9 +25,11 @@ PublicCatalogProductPropertiesGenerativeApis, PublicCatalogProductPropertiesHardware, PublicCatalogProductPropertiesInstance, + PublicCatalogProductPropertiesKeyManager, PublicCatalogProductPropertiesLoadBalancer, PublicCatalogProductPropertiesManagedInference, PublicCatalogProductPropertiesObjectStorage, + PublicCatalogProductPropertiesSecretManager, PublicCatalogProductEnvironmentalImpactEstimation, PublicCatalogProductLocality, PublicCatalogProductPrice, @@ -482,6 +484,19 @@ def unmarshal_PublicCatalogProductPropertiesInstance( return PublicCatalogProductPropertiesInstance(**args) +def unmarshal_PublicCatalogProductPropertiesKeyManager( + data: Any, +) -> PublicCatalogProductPropertiesKeyManager: + if not isinstance(data, dict): + raise TypeError( + "Unmarshalling the type 'PublicCatalogProductPropertiesKeyManager' failed as data isn't a dictionary." + ) + + args: dict[str, Any] = {} + + return PublicCatalogProductPropertiesKeyManager(**args) + + def unmarshal_PublicCatalogProductPropertiesLoadBalancer( data: Any, ) -> PublicCatalogProductPropertiesLoadBalancer: @@ -527,6 +542,19 @@ def unmarshal_PublicCatalogProductPropertiesObjectStorage( return PublicCatalogProductPropertiesObjectStorage(**args) +def unmarshal_PublicCatalogProductPropertiesSecretManager( + data: Any, +) -> PublicCatalogProductPropertiesSecretManager: + if not isinstance(data, dict): + raise TypeError( + "Unmarshalling the type 'PublicCatalogProductPropertiesSecretManager' failed as data isn't a dictionary." + ) + + args: dict[str, Any] = {} + + return PublicCatalogProductPropertiesSecretManager(**args) + + def unmarshal_PublicCatalogProductEnvironmentalImpactEstimation( data: Any, ) -> PublicCatalogProductEnvironmentalImpactEstimation: @@ -688,6 +716,20 @@ def unmarshal_PublicCatalogProductProperties( else: args["load_balancer"] = None + field = data.get("secret_manager", None) + if field is not None: + args["secret_manager"] = unmarshal_PublicCatalogProductPropertiesSecretManager( + field + ) + else: + args["secret_manager"] = None + + field = data.get("key_manager", None) + if field is not None: + args["key_manager"] = unmarshal_PublicCatalogProductPropertiesKeyManager(field) + else: + args["key_manager"] = None + return PublicCatalogProductProperties(**args) diff --git a/scaleway/scaleway/product_catalog/v2alpha1/types.py b/scaleway/scaleway/product_catalog/v2alpha1/types.py index 11e99e34d..9b1de8d2b 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/types.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/types.py @@ -28,6 +28,8 @@ class ListPublicCatalogProductsRequestProductType(str, Enum, metaclass=StrEnumMe MANAGED_INFERENCE = "managed_inference" GENERATIVE_APIS = "generative_apis" LOAD_BALANCER = "load_balancer" + SECRET_MANAGER = "secret_manager" + KEY_MANAGER = "key_manager" def __str__(self) -> str: return str(self.value) @@ -376,6 +378,11 @@ class PublicCatalogProductPropertiesInstance: """ +@dataclass +class PublicCatalogProductPropertiesKeyManager: + pass + + @dataclass class PublicCatalogProductPropertiesLoadBalancer: pass @@ -394,6 +401,11 @@ class PublicCatalogProductPropertiesObjectStorage: pass +@dataclass +class PublicCatalogProductPropertiesSecretManager: + pass + + @dataclass class PublicCatalogProductEnvironmentalImpactEstimation: kg_co2_equivalent: Optional[float] = None @@ -444,6 +456,10 @@ class PublicCatalogProductProperties: load_balancer: Optional[PublicCatalogProductPropertiesLoadBalancer] = None + secret_manager: Optional[PublicCatalogProductPropertiesSecretManager] = None + + key_manager: Optional[PublicCatalogProductPropertiesKeyManager] = None + @dataclass class PublicCatalogProductUnitOfMeasure: