Skip to content

Commit a8340da

Browse files
authored
docs: update products documentation (#94)
1 parent a07bb7f commit a8340da

File tree

84 files changed

+1894
-718
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

+1894
-718
lines changed

scaleway-async/scaleway_async/account/v2/api.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class AccountV2API(API):
2727
"""
2828
Account API.
2929
30+
User related data.
3031
This API allows you to manage projects.
3132
"""
3233

@@ -38,6 +39,7 @@ async def create_project(
3839
description: Optional[str] = None,
3940
) -> Project:
4041
"""
42+
Create a new Project for an Organization.
4143
Generate a new Project for an Organization, specifying its configuration including name and description.
4244
:param name: Name of the Project.
4345
:param organization_id: Organization ID of the Project.
@@ -77,6 +79,7 @@ async def list_projects(
7779
project_ids: Optional[List[str]] = None,
7880
) -> ListProjectsResponse:
7981
"""
82+
List all Projects of an Organization.
8083
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.
8184
:param organization_id: Organization ID of the Project.
8285
:param name: Name of the Project.
@@ -120,6 +123,7 @@ async def list_projects_all(
120123
project_ids: Optional[List[str]] = None,
121124
) -> List[Project]:
122125
"""
126+
List all Projects of an Organization.
123127
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.
124128
:param organization_id: Organization ID of the Project.
125129
:param name: Name of the Project.
@@ -155,6 +159,7 @@ async def get_project(
155159
project_id: Optional[str] = None,
156160
) -> Project:
157161
"""
162+
Get an existing Project.
158163
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.
159164
:param project_id: Project ID of the Project.
160165
:return: :class:`Project <Project>`
@@ -183,6 +188,7 @@ async def delete_project(
183188
project_id: Optional[str] = None,
184189
) -> Optional[None]:
185190
"""
191+
Delete an existing Project.
186192
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.
187193
:param project_id: Project ID of the Project.
188194
@@ -212,6 +218,7 @@ async def update_project(
212218
description: Optional[str] = None,
213219
) -> Project:
214220
"""
221+
Update Project.
215222
Update the parameters of an existing Project, specified by its Project ID. These parameters include the name and description.
216223
:param project_id: Project ID of the Project.
217224
:param name: Name of the Project.

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class ApplesiliconV1Alpha1API(API):
4444
"""
4545
Apple silicon.
4646
47+
Apple Mac mini as a service.
4748
Scaleway Apple silicon as-a-Service is built using the latest generation of Apple Mac mini hardware (fifth generation).
4849
4950
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(
6364
zone: Optional[Zone] = None,
6465
) -> ListServerTypesResponse:
6566
"""
67+
List server types.
6668
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`.
6769
:param zone: Zone to target. If none is passed will use default zone from the config.
6870
:return: :class:`ListServerTypesResponse <ListServerTypesResponse>`
@@ -90,6 +92,7 @@ async def get_server_type(
9092
zone: Optional[Zone] = None,
9193
) -> ServerType:
9294
"""
95+
Get a server type.
9396
Get a server technical details.
9497
:param zone: Zone to target. If none is passed will use default zone from the config.
9598
:param server_type: Server type identifier.
@@ -121,6 +124,7 @@ async def create_server(
121124
project_id: Optional[str] = None,
122125
) -> Server:
123126
"""
127+
Create a server.
124128
Create a new server in the targeted zone, specifying its configuration including name and type.
125129
:param zone: Zone to target. If none is passed will use default zone from the config.
126130
:param name: Create a server with this given name.
@@ -164,6 +168,7 @@ async def list_servers(
164168
page_size: Optional[int] = None,
165169
) -> ListServersResponse:
166170
"""
171+
List all servers.
167172
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.
168173
:param zone: Zone to target. If none is passed will use default zone from the config.
169174
:param order_by: Sort order of the returned servers.
@@ -208,6 +213,7 @@ async def list_servers_all(
208213
page_size: Optional[int] = None,
209214
) -> List[Server]:
210215
"""
216+
List all servers.
211217
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.
212218
:param zone: Zone to target. If none is passed will use default zone from the config.
213219
:param order_by: Sort order of the returned servers.
@@ -247,6 +253,7 @@ async def list_os(
247253
name: Optional[str] = None,
248254
) -> ListOSResponse:
249255
"""
256+
List all Operating System (OS).
250257
List all Operating System (OS). The response will include the total number of OS as well as their associated IDs, names and labels.
251258
:param zone: Zone to target. If none is passed will use default zone from the config.
252259
:param page: Positive integer to choose the page to return.
@@ -287,6 +294,7 @@ async def list_os_all(
287294
name: Optional[str] = None,
288295
) -> List[OS]:
289296
"""
297+
List all Operating System (OS).
290298
List all Operating System (OS). The response will include the total number of OS as well as their associated IDs, names and labels.
291299
:param zone: Zone to target. If none is passed will use default zone from the config.
292300
:param page: Positive integer to choose the page to return.
@@ -321,6 +329,7 @@ async def get_os(
321329
zone: Optional[Zone] = None,
322330
) -> OS:
323331
"""
332+
Get an Operating System (OS).
324333
Get an Operating System (OS). The response will include the OS's unique ID as well as its name and label.
325334
:param zone: Zone to target. If none is passed will use default zone from the config.
326335
:param os_id: UUID of the OS you want to get.
@@ -350,6 +359,7 @@ async def get_server(
350359
zone: Optional[Zone] = None,
351360
) -> Server:
352361
"""
362+
Get a server.
353363
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.
354364
:param zone: Zone to target. If none is passed will use default zone from the config.
355365
:param server_id: UUID of the server you want to get.
@@ -415,6 +425,7 @@ async def update_server(
415425
zone: Optional[Zone] = None,
416426
) -> Server:
417427
"""
428+
Update a server.
418429
Update the parameters of an existing Apple silicon server, specified by its server ID.
419430
:param zone: Zone to target. If none is passed will use default zone from the config.
420431
:param server_id: UUID of the server you want to update.
@@ -456,6 +467,7 @@ async def delete_server(
456467
zone: Optional[Zone] = None,
457468
) -> Optional[None]:
458469
"""
470+
Delete a server.
459471
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.
460472
:param zone: Zone to target. If none is passed will use default zone from the config.
461473
:param server_id: UUID of the server you want to delete.
@@ -484,6 +496,7 @@ async def reboot_server(
484496
zone: Optional[Zone] = None,
485497
) -> Server:
486498
"""
499+
Reboot a server.
487500
Reboot an existing Apple silicon server, specified by its server ID.
488501
:param zone: Zone to target. If none is passed will use default zone from the config.
489502
:param server_id: UUID of the server you want to reboot.
@@ -513,6 +526,7 @@ async def reinstall_server(
513526
zone: Optional[Zone] = None,
514527
) -> Server:
515528
"""
529+
Reinstall a server.
516530
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).
517531
:param zone: Zone to target. If none is passed will use default zone from the config.
518532
:param server_id: UUID of the server you want to reinstall.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ class ServerType:
224224

225225
minimum_lease_duration: Optional[str]
226226
"""
227+
Minimum duration of the lease in seconds.
227228
Minimum duration of the lease in seconds (example. 3.4s).
228229
"""
229230

0 commit comments

Comments
 (0)