You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scaleway-async/scaleway_async/account/v2/api.py
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ class AccountV2API(API):
27
27
"""
28
28
Account API.
29
29
30
+
User related data.
30
31
This API allows you to manage projects.
31
32
"""
32
33
@@ -38,6 +39,7 @@ async def create_project(
38
39
description: Optional[str] =None,
39
40
) ->Project:
40
41
"""
42
+
Create a new Project for an Organization.
41
43
Generate a new Project for an Organization, specifying its configuration including name and description.
42
44
:param name: Name of the Project.
43
45
:param organization_id: Organization ID of the Project.
@@ -77,6 +79,7 @@ async def list_projects(
77
79
project_ids: Optional[List[str]] =None,
78
80
) ->ListProjectsResponse:
79
81
"""
82
+
List all Projects of an Organization.
80
83
List all Projects of an Organization. The response will include the total number of Projects as well as their associated Organizations, names and IDs. Other information include the creation and update date of the Project.
81
84
:param organization_id: Organization ID of the Project.
82
85
:param name: Name of the Project.
@@ -120,6 +123,7 @@ async def list_projects_all(
120
123
project_ids: Optional[List[str]] =None,
121
124
) ->List[Project]:
122
125
"""
126
+
List all Projects of an Organization.
123
127
List all Projects of an Organization. The response will include the total number of Projects as well as their associated Organizations, names and IDs. Other information include the creation and update date of the Project.
124
128
:param organization_id: Organization ID of the Project.
125
129
:param name: Name of the Project.
@@ -155,6 +159,7 @@ async def get_project(
155
159
project_id: Optional[str] =None,
156
160
) ->Project:
157
161
"""
162
+
Get an existing Project.
158
163
Retrieve information about an existing Project, specified by its Project ID. Its full details, including ID, name and description, are returned in the response object.
159
164
:param project_id: Project ID of the Project.
160
165
:return: :class:`Project <Project>`
@@ -183,6 +188,7 @@ async def delete_project(
183
188
project_id: Optional[str] =None,
184
189
) ->Optional[None]:
185
190
"""
191
+
Delete an existing Project.
186
192
Delete an existing Project, specified by its Project ID. The Project needs to be empty (meaning there are no resources left in it) to be deleted effectively. Note that deleting a Project is permanent, and cannot be undone.
187
193
:param project_id: Project ID of the Project.
188
194
@@ -212,6 +218,7 @@ async def update_project(
212
218
description: Optional[str] =None,
213
219
) ->Project:
214
220
"""
221
+
Update Project.
215
222
Update the parameters of an existing Project, specified by its Project ID. These parameters include the name and description.
Copy file name to clipboardExpand all lines: scaleway-async/scaleway_async/applesilicon/v1alpha1/api.py
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ class ApplesiliconV1Alpha1API(API):
44
44
"""
45
45
Apple silicon.
46
46
47
+
Apple Mac mini as a service.
47
48
Scaleway Apple silicon as-a-Service is built using the latest generation of Apple Mac mini hardware (fifth generation).
48
49
49
50
These dedicated Mac mini M1s are designed for developing, building, testing, and signing applications for Apple devices, including iPhones, iPads, Mac computers and much more.
@@ -63,6 +64,7 @@ async def list_server_types(
63
64
zone: Optional[Zone] =None,
64
65
) ->ListServerTypesResponse:
65
66
"""
67
+
List server types.
66
68
List all technical details about Apple silicon server types available in the specified zone. Since there is only one Availability Zone for Apple silicon servers, the targeted value is `fr-par-3`.
67
69
:param zone: Zone to target. If none is passed will use default zone from the config.
:param zone: Zone to target. If none is passed will use default zone from the config.
95
98
:param server_type: Server type identifier.
@@ -121,6 +124,7 @@ async def create_server(
121
124
project_id: Optional[str] =None,
122
125
) ->Server:
123
126
"""
127
+
Create a server.
124
128
Create a new server in the targeted zone, specifying its configuration including name and type.
125
129
:param zone: Zone to target. If none is passed will use default zone from the config.
126
130
:param name: Create a server with this given name.
@@ -164,6 +168,7 @@ async def list_servers(
164
168
page_size: Optional[int] =None,
165
169
) ->ListServersResponse:
166
170
"""
171
+
List all servers.
167
172
List all servers in the specified zone. By default, returned servers in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
168
173
:param zone: Zone to target. If none is passed will use default zone from the config.
169
174
:param order_by: Sort order of the returned servers.
@@ -208,6 +213,7 @@ async def list_servers_all(
208
213
page_size: Optional[int] =None,
209
214
) ->List[Server]:
210
215
"""
216
+
List all servers.
211
217
List all servers in the specified zone. By default, returned servers in the list are ordered by creation date in ascending order, though this can be modified via the `order_by` field.
212
218
:param zone: Zone to target. If none is passed will use default zone from the config.
213
219
:param order_by: Sort order of the returned servers.
@@ -247,6 +253,7 @@ async def list_os(
247
253
name: Optional[str] =None,
248
254
) ->ListOSResponse:
249
255
"""
256
+
List all Operating System (OS).
250
257
List all Operating System (OS). The response will include the total number of OS as well as their associated IDs, names and labels.
251
258
:param zone: Zone to target. If none is passed will use default zone from the config.
252
259
:param page: Positive integer to choose the page to return.
@@ -287,6 +294,7 @@ async def list_os_all(
287
294
name: Optional[str] =None,
288
295
) ->List[OS]:
289
296
"""
297
+
List all Operating System (OS).
290
298
List all Operating System (OS). The response will include the total number of OS as well as their associated IDs, names and labels.
291
299
:param zone: Zone to target. If none is passed will use default zone from the config.
292
300
:param page: Positive integer to choose the page to return.
@@ -321,6 +329,7 @@ async def get_os(
321
329
zone: Optional[Zone] =None,
322
330
) ->OS:
323
331
"""
332
+
Get an Operating System (OS).
324
333
Get an Operating System (OS). The response will include the OS's unique ID as well as its name and label.
325
334
:param zone: Zone to target. If none is passed will use default zone from the config.
326
335
:param os_id: UUID of the OS you want to get.
@@ -350,6 +359,7 @@ async def get_server(
350
359
zone: Optional[Zone] =None,
351
360
) ->Server:
352
361
"""
362
+
Get a server.
353
363
Retrieve information about an existing Apple silicon server, specified by its server ID. Its full details, including name, status and IP address, are returned in the response object.
354
364
:param zone: Zone to target. If none is passed will use default zone from the config.
355
365
:param server_id: UUID of the server you want to get.
@@ -415,6 +425,7 @@ async def update_server(
415
425
zone: Optional[Zone] =None,
416
426
) ->Server:
417
427
"""
428
+
Update a server.
418
429
Update the parameters of an existing Apple silicon server, specified by its server ID.
419
430
:param zone: Zone to target. If none is passed will use default zone from the config.
420
431
:param server_id: UUID of the server you want to update.
@@ -456,6 +467,7 @@ async def delete_server(
456
467
zone: Optional[Zone] =None,
457
468
) ->Optional[None]:
458
469
"""
470
+
Delete a server.
459
471
Delete an existing Apple silicon server, specified by its server ID. Deleting a server is permanent, and cannot be undone. Note that the minimum allocation period for Apple silicon-as-a-service is 24 hours, meaning you cannot delete your server prior to that.
460
472
:param zone: Zone to target. If none is passed will use default zone from the config.
461
473
:param server_id: UUID of the server you want to delete.
@@ -484,6 +496,7 @@ async def reboot_server(
484
496
zone: Optional[Zone] =None,
485
497
) ->Server:
486
498
"""
499
+
Reboot a server.
487
500
Reboot an existing Apple silicon server, specified by its server ID.
488
501
:param zone: Zone to target. If none is passed will use default zone from the config.
489
502
:param server_id: UUID of the server you want to reboot.
@@ -513,6 +526,7 @@ async def reinstall_server(
513
526
zone: Optional[Zone] =None,
514
527
) ->Server:
515
528
"""
529
+
Reinstall a server.
516
530
Reinstall an existing Apple silicon server (specified by its server ID) from a new image (OS). All the data on the disk is deleted and all configuration is reset to the defailt configuration values of the image (OS).
517
531
:param zone: Zone to target. If none is passed will use default zone from the config.
518
532
:param server_id: UUID of the server you want to reinstall.
0 commit comments