Skip to content

Commit 33e03ee

Browse files
committed
feat: update generation
1 parent 6b1b3a1 commit 33e03ee

File tree

82 files changed

+1310
-1278
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1310
-1278
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,21 +105,21 @@ def unmarshal_ServerType(data: Any) -> ServerType:
105105

106106
args: Dict[str, Any] = {}
107107

108+
field = data.get("name", None)
109+
args["name"] = field
110+
111+
field = data.get("stock", None)
112+
args["stock"] = field
113+
108114
field = data.get("cpu", None)
109115
args["cpu"] = unmarshal_ServerTypeCPU(field)
110116

111117
field = data.get("disk", None)
112118
args["disk"] = unmarshal_ServerTypeDisk(field)
113119

114-
field = data.get("name", None)
115-
args["name"] = field
116-
117120
field = data.get("memory", None)
118121
args["memory"] = unmarshal_ServerTypeMemory(field)
119122

120-
field = data.get("stock", None)
121-
args["stock"] = field
122-
123123
field = data.get("minimum_lease_duration", None)
124124
args["minimum_lease_duration"] = field
125125

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,29 +100,29 @@ class OS:
100100

101101
@dataclass
102102
class ServerType:
103-
cpu: ServerTypeCPU
103+
name: str
104104
"""
105-
CPU description.
105+
Name of the type.
106106
"""
107107

108-
disk: ServerTypeDisk
108+
stock: ServerTypeStock
109109
"""
110-
Size of the local disk of the server.
110+
Current stock.
111111
"""
112112

113-
name: str
113+
cpu: Optional[ServerTypeCPU]
114114
"""
115-
Name of the type.
115+
CPU description.
116116
"""
117117

118-
memory: ServerTypeMemory
118+
disk: Optional[ServerTypeDisk]
119119
"""
120-
Size of memory available.
120+
Size of the local disk of the server.
121121
"""
122122

123-
stock: ServerTypeStock
123+
memory: Optional[ServerTypeMemory]
124124
"""
125-
Current stock.
125+
Size of memory available.
126126
"""
127127

128128
minimum_lease_duration: Optional[str]

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ def unmarshal_OS(data: Any) -> OS:
126126
field = data.get("logo_url", None)
127127
args["logo_url"] = field
128128

129+
field = data.get("enabled", None)
130+
args["enabled"] = field
131+
132+
field = data.get("license_required", None)
133+
args["license_required"] = field
134+
135+
field = data.get("allowed", None)
136+
args["allowed"] = field
137+
129138
field = data.get("ssh", None)
130139
args["ssh"] = unmarshal_OSOSField(field)
131140

@@ -141,15 +150,6 @@ def unmarshal_OS(data: Any) -> OS:
141150
field = data.get("service_password", None)
142151
args["service_password"] = unmarshal_OSOSField(field)
143152

144-
field = data.get("enabled", None)
145-
args["enabled"] = field
146-
147-
field = data.get("license_required", None)
148-
args["license_required"] = field
149-
150-
field = data.get("allowed", None)
151-
args["allowed"] = field
152-
153153
return OS(**args)
154154

155155

@@ -556,9 +556,6 @@ def unmarshal_Server(data: Any) -> Server:
556556
field = data.get("zone", None)
557557
args["zone"] = field
558558

559-
field = data.get("install", None)
560-
args["install"] = unmarshal_ServerInstall(field)
561-
562559
field = data.get("ping_status", None)
563560
args["ping_status"] = field
564561

@@ -567,6 +564,9 @@ def unmarshal_Server(data: Any) -> Server:
567564
[unmarshal_ServerOption(v) for v in field] if field is not None else None
568565
)
569566

