From 17e3d24233cf836301553ba404298afab6674911 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Mon, 29 Sep 2025 14:02:12 +0000 Subject: [PATCH] feat: update generated APIs --- .../qaas/v1alpha1/marshalling.py | 18 ++++++++++++++++++ .../scaleway_async/qaas/v1alpha1/types.py | 15 +++++++++++++++ scaleway/scaleway/qaas/v1alpha1/marshalling.py | 18 ++++++++++++++++++ scaleway/scaleway/qaas/v1alpha1/types.py | 15 +++++++++++++++ 4 files changed, 66 insertions(+) diff --git a/scaleway-async/scaleway_async/qaas/v1alpha1/marshalling.py b/scaleway-async/scaleway_async/qaas/v1alpha1/marshalling.py index c7fdafb7..38e83789 100644 --- a/scaleway-async/scaleway_async/qaas/v1alpha1/marshalling.py +++ b/scaleway-async/scaleway_async/qaas/v1alpha1/marshalling.py @@ -314,6 +314,18 @@ def unmarshal_PlatformBookingRequirement(data: Any) -> PlatformBookingRequiremen args: dict[str, Any] = {} + field = data.get("max_booking_per_week", None) + if field is not None: + args["max_booking_per_week"] = field + else: + args["max_booking_per_week"] = 0 + + field = data.get("max_booking_per_day", None) + if field is not None: + args["max_booking_per_day"] = field + else: + args["max_booking_per_day"] = 0 + field = data.get("min_duration", None) if field is not None: args["min_duration"] = field @@ -338,6 +350,12 @@ def unmarshal_PlatformBookingRequirement(data: Any) -> PlatformBookingRequiremen else: args["max_planification_duration"] = None + field = data.get("min_planification_duration", None) + if field is not None: + args["min_planification_duration"] = field + else: + args["min_planification_duration"] = None + return PlatformBookingRequirement(**args) diff --git a/scaleway-async/scaleway_async/qaas/v1alpha1/types.py b/scaleway-async/scaleway_async/qaas/v1alpha1/types.py index 84c3a7dc..b1d3ac0b 100644 --- a/scaleway-async/scaleway_async/qaas/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/qaas/v1alpha1/types.py @@ -242,6 +242,16 @@ def __str__(self) -> str: @dataclass class PlatformBookingRequirement: + max_booking_per_week: int + """ + Maximum amount of booking allowed for one organization per week. + """ + + max_booking_per_day: int + """ + Maximum amount of booking allowed for one organization per day. + """ + min_duration: Optional[str] = None """ Minimal duration of any booking based on this platform. @@ -262,6 +272,11 @@ class PlatformBookingRequirement: Allowed planification time from now where the platform can be booked in the future. """ + min_planification_duration: Optional[str] = None + """ + Minimum planification time before a platform can be booked. + """ + @dataclass class PlatformHardware: diff --git a/scaleway/scaleway/qaas/v1alpha1/marshalling.py b/scaleway/scaleway/qaas/v1alpha1/marshalling.py index c7fdafb7..38e83789 100644 --- a/scaleway/scaleway/qaas/v1alpha1/marshalling.py +++ b/scaleway/scaleway/qaas/v1alpha1/marshalling.py @@ -314,6 +314,18 @@ def unmarshal_PlatformBookingRequirement(data: Any) -> PlatformBookingRequiremen args: dict[str, Any] = {} + field = data.get("max_booking_per_week", None) + if field is not None: + args["max_booking_per_week"] = field + else: + args["max_booking_per_week"] = 0 + + field = data.get("max_booking_per_day", None) + if field is not None: + args["max_booking_per_day"] = field + else: + args["max_booking_per_day"] = 0 + field = data.get("min_duration", None) if field is not None: args["min_duration"] = field @@ -338,6 +350,12 @@ def unmarshal_PlatformBookingRequirement(data: Any) -> PlatformBookingRequiremen else: args["max_planification_duration"] = None + field = data.get("min_planification_duration", None) + if field is not None: + args["min_planification_duration"] = field + else: + args["min_planification_duration"] = None + return PlatformBookingRequirement(**args) diff --git a/scaleway/scaleway/qaas/v1alpha1/types.py b/scaleway/scaleway/qaas/v1alpha1/types.py index 84c3a7dc..b1d3ac0b 100644 --- a/scaleway/scaleway/qaas/v1alpha1/types.py +++ b/scaleway/scaleway/qaas/v1alpha1/types.py @@ -242,6 +242,16 @@ def __str__(self) -> str: @dataclass class PlatformBookingRequirement: + max_booking_per_week: int + """ + Maximum amount of booking allowed for one organization per week. + """ + + max_booking_per_day: int + """ + Maximum amount of booking allowed for one organization per day. + """ + min_duration: Optional[str] = None """ Minimal duration of any booking based on this platform. @@ -262,6 +272,11 @@ class PlatformBookingRequirement: Allowed planification time from now where the platform can be booked in the future. """ + min_planification_duration: Optional[str] = None + """ + Minimum planification time before a platform can be booked. + """ + @dataclass class PlatformHardware: