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
9 changes: 9 additions & 0 deletions scaleway-async/scaleway_async/qaas/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ def unmarshal_Booking(data: Any) -> Booking:
else:
args["finished_at"] = None

field = data.get("time_zone", None)
if field is not None:
args["time_zone"] = field
else:
args["time_zone"] = None

return Booking(**args)


Expand Down Expand Up @@ -1205,6 +1211,9 @@ def marshal_CreateSessionRequestBookingDemand(
if request.description is not None:
output["description"] = request.description

if request.time_zone is not None:
output["time_zone"] = request.time_zone

return output


Expand Down
6 changes: 6 additions & 0 deletions scaleway-async/scaleway_async/qaas/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ class CreateSessionRequestBookingDemand:
started_at: Optional[datetime] = None
finished_at: Optional[datetime] = None
description: Optional[str] = None
time_zone: Optional[str] = None


@dataclass
Expand Down Expand Up @@ -395,6 +396,11 @@ class Booking:
Time at which the booking finishes.
"""

time_zone: Optional[str] = None
"""
Time zone for the booking schedule, in tz database format (e.g. 'Europe/Paris').
"""


@dataclass
class JobResult:
Expand Down
9 changes: 9 additions & 0 deletions scaleway/scaleway/qaas/v1alpha1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ def unmarshal_Booking(data: Any) -> Booking:
else:
args["finished_at"] = None

field = data.get("time_zone", None)
if field is not None:
args["time_zone"] = field
else:
args["time_zone"] = None

return Booking(**args)


Expand Down Expand Up @@ -1205,6 +1211,9 @@ def marshal_CreateSessionRequestBookingDemand(
if request.description is not None:
output["description"] = request.description

if request.time_zone is not None:
output["time_zone"] = request.time_zone

return output


Expand Down
6 changes: 6 additions & 0 deletions scaleway/scaleway/qaas/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ class CreateSessionRequestBookingDemand:
started_at: Optional[datetime] = None
finished_at: Optional[datetime] = None
description: Optional[str] = None
time_zone: Optional[str] = None


@dataclass
Expand Down Expand Up @@ -395,6 +396,11 @@ class Booking:
Time at which the booking finishes.
"""

time_zone: Optional[str] = None
"""
Time zone for the booking schedule, in tz database format (e.g. 'Europe/Paris').
"""


@dataclass
class JobResult:
Expand Down