567+
field = data.get("install", None)
568+
args["install"] = unmarshal_ServerInstall(field)
569+
570570
field = data.get("rescue_server", None)
571571
args["rescue_server"] = unmarshal_ServerRescueServer(field)
572572

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -474,44 +474,44 @@ class OS:
474474
URL of this OS's logo.
475475
"""
476476

477-
ssh: OSOSField
477+
enabled: bool
478478
"""
479-
Object defining the SSH requirements to install the OS.
479+
Defines if the operating system is enabled or not.
480480
"""
481481

482-
user: OSOSField
482+
license_required: bool
483483
"""
484-
Object defining the username requirements to install the OS.
484+
License required (check server options for pricing details).
485485
"""
486486

487-
password: OSOSField
487+
allowed: bool
488488
"""
489-
Object defining the password requirements to install the OS.
489+
Defines if a specific Organization is allowed to install this OS type.
490490
"""
491491

492-
service_user: OSOSField
492+
ssh: Optional[OSOSField]
493493
"""
494-
Object defining the username requirements to install the service.
494+
Object defining the SSH requirements to install the OS.
495495
"""
496496

497-
service_password: OSOSField
497+
user: Optional[OSOSField]
498498
"""
499-
Object defining the password requirements to install the service.
499+
Object defining the username requirements to install the OS.
500500
"""
501501

502-
enabled: bool
502+
password: Optional[OSOSField]
503503
"""
504-
Defines if the operating system is enabled or not.
504+
Object defining the password requirements to install the OS.
505505
"""
506506

507-
license_required: bool
507+
service_user: Optional[OSOSField]
508508
"""
509-
License required (check server options for pricing details).
509+
Object defining the username requirements to install the service.
510510
"""
511511

512-
allowed: bool
512+
service_password: Optional[OSOSField]
513513
"""
514-
Defines if a specific Organization is allowed to install this OS type.
514+
Object defining the password requirements to install the service.
515515
"""
516516

517517

@@ -789,11 +789,6 @@ class Server:
789789
Zone in which is the server located.
790790
"""
791791

792-
install: ServerInstall
793-
"""
794-
Configuration of the installation.
795-
"""
796-
797792
ping_status: ServerPingStatus
798793
"""
799794
Status of server ping.
@@ -804,7 +799,12 @@ class Server:
804799
Options enabled on the server.
805800
"""
806801

807-
rescue_server: ServerRescueServer
802+
install: Optional[ServerInstall]
803+
"""
804+
Configuration of the installation.
805+
"""
806+
807+
rescue_server: Optional[ServerRescueServer]
808808
"""
809809
Configuration of rescue boot.
810810
"""

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@ def unmarshal_SnapshotSummary(data: Any) -> SnapshotSummary:
165165
field = data.get("name", None)
166166
args["name"] = field
167167

168-
field = data.get("parent_volume", None)
169-
args["parent_volume"] = unmarshal_SnapshotParentVolume(field)
170-
171168
field = data.get("size", None)
172169
args["size"] = field
173170

@@ -186,6 +183,9 @@ def unmarshal_SnapshotSummary(data: Any) -> SnapshotSummary:
186183
field = data.get("class_", None)
187184
args["class_"] = field
188185

186+
field = data.get("parent_volume", None)
187+
args["parent_volume"] = unmarshal_SnapshotParentVolume(field)
188+
189189
field = data.get("created_at", None)
190190
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
191191

@@ -225,15 +225,15 @@ def unmarshal_VolumeType(data: Any) -> VolumeType:
225225
field = data.get("type_", None)
226226
args["type_"] = field
227227

228-
field = data.get("specs", None)
229-
args["specs"] = unmarshal_VolumeSpecifications(field)
230-
231228
field = data.get("pricing", None)
232229
args["pricing"] = unmarshal_Money(field)
233230

234231
field = data.get("snapshot_pricing", None)
235232
args["snapshot_pricing"] = unmarshal_Money(field)
236233

234+
field = data.get("specs", None)
235+
args["specs"] = unmarshal_VolumeSpecifications(field)
236+
237237
return VolumeType(**args)
238238

239239

@@ -289,9 +289,6 @@ def unmarshal_Snapshot(data: Any) -> Snapshot:
289289
field = data.get("name", None)
290290
args["name"] = field
291291

292-
field = data.get("parent_volume", None)
293-
args["parent_volume"] = unmarshal_SnapshotParentVolume(field)
294-
295292
field = data.get("size", None)
296293
args["size"] = field
297294

