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
20 changes: 20 additions & 0 deletions scaleway-async/scaleway_async/qaas/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
23 changes: 23 additions & 0 deletions scaleway-async/scaleway_async/qaas/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down
20 changes: 20 additions & 0 deletions scaleway/scaleway/qaas/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
23 changes: 23 additions & 0 deletions scaleway/scaleway/qaas/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down