diff --git a/scaleway-async/scaleway_async/qaas/v1alpha1/marshalling.py b/scaleway-async/scaleway_async/qaas/v1alpha1/marshalling.py index 2325a128a..e8ad932fd 100644 --- a/scaleway-async/scaleway_async/qaas/v1alpha1/marshalling.py +++ b/scaleway-async/scaleway_async/qaas/v1alpha1/marshalling.py @@ -238,6 +238,14 @@ def unmarshal_Platform(data: Any) -> Platform: if field is not None: args["max_qubit_count"] = field + field = data.get("max_shot_count", None) + if field is not None: + args["max_shot_count"] = field + + field = data.get("max_circuit_count", None) + if field is not None: + args["max_circuit_count"] = field + field = data.get("availability", None) if field is not None: args["availability"] = field @@ -252,6 +260,18 @@ def unmarshal_Platform(data: Any) -> Platform: else: args["price_per_hour"] = None + field = data.get("price_per_shot", None) + if field is not None: + args["price_per_shot"] = unmarshal_Money(field) + else: + args["price_per_shot"] = None + + field = data.get("price_per_circuit", None) + if field is not None: + args["price_per_circuit"] = unmarshal_Money(field) + else: + args["price_per_circuit"] = None + field = data.get("hardware", None) if field is not None: args["hardware"] = unmarshal_PlatformHardware(field) diff --git a/scaleway-async/scaleway_async/qaas/v1alpha1/types.py b/scaleway-async/scaleway_async/qaas/v1alpha1/types.py index 2d1e01718..ccb14a047 100644 --- a/scaleway-async/scaleway_async/qaas/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/qaas/v1alpha1/types.py @@ -135,6 +135,7 @@ class PlatformAvailability(str, Enum, metaclass=StrEnumMeta): AVAILABLE = "available" SHORTAGE = "shortage" SCARCE = "scarce" + MAINTENANCE = "maintenance" def __str__(self) -> str: return str(self.value) @@ -144,6 +145,8 @@ class PlatformTechnology(str, Enum, metaclass=StrEnumMeta): UNKNOWN_TECHNOLOGY = "unknown_technology" PHOTONIC = "photonic" GENERAL_PURPOSE = "general_purpose" + TRAPPED_ION = "trapped_ion" + SUPERCONDUCTING = "superconducting" def __str__(self) -> str: return str(self.value) @@ -396,6 +399,16 @@ class Platform: Estimated maximum number of qubits supported by the platform. """ + max_shot_count: int + """ + Maximum number of shots during a circuit execution. + """ + + max_circuit_count: int + """ + Maximum number of circuit that can be executed in one call. + """ + availability: PlatformAvailability """ Availability of the platform. @@ -411,6 +424,16 @@ class Platform: Price to be paid per hour (excluding free tiers). """ + price_per_shot: Optional[Money] + """ + Price to be paid per shot (excluding free tiers). + """ + + price_per_circuit: Optional[Money] + """ + Price to be paid per circuit setup before its execution (excluding free tiers). + """ + hardware: Optional[PlatformHardware] """ Specifications of the underlying hardware. diff --git a/scaleway/scaleway/qaas/v1alpha1/marshalling.py b/scaleway/scaleway/qaas/v1alpha1/marshalling.py index 2325a128a..e8ad932fd 100644 --- a/scaleway/scaleway/qaas/v1alpha1/marshalling.py +++ b/scaleway/scaleway/qaas/v1alpha1/marshalling.py @@ -238,6 +238,14 @@ def unmarshal_Platform(data: Any) -> Platform: if field is not None: args["max_qubit_count"] = field + field = data.get("max_shot_count", None) + if field is not None: + args["max_shot_count"] = field + + field = data.get("max_circuit_count", None) + if field is not None: + args["max_circuit_count"] = field + field = data.get("availability", None) if field is not None: args["availability"] = field @@ -252,6 +260,18 @@ def unmarshal_Platform(data: Any) -> Platform: else: args["price_per_hour"] = None + field = data.get("price_per_shot", None) + if field is not None: + args["price_per_shot"] = unmarshal_Money(field) + else: + args["price_per_shot"] = None + + field = data.get("price_per_circuit", None) + if field is not None: + args["price_per_circuit"] = unmarshal_Money(field) + else: + args["price_per_circuit"] = None + field = data.get("hardware", None) if field is not None: args["hardware"] = unmarshal_PlatformHardware(field) diff --git a/scaleway/scaleway/qaas/v1alpha1/types.py b/scaleway/scaleway/qaas/v1alpha1/types.py index 2d1e01718..ccb14a047 100644 --- a/scaleway/scaleway/qaas/v1alpha1/types.py +++ b/scaleway/scaleway/qaas/v1alpha1/types.py @@ -135,6 +135,7 @@ class PlatformAvailability(str, Enum, metaclass=StrEnumMeta): AVAILABLE = "available" SHORTAGE = "shortage" SCARCE = "scarce" + MAINTENANCE = "maintenance" def __str__(self) -> str: return str(self.value) @@ -144,6 +145,8 @@ class PlatformTechnology(str, Enum, metaclass=StrEnumMeta): UNKNOWN_TECHNOLOGY = "unknown_technology" PHOTONIC = "photonic" GENERAL_PURPOSE = "general_purpose" + TRAPPED_ION = "trapped_ion" + SUPERCONDUCTING = "superconducting" def __str__(self) -> str: return str(self.value) @@ -396,6 +399,16 @@ class Platform: Estimated maximum number of qubits supported by the platform. """ + max_shot_count: int + """ + Maximum number of shots during a circuit execution. + """ + + max_circuit_count: int + """ + Maximum number of circuit that can be executed in one call. + """ + availability: PlatformAvailability """ Availability of the platform. @@ -411,6 +424,16 @@ class Platform: Price to be paid per hour (excluding free tiers). """ + price_per_shot: Optional[Money] + """ + Price to be paid per shot (excluding free tiers). + """ + + price_per_circuit: Optional[Money] + """ + Price to be paid per circuit setup before its execution (excluding free tiers). + """ + hardware: Optional[PlatformHardware] """ Specifications of the underlying hardware.