@@ -315,6 +312,9 @@ def unmarshal_Snapshot(data: Any) -> Snapshot:
315312
field = data.get("class_", None)
316313
args["class_"] = field
317314

315+
field = data.get("parent_volume", None)
316+
args["parent_volume"] = unmarshal_SnapshotParentVolume(field)
317+
318318
field = data.get("created_at", None)
319319
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
320320

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

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,6 @@ class SnapshotSummary:
202202
Name of the snapshot.
203203
"""
204204

205-
parent_volume: SnapshotParentVolume
206-
"""
207-
If the parent volume has been deleted, value is null.
208-
"""
209-
210205
size: int
211206
"""
212207
Size of the snapshot in bytes.
@@ -237,6 +232,11 @@ class SnapshotSummary:
237232
Storage class of the snapshot.
238233
"""
239234

235+
parent_volume: Optional[SnapshotParentVolume]
236+
"""
237+
If the parent volume has been deleted, value is null.
238+
"""
239+
240240
created_at: Optional[datetime]
241241
"""
242242
Creation date of the snapshot.
@@ -255,11 +255,6 @@ class VolumeType:
255255
Volume type.
256256
"""
257257

258-
specs: VolumeSpecifications
259-
"""
260-
Volume specifications of the volume type.
261-
"""
262-
263258
pricing: Optional[Money]
264259
"""
265260
Price of the volume billed in GB/hour.
@@ -270,6 +265,11 @@ class VolumeType:
270265
Price of the snapshot billed in GB/hour.
271266
"""
272267

268+
specs: Optional[VolumeSpecifications]
269+
"""
270+
Volume specifications of the volume type.
271+
"""
272+
273273

274274
@dataclass
275275
class Volume:
@@ -333,7 +333,7 @@ class Volume:
333333
Volume zone.
334334
"""
335335

336-
specs: VolumeSpecifications
336+
specs: Optional[VolumeSpecifications]
337337
"""
338338
Specifications of the volume.
339339
"""
@@ -687,6 +687,11 @@ class DeleteSnapshotRequest:
687687
Storage class of the snapshot.
688688
"""
689689

690+
parent_volume: Optional[SnapshotParentVolume]
691+
"""
692+
If the parent volume was deleted, value is null.
693+
"""
694+
690695
created_at: Optional[datetime]
691696
"""
692697
Creation date of the snapshot.

scaleway-async/scaleway_async/cockpit/v1beta1/marshalling.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,15 @@ def unmarshal_Token(data: Any) -> Token:
206206
field = data.get("name", None)
207207
args["name"] = field
208208

209-
field = data.get("scopes", None)
210-
args["scopes"] = unmarshal_TokenScopes(field)
211-
212209
field = data.get("created_at", None)
213210
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
214211

215212
field = data.get("updated_at", None)
216213
args["updated_at"] = parser.isoparse(field) if isinstance(field, str) else field
217214

215+
field = data.get("scopes", None)
216+
args["scopes"] = unmarshal_TokenScopes(field)
217+
218218
field = data.get("secret_key", None)
219219
args["secret_key"] = field
220220

@@ -408,24 +408,24 @@ def unmarshal_Cockpit(data: Any) -> Cockpit:
408408
field = data.get("project_id", None)
409409
args["project_id"] = field
410410

411-
field = data.get("endpoints", None)
412-
args["endpoints"] = unmarshal_CockpitEndpoints(field)
413-
414411
field = data.get("status", None)
415412
args["status"] = field
416413

417414
field = data.get("managed_alerts_enabled", None)
418415
args["managed_alerts_enabled"] = field
419416

420-
field = data.get("plan", None)
421-
args["plan"] = unmarshal_Plan(field)
422-
423417
field = data.get("created_at", None)
424418
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
425419

426420
field = data.get("updated_at", None)
427421
args["updated_at"] = parser.isoparse(field) if isinstance(field, str) else field
428422

423+
field = data.get("endpoints", None)
424+
args["endpoints"] = unmarshal_CockpitEndpoints(field)
425+
426+
field = data.get("plan", None)
427+
args["plan"] = unmarshal_Plan(field)
428+
429429
return Cockpit(**args)
430430

431431

0 commit comments

Comments
 (0)