Skip to content

Commit f7200b2

Browse files
authored
Merge branch 'main' into v1.7168.0
2 parents cf5fd93 + be9dfe0 commit f7200b2

File tree

8 files changed

+62
-0
lines changed

8 files changed

+62
-0
lines changed

scaleway-async/scaleway_async/instance/v1/marshalling.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ def unmarshal_PrivateNIC(data: Any) -> PrivateNIC:
210210
else:
211211
args["tags"] = []
212212

213+
field = data.get("zone", None)
214+
if field is not None:
215+
args["zone"] = field
216+
else:
217+
args["zone"] = None
218+
213219
field = data.get("creation_date", None)
214220
if field is not None:
215221
args["creation_date"] = (
@@ -4726,6 +4732,11 @@ def marshal_PrivateNIC(
47264732
if request.tags is not None:
47274733
output["tags"] = request.tags
47284734

4735+
if request.zone is not None:
4736+
output["zone"] = request.zone
4737+
else:
4738+
output["zone"] = defaults.default_zone
4739+
47294740
if request.creation_date is not None:
47304741
output["creation_date"] = request.creation_date.isoformat()
47314742

scaleway-async/scaleway_async/instance/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,11 @@ class PrivateNIC:
541541
Private NIC tags.
542542
"""
543543

544+
zone: ScwZone
545+
"""
546+
The zone in which the Private NIC is located.
547+
"""
548+
544549
creation_date: Optional[datetime] = None
545550
"""
546551
Private NIC creation date.

scaleway-async/scaleway_async/qaas/v1alpha1/marshalling.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ def unmarshal_Booking(data: Any) -> Booking:
179179
else:
180180
args["finished_at"] = None
181181

182+
field = data.get("time_zone", None)
183+
if field is not None:
184+
args["time_zone"] = field
185+
else:
186+
args["time_zone"] = None
187+
182188
return Booking(**args)
183189

184190

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

1214+
if request.time_zone is not None:
1215+
output["time_zone"] = request.time_zone
1216+
12081217
return output
12091218

12101219

scaleway-async/scaleway_async/qaas/v1alpha1/types.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ class CreateSessionRequestBookingDemand:
323323
started_at: Optional[datetime] = None
324324
finished_at: Optional[datetime] = None
325325
description: Optional[str] = None
326+
time_zone: Optional[str] = None
326327

327328

328329
@dataclass
@@ -395,6 +396,11 @@ class Booking:
395396
Time at which the booking finishes.
396397
"""
397398

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

399405
@dataclass
400406
class JobResult:

scaleway/scaleway/instance/v1/marshalling.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ def unmarshal_PrivateNIC(data: Any) -> PrivateNIC:
210210
else:
211211
args["tags"] = []
212212

213+
field = data.get("zone", None)
214+
if field is not None:
215+
args["zone"] = field
216+
else:
217+
args["zone"] = None
218+
213219
field = data.get("creation_date", None)
214220
if field is not None:
215221
args["creation_date"] = (
@@ -4726,6 +4732,11 @@ def marshal_PrivateNIC(
47264732
if request.tags is not None:
47274733
output["tags"] = request.tags
47284734

4735+
if request.zone is not None:
4736+
output["zone"] = request.zone
4737+
else:
4738+
output["zone"] = defaults.default_zone
4739+
47294740
if request.creation_date is not None:
47304741
output["creation_date"] = request.creation_date.isoformat()
47314742

scaleway/scaleway/instance/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,11 @@ class PrivateNIC:
541541
Private NIC tags.
542542
"""
543543

544+
zone: ScwZone
545+
"""
546+
The zone in which the Private NIC is located.
547+
"""
548+
544549
creation_date: Optional[datetime] = None
545550
"""
546551
Private NIC creation date.

scaleway/scaleway/qaas/v1alpha1/marshalling.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ def unmarshal_Booking(data: Any) -> Booking:
179179
else:
180180
args["finished_at"] = None
181181

182+
field = data.get("time_zone", None)
183+
if field is not None:
184+
args["time_zone"] = field
185+
else:
186+
args["time_zone"] = None
187+
182188
return Booking(**args)
183189

184190

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

1214+
if request.time_zone is not None:
1215+
output["time_zone"] = request.time_zone
1216+
12081217
return output
12091218

12101219

scaleway/scaleway/qaas/v1alpha1/types.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ class CreateSessionRequestBookingDemand:
323323
started_at: Optional[datetime] = None
324324
finished_at: Optional[datetime] = None
325325
description: Optional[str] = None
326+
time_zone: Optional[str] = None
326327

327328

328329
@dataclass
@@ -395,6 +396,11 @@ class Booking:
395396
Time at which the booking finishes.
396397
"""
397398

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

399405
@dataclass
400406
class JobResult:

0 commit comments

Comments
 (0)