Skip to content

Commit 43ea89a

Browse files
authored
docs(apple): reworked apple silicon api doc (#89)
1 parent ba70b74 commit 43ea89a

File tree

4 files changed

+102
-102
lines changed

4 files changed

+102
-102
lines changed

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

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ApplesiliconV1Alpha1API(API):
4444
"""
4545
Apple silicon.
4646
47-
Scaleway Apple silicon M1 as-a-Service is built using the latest generation of Apple Mac mini hardware (fifth generation).
47+
Scaleway Apple silicon as-a-Service is built using the latest generation of Apple Mac mini hardware (fifth generation).
4848
4949
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.
5050
@@ -63,7 +63,7 @@ async def list_server_types(
6363
zone: Optional[Zone] = None,
6464
) -> ListServerTypesResponse:
6565
"""
66-
List all server types technical details.
66+
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`.
6767
:param zone: Zone to target. If none is passed will use default zone from the config.
6868
:return: :class:`ListServerTypesResponse <ListServerTypesResponse>`
6969
@@ -121,7 +121,7 @@ async def create_server(
121121
project_id: Optional[str] = None,
122122
) -> Server:
123123
"""
124-
Create a server.
124+
Create a new server in the targeted zone, specifying its configuration including name and type.
125125
:param zone: Zone to target. If none is passed will use default zone from the config.
126126
:param name: Create a server with this given name.
127127
:param project_id: Create a server in the given project ID.
@@ -164,13 +164,13 @@ async def list_servers(
164164
page_size: Optional[int] = None,
165165
) -> ListServersResponse:
166166
"""
167-
List all servers.
167+
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.
168168
:param zone: Zone to target. If none is passed will use default zone from the config.
169-
:param order_by: The sort order of the returned servers.
170-
:param project_id: List only servers of this project ID.
171-
:param organization_id: List only servers of this organization ID.
172-
:param page: A positive integer to choose the page to return.
173-
:param page_size: A positive integer lower or equal to 100 to select the number of items to return.
169+
:param order_by: Sort order of the returned servers.
170+
:param project_id: Only list servers of this project ID.
171+
:param organization_id: Only list servers of this Organization ID.
172+
:param page: Positive integer to choose the page to return.
173+
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
174174
:return: :class:`ListServersResponse <ListServersResponse>`
175175
176176
Usage:
@@ -208,13 +208,13 @@ async def list_servers_all(
208208
page_size: Optional[int] = None,
209209
) -> List[Server]:
210210
"""
211-
List all servers.
211+
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.
212212
:param zone: Zone to target. If none is passed will use default zone from the config.
213-
:param order_by: The sort order of the returned servers.
214-
:param project_id: List only servers of this project ID.
215-
:param organization_id: List only servers of this organization ID.
216-
:param page: A positive integer to choose the page to return.
217-
:param page_size: A positive integer lower or equal to 100 to select the number of items to return.
213+
:param order_by: Sort order of the returned servers.
214+
:param project_id: Only list servers of this project ID.
215+
:param organization_id: Only list servers of this Organization ID.
216+
:param page: Positive integer to choose the page to return.
217+
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
218218
:return: :class:`List[ListServersResponse] <List[ListServersResponse]>`
219219
220220
Usage:
@@ -247,12 +247,12 @@ async def list_os(
247247
name: Optional[str] = None,
248248
) -> ListOSResponse:
249249
"""
250-
List all Operating System (OS).
250+
List all Operating System (OS). The response will include the total number of OS as well as their associated IDs, names and labels.
251251
:param zone: Zone to target. If none is passed will use default zone from the config.
252-
:param page: A positive integer to choose the page to return.
253-
:param page_size: A positive integer lower or equal to 100 to select the number of items to return.
254-
:param server_type: List of compatible server type.
255-
:param name: Filter os by name (for eg. "11.1" will return "11.1.2" and "11.1" but not "12").
252+
:param page: Positive integer to choose the page to return.
253+
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
254+
:param server_type: List of compatible server types.
255+
:param name: Filter OS by name (note that "11.1" will return "11.1.2" and "11.1" but not "12")).
256256
:return: :class:`ListOSResponse <ListOSResponse>`
257257
258258
Usage:
@@ -287,12 +287,12 @@ async def list_os_all(
287287
name: Optional[str] = None,
288288
) -> List[OS]:
289289
"""
290-
List all Operating System (OS).
290+
List all Operating System (OS). The response will include the total number of OS as well as their associated IDs, names and labels.
291291
:param zone: Zone to target. If none is passed will use default zone from the config.
292-
:param page: A positive integer to choose the page to return.
293-
:param page_size: A positive integer lower or equal to 100 to select the number of items to return.
294-
:param server_type: List of compatible server type.
295-
:param name: Filter os by name (for eg. "11.1" will return "11.1.2" and "11.1" but not "12").
292+
:param page: Positive integer to choose the page to return.
293+
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
294+
:param server_type: List of compatible server types.
295+
:param name: Filter OS by name (note that "11.1" will return "11.1.2" and "11.1" but not "12")).
296296
:return: :class:`List[ListOSResponse] <List[ListOSResponse]>`
297297
298298
Usage:
@@ -321,7 +321,7 @@ async def get_os(
321321
zone: Optional[Zone] = None,
322322
) -> OS:
323323
"""
324-
Get an Operating System (OS).
324+
Get an Operating System (OS). The response will include the OS's unique ID as well as its name and label.
325325
:param zone: Zone to target. If none is passed will use default zone from the config.
326326
:param os_id: UUID of the OS you want to get.
327327
:return: :class:`OS <OS>`
@@ -350,7 +350,7 @@ async def get_server(
350350
zone: Optional[Zone] = None,
351351
) -> Server:
352352
"""
353-
Get a server.
353+
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.
354354
:param zone: Zone to target. If none is passed will use default zone from the config.
355355
:param server_id: UUID of the server you want to get.
356356
:return: :class:`Server <Server>`
@@ -415,7 +415,7 @@ async def update_server(
415415
zone: Optional[Zone] = None,
416416
) -> Server:
417417
"""
418-
Update a server.
418+
Update the parameters of an existing Apple silicon server, specified by its server ID.
419419
:param zone: Zone to target. If none is passed will use default zone from the config.
420420
:param server_id: UUID of the server you want to update.
421421
:param name: Updated name for your server.
@@ -456,7 +456,7 @@ async def delete_server(
456456
zone: Optional[Zone] = None,
457457
) -> Optional[None]:
458458
"""
459-
Delete a server.
459+
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.
460460
:param zone: Zone to target. If none is passed will use default zone from the config.
461461
:param server_id: UUID of the server you want to delete.
462462
@@ -484,7 +484,7 @@ async def reboot_server(
484484
zone: Optional[Zone] = None,
485485
) -> Server:
486486
"""
487-
Reboot a server.
487+
Reboot an existing Apple silicon server, specified by its server ID.
488488
:param zone: Zone to target. If none is passed will use default zone from the config.
489489
:param server_id: UUID of the server you want to reboot.
490490
:return: :class:`Server <Server>`
@@ -513,7 +513,7 @@ async def reinstall_server(
513513
zone: Optional[Zone] = None,
514514
) -> Server:
515515
"""
516-
Reinstall a server.
516+
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).
517517
:param zone: Zone to target. If none is passed will use default zone from the config.
518518
:param server_id: UUID of the server you want to reinstall.
519519
:return: :class:`Server <Server>`

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ListOSResponse:
5454

5555
total_count: int
5656
"""
57-
Total number of os.
57+
Total number of OS.
5858
"""
5959

6060
os: List[OS]
@@ -71,7 +71,7 @@ class ListServerTypesResponse:
7171

7272
server_types: List[ServerType]
7373
"""
74-
The available server types.
74+
Available server types.
7575
"""
7676

7777

@@ -83,12 +83,12 @@ class ListServersResponse:
8383

8484
total_count: int
8585
"""
86-
The total number of servers.
86+
Total number of servers.
8787
"""
8888

8989
servers: List[Server]
9090
"""
91-
The paginated returned servers.
91+
Paginated returned servers.
9292
"""
9393

9494

@@ -100,17 +100,17 @@ class OS:
100100

101101
id: str
102102
"""
103-
The OS unique ID.
103+
Unique ID of the OS.
104104
"""
105105

106106
name: str
107107
"""
108-
The OS name.
108+
OS name.
109109
"""
110110

111111
label: str
112112
"""
113-
The OS name as it should be displayed.
113+
OS name as it should be displayed.
114114
"""
115115

116116
image_url: str
@@ -172,22 +172,22 @@ class Server:
172172

173173
created_at: Optional[datetime]
174174
"""
175-
The date at which the server was created.
175+
Date on which the server was created.
176176
"""
177177

178178
updated_at: Optional[datetime]
179179
"""
180-
The date at which the server was last updated.
180+
Date on which the server was last updated.
181181
"""
182182

183183
deletable_at: Optional[datetime]
184184
"""
185-
The date at which the server was last deleted.
185+
Date on which the server was last deleted.
186186
"""
187187

188188
zone: Zone
189189
"""
190-
The zone of the server.
190+
Zone of the server.
191191
"""
192192

193193

@@ -302,27 +302,27 @@ class ListServersRequest:
302302

303303
order_by: Optional[ListServersRequestOrderBy]
304304
"""
305-
The sort order of the returned servers.
305+
Sort order of the returned servers.
306306
"""
307307

308308
project_id: Optional[str]
309309
"""
310-
List only servers of this project ID.
310+
Only list servers of this project ID.
311311
"""
312312

313313
organization_id: Optional[str]
314314
"""
315-
List only servers of this organization ID.
315+
Only list servers of this Organization ID.
316316
"""
317317

318318
page: Optional[int]
319319
"""
320-
A positive integer to choose the page to return.
320+
Positive integer to choose the page to return.
321321
"""
322322

323323
page_size: Optional[int]
324324
"""
325-
A positive integer lower or equal to 100 to select the number of items to return.
325+
Positive integer lower or equal to 100 to select the number of items to return.
326326
"""
327327

328328

@@ -335,22 +335,22 @@ class ListOSRequest:
335335

336336
page: Optional[int]
337337
"""
338-
A positive integer to choose the page to return.
338+
Positive integer to choose the page to return.
339339
"""
340340

341341
page_size: Optional[int]
342342
"""
343-
A positive integer lower or equal to 100 to select the number of items to return.
343+
Positive integer lower or equal to 100 to select the number of items to return.
344344
"""
345345

346346
server_type: Optional[str]
347347
"""
348-
List of compatible server type.
348+
List of compatible server types.
349349
"""
350350

351351
name: Optional[str]
352352
"""
353-
Filter os by name (for eg. "11.1" will return "11.1.2" and "11.1" but not "12").
353+
Filter OS by name (note that "11.1" will return "11.1.2" and "11.1" but not "12")).
354354
"""
355355

356356

0 commit comments

Comments
 (0)