From d59c7e569b15fdcca8f85d22af2cd58465a8f147 Mon Sep 17 00:00:00 2001 From: Prototool Bot Date: Thu, 28 May 2026 14:12:41 +0000 Subject: [PATCH] feat: update generated APIs --- .../product_catalog/v2alpha1/__init__.py | 8 +++ .../product_catalog/v2alpha1/marshalling.py | 58 +++++++++++++++++++ .../product_catalog/v2alpha1/types.py | 23 +++++++- .../product_catalog/v2alpha1/__init__.py | 8 +++ .../product_catalog/v2alpha1/marshalling.py | 58 +++++++++++++++++++ .../product_catalog/v2alpha1/types.py | 23 +++++++- 6 files changed, 176 insertions(+), 2 deletions(-) diff --git a/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py b/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py index 011387fbe..624b7cdf1 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/__init__.py @@ -28,6 +28,12 @@ from .types import PublicCatalogProductPropertiesKubernetesKosmosNodeType from .types import PublicCatalogProductPropertiesLoadBalancerIPV4Type from .types import PublicCatalogProductPropertiesLoadBalancerNodeType +from .types import ( + PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage, +) +from .types import ( + PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment, +) from .types import PublicCatalogProductPropertiesManagedMongoDBManagementType from .types import PublicCatalogProductPropertiesManagedMongoDBNodeType from .types import PublicCatalogProductPropertiesManagedMongoDBStorageType @@ -91,6 +97,8 @@ "PublicCatalogProductPropertiesKubernetesKosmosNodeType", "PublicCatalogProductPropertiesLoadBalancerIPV4Type", "PublicCatalogProductPropertiesLoadBalancerNodeType", + "PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage", + "PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment", "PublicCatalogProductPropertiesManagedMongoDBManagementType", "PublicCatalogProductPropertiesManagedMongoDBNodeType", "PublicCatalogProductPropertiesManagedMongoDBStorageType", diff --git a/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py b/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py index 9e59aa767..a03679546 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/marshalling.py @@ -28,6 +28,8 @@ PublicCatalogProductPropertiesKubernetesKosmosNodeType, PublicCatalogProductPropertiesLoadBalancerIPV4Type, PublicCatalogProductPropertiesLoadBalancerNodeType, + PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage, + PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment, PublicCatalogProductPropertiesManagedMongoDBManagementType, PublicCatalogProductPropertiesManagedMongoDBNodeType, PublicCatalogProductPropertiesManagedMongoDBStorageType, @@ -388,6 +390,42 @@ def unmarshal_PublicCatalogProductPropertiesLoadBalancerNodeType( return PublicCatalogProductPropertiesLoadBalancerNodeType(**args) +def unmarshal_PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage( + data: Any, +) -> PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage: + if not isinstance(data, dict): + raise TypeError( + "Unmarshalling the type 'PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage' failed as data isn't a dictionary." + ) + + args: dict[str, Any] = {} + + return PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage( + **args + ) + + +def unmarshal_PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment( + data: Any, +) -> PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment: + if not isinstance(data, dict): + raise TypeError( + "Unmarshalling the type 'PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment' failed as data isn't a dictionary." + ) + + args: dict[str, Any] = {} + + field = data.get("instance_gpu_name", None) + if field is not None: + args["instance_gpu_name"] = field + else: + args["instance_gpu_name"] = None + + return PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment( + **args + ) + + def unmarshal_PublicCatalogProductPropertiesManagedMongoDBManagementType( data: Any, ) -> PublicCatalogProductPropertiesManagedMongoDBManagementType: @@ -881,6 +919,26 @@ def unmarshal_PublicCatalogProductPropertiesManagedInference( else: args["instance_gpu_name"] = None + field = data.get("deployment", None) + if field is not None: + args["deployment"] = ( + unmarshal_PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment( + field + ) + ) + else: + args["deployment"] = None + + field = data.get("custom_model_storage", None) + if field is not None: + args["custom_model_storage"] = ( + unmarshal_PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage( + field + ) + ) + else: + args["custom_model_storage"] = None + return PublicCatalogProductPropertiesManagedInference(**args) diff --git a/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py b/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py index 6cfd50d6a..7c131252f 100644 --- a/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py +++ b/scaleway-async/scaleway_async/product_catalog/v2alpha1/types.py @@ -379,6 +379,19 @@ class PublicCatalogProductPropertiesLoadBalancerNodeType: """ +@dataclass +class PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage: + pass + + +@dataclass +class PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment: + instance_gpu_name: str + """ + The name of the associated instance GPU to this deployment. + """ + + @dataclass class PublicCatalogProductPropertiesManagedMongoDBManagementType: pass @@ -590,9 +603,17 @@ class PublicCatalogProductPropertiesLoadBalancer: class PublicCatalogProductPropertiesManagedInference: instance_gpu_name: str """ - The name of the associated instance GPU to this node type. + The name of the associated instance GPU to this node type. Deprecated, use `deployment.instance_gpu_name` instead. """ + deployment: Optional[ + PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment + ] = None + + custom_model_storage: Optional[ + PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage + ] = None + @dataclass class PublicCatalogProductPropertiesManagedMongoDB: diff --git a/scaleway/scaleway/product_catalog/v2alpha1/__init__.py b/scaleway/scaleway/product_catalog/v2alpha1/__init__.py index 011387fbe..624b7cdf1 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/__init__.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/__init__.py @@ -28,6 +28,12 @@ from .types import PublicCatalogProductPropertiesKubernetesKosmosNodeType from .types import PublicCatalogProductPropertiesLoadBalancerIPV4Type from .types import PublicCatalogProductPropertiesLoadBalancerNodeType +from .types import ( + PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage, +) +from .types import ( + PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment, +) from .types import PublicCatalogProductPropertiesManagedMongoDBManagementType from .types import PublicCatalogProductPropertiesManagedMongoDBNodeType from .types import PublicCatalogProductPropertiesManagedMongoDBStorageType @@ -91,6 +97,8 @@ "PublicCatalogProductPropertiesKubernetesKosmosNodeType", "PublicCatalogProductPropertiesLoadBalancerIPV4Type", "PublicCatalogProductPropertiesLoadBalancerNodeType", + "PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage", + "PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment", "PublicCatalogProductPropertiesManagedMongoDBManagementType", "PublicCatalogProductPropertiesManagedMongoDBNodeType", "PublicCatalogProductPropertiesManagedMongoDBStorageType", diff --git a/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py b/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py index 9e59aa767..a03679546 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/marshalling.py @@ -28,6 +28,8 @@ PublicCatalogProductPropertiesKubernetesKosmosNodeType, PublicCatalogProductPropertiesLoadBalancerIPV4Type, PublicCatalogProductPropertiesLoadBalancerNodeType, + PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage, + PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment, PublicCatalogProductPropertiesManagedMongoDBManagementType, PublicCatalogProductPropertiesManagedMongoDBNodeType, PublicCatalogProductPropertiesManagedMongoDBStorageType, @@ -388,6 +390,42 @@ def unmarshal_PublicCatalogProductPropertiesLoadBalancerNodeType( return PublicCatalogProductPropertiesLoadBalancerNodeType(**args) +def unmarshal_PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage( + data: Any, +) -> PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage: + if not isinstance(data, dict): + raise TypeError( + "Unmarshalling the type 'PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage' failed as data isn't a dictionary." + ) + + args: dict[str, Any] = {} + + return PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage( + **args + ) + + +def unmarshal_PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment( + data: Any, +) -> PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment: + if not isinstance(data, dict): + raise TypeError( + "Unmarshalling the type 'PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment' failed as data isn't a dictionary." + ) + + args: dict[str, Any] = {} + + field = data.get("instance_gpu_name", None) + if field is not None: + args["instance_gpu_name"] = field + else: + args["instance_gpu_name"] = None + + return PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment( + **args + ) + + def unmarshal_PublicCatalogProductPropertiesManagedMongoDBManagementType( data: Any, ) -> PublicCatalogProductPropertiesManagedMongoDBManagementType: @@ -881,6 +919,26 @@ def unmarshal_PublicCatalogProductPropertiesManagedInference( else: args["instance_gpu_name"] = None + field = data.get("deployment", None) + if field is not None: + args["deployment"] = ( + unmarshal_PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment( + field + ) + ) + else: + args["deployment"] = None + + field = data.get("custom_model_storage", None) + if field is not None: + args["custom_model_storage"] = ( + unmarshal_PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage( + field + ) + ) + else: + args["custom_model_storage"] = None + return PublicCatalogProductPropertiesManagedInference(**args) diff --git a/scaleway/scaleway/product_catalog/v2alpha1/types.py b/scaleway/scaleway/product_catalog/v2alpha1/types.py index 6cfd50d6a..7c131252f 100644 --- a/scaleway/scaleway/product_catalog/v2alpha1/types.py +++ b/scaleway/scaleway/product_catalog/v2alpha1/types.py @@ -379,6 +379,19 @@ class PublicCatalogProductPropertiesLoadBalancerNodeType: """ +@dataclass +class PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage: + pass + + +@dataclass +class PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment: + instance_gpu_name: str + """ + The name of the associated instance GPU to this deployment. + """ + + @dataclass class PublicCatalogProductPropertiesManagedMongoDBManagementType: pass @@ -590,9 +603,17 @@ class PublicCatalogProductPropertiesLoadBalancer: class PublicCatalogProductPropertiesManagedInference: instance_gpu_name: str """ - The name of the associated instance GPU to this node type. + The name of the associated instance GPU to this node type. Deprecated, use `deployment.instance_gpu_name` instead. """ + deployment: Optional[ + PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment + ] = None + + custom_model_storage: Optional[ + PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage + ] = None + @dataclass class PublicCatalogProductPropertiesManagedMongoDB: