Skip to content

Commit af5ceba

Browse files
committed
feat: update generation
1 parent a56aa35 commit af5ceba

File tree

84 files changed

+1380
-1370
lines changed

Some content is hidden

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

84 files changed

+1380
-1370
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
@@ -168,9 +168,6 @@ def unmarshal_SnapshotSummary(data: Any) -> SnapshotSummary:
168168
field = data.get("name", None)
169169
args["name"] = field
170170

171-
field = data.get("parent_volume", None)
172-
args["parent_volume"] = unmarshal_SnapshotParentVolume(field)
173-
174171
field = data.get("size", None)
175172
args["size"] = field
176173

@@ -189,6 +186,9 @@ def unmarshal_SnapshotSummary(data: Any) -> SnapshotSummary:
189186
field = data.get("class_", None)
190187
args["class_"] = field
191188

189+
field = data.get("parent_volume", None)
190+
args["parent_volume"] = unmarshal_SnapshotParentVolume(field)
191+
192192
field = data.get("created_at", None)
193193
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
194194

@@ -228,15 +228,15 @@ def unmarshal_VolumeType(data: Any) -> VolumeType:
228228
field = data.get("type_", None)
229229
args["type_"] = field
230230

231-
field = data.get("specs", None)
232-
args["specs"] = unmarshal_VolumeSpecifications(field)
233-
234231
field = data.get("pricing", None)
235232
args["pricing"] = unmarshal_Money(field)
236233

237234
field = data.get("snapshot_pricing", None)
238235
args["snapshot_pricing"] = unmarshal_Money(field)
239236

237+
field = data.get("specs", None)
238+
args["specs"] = unmarshal_VolumeSpecifications(field)
239+
240240
return VolumeType(**args)
241241

242242

@@ -292,9 +292,6 @@ def unmarshal_Snapshot(data: Any) -> Snapshot:
292292
field = data.get("name", None)
293293
args["name"] = field
294294

295-
field = data.get("parent_volume", None)
296-
args["parent_volume"] = unmarshal_SnapshotParentVolume(field)
297-
298295
field = data.get("size", None)
299296
args["size"] = field
300297

@@ -318,6 +315,9 @@ def unmarshal_Snapshot(data: Any) -> Snapshot:
318315
field = data.get("class_", None)
319316
args["class_"] = field
320317

318+
field = data.get("parent_volume", None)
319+
args["parent_volume"] = unmarshal_SnapshotParentVolume(field)
320+
321321
field = data.get("created_at", None)
322322
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
323323

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

Lines changed: 16 additions & 16 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
"""
@@ -611,11 +611,6 @@ class Snapshot:
611611
Name of the snapshot.
612612
"""
613613

614-
parent_volume: SnapshotParentVolume
615-
"""
616-
If the parent volume was deleted, value is null.
617-
"""
618-
619614
size: int
620615
"""
621616
Size in bytes of the snapshot.
@@ -651,6 +646,11 @@ class Snapshot:
651646
Storage class of the snapshot.
652647
"""
653648

649+
parent_volume: Optional[SnapshotParentVolume]
650+
"""
651+
If the parent volume was deleted, value is null.
652+
"""
653+
654654
created_at: Optional[datetime]
655655
"""
656656
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

@@ -290,24 +290,24 @@ def unmarshal_Cockpit(data: Any) -> Cockpit:
290290
field = data.get("project_id", None)
291291
args["project_id"] = field
292292

293-
field = data.get("endpoints", None)
294-
args["endpoints"] = unmarshal_CockpitEndpoints(field)
295-
296293
field = data.get("status", None)
297294
args["status"] = field
298295

299296
field = data.get("managed_alerts_enabled", None)
300297
args["managed_alerts_enabled"] = field
301298

302-
field = data.get("plan", None)
303-
args["plan"] = unmarshal_Plan(field)
304-
305299
field = data.get("created_at", None)
306300
args["created_at"] = parser.isoparse(field) if isinstance(field, str) else field
307301

308302
field = data.get("updated_at", None)
309303
args["updated_at"] = parser.isoparse(field) if isinstance(field, str) else field
310304

305+
field = data.get("endpoints", None)
306+
args["endpoints"] = unmarshal_CockpitEndpoints(field)
307+
308+
field = data.get("plan", None)
309+
args["plan"] = unmarshal_Plan(field)
310+
311311
return Cockpit(**args)
312312

313313

0 commit comments

Comments
 (0)